US electrical wiring colors are a standardized visual coding system mandated by the National Electrical Code (NEC) to identify the specific electrical function and voltage potential of each conductor in a circuit.
This color coding dictates what changes in a real installation: it ensures predictable troubleshooting, prevents catastrophic dead shorts, and guarantees that overcurrent protective devices like breakers and GFCIs operate on the correct conductors. When you open a junction box, the insulation color immediately tells you which wire is carrying 120V RMS to your load, which is returning the current, and which is providing a safe fault path. However, DIYers and junior technicians frequently confuse these AC mains colors with low-voltage DC electronics wiring or misinterpret legacy pre-1970s installations, leading to severe shock hazards or equipment destruction.
The NEC Standard US Electrical Wiring Colors Chart
The National Fire Protection Association (NFPA) publishes the NEC, which strictly governs conductor identification in Articles 200, 210, and 250. While local Authorities Having Jurisdiction (AHJ) have the final say, the following chart represents the universally accepted baseline for US alternating current (AC) power systems.
| Conductor Function | 120V / 240V Split-Phase | 208V / 480V 3-Phase | NEC Article Reference |
|---|---|---|---|
| Line 1 (Hot) | Black | Black (or Brown for 480V) | NEC 210.5(C) |
| Line 2 (Hot) | Red | Red (or Orange for 480V) | NEC 210.5(C) |
| Line 3 (Hot) | N/A (Not used in split-phase) | Blue (or Yellow for 480V) | NEC 210.5(C) |
| Neutral (Grounded) | White or Gray | White or Gray | NEC 200.6 |
| Ground (Equipment) | Bare Copper or Green | Bare Copper or Green | NEC 250.119 |
What Color Coding Changes in a Real Installation
To understand why strict adherence to these colors matters, let us look at a worked numeric example involving a common workshop upgrade: wiring a 240V, 20A NEMA 6-20 receptacle for a MIG welder using 12/2 NM-B (Romex) cable.
In a standard 12/2 NM-B cable, you have three conductors: a black insulated wire, a white insulated wire, and a bare copper ground. For a 120V circuit, black is hot (120V RMS to ground), white is neutral (0V to ground), and bare is ground. But a NEMA 6-20 requires two hot legs and a ground, with no neutral.
Here is how the circuit behaves numerically when wired correctly:
- Black Wire (Line 1): Connected to Pole A of the double-pole 20A breaker. Measures 120V RMS relative to the ground bus.
- White Wire (Re-identified as Line 2): Wrapped in black tape, connected to Pole B of the breaker. Measures 120V RMS relative to the ground bus.
- Potential Difference: Because Pole A and Pole B are on opposite phases of the split-phase transformer, the voltage measured between the black and re-identified white wire is 240V RMS.
- Bare Copper (Ground): Landed on the equipment grounding bar. Measures 0V under normal operation.
The Failure Mode: If you ignore the color code and land the white wire on the panel's neutral bar instead of re-identifying it and landing it on the breaker, the welder will not receive 240V. Worse, when the breaker closes, you have effectively connected Pole B of the hot bus directly to the neutral bus through the welder's internal winding. This creates a low-impedance path that will instantly trip the breaker, but if the breaker fails, it will overheat the 12 AWG wire past its 90°C THHN insulation rating, risking an electrical fire.
Where You Meet This in Practice
You will encounter US electrical wiring colors in three primary environments, each with specific code nuances that dictate how the colors are applied.
1. Main and Subpanels
Inside a load center, the color coding is absolute. According to OSHA Standard 1910.304 and NEC Article 408, the neutral bus bar must be white or gray, and the equipment grounding bus must be green or bare. In a main panel, the neutral and ground bars are bonded together, but in a subpanel, they must remain strictly isolated. Landing a bare ground wire on the white-painted neutral bus in a subpanel introduces parallel neutral currents onto the ground wire, creating a shock hazard on appliance chassis.
2. 3-Way and 4-Way Switch Loops
This is where color codes get bent legally. In a traditional 3-way switch setup, a 14/3 or 12/3 NM-B cable runs between the switches. The black wire is typically the 'common' (hot feed or switched hot to the fixture), while the red and white wires serve as 'travelers'. Because the white wire is carrying 120V AC as a traveler, NEC 200.7(C) requires it to be re-identified with black or red tape at both switch boxes. If you open a 3-way switch and see a white wire landed on a brass (hot) screw instead of a silver (neutral) screw, check for this re-identification tape.
3. Flexible Cords and Fixture Wires
When wiring a hardwired light fixture or replacing a plug on a power tool, you will deal with flexible cords (like SJOOW or SJT). The color coding here shifts slightly. For a standard 3-conductor cord, black is hot, white is neutral, and green is ground. However, if you are wiring a 240V appliance cord (like a dryer or range), you will often see black, red, white, and green. In older 3-prong dryer cords, the center white wire is the neutral, while the outer black and red are the hot legs.
Common Confusions and Legacy Hazards
The most dangerous mistakes happen when wire colors from different domains or eras are conflated.
AC Mains vs. DC Electronics
In low-voltage DC electronics (like Arduino projects, 12V LED strips, or automotive wiring), red is universally positive (+V) and black is ground (0V/GND). In US AC mains wiring, black is a 120V hot leg, and red is a secondary 120V hot leg or traveler. If you wire a 12V DC LED strip's red wire to a 120V AC black wire, and the black wire to the AC white neutral, you will subject the 12V DC circuitry to 170V peak AC voltage, resulting in an immediate, explosive failure of the LED driver and a high risk of arc flash.
Pre-1970s Cloth and Knob-and-Tube Wiring
If you are working in a home built before 1960, the NEC color codes you rely on do not apply. Early knob-and-tube or cloth-covered wiring often used black for both hot and neutral, or white for hot and black for neutral, depending entirely on what wire the electrician had in their pouch that day. Furthermore, the rubber and cloth insulation degrades over time, often turning all wires a uniform dark brown or black. In these installations, color is meaningless; you must use a voltage tester to identify the hot conductor and map the circuit manually.
The 'Switched Neutral' Hazard
A frequent miswiring in older homes is the 'switched neutral'. An electrician might have correctly used a black wire for the hot feed and a white wire for the return, but placed the single-pole switch on the white wire instead of the black wire. The light will turn on and off normally, but when the switch is 'off', the light fixture socket remains energized at 120V. If you touch the socket threads while changing a bulb, you complete the circuit to ground. Always test for voltage at the fixture with the switch in the off position to verify the hot leg was actually switched.






