Wire color coding is a standardized visual insulation system that identifies a conductor's specific electrical function and voltage potential within a circuit. Getting what color wire goes where right changes everything about how safely an installation operates, dictating how breakers trip, how GFCIs sense ground faults, and whether a multimeter reads a safe 120V or a dead short. The most common mistake DIYers and junior apprentices make is confusing the conductor insulation color (which dictates electrical function) with the outer cable jacket color (which dictates wire gauge and ampacity).

The Core US Residential AC Color Standard

In the United States, the National Electrical Code (NEC) strictly governs the insulation colors used for grounded (neutral) and grounding conductors, while leaving ungrounded (hot) conductors more flexible, provided they avoid the reserved colors. According to the NFPA National Electrical Code, mixing up these colors can result in energized enclosures, failed inspections, and lethal shock hazards.

Insulation Color Function NEC Reference Typical Residential Application
Black Ungrounded (Hot) None (Default) Primary 120V hot feed to outlets, switches, and lighting.
Red Ungrounded (Hot) None (Default) Second hot leg in 240V circuits, 3-way switch travelers, or MWBCs.
Blue / Yellow Ungrounded (Hot) None (Default) Higher voltage (277V/480V) commercial, or complex residential switch legs.
White / Gray Grounded (Neutral) NEC 200.6 Current return path to the panel. Must be continuous and unswitched.
Green Equipment Ground NEC 250.119 Safety fault path. Bonds metal enclosures to the earth ground bus.
Bare Copper Equipment Ground NEC 250.119 Standard ground in NM-B (Romex) cable. Same function as green.
Safety Warning: Never assume a white wire is a neutral. In older homes, or in specific 240V and switch-loop configurations, a white wire may be carrying 120V or 240V as a hot conductor. Always verify dead with a tested non-contact voltage tester and a multimeter before touching any conductor.

Worked Example: Re-Identifying a Neutral for a 240V Circuit

To understand how color codes adapt to real-world constraints, let's look at wiring a standard 4500W, 240V electric water heater. This is a pure resistive load that requires two hot legs and a ground, but no neutral.

The Math:
Current (I) = Power (P) / Voltage (V)
I = 4500W / 240V = 18.75 Amps.
Per NEC sizing rules, we round up to the next standard breaker size, which is a 20A or 30A double-pole breaker. Let's use a 30A breaker, which requires 10 AWG copper wire.

The Cable:
Standard 10/2 NM-B (Romex) cable contains three wires: Black, White, and Bare Copper. Because we don't have a 10/2 cable with a red wire off the shelf at most big-box stores, we must use the White wire as our second Hot leg.

The NEC Rule & Execution:
Under OSHA and NEC guidelines, specifically NEC 200.7(C), you are permitted to use a white wire as an ungrounded (hot) conductor if it is permanently re-identified at every point where it is accessible. You must wrap the ends of the white wire with black or red electrical tape (or heat shrink) to visually flag it as a hot wire.

Verification Measurements:
Once wired to the 30A double-pole breaker and the water heater terminals, a multimeter will read:
Black to Re-identified White: 240V (The two hot legs across the phases).
Black to Bare Ground: 120V.
Re-identified White to Bare Ground: 120V.
If you read 0V between Black and White, you have wired both hots to the same phase leg, which will destroy the heating elements and trip the breaker.

Where You Meet This in Practice

Color codes dictate the physical topology of your home's electrical system. Here are the three most common scenarios where misinterpreting wire color leads to catastrophic failure or code violations.

1. Multi-Wire Branch Circuits (MWBC)
An MWBC uses a 3-wire cable (Black, Red, White, Bare) to feed two separate 120V circuits that share a single neutral. Think of this like a two-lane highway where traffic (current) flows in opposite directions on the black and red hot lanes, perfectly canceling out the return flow on the shared white neutral lane. If an electrician mistakenly places the Black and Red breakers on the same phase leg in the panel, the currents no longer cancel. The neutral wire will carry the sum of both loads (e.g., 15A + 15A = 30A) on a wire rated for only 15A, causing the insulation to melt inside the walls without tripping a breaker.

2. Modern Smart Switches vs. Old Switch Loops
Prior to the 2011 NEC update, switch loops were wired using 14/2 or 12/2 cable. The white wire was sent down to the switch as a permanent hot, and the black wire returned as the switched hot. The white wire was supposed to be taped black, but often wasn't. Today, smart switches (like the Lutron Caseta or GE Enbrighten) require a true neutral to power their internal WiFi/Zigbee radios. If you open a pre-2011 switch box and see only Black, White, and Bare, that White is likely a hot, not a neutral. You must buy a "no-neutral required" smart switch or pull new 14/3 cable.

3. The Brass vs. Silver Screw Rule
When terminating a standard duplex receptacle, the physical terminal screws are color-coded to match the wire insulation. The Brass screw is for the Hot (Black) wire. The Silver screw is for the Neutral (White) wire. The Green screw is for the Ground (Bare/Green). Reversing hot and neutral (hot on silver, neutral on brass) will allow the device to function, but it leaves the threaded metal socket of a plugged-in lamp energized at 120V, creating a severe shock hazard if someone touches it while changing a bulb.

Common Confusions: Outer Jacket vs. Inner Conductor

When shopping for NM-B cable at the hardware store, the outer plastic jacket is color-coded by the manufacturer to indicate the wire gauge (AWG) and the maximum ampacity of the cable. This has absolutely nothing to do with the function of the wires inside.

Memorize this inline data highlight for your next hardware store run:

  • White Jacket: 14 AWG (Rated for 15 Amps) — Used for basic lighting and standard 15A receptacles.
  • Yellow Jacket: 12 AWG (Rated for 20 Amps) — Used for kitchen small-appliance circuits, bathroom GFCIs, and dedicated 20A loads.
  • Orange Jacket: 10 AWG (Rated for 30 Amps) — Used for electric water heaters, window AC units, and dryers (if 120/240V with neutral).
  • Black Jacket: 8 AWG or 6 AWG (Rated for 40A - 55A) — Used for heavy appliances like electric ranges and EV chargers.

Frequently Asked Questions

What color wire goes to the brass screw on a standard receptacle?

The black (hot) wire always connects to the brass-colored terminal screw. The white (neutral) wire connects to the silver screw, and the bare or green (ground) wire connects to the green grounding screw. A helpful mnemonic used on the jobsite is "Black to Brass, or you'll fry your..." to remember that reversing them creates a shock hazard on the appliance's external metal threads.

What color wire is the ground in older homes without bare copper?

In homes wired before the 1960s, you may encounter older armored cable (BX) or early metal-clad (MC) cable that lacks a dedicated internal ground wire. In these legacy systems, the metal armor jacket itself was sometimes relied upon as the equipment grounding conductor, though this is highly unreliable by modern standards and often lacks continuity. If you find a two-prong ungrounded receptacle with only Black and White wires, do not install a 3-prong outlet unless you run a new ground wire or protect the circuit with a GFCI breaker (which provides shock protection but not a true equipment ground).

What color wire is the switched hot in a modern 3-way switch setup?

In a standard 3-way switch configuration, the wire that actually carries power to the light fixture (the switched hot) is typically black. However, the two "traveler" wires that run between the two 3-way switches are often red and black (or red and white, if using 14/3 cable where the white is re-identified). Because traveler wires alternate between being energized and de-energized depending on the toggle position of the switches, you must treat both the red and black travelers as potentially live at all times when troubleshooting.