Light switch wiring
A single-pole light switch takes the two insulated wires on its two brass screws, either way round, and the bare or green wire on the green screw. If two cables come into the box, the power is at the switch: the blacks go on the switch and the whites are tied together at the back, never on it. If only one cable comes in and its white wire is on the switch, the power is at the light: that white is a hot and gets black tape all the way around it, at both ends (UHMC; NEC 200.7(C)(1)).
Power comes into the switch box
Two cables in the box. The whites spliced at the back are the neutral a smart switch needs.
Switch box
Power at the light (one 2-wire cable)
The older switch loop. The white taped black brings power down to the switch; the black takes it back to the light.
Switch box
Light box
Power at the light (one 3-wire cable)
Newer houses: black and red on the switch, the white capped in the box as a neutral for later (JLC; NEC 404.2(C)).
Switch box
Step by step
First
- Turn off the breaker. A wall switch off is not enough. Put tape or a note on the breaker so nobody turns it back on.
- Prove it's dead: check your tester on an outlet you know is live, test every wire in the box, then check the tester on the live outlet again (Klein). A voltage pen alone isn't proof: use a plug-in or two-probe tester where you can.
- Take a photo of the wires before you move any of them.
Then
- Unscrew the plate and the switch and pull it out, wires still on.
- Move one wire at a time to the same spot on the new switch: the two insulated wires on the two brass screws (either way round), the bare or green on the green screw.
- A white wire on the switch is a hot here: wrap black tape all the way around it, at the switch and at the light (UHMC).
- Use the screw or the back clamp for 12-gauge wire: the push-in hole takes 14-gauge solid copper only (Leviton).
- Fold the wires in, screw the switch and plate on, breaker on, test.
Stop and call an electrician
- Wires that test live with the breaker off: stop and call an electrician (Leviton).
- Aluminum wire (dull silver, or "AL" on the cable): a fire risk at outlets and switches, don't touch it yourself (CPSC).
- Cloth-covered wires on porcelain knobs or tubes (knob-and-tube).
- Scorched, melted or brittle insulation, or a plate that's warm to the touch (CPSC).
- A 3-wire cable whose black and red come from two breakers sharing one white (a shared neutral).
- Wires that don't match any of these diagrams, or you can't tell which is which.
From Leviton and Lutron instruction sheets, UHMC and JLC, the CPSC, and the NEC as explained by EC&M, IAEI and JLC. Code years differ by city. · Not yet reviewed by a licensed electrician