Colour coding in electrical wiring is the standardized system of applying specific insulation colors to conductors to instantly identify their function, voltage level, and phase within a circuit. While the colour of the insulation changes absolutely nothing about the physics of the circuit or the flow of electrons, it dictates troubleshooting speed, prevents lethal cross-connections, and ensures compliance with the National Electrical Code (NEC). Beginners most commonly confuse a wire's colour with its guaranteed electrical state, fatally assuming that a white wire is always a safe, de-energized neutral—a dangerous misconception that fails instantly in switch loops, multi-wire branch circuits, and 240V appliance wiring.
The Core Physics vs. The Safety Standard
Electrons are entirely blind to colour. A black wire and a white wire made of the same copper gauge and length have identical resistance, ampacity, and voltage drop characteristics. The insulation is simply a PVC or nylon jacket designed to contain the electromagnetic field and prevent short circuits. The colour is strictly a human interface layer.
Think of it like traffic lanes on a highway: the asphalt in the fast lane and the shoulder are made of the exact same material, but the painted lines tell drivers where it is safe to travel and where they will cause a crash. In residential wiring, black is your fast lane (ungrounded hot), white is your return lane (grounded neutral), and green or bare copper is the emergency shoulder (equipment grounding conductor). Ignoring these lanes doesn't change the physics of the cars, but it guarantees a collision.
Standard US Residential Colour Codes (NEC Guidelines)
In the United States, the NFPA NEC guidelines strictly govern which colours can be used for grounded (neutral) and grounding conductors, while leaving ungrounded (hot) conductors more flexible, provided they avoid the restricted colours. Here is the standard palette for 120V/240V split-phase residential systems:
| Insulation Colour | Function | NEC Restriction |
|---|---|---|
| Black | Hot (Ungrounded) - Line 1 | None. Standard for 120V hots. |
| Red | Hot (Ungrounded) - Line 2 or Switched | None. Used for 240V legs or 3-way switches. |
| Blue / Yellow | Hot (Ungrounded) - 277V/480V | Generally reserved for commercial 3-phase, but legal for 120/240V if documented. |
| White / Gray | Neutral (Grounded) | STRICT. Cannot be used as a hot unless permanently re-identified. |
| Green / Green-Yellow / Bare | Equipment Ground | STRICT. Never to be used as a current-carrying conductor. |
Where You Meet This In Practice (And Where It Fails)
You will encounter standard colour coding in electrical wiring every time you strip back a piece of 14/2 or 12/2 NM-B (Romex) cable. However, the system 'fails'—or rather, is intentionally overridden by code allowances—in two very common scenarios that trip up DIYers.
1. The Switch Loop Trap
When wiring a ceiling light controlled by a wall switch, electricians often use a standard 2-wire cable (Black and White) to run power from the light fixture down to the switch. In this configuration, the white wire is used to carry the continuous 120V hot down to the switch, and the black wire carries the switched hot back up to the light. The white wire in this drop is carrying 120V lethal current, not neutral. NEC 200.7(C)(2) requires this white wire to be permanently re-identified with black tape or paint at both ends to warn future workers.
2. Multi-Wire Branch Circuits (MWBC)
To save copper, electricians run a single 3-wire cable (Black, Red, White) to supply two separate 120V circuits that share a single neutral (White). The Black and Red wires must be on opposite phases (legs) of the panel so their return currents cancel each other out on the neutral. If you break the neutral on an MWBC while one leg is live, the white wire can become energized with up to 120V. Again, the white wire is not guaranteed safe just because it is white.
Worked Numeric Example: 240V Split-Phase Dryer Circuit
Let us look at a concrete numeric example to see how colour coding handles mixed voltages. You are wiring a 30A, 240V electric dryer receptacle (NEMA 14-30R) using four 10 AWG THHN wires pulled through 1/2-inch EMT conduit.
- Black Wire (Hot L1): Connected to a 30A breaker on Panel Leg A. Carries 120V relative to ground.
- Red Wire (Hot L2): Connected to a 30A breaker on Panel Leg B. Carries 120V relative to ground.
- White Wire (Neutral): Connected to the panel's neutral bar. Carries the unbalanced load (the 120V needed for the dryer's timer and control board).
- Green Wire (Ground): Connected to the panel's ground bar and the metal conduit. Carries 0V under normal operation; only carries current during a fault.
The Math: If you measure with a multimeter from Black to White, you read 120V. From Red to White, you read 120V. But because Leg A and Leg B are 180 degrees out of phase, measuring from Black to Red yields 240V (120V + 120V). The colour coding instantly tells the technician that the heating elements (requiring 240V) will connect to Black and Red, while the 120V control board will connect to Black (or Red) and White.
Decision Tree: Picking the Right Cable for Your Project
Stop guessing at the hardware store. Use this decision path to select the exact cable type and colour configuration for your specific branch circuit.
| If you are wiring... | Then your circuit requires... | Concrete Cable Pick & Colours |
|---|---|---|
| Standard 15A 120V bedroom/living room outlets | 15A breaker, 14 AWG minimum | 14/2 NM-B: Black (Hot), White (Neutral), Bare (Ground) |
| 20A 120V kitchen, bathroom, or garage outlets | 20A breaker, 12 AWG minimum | 12/2 NM-B: Black (Hot), White (Neutral), Bare (Ground) |
| 30A 240V electric dryer or RV receptacle | 30A double-pole breaker, 10 AWG | 10/3 NM-B: Black (L1), Red (L2), White (Neutral), Bare (Ground) |
| 50A 240V electric range or EV charger | 50A double-pole breaker, 6 AWG | 6/3 NM-B: Black (L1), Red (L2), White (Neutral), Bare (Ground) |
| 3-Way switch controlling a light from two locations | 14 AWG or 12 AWG depending on breaker | 14/3 or 12/3 NM-B: Black (Common), Red & White (Travelers - re-identify white if used as hot) |
Common Colour Coding in Electrical Wiring FAQs
Q: Can I use a green wire as a hot conductor if I wrap it in black tape?
A: Absolutely not. NEC 250.119 strictly forbids using green, green with yellow stripes, or bare copper for anything other than an equipment grounding conductor. This rule has no exceptions for re-identification. If you need a hot wire, buy a new spool of black or red THHN.
Q: Why is my 240V baseboard heater wired with only Black, White, and Bare, but no Red?
A: Many pure 240V appliances (like baseboard heaters or older water heaters) do not require a 120V neutral. Electricians will often run a standard 2-wire cable (Black, White, Bare) and re-identify the white wire with black tape at both ends to serve as the second hot leg. This is legal under NEC 200.7(C)(3) for cables, provided the white wire is permanently marked to indicate it is an ungrounded conductor.
Q: Do these colour rules apply to low-voltage thermostat or doorbell wire?
A: No. NEC Article 725 covers Class 2 and Class 3 low-voltage circuits (like 24V HVAC controls). These cables often use a rainbow of colours (Red, White, Green, Yellow, Blue) where the colours indicate specific control signals (e.g., Red for 24V power, White for heat call, Green for fan call) rather than voltage potential or grounding status.
The Default Recommendation for General DIYers
If you are tackling a standard home renovation, adding outlets, or extending lighting circuits and want to minimize the number of different cable spools you keep in your shop, the ultimate default pick is 12/2 NM-B SIMpull with a bare copper ground (Black/White/Bare). While it costs slightly more per foot than 14/2, it is rated for both 15A and 20A breakers, eliminating the risk of accidentally over-fusing a 14 AWG wire and creating a fire hazard. Buy a 250-foot coil of 12/2, use black electrical tape to re-identify whites when code demands it, and you will have the exact right material for 90% of residential 120V branch circuit work.






