A good rule of thumb is to oversize wire by 125% of the motor circuit full load.
The important thing is to fuse circuit to protect the wire. So if it draws more than 20amps, it will just blow a fuse.
I was assuming his 20a number was full load current, not the normal operation draw measured with...