How it works
The recommended wire must carry the current safely (ampacity) and keep voltage drop within your limit over the distance. Ampacities are for copper THHN/THWN at the 75 °C column of NEC Table 310.16. Small conductors are further limited by breaker size: 14 AWG to 15 A, 12 AWG to 20 A and 10 AWG to 30 A.
Always follow local electrical codes; installation conditions such as conduit fill and ambient temperature can require larger wire.