Garage electrical question

If the compressor will start up with out throwing the 20 amp breaker you will be fine running #10 wire to it...:thumrigh: