depends on many factors, such as max voltage drop, length, allowed temperature increase. And wire code if applicable.
For example, for a 1 ft length, US AWG #14 would drop 0.06 volts.
for a 100 ft length, you would need something like #8, which would drop 1.6 volts.
now if this was a 100 volt circuit, those voltage drops would probably be OK. But for a 5 volt circuit, 1.6 volts drop would be too much.