SAFETY WARNING: Working with mains voltage (>50V AC) requires de-energizing the circuit at the breaker panel, locking out the panel if possible, and verifying the wires are dead with a tested non-contact voltage tester (like a Klein NCVT-3) and a multimeter before touching any conductors. Local codes may require a licensed electrician for panel and branch circuit modifications.

The National Electrical Code (NEC / NFPA 70) mandates specific insulation colors to identify conductor functions in US branch circuits and feeders. Misidentifying a neutral as a hot, or a ground as a current-carrying conductor, creates immediate shock and fire hazards. Below is the definitive reference for US, international, and legacy systems, followed by decision paths for non-standard wiring.

The Master NEC Wiring Color Code Table (US Standard)

This table applies to standard 120V/240V single-phase and 277V/480V three-phase AC systems in the United States, governed by NEC Article 200 (Grounded Conductors), Article 210 (Branch Circuits), and Article 250 (Grounding and Bonding).

Function NEC Insulation Color Typical Context / Voltage Practical Meaning in the Field
Ungrounded (Hot) 1 Black 120V / 240V Single-Phase Primary line voltage. Connects to brass screws on receptacles and single-pole breakers.
Ungrounded (Hot) 2 Red 240V Appliances / 3-Way Travelers Second hot leg for 240V loads (dryers, ranges) or switched travelers. Connects to second brass screw or double-pole breaker.
Ungrounded (Hot) 3 Blue 277V / 480V Three-Phase Third phase in commercial/industrial panels. Rarely used in residential 120/240V split-phase.
Grounded (Neutral) White (or Gray) All AC Systems Current return path. Connects to silver screws on devices and the neutral bar in the panel. NEC 200.7 mandates white/gray.
Equipment Ground Green, Green/Yellow, or Bare All AC Systems Safety fault path. Connects to green screws, metal boxes, and the ground bar. NEC 250.119 strictly prohibits using green for current-carrying hots.
Switched Leg Black, Red, Blue, or Yellow Switch Loops Carries switched hot to a light fixture. Must never be white or green unless permanently re-identified.

Regional Variants: NEC vs. IEC vs. Old UK

If you are troubleshooting imported machinery, working on international projects, or dealing with older homes in regions that have updated their codes, you must know the differences. The UK harmonized with the IEC standard in 2004, creating a dangerous overlap in older properties.

Conductor Function US (NEC / NFPA 70) EU & Modern UK (IEC 60446) Old UK (Pre-2004)
Hot (Single Phase) Black Brown Red
Neutral White Blue Black
Ground (Earth) Green / Bare Green & Yellow Stripe Green / Bare
Hot 2 (2-Phase/3-Phase) Red / Blue Black / Gray Yellow / Blue
Pro-Tip for Importers: If you are wiring a European IEC-standard machine (Brown/Blue/Green-Yellow) into a US NEC panel, do not change the machine's internal wiring. Instead, use a clearly labeled junction box at the boundary where US THHN (Black/White/Green) transitions to the machine's IEC flex cable, and document the crossover on the panel schedule.

Rows People Get Wrong (And The Hazards)

Mistaking a conductor's function based on faded or misapplied insulation is a leading cause of electrical fires and shocked tradespeople. Here are the most common field errors:

1. The White Wire in a Switch Loop

In older residential wiring (pre-2011 NEC), 2-wire NM-B (Romex) cables were often used for switch loops. The white wire was sent down to the switch as the always-hot, and the black wire returned as the switched-hot.
The Hazard: An apprentice sees a white wire at the switch, assumes it is neutral, and bonds it to the ground or a neutral pigtail. This creates a dead short or energizes the grounding system.
The Code: NEC 200.7(C)(2) allows white to be used as a hot only if it is permanently re-identified (e.g., wrapped in black electrical tape) at both termination points.

2. Using Green or Bare as a Switched Traveler

