The color of a wire's insulation dictates its function, but those colors change drastically depending on when the house was built and what continent you are standing on. Misinterpreting a conductor's role is the leading cause of residential electrical shock and arc-flash incidents. Below is the definitive reference for housing wiring color codes, structured to help you identify, verify, and select the correct conductors for any residential branch circuit.
The Master Housing Wiring Color Codes Reference Table
This table covers the three most common standards you will encounter in residential wiring: the North American NEC, the modern European/UK IEC harmonized standard, and the legacy UK standard still found in millions of pre-2004 homes.
| Conductor Function | US / Canada (NEC 310.12) | Europe / UK (IEC 60446 / BS 7671) | Old UK (Pre-2004 Legacy) |
|---|---|---|---|
| Line / Hot (Single Phase) | Black or Red | Brown | Red |
| Line / Hot (3-Phase L1, L2, L3) | Black, Red, Blue | Brown, Black, Grey | Red, Yellow, Blue |
| Neutral (Grounded Conductor) | White or Grey | Blue | Black |
| Ground / Earth (Equipment Grounding) | Bare Copper, Green, or Green/Yellow | Green with Yellow Stripe | Green (or Bare) |
| Switched Leg / Traveler | Any color except White, Grey, Green (often Red/Black) | Any color except Blue, Green/Yellow (often Brown/Black) | Red, Yellow, or Blue |
Rows People Get Wrong (And the Hazards They Create)
Memorizing the table above is not enough. Real-world jobsites and older homes are full of code violations, cowboy wiring, and grandfathered exceptions. Here are the specific rows and scenarios where electricians and DIYers get hurt.
The 'White Wire as Hot' Trap (NEC Regions)
Under NEC Article 200.7(C), a white or gray wire can be used as an ungrounded (hot) conductor in specific scenarios, such as a switch loop or a 240V appliance cable. However, the code strictly requires that the white wire be re-identified at both ends with black tape, paint, or a permanent marker. In older homes, previous owners routinely skip this step. If you assume a white wire in a 3-way switch box is a neutral and touch it while the circuit is live, you will complete the circuit through your body. Always treat white wires in switch boxes as potentially hot until proven otherwise with a meter.
The Pre-2004 UK Black Wire Fatality
In the UK and regions that followed the old IEE wiring regulations, Black was the Neutral color. However, in modern IEC harmonized cables, Black is a Line/Hot conductor (Phase L2 in 3-phase, or sometimes used as a switched live in single-phase). If you are extending a circuit in an older British home and splice a modern black wire to an old black wire assuming both are neutrals, you are creating a dead short or energizing a neutral bus. Furthermore, old UK flex cable sometimes used black for a switched live. Never trust legacy black wire without testing.
Ground vs. Neutral Bonding in Subpanels
While Bare/Green (NEC) and Green/Yellow (IEC) are universally recognized as earth grounds, the physical termination is where mistakes happen. In a main service panel, neutral and ground are bonded together. In a subpanel, they must remain strictly isolated. Connecting a white neutral wire to the green/bare ground bus bar in a subpanel creates a parallel neutral path, causing normal operating current to flow through the grounding system and electrifying appliance chassis.
Safe Interpretation Protocol for Faded or Unmarked Wires
When you open a junction box and encounter faded, painted-over, or completely unmarked wires, follow this strict verification protocol before making any terminations.
- De-energize and Lockout: Turn off the breaker controlling the circuit. If the breaker labeling is suspect, turn off the main breaker. Use a lockout/tagout device if you are not the only person in the home.
- Initial NCVT Sweep: Use a Non-Contact Voltage Tester (NCVT) rated for your system voltage (e.g., Klein NCVT-3 or Fluke 2AC). Test a known live circuit first to verify the tool works, then test the mystery wires. Note that NCVTs can give false positives due to phantom voltage from adjacent live wires.
- DMM Verification (The Definitive Test): Set your Digital Multimeter (DMM) to AC Voltage (V~) on a range higher than your nominal voltage (e.g., 200V or 600V for a 120V/230V system).
- Test Line to Ground: Should read nominal voltage (120V or 230V).
- Test Neutral to Ground: Should read near 0V (under 2V is acceptable; higher indicates a loose neutral or high load on the branch).
- Test Line to Neutral: Should read nominal voltage.
- Re-identify Immediately: Once verified, use high-quality vinyl electrical tape (e.g., 3M Scotch 35 Series for phase identification, or Super 33+ for general wrapping) to re-mark the wires at the termination point and 6 inches back. Do not use cheap masking tape or office tape, which dries out and falls off within a year.
Decision Path: Selecting Your Wire and Standard
Use this decision matrix to determine exactly which cable type and color scheme you need to purchase for your specific project. Do not mix standards within the same junction box.
| Project Scenario | Applicable Standard | Concrete Cable Pick (Buy This) |
|---|---|---|
| New US/Canada 15A/20A Branch Circuit (Indoor, Dry) | NEC (NFPA 70) | Southwire Romex SIMpull 14/2 or 12/2 NM-B (Black, White, Bare) |
| New US/Canada 240V Appliance Circuit (Dryer/Range) | NEC (NFPA 70) | Southwire 10/3 or 8/3 NM-B (Black, Red, White, Bare) |
| New UK/EU 16A/32A Ring Main or Radial Circuit | BS 7671 / IEC 60446 | Prysmian 6242Y or 6243Y Twin & Earth (Brown, Blue, Green/Yellow) |
| Repairing Pre-2004 UK Lighting Circuit | BS 7671 (Amendment 2:2004) | Prysmian 6242Y (Brown/Blue) + Green/Yellow sleeving over old black/red wires at joints |
| Wet/Damp Location (US Outdoors/Underground) | NEC (NFPA 70) | Southwire UF-B 12/2 (Grey jacket; internal Black, White, Bare) |
Regional Authority and Code Compliance
While this guide provides the universal baseline for housing wiring color codes, local Authorities Having Jurisdiction (AHJ) always have the final say. Code adoption varies not just by country, but by state, province, and municipality.
In North America, the National Electrical Code (NFPA 70) Article 310.12 governs the identification of grounded (neutral) and grounding conductors. However, some local jurisdictions adopt specific amendments regarding the use of grey insulation for neutrals in commercial vs. residential settings to prevent confusion with 277V/480V systems.
In the UK and Europe, the transition to harmonized IEC colors was mandated to align with continental standards, overseen by bodies like the UK Health and Safety Executive (HSE). If you are working in a property that straddles the 2004-2006 transition period, you will likely find a mix of old (Red/Black) and new (Brown/Blue) colors in the same consumer unit. In these cases, BS 7671 requires clear, durable labeling at the distribution board and the use of warning notices to alert future workers to the mixed color codes.
For workplace safety and testing protocols in the US, OSHA Standard 1910.304 outlines the requirements for wiring design and protection, reinforcing that color coding must be consistent throughout the premises and that grounding conductors must be continuous and properly identified.
Always pull the permits, consult your local building department, and if you are unsure about a legacy wiring configuration, hire a licensed electrician to map the panel before you cut a single wire.






