Determine the current that will be used. Each wire size is rated to work best with a range of amps. No. 24 to No.14 wires are rated for low voltages and appliances that do not use more than 15 amps. Once the ampacity rating exceeds that, No.12 wires will be used. No.12 wire can be used with current flow that does not exceed 20 amps and is required to be used with 20-amp circuits. If No.14 is used instead of No.12, the circuit will trip very often and the wire might burn.
Calculate the voltage drop. In many applications, a wire size can seem to handle the needed current, but there may be a voltage drop so that the voltage reaching the appliances is not enough. Every wire has its own specific resistance calculation. Voltage drop can cause an appliance, for example, an air conditioner, to work for a while, stop, then work again, then stop for unknown reasons.
Calculate the distance between the source and the appliance. The distance factor is very important. The more wire that is used, the more resistance that is added to the circuit. If the distance is more than 150 feet, go one size larger. For example No.10 wire can handle 30 amps comfortably, but when the distance the current has to travel is more than 150 feet we need to use No.8. The No.8 copper wire can handle 50 amps very easily. Again, if the distance is longer we need to go up to No.6 wire. The less the wire number, the bigger the diameter. For example, No.6 wire is larger than No.8 wires.
Specify the wire usage based on the National Electrical Code of 2011. There is a whole chapter with tables (chapter 9) for every wire out there, its ampacity, resistance, when to be used, and special conditions applied for each kind. Besides specifying wire size, other factors play an important role in an electric circuit.