Residential electrical wire colors are a standardized visual coding system defined by the National Electrical Code (NEC) to instantly identify a conductor's function—hot, neutral, or ground—within a circuit. This color coding changes how electricians safely route, terminate, and troubleshoot power, preventing catastrophic short circuits and ensuring protective devices like breakers and GFCIs operate correctly. Beginners most commonly confuse the white neutral wire with a safe 'dead' wire, or mistakenly assume a white wire in a switch loop is always neutral, which can lead to severe shock hazards.
The Standard US Color Code Matrix (NEC Article 200 & 250)
The National Fire Protection Association (NFPA) outlines strict rules for conductor identification in NEC Articles 200 (Use and Identification of Grounded Conductors) and 250 (Grounding and Bonding). While custom colors exist in industrial three-phase systems, residential single-phase wiring relies on a strict, limited palette.
| Wire Color | Function | NEC Designation | Common Cable Types |
|---|---|---|---|
| Black | Hot (Ungrounded) | Line / Phase A | NM-B (Romex), THHN |
| Red | Hot (Ungrounded) | Line / Phase B or Traveler | NM-B (3-conductor), THHN |
| Blue | Hot (Ungrounded) | Traveler or Phase C (rare in 120/240V) | THHN in conduit |
| White / Gray | Neutral (Grounded) | Return path to panel | NM-B, THHN |
| Bare Copper | Ground (EGC) | Equipment Grounding Conductor | NM-B |
| Green / Green-Yellow | Ground (EGC) | Equipment Grounding Conductor | THHN, flexible cords |
Worked Numeric Example: The Multi-Wire Branch Circuit (MWBC) Trap
To understand why wire colors matter beyond simple identification, consider the Multi-Wire Branch Circuit (MWBC). An MWBC uses a single 12/3 NM-B cable (Black, Red, White, Bare) to supply two separate 120V circuits while sharing one neutral wire. This is common in kitchen countertop receptacles.
The Correct Setup: The black wire is connected to a 20A breaker on Phase A (Leg 1), and the red wire is connected to a 20A breaker on Phase B (Leg 2). Because residential power is a center-tapped 240V transformer, Phase A and Phase B are 180 degrees out of phase. When both circuits draw their maximum 20A, the currents cancel each other out on the shared white neutral. The neutral carries exactly 0A.
The Fatal Mistake: A DIYer replaces the panel and accidentally connects both the black and red hot wires to tandem breakers on the same phase leg, or fails to use a handle tie to ensure they are on opposite legs. Now, the currents do not cancel; they add together. If both circuits draw 15A, the shared white neutral must carry 30A (15A + 15A).
Where You Meet This In Practice
You will encounter deviations from the 'black is hot, white is neutral' rule in several standard residential scenarios. Knowing these exceptions keeps you safe when opening existing junction boxes.
- Switch Loops: In older wiring (and some current setups), power goes to the light fixture first, and a 2-wire cable drops down to the switch. The white wire is used to carry the switched hot back up to the light. Per NEC 200.7(C), this white wire must be re-identified with black or red electrical tape at both ends to indicate it is a hot conductor.
- 3-Way and 4-Way Switches: The 'traveler' wires running between multiple switches controlling the same light are typically the red and black wires in a 14/3 or 12/3 cable. The white wire in this cable is usually the common or neutral, but never assume; always test with a non-contact voltage tester and a multimeter.
- 240V Appliance Circuits: A 10/3 cable feeding an electric dryer uses black and red for the two 120V hot legs (yielding 240V across them), white for the 120V neutral (for the dryer's timer and controls), and bare for ground. In pre-1996 installations, you may find older 3-prong setups where the neutral and ground were bonded at the appliance—a dangerous practice that modern code strictly forbids.
Common Confusions and Code Violations
According to OSHA electrical safety guidelines and standard inspection practices, the most frequent color-code violations in residential retrofits involve 'phasing' tape. While the NEC allows you to re-identify a white wire as a hot conductor using colored tape or paint in switch loops, some DIYers try to use white wire for entire branch circuit runs because they ran out of black wire at the store. This is strictly prohibited for standard branch wiring.
Another major confusion arises in solar and off-grid battery systems. DC wiring uses different color standards (often red for positive, black for negative). If you are wiring a 48V DC battery bank to an inverter in your garage, do not use standard AC NM-B cable, as the insulation ratings and strand flexibility differ. Use proper welding cable or THHN in conduit, and clearly label the DC disconnects to prevent AC/DC cross-contamination.
Frequently Asked Questions
Can I use a white wire as a hot wire in residential wiring?
Yes, but only in specific scenarios like switch loops or when pulling individual THHN conductors in a conduit where you have run out of colored wires (for wires 4 AWG and larger, re-identification is permitted by NEC 200.7). For standard NM-B (Romex) cable branch circuits, you cannot simply wrap black tape around a white wire and use it as a primary hot feed from the panel. The white wire in a switch loop must be re-identified with black or red tape at both termination points to warn future electricians that it carries line voltage.
What color is the ground wire in older homes without a ground?
In homes built before the 1960s, you will often find 2-wire NM cable or Knob-and-Tube wiring that lacks an equipment grounding conductor entirely. In these cases, there is no ground wire—only a black hot and a white neutral. If you are upgrading receptacles in these circuits, you must either run a new ground wire back to the panel, or install a GFCI receptacle and label it 'No Equipment Ground' as permitted by NEC 406.4(D)(2). Never use a jumper wire to connect the neutral terminal to the ground screw on a standard receptacle; this creates a dangerous 'bootleg ground'.
Does the color code change for 240V dedicated appliance circuits?
The physical colors of the wire insulation do not change, but how they are utilized does. For a pure 240V load like a baseboard heater or an AC compressor, you only need two hot wires (black and red) and a ground (bare/green); no white neutral is required because there are no 120V components. However, for 'split-phase' appliances like electric ranges and dryers that require both 240V for the heating elements and 120V for the control boards, you must use a 4-wire setup: black (hot 1), red (hot 2), white (neutral), and bare (ground). The white neutral is absolutely critical here to carry the unbalanced 120V return current.






