Tool 02 / Wire gauge
Size for ampacity and the run.
Find the first conductor that meets the 75°C ampacity value and a voltage-drop target. The larger of the two requirements wins.
Reference overview: NEC 2023 Table 310.16 ampacity matrix. Verify the adopted code edition and local requirements.