Last Updated: March 21, 2026
Why Wire Color Codes Matter
Wire color codes are a safety system, not just an organizational preference. When a licensed electrician or inspector opens a panel or junction box, they rely on color codes to immediately identify which wires are energized and which are safe to touch. Incorrect color coding creates invisible hazards — white wires that carry live voltage, or ungrounded outlets that look normal but aren’t.
The NEC doesn’t mandate wire color for all conductors, but it does prohibit using white or gray for hot conductors (unless re-identified with colored tape) and requires green or bare copper for equipment grounding conductors. Understanding this system is essential before working on any home electrical project.
What You’ll Need for Electrical Wire Work
- Non-contact voltage tester or multimeter: To verify wires are de-energized before touching them — see our guide on multimeter vs voltage tester
- Wire stripper: Sized for the gauge you’re working with — 14 or 12 AWG for most residential work
- Colored electrical tape: For re-identifying re-purposed wires (e.g., white-to-hot re-identification)
- Wire nuts or push-in connectors: For making safe splice connections
- Insulated screwdrivers: For terminal work at outlets, switches, and panels
Safety: Critical Rules Before You Touch Any Wire
- Turn off the circuit breaker AND verify with a tester. Breakers can be mislabeled. Always confirm zero voltage at the wires before touching them.
- Never assume a wire is safe based on color alone. In older homes, wire colors may not follow modern NEC conventions. Always test.
- White wires are not always neutral. In switch legs, white wire is often re-purposed as a hot conductor and must be re-identified with black tape.
- Work with one hand when possible near live panels. This limits the path of current through your body if accidental contact occurs.
- Call a licensed electrician for panel work. Service entrance wiring is always live — even with the main breaker off. This work requires a professional.
US Electrical Wire Color Guide: Every Color Explained
Black Wire — Hot (Line)
Black is the standard color for hot wires in 120V single-phase circuits. The black wire carries current from the breaker to the load (outlet, switch, or appliance). It connects to the gold (brass) screw on outlets and switches. Never connect black to neutral or ground terminals.
Red Wire — Second Hot (240V / 3-Wire Circuits)
Red wires are the second hot conductor in 240V circuits and in multi-wire branch circuits. In a 240V circuit (dryers, ranges, A/C), both black and red carry 120V each relative to neutral, creating 240V between them. In 14/3 or 12/3 Romex cable, red is used as the second hot for 3-way switch wiring or split-circuit outlets.
White Wire — Neutral
White wire is the neutral conductor. It returns current from the load back to the panel’s neutral bar, completing the circuit. White connects to the silver screw on outlets. Neutral carries current during normal operation — it is not a safe wire to touch when a circuit is energized.
Exception — White Used as Hot: In switch loops and some older wiring, white wire is re-purposed as a hot conductor. Per NEC, it must be re-identified with black or colored tape near both ends to indicate it’s hot, not neutral.
Green Wire — Equipment Ground (EGC)
Green wire is the equipment grounding conductor (EGC). It provides a fault current path back to the panel and trips the breaker during a fault, protecting you from shock. Green connects to the green screw on outlets and to the grounding bar in the panel.
Bare Copper Wire — Equipment Ground (EGC)
Bare copper wire serves the same function as green wire — it’s the equipment ground. NM-B (Romex) cable typically uses bare copper for the ground conductor. Never cut or skip the ground wire. It protects both people and equipment during ground faults.
White/Gray Wire — Neutral in 240V or 3-Phase Systems
In multi-wire branch circuits and 240V systems, white or gray wire serves as the neutral. Gray wire is also used in industrial and 3-phase wiring for the neutral conductor. These conductors are never re-identified as hot.
Blue and Yellow Wires — Hot Conductors in Conduit
When individual THHN conductors are run through conduit (rather than Romex cable), any color except green, white, or gray can be used as a hot conductor. Blue and yellow are commonly used for the third hot in 3-phase systems, for travelers in 3-way switch circuits, or for additional hots in multi-circuit conduit runs.
Orange Wire — Second Hot in 240V (Conduit)
Orange is used in some commercial wiring as an additional hot conductor, particularly in 3-phase systems where it may represent a “high leg” (the wild leg in delta systems that carries approximately 208V to neutral). Orange in a delta system is always higher voltage than the other hots — a critical safety distinction.
Quick Reference: Wire Color Summary Table
| Wire Color | Function | Where It Connects | Safe to Touch? |
|---|---|---|---|
| Black | Hot (120V) | Brass/gold screw, breaker | Never — always live |
| Red | Second hot (240V / switched) | Brass/gold screw, breaker | Never — always live |
| White | Neutral | Silver screw, neutral bar | Not while energized |
| Green | Equipment ground | Green screw, ground bar | Only when de-energized |
| Bare copper | Equipment ground | Green screw, ground bar | Only when de-energized |
| Blue/Yellow | Hot (conduit wiring) | Varies by circuit | Never — always live |
| Orange | Hot / high-leg delta | Varies | Never — dangerous voltage |
| Gray | Neutral (industrial / 240V) | Neutral bar | Not while energized |
Wire Colors in 3-Way and 4-Way Switch Wiring
3-way switch wiring uses 14/3 or 12/3 cable, which includes black, red, white, and bare copper. In this configuration, the white wire is often used as a “traveler” — a hot conductor that carries switched current between the two switches. Per NEC, this re-purposed white wire must be wrapped with black tape at both ends. If you open a switch box and see a white wire on a brass screw without black tape, it’s likely an older installation that doesn’t meet current code.
When troubleshooting switches and outlets, always use a multimeter continuity test to trace wires properly rather than relying on color alone in older homes.
Wire Colors in 240V Appliance Circuits
Modern 240V circuits (dryers, ranges, EV chargers) use 3-wire or 4-wire configurations. The NEC now requires 4-wire connections for new dryer and range installations, which includes: black (hot), red (hot), white (neutral), and green/bare (ground). Older 3-wire connections (black, red, bare/green) with no neutral were grandfathered but are no longer allowed for new circuits. If you’re wiring a new 240V circuit, always run 4-wire cable per current code.
Frequently Asked Questions
Can I use any color wire I want?
For conductors run in conduit, you can use most colors for hot wires — but the NEC prohibits using white or gray as hot conductors (unless re-identified), and green must only be used for equipment grounds. For Romex/NM cable, you must use pre-colored cables that already follow the standard color scheme.
Why is white sometimes connected to the hot side?
In switch loops — where cable runs from the switch to the fixture — the white wire often returns as a switched hot back to the light fixture. This is a legacy wiring method. The re-purposed white wire must be re-identified with black tape per NEC 200.7. Modern wiring practice avoids this by using 14/3 cable with a properly colored conductor.
What is the green screw on an outlet for?
The green screw is the ground terminal on a receptacle. It connects to the green wire or bare copper ground conductor. The ground path allows fault current to flow safely back to the panel and trip the breaker, preventing electrical shock from a faulty appliance or device.
Is gray wire the same as white wire?
Both gray and white wire are neutral conductors, but they serve different systems. White is the standard neutral in residential 120V/240V wiring. Gray is used in commercial, industrial, and some 3-phase systems. Never use gray or white as a hot conductor — they are reserved for neutral only.
What does it mean if I find wires I can’t identify by color?
In older homes (pre-1970s), wiring often used black and white only, sometimes with fabric insulation, or aluminum wiring. If you can’t identify wire function by color, use a circuit tracer or multimeter to identify hot and neutral, and never assume a wire’s function based on color alone in older homes.
Conclusion
Electrical wire color codes are your first line of safety in any wiring project. Black and red are always hot. White is neutral — but not always safe. Green and bare copper are ground. When in doubt, test before touching. For more electrical wiring guides, explore:
