US wiring colors are a standardized insulation coding system defined by the National Electrical Code (NEC) to identify the specific function and voltage potential of electrical conductors in a circuit. This color coding fundamentally changes how an installer terminates connections, ensuring hot, neutral, and ground wires land on the correct brass, silver, and green screws to prevent dead shorts and shock hazards. While it seems straightforward, DIYers and junior technicians frequently confuse US AC colors with European IEC standards (brown/blue/green-yellow), DC power colors (red/black), or falsely assume that a white wire is always a neutral conductor.
The NEC Standard: US Wiring Colors Decoded
The NEC strictly governs conductor identification to maintain safety across millions of installations. While ungrounded (hot) conductors have some flexibility, grounded (neutral) and equipment grounding conductors are rigidly defined. Below is the definitive reference for standard US AC wiring colors in residential and light commercial 120V/240V systems.
| Conductor Function | NEC Article | Standard Insulation Color | Allowed Alternatives & Exceptions |
|---|---|---|---|
| Grounded (Neutral) | NEC 200.6 | White or Gray | White with a colored stripe (used to differentiate voltage systems, e.g., 208V vs 480V) |
| Equipment Ground | NEC 250.119 | Bare, Green, or Green/Yellow | None. Must be green, green/yellow, or bare copper. |
| Ungrounded (Hot) 120V | NEC 210.5(C) | Black | Red, Blue, or any color except white, gray, or green. |
| Ungrounded (Hot) 240V | NEC 210.5(C) | Black and Red | Any color except white, gray, or green. Often Black/Red for single-phase, Brown/Orange/Yellow for 3-phase. |
| Switched Hot (Return) | NEC 200.7(C) | Black or Red | Any color except white, gray, or green. Must be distinguishable from the permanent hot. |
What Changes When You Swap or Misidentify Colors
Ignoring US wiring colors doesn't just violate code; it alters the physical safety profile of the circuit. The most common and dangerous error is polarity reversal—landing the black (hot) wire on the silver screw (neutral) and the white (neutral) wire on the brass screw (hot) of a receptacle.
In a polarity-reversed circuit, the device will still power on because the 120V potential difference is maintained. However, the internal wiring of the appliance is now compromised. In a standard lamp, the hot voltage is meant to be switched and isolated deep inside the base. If reversed, the hot voltage extends all the way up to the metal threads of the bulb socket. If you touch the threads while changing a bulb, you complete the circuit to ground through your body.
Another critical failure mode is the bootleg ground, where an installer incorrectly bonds the neutral (white) to the ground (green) terminal at the receptacle to trick a GFCI tester into reading 'correct'. This energizes the equipment grounding system. If the neutral wire breaks upstream, every metal appliance chassis on that circuit becomes energized at 120V, creating a lethal shock hazard.
Where You Meet This in Practice
The most frequent point of confusion for DIYers occurs when wiring pure 240V loads where a neutral is not required, but the available cable contains a white wire. Let's look at a specific, code-compliant installation.
Worked Example: 240V Baseboard Heater Circuit
The Scenario: You are installing a 3600W, 240V electric baseboard heater in a workshop. The load draws exactly 15 Amps (3600W / 240V = 15A). NEC 210.20 requires the branch circuit to be rated at 125% of the continuous load, meaning you need a circuit rated for at least 18.75A. You select a 20A double-pole breaker.
The Cable: You run 12/2 NM-B cable. Per NEC 334.80, NM-B ampacity is limited to the 60°C column of NEC Table 310.16, meaning 12 AWG copper is rated for exactly 20A. The 12/2 cable contains one black wire, one white wire, and one bare copper ground.
The Problem: A pure 240V load requires two ungrounded (hot) conductors and a ground. It does not use a neutral. But your cable has a white wire, which the NEC strictly reserves for grounded (neutral) conductors.
The Code-Compliant Fix: Under NEC 200.7(A), you are permitted to use the white wire as an ungrounded (hot) conductor only if it is permanently re-identified at every point where it is accessible.
- At the Panel: Strip the 12/2 NM-B. Wrap the white wire with black or red electrical tape (or use a permanent marker/paint approved for the insulation) for at least 1 inch. Terminate it on one pole of the 20A double-pole breaker. Terminate the black wire on the other pole.
- At the Heater: Wrap the white wire with the same black/red tape. Terminate the taped white wire to L1 and the black wire to L2 on the heater's contactor or terminal block.
- Grounding: The bare copper wire lands on the ground bus in the panel and the green grounding screw on the heater chassis.
By re-identifying the white wire, you legally transform it into a hot conductor in the eyes of the National Electrical Code, preventing future electricians from assuming it is a neutral and accidentally shorting it to ground.
Common Confusions and Edge Cases
Even experienced makers get tripped up when transitioning between different electrical domains or dealing with older homes. Here is how to navigate the most common edge cases.
1. The Switch Loop Exception (NEC 200.7(C)(2))
In older homes, you will often open a switch box and find a 2-wire cable (black and white) where the white wire is used as a hot. Prior to the 2011 NEC update, the white wire was often used as the switched return going up to the light fixture.
Current Code Requirement: The NEC now mandates that the white wire must be used as the permanent hot feed down to the switch, and the black wire must be used as the switched hot return up to the light. The white wire must be re-identified with colored tape at both ends. If you are repairing an old switch loop, test with a non-contact voltage tester or multimeter before assuming the white wire is neutral—it is likely carrying 120V.
2. US AC vs. IEC vs. DC Color Codes
If you are integrating imported power supplies, building battery banks, or wiring ESP32/Arduino projects alongside mains voltage, mixing up these standards will result in destroyed components or severe shocks.
| Standard / Domain | Phase / Positive (Hot) | Neutral / Negative | Earth Ground |
|---|---|---|---|
| US AC (NEC) | Black (or Red/Blue) | White (or Gray) | Bare / Green |
| EU / IEC AC | Brown (L1), Black (L2), Gray (L3) | Blue | Green with Yellow Stripe |
| US DC (Low Voltage) | Red (+) | Black (-) | Green or Bare (if applicable) |
| IEC DC (Solar/Telecom) | Brown (+) | Gray (-) | Green with Yellow Stripe |
3. Multi-Wire Branch Circuits (MWBC)
When running a 12/3 or 10/3 NM-B cable to supply a multi-wire branch circuit (two 120V circuits sharing a single neutral), you will encounter a black, a red, a white, and a bare wire. The black and red are your two ungrounded (hot) conductors, and they must be on opposite phases (legs) of your panel to ensure the shared white neutral only carries the unbalanced load, not the sum of both circuits. If you land both the black and red on the same phase, the white neutral will carry the combined amperage, overheat, and potentially cause a fire inside the wall cavity. Always use a 2-pole breaker or handle-tied single-pole breakers for MWBCs to ensure simultaneous disconnect, as required by NEC 210.4(B).
For further reading on conductor identification and safe installation practices, the Electrical Contractor Magazine codes and standards section provides excellent, up-to-date breakdowns of recent NEC revisions regarding wire marking and identification.






