How it works
Voltage drop = 2 × one-way length × current × resistance per foot for DC and single-phase AC, and √3 × length × current × resistance for three-phase. Resistance is the DC value at 75 °C from NEC Chapter 9 Table 8 for stranded uncoated copper or aluminum.
For AC this leaves out inductive reactance, which is small for the wire sizes used in residential solar. For large three-phase feeders, use the AC impedance from Chapter 9 Table 9.
Power lost in the wire is the voltage drop × current. On a solar circuit that energy is lost every sunny hour for the life of the system, so it is often worth one size larger than ampacity alone requires.