Wire colors in residential electrical systems are not arbitrary design choices; they are legally mandated safety identifiers governed by strict regional codes. Misidentifying a neutral as a hot or a switched leg as a ground can result in catastrophic shock or fire. Below is the master reference for identifying conductors before you make any terminations.
The Master House Wiring Color Code Reference Table
This table covers standard single-phase and split-phase residential wiring. Always verify your local jurisdiction's adopted code year, as transitions between standards (especially in the UK and Australia) left legacy systems in place for decades.
| Conductor Function | US & Canada (NEC / CEC) | EU, AU & NZ (IEC 60446 / AS/NZS 3000) | UK (Post-2006 Harmonized) | UK (Pre-2006 Legacy) |
|---|---|---|---|---|
| Line 1 / Hot (Phase) | Black | Brown | Brown | Red |
| Line 2 / Hot (240V Split or Phase 2) | Red (or Blue for 3-phase) | Black | Black | Yellow |
| Neutral (Grounded Conductor) | White (or Gray) | Blue | Blue | Black |
| Ground / Earth (Equipment Grounding) | Bare Copper or Green | Green/Yellow Stripe | Green/Yellow Stripe | Green (or Bare) |
| Switched Leg / Traveler | Red, Blue, or Re-identified White | Brown/Black with Sleeve | Brown/Black with Sleeve | Any except Green/Yellow |
Regional Standards & The 'Rows People Get Wrong' Notes
In North America, the National Electrical Code (NFPA 70) dictates conductor identification under Articles 200, 210, and 250. In Europe and the UK, IEC 60446 and the harmonized HD 308 standard apply. While the table above provides the baseline, bench and jobsite experience reveals specific rows where DIYers and even apprentices consistently make dangerous errors.
1. The White vs. Gray Neutral Trap (US)
Under NEC 200.6, white is the standard grounded neutral for systems up to 50V to 600V (which covers all residential 120V/240V). Gray is reserved for higher voltage commercial systems (like 277V/480V). However, if you are pulling wire for a large residential subpanel or a solar inverter tie-in, you might accidentally buy gray THHN. While technically legal to use gray as a neutral in a 120V system if properly documented, mixing white and gray neutrals on the same terminal bar without clear labeling invites confusion during future troubleshooting.
2. The UK Harmonization Shock Hazard
The UK shifted from its legacy colors (Red/Black/Green) to IEC harmonized colors (Brown/Blue/Green-Yellow) in 2004, with a mandatory cutover by 2006. The UK Health and Safety Executive (HSE) warns that old and new wiring frequently coexist in the same consumer unit. The most lethal mistake is assuming a black wire is a hot (Line 2) in a new installation, when it is actually a neutral from a pre-2006 circuit. Always test for voltage; never trust the jacket color in a mixed-era UK panel.
3. Bare vs. Green Ground (Corrosion Context)
Functionally, bare copper and green-insulated copper are identical equipment grounding conductors (EGC) under the NEC. The mistake occurs when using bare wire in environments subject to corrosion or physical damage. If you are running a ground wire in direct contact with concrete, masonry, or outdoors, local AHJs (Authority Having Jurisdiction) often require green insulation to prevent the bare copper from acting as a sacrificial anode and corroding away over decades.
Safe Interpretation When Wire Markings Fade or Go Missing
Open a junction box in a house built before 1980, and you will likely find white wires painted beige by a careless drywaller, or black wires faded to a dull gray from decades of thermal cycling near a recessed light can. Here is the exact procedure for safe interpretation when visual identification fails:
If you encounter fabric-braided wire insulation, the color code is entirely unreliable. The 'white' neutral may just be a dirty unbleached cotton braid, and the 'black' hot may be faded to the exact same color. Furthermore, these systems rarely have an equipment ground. Treat every conductor as live until proven dead with a meter.
- De-energize and Verify Dead: Turn off the breaker and use a non-contact voltage tester (NCVT) followed by a digital multimeter (DMM) or solenoid tester (wiggy) between the suspected hot and a known ground. A DMM alone can be fooled by phantom voltage; a wiggy loads the circuit to confirm it is truly dead.
- Trace the Physical Path: If wires are faded but intact, trace the cable back to the panel or the next junction box where the outer NM-B jacket is still legible. The wires inside a single Romex sheath maintain their relative positions.
- Re-Identify Immediately: Once you determine a wire's true function via continuity testing or tracing, re-identify it at both ends. Use high-quality vinyl electrical tape (like 3M Super 33+) or, preferably, adhesive-lined heat shrink tubing. Wrap the tape completely around the wire and extend it at least 1 inch past the stripped insulation.
- Label the Panel: If you discover a circuit where the neutral was improperly used as a hot (common in old switch loops), note it on the panel directory so the next person working on the board is aware of the anomaly.
Frequently Asked Questions
Can I use black tape on a white wire to make it hot in a switch loop?
Yes, but with strict conditions. Under NEC 200.6(C)(2), you are permitted to re-identify a white or gray wire as an ungrounded (hot) conductor if it is part of a cable assembly (like NM-B Romex) used as a switch leg. You must permanently wrap the wire with black, red, or any color tape except white, gray, or green at both ends where the wire is terminated. If you only tape it at the switch and leave it white at the light fixture, you have created a code violation and a shock hazard for whoever replaces the fixture later.
What color is the ground wire in older houses built before 1960?
In many pre-1960 homes, there is no dedicated ground wire color because the system was installed without an equipment grounding conductor (EGC). You will see two-prong outlets and only black/white (or red/black) wires. If the home was retrofitted, the ground might be a bare copper wire, a green insulated wire, or the metal conduit (EMT) or armored cable (BX/AC) sheath itself. Never assume metal conduit is a reliable ground without testing continuity from the outlet box back to the main panel's ground bar; rust and loose fittings often break the ground path in old metal raceways.
Does the house wiring color code apply to low-voltage thermostat or doorbell cables?
No. Class 2 low-voltage cables (like the 18/5 or 20/3 stranded wire used for HVAC thermostats, doorbells, and alarm systems) do not follow NEC Article 200/210 color codes. The colors in a thermostat cable (typically red, white, yellow, green, and blue) are assigned arbitrarily based on the HVAC manufacturer's terminal block layout. For example, Red is usually 'R' (24VAC Hot), White is 'W' (Heat), Yellow is 'Y' (Cooling), and Green is 'G' (Fan). Always trace the wire to its terminal label on the control board rather than assuming a green wire is a safety ground in a low-voltage circuit.






