Wiring helper
Wiring diagrams
Pick what you're replacing and what's in the box: a drawing of every wire, which screw it goes on, the steps, and when to stop and call an electrician.
Turn off the breaker and prove every wire dead with a tester first. Then: on an outlet, black (hot) goes on a brass screw, white (neutral) on a silver screw, bare or green on the green screw. A single-pole switch takes the two insulated wires on its two brass screws, either way round. A 3-way switch has one darker screw, the common: tag the wire on it before you take the old switch off, and the two other wires (the travelers) go on the brass screws. A GFCI takes the power-in cable on its LINE screws; a second cable on LOAD protects the outlets after it. On a ceiling fan the house black goes to the fan's black, and to its blue (the light) with one switch or the red with two.
A 3-way switch, wire by wire
Power at the first switch, the light at the end: the power wire on the first switch's common, the black and red of a 3-wire cable on the travelers, the whites spliced through (This Old House, Leviton).
A GFCI outlet protecting the outlets after it
The cable bringing power on LINE, the cable going on to the next outlets on LOAD, the grounds joined with a pigtail to the green screw (Leviton).
Which wire goes where
| Wire | What it is | Goes on |
|---|---|---|
| Black | hot | a brass screw (an outlet), either brass screw (a switch) |
| Red | a second hot (3-wire cable) | a traveler screw, or a fan's light |
| White | neutral | a silver screw, or spliced with the other whites |
| White with black tape | a hot in a switch loop | the switch: it brings power to it |
| Bare or green | ground | the green screw, and every ground in the box together |
Colors by convention (Purdue Extension; UHMC). Read the print on the cable for the wire size: 14 gauge on a 15 A breaker, 12 on 20 A (NEC 240.4(D)).
How we work it out
- Like for like: the helper is for replacing a switch, outlet, GFCI, dimmer, fan or light in a box that already has the right wires. New circuits, new outlets and anything in the panel are an electrician's job.
- Your box: what you find in it (how many cables, a red wire, a white wire on the switch) picks the drawing. Every drawing is checked by our tests: the light follows the switches, nothing shorts, the neutral is never switched, a white wire used as a hot is taped.
- Colors: black and red are hot, white is neutral (unless it's taped as a hot), bare or green is ground. Hot to brass screws, neutral to silver, ground to green.
- 3-way switches are wired many ways, so we don't guess yours: tag the wire on the darker screw (the common) before it comes off, and it goes on the same screw of the new switch.
- Box size: each wire coming in counts once, all the grounds once, the switch or outlet twice (NEC 314.16): 2.00 cu in each for 14 gauge, 2.25 for 12.
The numbers we use
- Wire and breaker
- 14 gauge copper on 15 A, 12 gauge on 20 A (NEC 240.4(D))
- Cable jacket
- white = 14 gauge, yellow = 12, orange = 10 (since 2001; read the print, NEMA)
- Push-in holes
- 14 gauge solid copper only; screws or clamps for 12 (Leviton)
- Box fill
- 2.00 cu in per 14 gauge wire, 2.25 per 12; device = 2; grounds = 1 (NEC 314.16)
- Fan box
- marked for fan support, up to 70 lb (Hunter; NEC 314.27(C))
- Fixture box
- up to 50 lb unless marked for more
- GFCI test
- once a month, TEST then RESET (CPSC)
From the makers' own instructions (Leviton, Lutron, Hunter, Satco, Klein Tools, WAGO, IDEAL), the CPSC, and the NEC as explained by EC&M, IAEI, JLC and the North Carolina fire marshal's office. Code years differ by city: check with your building department. Not yet reviewed by a licensed electrician.
Questions people ask
How do you wire a 3-way switch?
A 3-way switch has one darker screw, the common, and two brass screws, the travelers. Before taking the old one off, tag the wire on the darker screw; it goes on the darker screw of the new switch, and the two other wires go on the brass screws, either way round (Lutron, Fine Homebuilding). With power at the first switch, the power wire goes on that switch's common, a 3-wire cable runs between the switches, and the second switch's common goes to the light.
How do you wire a GFCI outlet?
Power in goes on the LINE screws: black to brass, white to silver. With a second cable, put it on the LOAD screws to protect the outlets after it too, or join it to the LINE wires with short pigtails to protect only this one. If it won't reset, LINE and LOAD are swapped (Leviton).
Which wire goes where on an outlet?
Black (hot) on a brass screw, white (neutral) on a silver screw, bare or green on the green screw (UHMC). Use the screws or the back clamp: the push-in holes take only 14 gauge solid copper (Leviton).
Why is there a white wire on my light switch?
Power goes to the light first and comes down to the switch on a 2-wire cable, so the white is a hot there. It should be wrapped in black tape at both ends; the white must be the wire bringing power to the switch, never the one going back to the light (NEC 200.7(C)(1)).
Do I need a neutral for a smart switch?
Most do: look for a bundle of white wires tied together at the back of the switch box. Without one, use a switch made for no neutral (for example Lutron Caséta PD-6WCL or PD-5WS-DV); never use the bare ground as a neutral.
How do you wire a ceiling fan with two switches?
With a 3-wire cable at the ceiling: the black to the fan's black (the motor), the red to the fan's blue (the light), white to white, and all the grounds together. With one switch, the black goes to both the black and the blue (Hunter).
More apps
More answers
3-way switch wiring · 4-way switch wiring · Light switch wiring · Dimmer switch wiring · Smart switch without a neutral wire
Outlets
How to wire an outlet · How to install a GFCI outlet