---
title: "Replacing a light switch or outlet safely"
description: "Swap a worn switch or outlet for a modern one, wire it correctly, and know when the job needs a licensed electrician and a permit."
updated: 2026-12-03
minutes: 12
level: Beginner
order: 2
sources:
- https://www.osha.gov/electrical
- https://www.nfpa.org/codes-and-standards/nfpa-70-standard-development/70
- https://www.esfi.org/
- https://www.cpsc.gov/Safety-Education/Safety-Education-Centers/Electrical-Safety
- https://www.ecmweb.com/national-electrical-code/code-basics/article/55400217/key-revisions-to-chapter-2-of-the-2026-nec
- https://www.mikeholt.com/files/PDF/23UNEC1_210.8.pdf
- https://www.legrand.us/ideas/blogs/gfci-outlets-in-kitchen
---
A cracked outlet, a switch that crackles, or a plug that falls out of a loose receptacle are all signs a device needs replacing. Swapping one like for like is one of the most common small electrical jobs. Done carefully it takes 20 minutes. Done carelessly it can start a fire.
Before you start, read the first lesson in this field. Turn off the breaker, lock or tag it, and prove the power is off with the live-dead-live test. Never trust a wall switch to cut power.
## First, check whether you are allowed
Rules vary a lot by place. In many areas a homeowner may replace a device in their own home without a permit. In others, any electrical work needs a licensed electrician or a permit. Ask your local building department.
Stop and call a licensed electrician if you find any of these:
- Aluminum wire (dull silver color). It needs special devices and connectors.
- Cloth-covered wire, crumbling insulation or knob-and-tube wiring.
- Scorch marks, melted plastic or a burning smell.
- More wires in the box than you can identify, or no ground where you expected one.
- You want to add a new outlet, move a switch or add a circuit. That is new work, not a replacement.
## Pick the right replacement
When you replace a device, current code (NFPA 70, the National Electrical Code) generally expects the new one to meet today's rules for that location. Check your local code, but plan on these:
- **Tamper-resistant (TR) outlets**: shutters inside block objects pushed into one slot. Required on replacement outlets in homes.
- **GFCI protection** where code now requires it: kitchens, bathrooms, garages, outdoors, crawl spaces, basements, laundry areas and within 6 feet of a sink, tub or shower. Use a GFCI outlet, or make sure the circuit already has a GFCI breaker or upstream GFCI outlet.
- **AFCI protection** where code now requires it, which covers most living areas. A combination AFCI/GFCI outlet handles both in one device.
- **Weather-resistant (WR) outlets** and an in-use cover outdoors.
- **No ground wire?** Code lets you replace an old two-slot outlet with a GFCI outlet marked "No equipment ground" instead of a grounded three-slot one. Do not add a ground screw jumper to the neutral. That is unsafe and against code.
- **Match the amp rating.** A 15-amp outlet has two vertical slots. A 20-amp outlet has a T-shaped slot. Never put a 20-amp outlet on a 15-amp circuit.
For switches, a modern smart switch is a fine upgrade. Most need a **neutral wire** in the box, so check before you buy.
## How an outlet is wired
A handy memory aid: "white to light" means white goes to the light-colored (silver) screw.
## Replacing an outlet
Turn off the breaker and lock or tag it. Plug in a tester to confirm it is dead, then do the live-dead-live check.Unscrew the cover plate and the two mounting screws. Gently pull the outlet out without touching the screws.Test every wire in the box, including the ones on the other set of screws. A box can have power coming from two circuits.Take a clear photo before you disconnect anything. Note which wires are on which screws, and whether a small metal tab between screws has been snapped off (that means the two halves are split).Disconnect one wire, then connect it to the same position on the new outlet. Form a clockwise hook so tightening the screw pulls the wire in. Avoid the push-in "backstab" holes. Use the screw terminals or the clamp-style back-wire terminals found on better devices.Many devices list a torque value. A loose screw is the most common cause of a hot, failing outlet. Snug the terminals firmly and tug each wire to check.Fold the wires back neatly, screw the outlet to the box so it sits straight, and fit the cover plate.Turn on the breaker. Use your plug-in tester. For a GFCI, press TEST (power should cut) and RESET.A GFCI outlet has LINE and LOAD terminals. Incoming power goes on LINE. If you put it on LOAD, many GFCIs will not reset. Wires going on to protect other outlets go on LOAD. If you are not sure which cable is incoming, stop and ask an electrician.
## Replacing a single-pole switch
A single-pole switch controls a light from one place. It has two brass screws and a green ground screw.
1. Kill and verify power as above.
2. Note the two wires on the brass screws. In most boxes these are hot wires, even if one is white. A white wire used as a hot should be marked with black tape. Add tape if it is missing.
3. Move each wire to the matching screw on the new switch and connect the ground.
4. For a smart switch, follow the maker's diagram. It usually needs line, load, neutral and ground. Connect to the bundle of neutrals with a properly sized wire connector.
If the old switch has three screws plus ground, it is a **three-way switch** (one of two switches for the same light). Mark the odd-colored "common" screw wire with tape before you remove it.
## Common mistakes
- Trusting the wall switch instead of the breaker.
- Testing only one pair of wires in a box with two cables.
- Using the backstab holes, which loosen over time.
- Wrapping a wire counterclockwise, so it squeezes out as you tighten.
- Leaving bare copper showing past the screw. Strip only what the strip gauge on the device shows.
- Skipping the GFCI or AFCI upgrade where code now asks for it.