12 gauge wire is rated by the national electrical code for twenty amps. However there are exceptions to the code. This applies to residintial grade nm-b wire often referred to as romex. The length of the circuit will also effect the rating. there are also different types of wire such as THHN,THWN, and many others.