The color of wires in an electrical cable is a standardized insulation coding system that instantly identifies a conductor's function and voltage potential within a circuit. This color coding dictates exactly how you terminate the wire, which breaker it connects to, and what voltage you should expect to measure with your multimeter. When you strip back the sheath of a standard 12/2 NM-B (Romex) cable, the colors are not arbitrary; they are a critical safety interface enforced by the National Electrical Code (NEC) to prevent shock hazards, fires, and equipment damage.
The Standard US Wire Color Code Chart
For residential and light commercial installations in the United States, the NEC (specifically Articles 200, 210, and 310) mandates strict color assignments for grounded, ungrounded, and grounding conductors. Below is the definitive reference chart for standard AC power systems up to 600V.
| Wire Color | Function | NEC Article | Typical Application |
|---|---|---|---|
| Black | Ungrounded (Hot) | 210.5(C) | Standard 120V branch circuits, switch legs |
| Red | Ungrounded (Hot) | 210.5(C) | 240V appliance circuits, 3-way travelers, MWBCs |
| White / Gray | Grounded (Neutral) | 200.2(A) | Return path for 120V circuits, balanced MWBCs |
| Green / Bare | Equipment Ground | 250.118 | Fault current path, bonded to metal enclosures |
| Blue | Ungrounded (Hot) | 215.12(C) | 277V lighting, 480V 3-phase systems (Phase A) |
| Yellow | Ungrounded (Hot) | 215.12(C) | 480V 3-phase systems (Phase B), switch travelers |
| Orange | Ungrounded (Hot) | 215.12(C) | 480V 3-phase systems (Phase C), high-leg delta |
According to the NFPA 70 (National Electrical Code), these colors must be consistent throughout the entire premises. If you are working on a 277V/480V commercial panel, you will frequently encounter blue, yellow, and orange THHN wires in conduit, whereas residential panels are almost exclusively black, red, white, and bare/green.
What Wire Color Changes in a Real Circuit
Wire color changes your testing expectations and termination rules. To understand why this matters, let's look at a worked numeric example involving a 240V, 2000W baseboard heater installed on a 20A double-pole breaker using 12/2 NM-B cable.
Standard 12/2 NM-B contains a black, white, and bare copper wire. Because a straight 240V baseboard heater has no 120V internal components, it does not require a neutral. Therefore, the white wire must be used as a second hot leg. Per NEC 200.7(C), you must re-identify the white wire by wrapping it with black or red electrical tape at both the panel and the heater.
- Correct Wiring: Black connects to Pole 1, re-identified White connects to Pole 2. Measuring across Black and White yields 240V. The 8.33A load (2000W / 240V) runs safely within the 12 AWG wire's 20A ampacity limit.
- Incorrect Wiring (The Fault): If you mistakenly land the white wire on the neutral bus bar instead of the second breaker pole, you create a direct line-to-neutral short. Assuming 50 feet of 12 AWG wire (approx. 0.096 ohms resistance) and a utility transformer impedance of 0.05 ohms, the total circuit impedance is roughly 0.146 ohms. Applying Ohm's Law (I = V/R), a 120V fault will push 821 Amps of fault current. If wired line-to-line (240V), it pushes 1,643 Amps.
While a standard 20A breaker will trip in under 16 milliseconds under these magnetic trip conditions, the sheer mechanical force of 1,600A can cause severe arcing and bus bar damage if the breaker is old or defective. The color code is your first line of defense against making this catastrophic termination error.
Where You Meet This in Practice
You will encounter deviations from the standard 'white is always neutral' rule in three common residential scenarios. Understanding these prevents dangerous misdiagnoses when troubleshooting.
1. Switch Loops
In older homes (and some modern ones lacking 14/3 or 12/3 cable runs), a 2-wire cable is dropped from a ceiling fixture down to a wall switch. The black wire brings constant hot down to the switch, and the white wire carries the switched hot back up to the light. In this scenario, the white wire is hot. The NEC requires this white wire to be re-identified with black tape at the switch and the fixture, but in older DIY work, this tape is often missing. If you open a switch box and see a black and white wire, do not assume the white is neutral.
2. Multi-Wire Branch Circuits (MWBC)
An MWBC uses a 3-wire cable (Black, Red, White, Bare) to supply two separate 120V circuits that share a single neutral. The black and red wires must be on opposite phases (legs) of the panel so their magnetic fields cancel out in the neutral wire. If you measure Black to White, you get 120V. If you measure Red to White, you get 120V. But if you measure Black to Red, you will read 240V. If an electrician mistakenly puts both the black and red breakers on the same phase, the neutral wire will carry the additive sum of both circuits (e.g., 15A + 15A = 30A), overheating the 14 AWG neutral wire and creating a hidden fire hazard.
3. 3-Way and 4-Way Switch Travelers
When wiring a 3-way switch setup to control a light from two locations, the two wires connecting the switches are called 'travelers'. While red and black are standard, you will frequently see white used as a traveler in 14/3 or 12/3 cables. Again, this white wire is carrying switched voltage, not neutral return current.
Common Confusions and Re-Identification Rules
The most dangerous confusion in residential wiring is mixing up the Grounded Conductor (Neutral/White) and the Equipment Grounding Conductor (Green/Bare).
As noted by OSHA wiring design standards, the neutral and ground are bonded together at exactly one point: the main service disconnect. Downstream in subpanels, they must remain strictly isolated on separate bus bars.
Frequently Asked Questions
Can I use a green wire as a hot conductor?
No. NEC 250.119 strictly prohibits using green, green with yellow stripes, or bare conductors for anything other than equipment grounding. Using a ground wire as a hot leg is a severe code violation and a massive shock hazard.
What if my house has aluminum wiring?
Aluminum branch circuit wiring (common in the late 1960s and 1970s) follows the same color codes, but the conductor itself will be silver-gray instead of copper. You must use CO/ALR rated devices and apply antioxidant paste (like Noalox) to prevent galvanic corrosion at termination points.
Are DC wire colors different?
Yes. In low-voltage DC systems (like solar or automotive), red is typically positive (+) and black is negative (-). Never assume AC color codes apply to DC battery banks or solar charge controllers without checking the manufacturer's schematic.






