Household electrical wire colors are a standardized visual coding system mandated by the National Electrical Code (NEC) to identify the voltage level and function of each conductor in a circuit. In a real installation, these colors dictate how overcurrent devices trip, whether a GFCI will function correctly, and if a maintenance worker will get shocked when they assume a white wire is dead. People most commonly confuse the neutral (grounded) conductor with the equipment grounding conductor, assuming both are safe to touch because they ultimately connect to the earth—a mistake that can be fatal under fault conditions when the neutral is carrying return current.
The Master NEC Wire Color Chart
Before pulling any wire or terminating a receptacle, reference this data-dense table based on the latest National Fire Protection Association (NFPA) NEC guidelines for standard 120V/240V split-phase residential systems. This chart assumes standard NM-B (Romex) or THHN in conduit.
| Conductor Role | NEC Standard Color | Alternate / Allowed Colors | Typical Voltage to Ground | Common AWG Sizes |
|---|---|---|---|---|
| Ungrounded (Hot) Phase A | Black | Red, Blue (in conduit) | 120V | 14, 12, 10, 8 |
| Ungrounded (Hot) Phase B | Red | Black (if re-identified), Blue | 120V (240V line-to-line) | 14, 12, 10, 8 |
| Grounded (Neutral) | White | Gray (typically >6 AWG or 3-phase) | 0V (under normal load) | 14, 12, 10, 8 |
| Equipment Ground | Bare Copper | Green, Green with Yellow Stripe | 0V | 14, 12, 10, 8, 6 |
| Traveler / Switched Hot | Red or Black | Any color EXCEPT White, Green, Bare | 120V (when switched ON) | 14, 12 |
Note on conductor material: While copper wire is the standard for branch circuits (14 to 8 AWG), if you are working with larger aluminum feeders (e.g., 2-2-2-4 SER cable for a 100A subpanel), the ungrounded conductors will be silver/aluminum colored, while the neutral will be a white-jacketed aluminum alloy, and the ground will be a bare aluminum strand.
What Wire Colors Actually Change in a Circuit
Wire colors are not just for organization; they enforce the physical laws of circuit theory and ensure protective devices operate correctly. To understand what happens when colors are ignored or misapplied, let us look at a worked numeric example involving a Multi-Wire Branch Circuit (MWBC).
An MWBC uses a 3-wire cable (Black, Red, White) to supply two separate 120V circuits that share a single neutral wire. According to Occupational Safety and Health Administration (OSHA) and NEC guidelines, the black wire must be on Phase A of the panel, and the red wire must be on Phase B. Because the two hot legs are 180 degrees out of phase, the currents cancel each other out on the shared neutral.
The Danger of Ignoring Color Coding: Suppose an installer ignores the red wire and instead uses two black wires, accidentally landing both on Phase A breakers in the panel. The phases no longer cancel; they add together.
Because the neutral wire does not have its own breaker, it will not trip. A 14 AWG copper neutral wire is rated for a maximum of 15A (at the 60°C column for NM-B cable). Pushing 27A through it will cause the wire to overheat, melting the PVC insulation at temperatures exceeding 194°F (90°C) and potentially starting a fire inside the wall cavity long before the 15A hot breakers ever trip. The color coding (Black vs. Red) is the physical safeguard that forces the installer to use opposite phases.
Where You Meet This in Practice
You will encounter specific color-coding rules repeatedly when upgrading or repairing home electrical systems. Here is where the theory meets the workbench:
Subpanel Neutral and Ground Isolation
In a main service panel, the white neutral bar and the bare/green ground bar are bonded together. In a subpanel, they must be strictly isolated. You will meet this in practice when pulling a 4-wire feeder (Black, Red, White, Green/Bare). The white wire lands on the isolated neutral bus, and the green/bare wire lands on the chassis ground bus. If you mistakenly bond them in a subpanel, normal neutral return current will flow back to the main panel via the ground wire, energizing the subpanel chassis and creating a shock hazard.
240V Baseboard Heaters and Appliances
When wiring a pure 240V load (like an electric baseboard heater) using standard 12/2 NM-B cable, you use the black and white wires as your two hot legs. Because the white wire is acting as an ungrounded (hot) conductor, NEC Article 200.7(C) requires you to re-identify it. In practice, you must wrap the ends of the white wire with black or red electrical tape, or use a permanent marker, at every single termination point (both at the breaker and at the heater) to warn future workers that this white wire is carrying 120V to ground.
3-Way and 4-Way Switch Travelers
When wiring a 3-way switch setup to control a light from two locations, you run a 3-wire cable between the switches. The two 'traveler' wires carry the switched hot voltage between the switches. While the NEC does not mandate a specific color for travelers, industry standard practice dictates using the Red and Black wires in a 14/3 or 12/3 cable. The White wire is strictly reserved for the neutral, which must now be run to the switch box to accommodate smart switches and timers that require a neutral to power their internal Wi-Fi or Zigbee radios.
Common Confusions and Dangerous Mistakes
Can I use a white wire as a hot wire?
Yes, but only under specific conditions outlined in NEC 200.7(C). If you are using a pre-manufactured cable assembly (like 2-wire NM-B) for a 240V circuit or a switch loop, the white wire can serve as an ungrounded conductor. However, you must permanently re-identify it with black or red tape, paint, or heat-shrink tubing at every point where the conductor is visible and accessible. You cannot do this with individual THHN wires pulled through conduit; in conduit, you must pull a black or red wire for the hot leg.
Why is my neutral wire shocking me?
A properly functioning neutral wire should read 0V to ground. If you are getting a shock from a white wire, the circuit is likely loaded, and you have become part of the return path, or there is an open neutral upstream. An open neutral forces the return current to seek an alternate path to ground. Never assume a white wire is dead; always test it with a multimeter against a known ground before touching it.
What is a 'bootleg ground' and how do color codes hide it?
A bootleg ground is a dangerous, illegal wiring trick where a jumper wire is connected between the neutral (white) screw and the ground (green) screw on a 3-prong receptacle in an older 2-wire (ungrounded) system. This fools a standard 3-light receptacle tester into showing a 'correct' wiring status. However, if the neutral wire ever breaks upstream, the metal casing of any plugged-in appliance becomes energized at 120V. Proper color coding and the physical presence of a dedicated bare/green equipment grounding conductor are the only ways to ensure a true, safe ground.
Does the color code change for old cloth-covered wiring?
Yes, and this is a major hazard in pre-1960s homes. Early cloth-covered wiring often used black for hot and white for neutral, but over decades, the white cloth becomes heavily stained, yellowed, or painted over, making it look identical to the black wire. Furthermore, some early systems used 'switched neutrals,' where the black wire was a constant hot, and the white wire was broken by the wall switch. Always treat ungrounded cloth wiring as entirely unpredictable and test every single conductor with a non-contact voltage tester and a multimeter.