When pulling 12/3 or 14/3 cable for 3-way switches, you have a black, red, white, and bare copper wire. If an installer needs a fourth current-carrying conductor for a smart switch requiring a neutral, they might be tempted to use the bare ground as a traveler or neutral.
The Hazard: This places normal load current on the equipment grounding system. If a fault occurs elsewhere, the grounding path is compromised, and metal appliance chassis can become energized.
The Code: NEC 250.119 strictly forbids using green or bare conductors for anything other than equipment grounding.

3. Gray Neutrals in Residential Panels

Gray is legally a neutral color under the NEC, typically reserved for 277V/480V commercial systems to distinguish high-voltage neutrals from 120V/208V white neutrals. Finding a gray wire in a 120V residential panel usually means the installer grabbed leftover commercial THHN from their truck.
The Fix: It is code-compliant, but confusing. Wrap both ends with white tape to match the residential 120V neutral standard and prevent future troubleshooting errors.

Decision Path: Faded, Missing, or Non-Standard Wires

When you open a junction box or panel and the wire colors are faded by heat, painted over by drywallers, or completely non-standard, do not guess. Use this decision tree to determine your exact next step.

Symptom / Condition Diagnostic Step Mandatory Action & Concrete Pick
White wire reads 120V to ground. Verify it is a switch loop hot or traveler using a Fluke 117 multimeter. Wrap both ends with 3M Scotch 35 Vinyl Electrical Tape (Black) to re-identify as hot.
Insulation is cracked, melted, or faded to unrecognizable. Inspect for thermal damage at lugs; test continuity. Abandon the run. Purchase Southwire SIMpull THHN in correct colors and pull a new circuit.
Bare copper wire is landed on a brass (hot) or silver (neutral) screw. Trace the circuit to find the short or miswire. Stop work immediately. Rewire the device. Bare copper must only terminate on green ground screws or ground bars.
Traveler wires in a 3-way switch are identical colors (e.g., both black). Map the travelers with a tone generator or continuity tester. Label one traveler with 3M Scotch 35 Vinyl Electrical Tape (Red) at both switches to distinguish them.
Old UK wiring (Red/Black) meets modern IEC (Brown/Blue) in a junction. Verify voltage and polarity before touching. Install a Wago 221 Series Lever-Nut with printed phase labels (L/N/E) inside the enclosure to map the crossover.

Safe Interpretation and Re-Identification Rules

Never trust wire color alone, especially in homes built before 1990 or properties flipped by unlicensed handymen. The NFPA 70 National Electrical Code provides strict rules for re-identification, but physics dictates your safety protocol.

The 'Test Before You Touch' Protocol

  1. Kill the Power: Turn off the breaker. If the panel is unlabeled, turn off the main breaker.
  2. Verify the Tester: Test your non-contact voltage tester (NCVT) on a known live circuit (like an extension cord plugged into a live outlet).
  3. Test the Target: Scan the wires in the box. The NCVT should read zero.
  4. Multimeter Confirmation: Set your multimeter to AC Voltage. Measure Hot-to-Neutral, Hot-to-Ground, and Neutral-to-Ground. All must read < 1V (ideally 0.0V) before stripping or touching conductors.

Legal Re-Identification (NEC 200.7 and 250.119)

If you must use a white wire as a hot (such as in a switch loop or a 240V pure-resistive load like a baseboard heater where no neutral is required), the NEC requires permanent re-identification.
Acceptable methods: Wrapping the wire with colored vinyl electrical tape (minimum 3M Scotch 35 or equivalent rated for 600V and 80°C/105°C), or using colored heat-shrink tubing pushed all the way down to the insulation jacket.
Unacceptable methods: Using a Sharpie marker (ink fades and is not rated for dielectric insulation), or taping only one end of the run. Both ends, and every accessible splice point, must be re-identified.

For comprehensive international color code mappings and historical standard shifts, the Electrical Technology wiring color code guide remains a highly reliable field reference for cross-border troubleshooting. Always defer to your local Authority Having Jurisdiction (AHJ) when local amendments supersede baseline NEC or IEC tables.