I just bought a new stationary 5HP air compressor, and I need to know what wire gauge I should use for it. Relevant compressor details:
- 40 Amp draw
- Magnetic starter
- Length of run from power box to air compressor is 25 feet
Since it's on a 40 amp breaker I would use #8 THHN. 5HP is only 3750 watts (1 HP = 750 Watts (rounding up)) so you are only pulling less than 18 amps when running. Start up amps will be around 36 amps (rule of thumb) so that should be covered by the 40 amp breaker. You can also use @Tester101 suggestion also.
If this is an expensive piece of garage furniture you might make sure that magnetic starter has heater protection and phase drop protection, which will even work on single phase which will shut down the motor if one of the legs drop out. Heaters are over current protection. This sort of depends on the compressor because the starter could cost more than the compressor.
The question is missing a few pieces of data to properly calculate wire gauge. Assuming your motor is a 230V 5HP motor your FLC (NEC table Table 430.248) should be about 28A and as such you may be able to use 10AWG copper wire.
On the other hand if the motor runs on 120V the FLC would be 56A and as such you need to run wire for 60A. Assuming your equipment is designed to handle 75ºC you may need 6AWG wire.
The wire is sized based on FLC (code book). Your over load protection should be sized based on FLA nameplate on the motor. Although I suspect a compressor should already have overload protection.
NEC ARTICLE 430 — MOTORS, MOTOR CIRCUITS, AND CONTROLLERS
for more info, or consult the owners manual of the compressor.