How to Replace an Electrical Outlet
Replacing a worn receptacle is one of the more approachable electrical tasks, and a receptacle that no longer grips a plug firmly is genuinely worth changing, since loose contacts arc and heat. But there's a wrinkle that catches almost everyone: under the current code, replacing a receptacle is not a like-for-like swap. There is no grandfather clause. If the location requires GFCI, AFCI, tamper-resistant, or weather-resistant protection today, the replacement has to provide it, even though the old one didn't.
Before Anything Else: Safety and Scope
This is 120-volt work with real consequences. A few conditions mean stopping and calling a licensed electrician rather than proceeding:
- You find aluminum branch wiring, scorch marks, melted insulation, or a burning smell.
- The box is metal and ungrounded, or you can't identify a grounding conductor.
- The wiring is knob-and-tube, cloth-insulated, or brittle enough to crack when moved.
- More than two cables enter the box and you can't work out the configuration.
- The receptacle is on a circuit you can't positively identify and shut off.
Many jurisdictions also require a permit for electrical work, and some restrict it to licensed electricians entirely. Check locally before starting.

The Code Upgrades You Can't Skip
NEC Section 406.4(D) governs receptacle replacements, and it's the part homeowners and even some contractors miss. The requirement is location-based: whatever protection the current code requires at that spot, the replacement must deliver.
|
If the location requires... |
The replacement receptacle must be... |
|---|---|
|
GFCI protection (kitchens, baths, garages, outdoors, laundry, basements) |
GFCI protected, by a GFCI receptacle or upstream GFCI breaker |
|
AFCI protection (most living areas and bedrooms) |
An AFCI receptacle, downstream of one, or on an AFCI breaker |
|
Tamper resistance (most dwelling receptacles) |
Listed tamper resistant |
|
Weather resistance (damp and wet locations) |
Listed weather resistant, with an in-use cover |
So swapping a plain outlet in a garage, basement, laundry room, or within reach of a sink means installing GFCI protection at the same time. The code also requires AFCI and GFCI replacement receptacles to be installed in a readily accessible location, so a GFCI tucked behind a washing machine where you can never reach the test button will fail inspection.
The special case: ungrounded two-wire outlets
Older homes often have two-wire circuits with no equipment grounding conductor. You cannot simply install a modern three-prong receptacle, because that creates a false ground and a real hazard. The code gives three legitimate options: replace with another two-prong non-grounding receptacle, replace with a GFCI receptacle labeled “No Equipment Ground,” or install a receptacle downstream of a GFCI and label it “GFCI Protected” and “No Equipment Ground.” The labels come with the device and are not optional.

What You'll Need
The correct receptacle (matching the circuit amperage, 15A or 20A), a non-contact voltage tester plus a plug-in receptacle tester, insulated screwdrivers, wire strippers, needle-nose pliers, and a wall plate. Have wire connectors on hand in case you need to pigtail, and a box extension ring if the box turns out to be crowded or set back behind the wall surface.
Step by Step
1. Kill the power and prove it's dead
Switch off the breaker feeding the outlet. Test the receptacle with a non-contact tester or plug-in tester, then test again after removing the cover plate, because a single box sometimes contains conductors from two different circuits. Never rely on the breaker label alone.
2. Document before you disconnect
Photograph the wiring exactly as you found it. This takes five seconds and saves an hour of guessing later, particularly where a red wire, a switched half, or multiple cables are involved. Note which screws each conductor lands on.
3. Remove the old device
Unscrew the mounting screws and pull the receptacle out gently. Loosen the terminal screws to free the conductors. If the old device used push-in back-stab connections, there's usually a release slot beside each hole; insert a small screwdriver to free the wire rather than yanking it.
4. Inspect the conductors
Check for nicked, blackened, or brittle insulation and for burnt copper. Cut back and re-strip any damaged ends if there's enough slack, and stop and call an electrician if you find scorching or melted insulation, since that indicates a fault that a new outlet won't fix.
5. Wire the new receptacle
|
Wire |
Terminal |
Notes |
|---|---|---|
|
Black (hot) |
Brass screw |
The darker screws, usually right side |
|
White (neutral) |
Silver screw |
The lighter screws, usually left side |
|
Bare or green (ground) |
Green screw |
Always terminate; never leave it loose |
|
Red (switched or second circuit) |
Depends on configuration |
Photograph before disconnecting |
Use the screw terminals, not the back-stab holes. Push-in connections rely on a small spring contact and are a well-known source of loose, arcing, heat-generating joints over time. Wrap the conductor clockwise around the screw so tightening pulls the loop closed, strip only about three quarters of an inch so no bare copper shows outside the terminal, and tighten firmly. Some quality devices offer back-wire clamp terminals, where a plate is tightened onto the wire by the screw; those are excellent and quite different from cheap back-stabs.
Where two cables enter the box and the receptacle is passing power downstream, it's better practice to pigtail: join both blacks and a short lead to the brass screw, and both whites and a lead to the silver screw. That way a failed device doesn't interrupt the rest of the circuit.
6. Check box fill before folding it in
Conductors, devices, and clamps all count toward a box's legal capacity, and an overstuffed box crushes insulation and traps heat. If the wires won't fold in without force, the answer is a larger device box or an extension ring, not brute force. Fold the conductors accordion-style behind the device rather than crumpling them.
7. Mount, test, and verify
Seat the receptacle square in the box, tighten the mounting screws, and fit the wall plate. Restore power and test with a plug-in receptacle tester, which confirms correct polarity and grounding. If you installed a GFCI, press TEST and confirm it trips and resets. Reversed hot and neutral is the most common DIY error and the tester will catch it immediately.
Common Mistakes
- Using back-stab connections instead of screw terminals, which is the leading cause of loose, arcing receptacles.
- Reversing hot and neutral, which energizes parts of a device that should be neutral. Black goes to brass.
- Skipping the required upgrade, and installing a plain outlet where the code now requires GFCI, AFCI, or tamper resistance.
- Installing a three-prong receptacle on an ungrounded circuit, which creates a false sense of safety.
- Overfilling the box or leaving bare copper exposed outside a terminal.
- Not testing afterward, since a plug-in tester costs very little and catches most errors instantly.

The Bottom Line
Replacing an outlet is mechanically simple and legally more demanding than most people expect. Kill the power and prove it's dead, photograph the wiring, use screw terminals rather than back-stabs, respect box fill, and test with a plug-in tester before you walk away. Above all, remember that the replacement has to meet today's requirements at that location, which usually means a tamper-resistant device and often GFCI or AFCI protection. When the box holds something you don't recognize, or the wiring looks damaged, that's the moment to hand it to a licensed electrician.