Residential electrical wiring colors are a standardized visual coding system mandated by the National Electrical Code (NEC) to identify the specific function and voltage potential of each conductor in a circuit. Correct color coding changes a circuit from a lethal guessing game into a safely maintainable system, ensuring return currents stay on neutrals and equipment grounding paths remain completely clear of normal load current. When you open a junction box, the insulation color instantly tells you which wire will shock you, which carries the return load, and which provides a safe fault path.
The Core Standard: US Residential Electrical Wiring Colors Explained
In the United States, the NEC strictly governs conductor identification under NFPA 70 (National Electrical Code). While custom colors exist in industrial three-phase systems, residential single-phase and split-phase systems rely on a rigid palette. Misidentifying these wires is not just a code violation; it is a primary cause of residential electrical fires and fatal shocks.
| Insulation Color | Function | NEC Designation | Voltage Potential (to Ground) |
|---|---|---|---|
| Black | Hot (Ungrounded) | Line 1 / Phase A | 120V |
| Red | Hot (Ungrounded) | Line 2 / Phase B / Traveler | 120V |
| Blue | Hot (Ungrounded) | Line 3 / Traveler / Switched Leg | 120V |
| White | Neutral (Grounded) | Return Path | 0V (Nominal) |
| Gray | Neutral (Grounded) | Return Path (Alternative) | 0V (Nominal) |
| Green / Bare | Ground (Equipment) | Fault Path | 0V (Unless fault occurs) |
Where You Meet This In Practice: Common Cable Types
You rarely buy individual colored wires for standard residential rough-in; you buy pre-assembled cable assemblies or pull individual THHN through conduit. The application dictates the format.
Non-Metallic Sheathed Cable (NM-B / Romex)
NM-B cable bundles the necessary conductors inside a PVC jacket. The outer jacket color is an instant gauge indicator for the wire size and ampacity inside:
- White Jacket: Contains 14 AWG wires (rated for 15 Amps). Inside: Black, White, Bare.
- Yellow Jacket: Contains 12 AWG wires (rated for 20 Amps). Inside: Black, White, Bare.
- Orange Jacket: Contains 10 AWG wires (rated for 30 Amps). Inside: Black, White, Bare.
- Black Jacket: Contains 8 AWG or 6 AWG wires (rated for 40A to 55A). Inside: Black, White, Bare (or Black, Red, White, Bare for 3-wire).
THHN/THWN in Conduit
When running wires through EMT or PVC conduit (common in garages, basements, and commercial-residential hybrids), you pull individual spools. You must manually enforce the color code. A standard 120V, 20A conduit pull requires three spools: Black (hot), White (neutral), and Green (ground). If you are pulling a 240V circuit, you add a Red spool for the second hot leg.
Worked Example: The 240V Re-Identification Rule
The most common code violation DIYers make involves 240V circuits that do not require a neutral. Let's look at a concrete numeric scenario.
The Scenario: You are wiring a 240V, 20A baseboard heater. Because it is a pure 240V load, it requires two hot wires and one ground wire; it does not need a neutral. You decide to use standard 12/2 NM-B cable (yellow jacket) to save a trip to the hardware store, as it contains a black wire, a white wire, and a bare copper wire, perfectly matching your three required conductors.
The Problem: In this setup, both the black and white wires will carry 120V to ground (yielding 240V line-to-line) at up to 20 Amps. If you leave the white wire as-is, a future homeowner or electrician will assume it is a 0V neutral. If they touch it while the circuit is energized, they will receive a lethal 120V shock.
The NEC Fix: Under NEC Article 200.7(C)(2), you are permitted to use the white wire in a 2-wire cable as an ungrounded (hot) conductor, but only if it is permanently re-identified. You must wrap the white wire with black or red electrical tape, or apply black heat-shrink tubing, at every point where the insulation is visible (both at the breaker panel and at the heater junction box). This visually changes the white wire into a hot conductor, satisfying the inspector and protecting future users.
Decision Tree: Picking the Right Wire Color for Your Next Circuit
Use this decision path to select the exact cable and wire colors for your specific project. Do not guess; match your scenario to the concrete pick below.
| If Your Project Is... | Then You Need... | Concrete Pick (Buy This) |
|---|---|---|
| Adding a standard 120V, 15A bedroom outlet. | One hot (Black), one neutral (White), one ground (Bare). | 14/2 NM-B (White Jacket) e.g., Southwire 14/2 Romex |
| Wiring a kitchen countertop 120V, 20A GFCI circuit. | One hot (Black), one neutral (White), one ground (Bare) sized for 20A. | 12/2 NM-B (Yellow Jacket) e.g., Southwire 12/2 Romex |
| Installing a 3-way switch for a hallway light. | Two travelers (Red, Black), one common (Black), one neutral (White). | 14/3 NM-B (White Jacket) between the two switch boxes. |
| Wiring a 240V, 30A electric dryer receptacle (NEMA 14-30R). | Two hots (Black, Red), one neutral (White), one ground (Bare). | 10/3 NM-B (Orange Jacket) or four 10 AWG THHN wires in conduit. |
| Upgrading an old switch to a smart Wi-Fi switch requiring a neutral. | Verify box has a neutral bundle. If it's an old 2-wire switch loop, you must pull new wire. | 14/3 NM-B (White Jacket) to replace the old 14/2 switch loop. |
Common Confusions and Dangerous Assumptions
What people commonly confuse with standard color coding are legacy wiring methods and appliance-specific cords. Assuming a wire's function based purely on its color without testing is a primary cause of workplace and residential electrical injuries.
The Pre-2011 Switch Loop Trap
In homes wired before the 2011 NEC update, electricians frequently ran a 2-wire cable (14/2, containing black and white) from a ceiling light down to a wall switch. The black wire carried permanent hot down to the switch, and the white wire carried the switched hot back up to the light. In this scenario, the white wire is hot, not neutral. The 2011 NEC (Article 404.2) now requires a neutral wire to be present at the switch box to accommodate smart switches, effectively killing this dangerous practice in new construction. If you are working in an older home, always test the white wire at a switch box with a non-contact voltage tester before touching it.
Traveler Wires in 3-Way Switches
When wiring a 3-way switch using 14/3 cable, the red and black wires act as 'travelers.' They alternate carrying 120V depending on the physical toggle position of the switches. Neither the red nor the black wire in the traveler run is a permanent hot or a neutral; they are both switchable hot legs. Confusing a traveler for a neutral and bonding it to ground will instantly trip the breaker and create a dead short.
Appliance Cords vs. Wall Wiring
Modern 4-prong dryer and range cords perfectly match wall wiring colors: Black (L1), Red (L2), White (Neutral), Green (Ground). However, older 3-prong appliance cords used a White wire for the neutral and a Green wire for ground, but the appliance itself had a bonding strap connecting the neutral to the chassis. When upgrading an old dryer to a 4-prong cord, you must remove that internal bonding strap. Failing to do so causes return neutral current to flow onto the equipment grounding path, a severe shock hazard.
FAQ: Residential Electrical Wiring Colors
Q: Can I use a green wire for a hot conductor if I wrap it in black tape?
A: Absolutely not. NEC 250.119 strictly reserves green (or green with yellow stripes) and bare copper for equipment grounding conductors. Re-identifying a ground wire as a hot wire is a severe code violation. Always buy the correct color spool.
Q: What color is the neutral wire in a 240V circuit?
A: White or gray. However, a pure 240V circuit (like a baseboard heater or well pump) does not require a neutral wire at all—it only requires two hots (black/red) and a ground. If the appliance needs 120/240V (like a dryer or oven), the neutral is white.
Q: Does the color of the outer jacket on NM-B cable dictate the wire colors inside?
A: No, the outer jacket color dictates the wire gauge (White=14 AWG, Yellow=12 AWG, Orange=10 AWG). The individual wires inside will always follow the standard Black/White/Bare or Black/Red/White/Bare color code, regardless of the outer jacket color.
Q: Can I use gray wire instead of white for a neutral?
A: Yes, NEC Article 200.2 allows gray as an alternative color for grounded (neutral) conductors. However, gray THHN is rarely stocked in standard big-box hardware stores, making white the default, practical choice for 99% of residential neutral pulls.






