Electrical wire colors are a standardized visual coding system applied to conductor insulation to instantly communicate a wire's function and voltage potential within a circuit. This color coding changes a chaotic, dangerous bundle of bare copper into a predictable, safe system where any competent person can identify the hot, neutral, and ground paths at a glance. When you are pulling NM-B cable through a ceiling joist or terminating a subpanel, relying on these colours electrical wires standards is the difference between a safe installation and a lethal shock hazard.
The Core NEC Color Code Standard (US & Canada)
In North America, the National Electrical Code (NEC) strictly governs the colours electrical wires must be to ensure uniformity. While the NEC doesn't mandate the color of the 'hot' ungrounded conductors (other than forbidding white, gray, or green), industry standard and NFPA guidelines have established a rigid hierarchy for residential and commercial wiring.
| Insulation Color | Function | NEC Article / Rule |
|---|---|---|
| Black | Ungrounded (Hot) - Line 1 | Standard industry practice |
| Red | Ungrounded (Hot) - Line 2 / Switch Leg | Standard industry practice |
| Blue | Ungrounded (Hot) - Line 3 (3-Phase) | Standard industry practice |
| White / Gray | Grounded (Neutral) | NEC Article 200 |
| Green / Bare Copper | Equipment Grounding Conductor (EGC) | NEC Article 250.118 |
For standard 120V branch circuits, you will almost exclusively see Black (hot), White (neutral), and Bare/Green (ground). When you step up to 240V split-phase circuits (like dryers or ranges), you introduce the Red wire as the second hot leg. In commercial 277V/480V three-phase systems, Brown, Orange, and Yellow are typically used for the hot legs, with Gray serving as the neutral.
What People Commonly Confuse About Wire Colors
Even experienced DIYers make dangerous assumptions based purely on insulation color. Here are the most frequent points of confusion:
- 'White is always neutral.' This is false. In a standard switch loop, the white wire is often used to carry switched hot power up to a light fixture. In pure 240V circuits (like baseboard heaters), the white wire is used as a hot leg. NEC 200.7 requires these to be re-identified with black or red tape.
- 'Ground and Neutral are the same thing.' They are bonded together only at the main service disconnect. Downstream in subpanels or receptacles, they must remain strictly isolated. The neutral carries return current during normal operation; the ground only carries current during a fault.
- US vs. International Colors. If you are working on imported machinery or traveling abroad, the IEC 60446 standard applies. In the EU and UK, Brown is hot, Blue is neutral, and Green/Yellow stripe is ground. Plugging a US-wired machine into an IEC environment without checking the schematic will result in a dead short or electrified chassis.
Where You Meet This In Practice
You will encounter complex color routing most often when wiring 3-way switches, multi-wire branch circuits, or subpanel feeders. Here is a standard numbered workflow for wiring a 3-way switch setup using 14/3 NM-B cable (Black, Red, White, Bare):
- Run the 14/3 cable between the two 3-way switch boxes.
- Connect the Bare copper to the green grounding screw on both switches and pigtail it to the metal box (if applicable).
- Identify the Travelers: Connect the Black and Red wires to the two brass-colored 'traveler' screws on the first switch. It does not matter which goes to which brass screw.
- Terminate the second switch: Connect the Black and Red wires to the brass traveler screws on the second switch.
- Handle the White wire: In this specific traveler setup, the white wire is actually being used as a hot feed or a switched leg depending on your exact topology. If it is feeding hot power to the common screw, you must wrap black electrical tape around both ends of the white wire to re-identify it as a hot conductor.
Worked Numeric Example: The Multi-Wire Branch Circuit (MWBC)
A Multi-Wire Branch Circuit uses a single 12/3 NM-B cable (Black, Red, White, Bare) to feed two separate 120V circuits while sharing a single neutral. This is common for kitchen countertop receptacles.
Leg A (Black wire) is on Breaker 1, pulling 15A from a toaster.
Leg B (Red wire) is on Breaker 2, pulling 12A from a coffee maker.
Because the breakers are on opposite phases (180 degrees apart in a split-phase panel), the currents cancel each other out on the shared neutral.
Neutral Current Calculation:
|15A (Black) - 12A (Red)| = 3A.
The 12 AWG white neutral wire only carries 3 amps, well within its 20A ampacity rating.
The Fatal Mistake:
If an installer mistakenly places both the Black and Red breakers on the same phase leg (e.g., using a tandem breaker instead of a handle-tied 2-pole breaker), the currents no longer cancel. They add together: 15A + 12A = 27A. The shared 12 AWG neutral wire is now carrying 27 amps on a wire rated for 20 amps. The neutral will overheat, melt its insulation inside the wall, and start a fire, while the hot breakers never trip because they are only seeing 15A and 12A respectively. This is exactly why NEC 210.4 mandates simultaneous disconnect (handle-tied or 2-pole breakers) for MWBCs.
Real-World Scenario Walkthrough: The 240V Baseboard Heater Mistake
Setup: An apprentice is wiring a 2000W, 240V electric baseboard heater in a basement. They use a standard 12/2 NM-B cable, which contains a Black wire, a White wire, and a Bare copper ground.
Numbers: 2000W ÷ 240V = 8.33 Amps. The circuit requires a 15A or 20A double-pole breaker. The apprentice connects the Black wire to one pole of the breaker, and the White wire to the other pole. They connect the Bare wire to the ground bar. They do not put any tape on the White wire.
Outcome: The heater turns on and works perfectly. The installation passes a superficial visual check because the heat is generated correctly.
What Went Wrong: Three years later, the homeowner decides to upgrade to a smart Wi-Fi thermostat. They turn off what they think is the circuit, open the wall box, and see the White wire connected to the old thermostat. Assuming White is neutral, they touch the exposed copper end while their other hand is grounded against the metal wall box. They receive a severe 120V shock.
The White wire in a 12/2 cable used for a 240V load is not a neutral; it is the second hot leg. OSHA electrical safety guidelines and NEC 200.7(C)(2) explicitly state that if a white wire is used as an ungrounded (hot) conductor, it must be permanently re-identified with black or red tape, paint, or sleeving at every point it is accessible. The apprentice's failure to apply a piece of black electrical tape at the panel and the thermostat box created a lethal trap for the next person to open that wall.
FAQ: Troubleshooting and Edge Cases
Can I use green tape to re-identify a black wire as a ground?
No. NEC 250.119 strictly forbids using green or green/yellow tape to re-identify an insulated wire as a ground. You can only use green/yellow for grounding. If you need a ground and only have insulated wires, you must pull a new cable or run a separate bare/green Equipment Grounding Conductor.
What if I open an old panel and see white wires connected to single-pole breakers?
This is incredibly common in older homes with switch loops. The white wire is being used to feed power down to a switch, or carry switched power back up. Do not assume it is neutral. Treat it as a hot conductor until you have de-energized the panel and verified it with a multimeter. Wrap black tape around the ends to bring it up to modern code.
Does the color code apply to DC circuits like solar or batteries?
The NEC has different rules for DC. For ungrounded DC systems (like a 12V or 24V battery bank or solar array), red is typically positive and black is negative. However, if the DC system is grounded, the grounded conductor must be white or gray, just like AC. Always refer to the specific equipment manual and NEC Article 690 for solar PV systems.






