From all that I've read, it's about voltage drop over the distance of the circuit run. At shorter distances from your breaker box (perhaps under 30') go with 12 gauge, at longer distances (50' or more) definitely use 10 gauge. I've seen some charts showing the voltage drop over distance, and it can be significant, but I can't find them now.
.
.