Electricity wire colors for home are a standardized visual coding system mandated by the National Electrical Code (NEC) to identify the specific function and voltage state of each conductor in a residential circuit. This coding changes a chaotic, lethal bundle of raw copper into a predictable map, dictating which wires carry return current, which carry fault current, and which will shock you if touched. Despite its life-saving purpose, DIYers most commonly confuse the grounded (neutral) conductor with the equipment grounding conductor, falsely assuming both are 'safe' to touch because they don't normally carry voltage relative to earth.
The NEC Standard: Decoding Electricity Wire Colors for Home
In the United States, the National Fire Protection Association (NFPA) publishes the NEC, which strictly governs residential wire colors. While older homes may feature legacy cloth wiring with faded or non-standard colors, any new installation or major retrofit must adhere to modern color mandates.
| Wire Color | Function | NEC Article | Voltage State |
|---|---|---|---|
| Black / Red / Blue | Ungrounded (Hot) | 210.4(D) / Phase ID | Always energized (120V or 240V to ground) |
| White / Gray | Grounded (Neutral) | 200.6 | Normally 0V to ground, carries return current |
| Bare / Green / Green-Yellow | Equipment Ground | 250.119 | 0V to ground, carries current ONLY during a fault |
The most critical takeaway from this table is the distinction between white and green/bare. The white neutral is a current-carrying conductor. If the neutral disconnects upstream while a load is running, the white wire on the load side will instantly rise to 120V, delivering a lethal shock. The bare ground never carries current unless a device has shorted out, at which point it safely trips the breaker.
Where You Meet This in Practice
You will encounter these color codes in three primary areas of a residential electrical system:
- Main Service Panels and Subpanels: In a main panel, the neutral (white) and ground (bare) bars are bonded together. In a subpanel, NEC 250.32 requires them to be strictly separated. Mixing white and bare wires on the same bar in a subpanel causes normal return current to flow over the grounding system, electrifying appliance chassis.
- Switch Loops: When wiring a standard single-pole light switch, power often comes into the light fixture first. A 2-wire cable (black and white) is dropped down to the switch. Here, the white wire is used as a hot feed down to the switch, and the black wire is the 'switched hot' returning to the light. NEC 200.7(C)(2) requires the white wire at the switch to be re-identified with black tape or paint to warn future workers it is a hot conductor.
- 240V Appliances: Heavy loads like electric dryers, ranges, and baseboard heaters use 240V. Cables like 10/3 NM-B contain black, red, white, and bare. The black and red are the two 120V hot legs, the white is the neutral (needed for 120V control boards in dryers), and the bare is the ground.
Worked Numeric Example: The Multi-Wire Branch Circuit Trap
A Multi-Wire Branch Circuit (MWBC) uses a single 3-conductor cable (like 12/3 NM-B, containing black, red, white, and bare) to supply two separate 120V circuits that share a single neutral wire. This is common for kitchen countertop outlets.
Think of the neutral wire like a single-lane merge road for two opposing traffic flows. Because Leg A and Leg B are 180 degrees out of phase in a split-phase residential panel, their current waves push and pull in opposite directions. They effectively cancel each other out on the shared neutral.
The Hazard: If an amateur electrician accidentally connects both the black and red hot wires to breakers on the same phase leg (e.g., both on Leg A), the traffic analogy changes. Now, both waves push in the exact same direction at the exact same time. The neutral wire must carry the sum of both loads: 16A + 12A = 28 Amps.
A 12 AWG copper wire is typically protected by a 20A breaker. Because the two hot wires are on separate breakers, neither breaker trips at 28A. The shared white neutral, however, is now carrying 28A. It exceeds its ampacity, overheats inside the wall cavity, and melts the insulation, creating a severe fire hazard. This is exactly why NEC 210.4(B) mandates that MWBC hot wires must be fed from a double-pole breaker with a common internal trip, ensuring they land on opposite phases and disconnect simultaneously.
Real-World Scenario Walkthrough: The 240V Baseboard Heater Mistake
To understand how ignoring color re-identification causes real-world injuries, let's walk through a common DIY failure mode.
The Setup: A homeowner installs a 240V, 1500W Cadet baseboard heater in a garage. The load calculation is straightforward: 1500W / 240V = 6.25 Amps. The homeowner runs a standard 12/2 NM-B cable from a new double-pole 20A breaker to the heater. 12/2 NM-B contains a black wire, a white wire, and a bare ground.
The Numbers: The black wire is connected to one pole of the 240V breaker (120V to ground). The white wire is connected to the second pole of the 240V breaker (120V to ground, but 240V relative to the black wire). The heater works perfectly.
The Outcome & What Went Wrong: Five years later, the homeowner decides to replace the thermostat. They turn off the 20A breaker, but mistakenly turn off the wrong single-pole breaker in a crowded panel. They open the thermostat junction box, see the white wire, and assume it is a safe, dead neutral. They grab it to pull it out of the wire nut.
Because the white wire is actually connected to the second, still-energized pole of the 240V circuit, the homeowner receives a 120V-to-ground shock through their hand.
The Code Violation: NEC 200.7(C)(2) explicitly states that if a white wire is used as an ungrounded (hot) conductor, it must be permanently re-identified with black tape, paint, or another effective means at every point where the conductor is visible and accessible. Had the original installer wrapped black electrical tape around both ends of the white wire, the future homeowner would have recognized it as a hot leg, tested it with a meter, and avoided the shock.
Common Confusions and Legacy Wiring Hazards
Modern NM-B (Romex) cable is reliable, but older homes present massive color-code traps for the unwary.
- Knob-and-Tube / Cloth Wiring (Pre-1950s): Early wiring often used identical black cloth insulation for both hot and neutral, or faded white insulation that looks gray. You cannot trust color here; you must use a non-contact voltage tester and a multimeter to map the circuit.
- Faded Colors in Attics: High ambient temperatures (often exceeding 130°F in summer attics) and UV exposure from attic lights can bleach the white insulation on NM-B cable to a dirty yellow or gray. Always wipe the wire with a damp rag to check the true color before terminating it.
- International Variants: If you are reading schematics for imported equipment or working outside the US, be aware that IEC standards (used in the UK, EU, and Australia) use Brown for hot, Blue for neutral, and Green/Yellow for ground. Plugging a US-wired device into an EU-wired terminal block based on color assumptions will result in a dead short.
For deeper guidance on identifying and mitigating legacy wiring hazards, the Occupational Safety and Health Administration (OSHA) provides extensive resources on electrical safety and wiring identification standards that apply to both commercial and advanced residential troubleshooting.
Frequently Asked Questions
Can I use a green wire as a hot conductor if I tape it black?
No. NEC 250.119 strictly forbids using green, green with yellow stripes, or bare conductors for anything other than equipment grounding. You can re-identify a white wire as hot, but you can never re-identify a green/bare wire as hot.
Why does my 12/3 cable have a red wire?
12/3 and 14/3 cables include a red wire specifically to facilitate 240V circuits or Multi-Wire Branch Circuits (MWBCs). The red acts as the second hot leg, 180 degrees out of phase with the black wire.
What color is the ground wire in metal conduit (EMC/MC)?
In Metal Clad (MC) cable or EMT conduit, the metal armor or pipe itself can sometimes serve as the ground path, but modern practice and most local codes require a dedicated green or bare copper grounding wire pulled inside the conduit alongside the THHN conductors to ensure a reliable, low-impedance fault path.
Is a gray wire always neutral?
In standard residential AC wiring, yes, gray is an allowed alternative to white for a grounded (neutral) conductor, particularly in larger feeders where 2/0 or 4/0 THHN wire is used. However, in low-voltage DC control circuits (like HVAC thermostats or doorbells), wire colors are entirely at the manufacturer's discretion and gray could be a hot signal wire.






