Electrical wire color is a standardized insulation jacket hue that instantly identifies a conductor's specific role and voltage potential within a circuit. While the color of the PVC or THHN insulation changes absolutely nothing about the physics of electron flow or the circuit's impedance, it fundamentally changes human safety, troubleshooting speed, and legal code compliance. The most dangerous confusion among DIYers is assuming a white wire is always a neutral, or blindly applying 12V DC color logic (where red is positive and black is ground) to 120V/240V AC mains. This guide decodes the US National Electrical Code (NEC) color standards and gives you a concrete framework for selecting the right cable for your next project.

The Core Definition: What Wire Color Actually Means

In AC mains wiring, color does not indicate voltage level (a black wire could be 120V, 240V, or 480V depending on the system). Instead, color indicates the function of the conductor relative to the power source and the grounding system. According to NFPA 70 (the NEC), specific colors are legally reserved for grounded (neutral) and grounding conductors to prevent them from being accidentally energized as hot legs.

The Golden Rule of Wire Color: Never trust the color of a wire in an existing installation until you have verified it with a multimeter or non-contact voltage tester. Previous homeowners or electricians may have used whatever wire was left in the truck, violating code and creating lethal shock hazards.

The NEC Color Code Standard for US Residential AC

For standard US residential single-phase power (120V/240V split-phase), the NEC strictly dictates the following color assignments. These apply to both non-metallic sheathed cable (NM-B / Romex) and individual THHN conductors pulled through conduit.

Insulation Color Function NEC Reference Can it be switched?
Black Hot (Ungrounded) - Line 1 Standard practice Yes (always hot unless switched)
Red Hot (Ungrounded) - Line 2 / Traveler Standard practice Yes (used for 240V or 3-way switches)
Blue / Yellow Hot (Ungrounded) - Travelers / 3-Phase Standard practice Yes (common in conduit runs)
White / Gray Neutral (Grounded Conductor) NEC 200.6 No (must carry return current)
Bare Copper Equipment Ground NEC 250.119 No (safety fault path only)
Green / Green-Yellow Equipment Ground (Insulated) NEC 250.119 No (safety fault path only)

Worked Numeric Example: The 240V/120V Split-Phase Dryer

To see how these colors interact in a real circuit, let's look at a standard electric clothes dryer. A dryer requires both 240V for the heating element and 120V for the drum motor and control board. This requires a 10/3 NM-B cable connected to a 30A double-pole breaker.

  • Black Wire (Hot A): Connects to one pole of the breaker. Measures 120V relative to the white neutral.
  • Red Wire (Hot B): Connects to the second pole of the breaker. Measures 120V relative to the white neutral.
  • Phase-to-Phase Voltage: Because Hot A and Hot B are on opposite legs of the split-phase transformer, the potential difference between the black and red wires is 240V.
  • White Wire (Neutral): Carries the unbalanced 120V return current.
  • Bare Wire (Ground): Connects to the dryer chassis for fault protection.

The Math: If the dryer's heating element draws 22A at 240V (5,280W) and the 120V motor draws 5A (600W), the black and red wires each carry the full 22A for the heater, plus their respective share of the 120V load. The white neutral only carries the 5A imbalance from the motor circuit. This is why a 10 AWG wire (rated 30A) is required for the hots, but the neutral is still safely sized within the same 10/3 jacket.

Where You Meet This in Practice (And the Traps)

When you move beyond simple outlet wiring, NEC color rules introduce specific exceptions that trap inexperienced DIYers.

Trap 1: The 3-Way Switch Loop

When wiring a light controlled by two switches (a 3-way circuit), you must run a 3-conductor cable (like 14/3 or 12/3) between the switches. This cable contains black, red, white, and bare wires. In this specific topology, the white wire is not a neutral. It is used as a "traveler" or a switched hot. Per NEC 200.7(C)(2), you are legally required to re-identify this white wire at both ends using black or red electrical tape or marker to warn future electricians that it is an energized hot conductor.

Trap 2: Multi-Wire Branch Circuits (MWBC)

An MWBC uses a 3-conductor cable (black, red, white) to supply two separate 120V circuits that share a single white neutral. This works safely only if the black and red wires are on opposite breaker poles (240V apart). If an electrician mistakenly puts both the black and red wires on the same phase (0V apart), the neutral wire will carry the sum of both circuits' currents instead of the difference, leading to a melted neutral and a potential fire. Modern code (NEC 210.4) requires these breakers to be tied together with a handle tie so they trip simultaneously.

Pro Tip: If you open a panel and see a red and black wire from the same cable landing on two separate single-pole breakers, check for a handle tie. If there isn't one, do not touch the neutral bus bar or the white wire until the breakers are turned off.

Decision Tree: Which Wire Color and Cable to Buy

Use this decision path to select the exact cable type and color configuration for your project. This assumes standard US residential 120V/240V split-phase systems and copper conductors.

IF your project is... AND the load requires... THEN buy this cable... Colors included
Standard 120V receptacles or lights (15A) 120V, up to 15 Amps 14/2 NM-B Black, White, Bare
Kitchen/Bath 120V receptacles (20A) 120V, up to 20 Amps 12/2 NM-B Black, White, Bare
240V baseboard heater (no 120V controls) 240V, up to 20 Amps 12/2 NM-B (Re-identify white) Black, White (taped black), Bare
3-Way switch wiring 120V switch legs 14/3 or 12/3 NM-B Black, Red, White, Bare
Electric Dryer or Range 240V/120V, 30A or 50A 10/3 or 8/3 NM-B Black, Red, White, Bare

The Concrete Pick: If you are wiring standard 20A 120V branch circuits (the most common DIY home renovation task), buy a Southwire 250-foot coil of 12/2 NM-B Romex. It provides the black (hot), white (neutral), and bare (ground) you need. While 14 AWG is technically legal for 15A circuits, standardizing on 12 AWG for all general-purpose 120V outlets eliminates the risk of accidentally overloading a 15A wire with a 20A breaker, and the 12 AWG copper safely handles 20A at the 60°C ampacity column required for NM-B cable per NEC 334.80.

Frequently Asked Questions

Can I use a green wire for a hot conductor?
Absolutely not. NEC 250.119 strictly reserves green, green with yellow stripes, and bare copper exclusively for equipment grounding conductors. Using green for a hot wire is a severe code violation and a lethal hazard for anyone who assumes the wire is safe to touch.

Why is my white wire reading 120V on my multimeter?
If a white wire reads 120V to ground, it is either being used as a re-identified hot (like in a switch loop), or you have an "open neutral" condition downstream where the return current is backfeeding through a connected appliance. Turn off the breaker and trace the circuit.

Do these color codes apply to low-voltage DC wiring?
No. In 12V/24V DC systems (like solar, automotive, or LED strips), red is typically positive (+), black is negative (-), and white or yellow is used for data or switched grounds. Never mix AC mains wire color logic with DC low-voltage logic. For more on DC safety, refer to OSHA's electrical safety guidelines regarding mixed-voltage environments.

What if I'm working in an old house with faded or painted wires?
In pre-1960s knob-and-tube or early cloth-braided wiring, color codes were different (white was often hot, and black was neutral in some regions). Never assume the function of a wire in legacy wiring. Use a non-contact voltage tester and a plug-in receptacle tester to map the circuit before touching any conductors.