Electrical Wiring Color Codes, and Why a Wire's Color Isn't Proof

Updated By ElectricianMatch

The bottom line

Electrical wiring color codes in US homes follow a simple pattern: black and red wires are hot, white or gray wires are neutral, and green or bare copper wires are ground. A white wire wrapped with black or red tape has been re-marked as a hot. Colors in old or DIY wiring can be wrong, so treat every wire as live and leave box work to an electrician.

On this page (9)
  1. What each wire color means
  2. What the code sets
  3. A white wire with tape on it
  4. Colors on a 240-volt circuit
  5. What cable jacket colors mean
  6. Outside the home or the US
  7. Why color isn’t proof
  8. Related services
  9. Frequently asked questions

What each wire color means

Electrical wiring color codes in a US home come down to three jobs. Black and red wires are hot and carry power out. White and gray wires are neutral and carry it back. Green and bare copper wires are ground, a safety path that carries current only during a fault.

Wire color Job Where you’ll see it
Black Hot Outlets, switches, nearly every circuit
Red Hot (second hot) 240-volt circuits, 3-way switches, fans with a light, linked smoke alarms
Blue or yellow Hot Wires pulled through conduit (metal or plastic pipe), often to switches
White or gray Neutral Bundled in the back of boxes, on the silver screws of outlets
White with black or red tape Hot, re-marked Switch loops and 240-volt runs in two-wire cable
Green, green with yellow, or bare Ground Green screws on outlets and switches, metal boxes

On an outlet, the hot is on the brass screws, the neutral is on the silver screws, and the ground is on the green screw. Our guide on how to wire a light switch shows those colors on a switch.

What the code sets

The National Electrical Code sets only two color rules for ordinary home circuits. Neutral wires must be white or gray. Ground wires must be green, green with yellow stripes, or bare. A hot can be any other color.

Black and red for hots is a strong habit, not a rule written for every case. That’s why you’ll see blue, yellow or even orange hots in conduit. In a panel or a big job, an electrician may pick colors to keep circuits apart.

A white wire with tape on it

A white wire wrapped in black or red tape is a hot. It’s been re-marked because the cable had no other color to use. You’ll see it most in switch loops, where a two-wire cable runs from a light down to its switch.

The tape should show wherever the wire is visible. In older homes, it’s often missing, and an unmarked white can be live. In a 3-way switch box, a white wire can even be a traveler, one of the two wires that run between the switches. Our guide to 3-way switch wiring shows how that works.

Colors on a 240-volt circuit

A 240-volt circuit uses two hots, often black and red. Some add a white neutral, and all have a ground. Dryers, ranges, water heaters, central air and EV chargers run on these circuits.

On a water heater or baseboard heater, two-wire cable often carries a black and a re-marked white, and both are hot. Treat every wire on these circuits as hot. Work on 240-volt circuits belongs to a licensed electrician, not a homeowner.

What cable jacket colors mean

The color of the outer jacket on NM-B cable, the plastic-jacketed kind, tells you the wire size. Makers use a common scheme, and the size is also printed on the jacket. Wire size sets the largest breaker the circuit can have.

Jacket color Wire size Usual breaker
White 14 gauge 15 amp
Yellow 12 gauge 20 amp
Orange 10 gauge 30 amp
Black 8 or 6 gauge Larger loads
Gray Varies UF-B cable for wet or buried runs

The scheme is a maker’s habit, not code, and old cable may not follow it. Read the printed size when it matters. Our page on electrical wire connector types covers the cable types themselves.

Outside the home or the US

Commercial buildings often use a different set. On 208/120-volt three-phase systems, hots are often black, red and blue. On 480/277-volt systems, they’re often brown, orange and yellow. That’s custom, not a national rule.

Gear made for Europe follows another code. Brown is live, blue is neutral, and green with a yellow stripe is earth. Don’t read a blue wire from an imported fixture as a US hot, or a US blue as a neutral.

Why color isn’t proof

Colors tell you what a wire should be, not what it is. A past owner may have used the wrong color, skipped the tape, or wired a box backward. Old houses add more doubt. Knob and tube wiring and old cloth-covered wire often look the same color all over.

Treat every wire in a box as live, whatever its color. If you need to work inside one, that’s a job for an electrician. Never open the panel.

For any box work, from a swapped outlet to a new circuit, get two or three written quotes from licensed electricians. Check each license with your state or local office before work starts.

Related services

Frequently asked questions

What color is the hot wire?

Usually black, and sometimes red. In conduit you may also see blue or yellow. Any wire other than white, gray, green or bare can be a hot, so treat it as live.

Is the white wire always neutral?

No. A white wire in a cable is sometimes used as a hot, and it should be wrapped with black or red tape to show that. In older homes the tape is often missing.

What does the red wire do?

It's a second hot. You'll find it on 240-volt circuits, between 3-way switches, on fans with a separate light, and on linked smoke alarms.

What do the cable jacket colors mean?

On NM-B cable, white is 14 gauge, yellow is 12, orange is 10, and black is 8 or 6. Gray means UF-B cable. It's a maker's convention, so read the size printed on the jacket too.

Is the bare copper wire live?

It shouldn't be. Bare or green wires are grounds that carry current only during a fault. A wiring mistake can still put voltage on one, so treat it as live like any other wire.