What an outlet box is and why you might need to replace it
An outlet box (also called an electrical box or receptacle box) is the plastic or metal container mounted inside your wall that holds the outlet itself. The outlet—the part you plug things into—screws to the front of this box. Over time, boxes crack, break, or become damaged by water or impact, and when that happens, the outlet no longer sits flush against the wall or the box no longer safely contains the wiring inside.
Replacing an outlet box is a straightforward job if the power is off and you follow the steps in order. You will need to remove the old box, disconnect the wires, install a new one, and reconnect everything. This is different from replacing just the outlet itself—you are replacing the container that holds it.
Key Takeaways
- Turn off power at the breaker before you touch anything inside the outlet box, and test the outlet with a voltage tester to confirm power is off.
- Unscrew the outlet from the old box, disconnect the three wires (black, white, and bare copper), and note which wire goes where before you remove them.
- Remove the old box by unscrewing it from the stud or cutting it out if it is nailed, then install the new box at the same depth so the outlet will sit flush with the wall.
- Reconnect the wires to the new outlet in the same order they were connected before, then screw the outlet into the new box and turn power back on.
- If you are uncomfortable working with live wires or the box is damaged in a way that makes the wiring hard to access, call a licensed electrician.
Turn off power and confirm it is off
Go to your breaker panel and flip the breaker that controls the outlet you are replacing. If you are not sure which breaker it is, flip the breaker and have someone test the outlet by trying to turn on a lamp plugged into it. Once you know the right breaker, flip it to the off position and leave it off for the entire job.
After the breaker is off, use a voltage tester (a handheld device that costs $10 to $20 at any hardware store) to touch both the hot slot and the neutral slot of the outlet. The tester should show no power. This is the most important safety step—never skip it. Even if the breaker is off, old wiring or a mislabeled breaker can leave power in the box.
Remove the outlet from the old box
Unscrew the two screws that hold the outlet to the front of the box. The outlet will pull out slightly. You will see three wires connected to the back of the outlet: a black wire (hot), a white wire (neutral), and a bare copper wire (ground). Take a photo of the connections before you touch anything, or write down which wire is screwed to which terminal on the outlet.
Loosen the terminal screws on the back of the outlet and pull each wire free. Set the outlet aside. The wires should still be inside the box, held in place by the box itself. Do not let them fall back into the wall cavity.
Remove the old outlet box
Look at how the old box is fastened to the wall stud. If it is screwed on, unscrew it. If it is nailed, you have two options: carefully pry the nails out with a flat pry bar, or use a drywall saw to cut the box out of the drywall and remove it in pieces. Cutting is faster if the nails are stubborn, but it leaves a larger hole that you will need to patch later.
Once the box is out, check the wires for damage. If the insulation is cracked, burned, or missing, the wires need to be replaced—call an electrician. If the wires look fine, you can proceed with the new box.
Install the new outlet box at the correct depth
A new outlet box comes with mounting brackets or screw holes. The key is to install it so the front edge of the box sits at the same depth as your finished wall surface (usually drywall). If the box sits too far back, the outlet will not sit flush. If it sits too far forward, the outlet will stick out.
Hold the new box in the opening and align it with the stud. If the old box was screwed on, use the same screw holes. If you cut the old box out, you may need to screw the new box to the stud or use a retrofit box (a box with wings that clamp to the drywall from inside the wall). Retrofit boxes are easier to install in an existing hole because they do not require a stud. Screw or clamp the box firmly so it does not move when you push on it.
Reconnect the wires to the new outlet
Take the three wires and reconnect them to the new outlet in the same order they were connected to the old one. The black wire goes to the brass terminal, the white wire goes to the silver terminal, and the bare copper wire goes to the green terminal. Loosen each terminal screw, insert the wire, and tighten the screw so the wire is held firmly but not crushed.
Push the outlet carefully into the box. It should slide in smoothly without bending the wires. Screw the outlet to the front of the box with the two mounting screws. The outlet should sit flush against the wall with no gaps.
Turn power back on and test
Go back to the breaker panel and flip the breaker back to the on position. Use your voltage tester again to confirm power is now reaching the outlet. Plug in a lamp or phone charger to make sure the outlet works. If the outlet does not work, turn the breaker back off and check that all three wires are connected tightly to the correct terminals.
If you have done everything correctly, the outlet should work normally. You can now install a cover plate over the outlet if one was removed, or install a new one if the old one was damaged.
When to call an electrician
Call a licensed electrician if the wires inside the box are damaged, if you are not confident using a voltage tester, or if the outlet does not work after you have reconnected everything. Also call if the box is in a wet location (like a bathroom or kitchen) and you are not sure whether it is a GFCI-protected circuit—an electrician can confirm this and install the right type of outlet if needed.
Electrical work is not dangerous if you follow the steps and confirm power is off, but it is also not something you should guess your way through. If anything feels uncertain, it is worth the cost of a professional visit.
Frequently Asked Questions
Can I use the same outlet in the new box?
Yes, if the old outlet is not damaged. You can unscrew it from the old box and screw it into the new one. If the outlet is cracked, burned, or loose, replace it with a new one of the same type (15-amp or 20-amp, depending on your circuit).
What if the wires are too short to reach the new box?
If the new box is in a slightly different position and the wires do not reach, you will need to extend them. This requires a junction box and wire connectors, and it is a job for an electrician. Do not stretch the wires or force them into the box.
Do I need a special box for a bathroom or kitchen outlet?
Bathrooms and kitchens require GFCI protection, but this can come from a GFCI outlet or a GFCI breaker. The box itself is the same. If you are unsure whether your circuit has GFCI protection, an electrician can check and install the right outlet type if needed.
What is the difference between a plastic box and a metal box?
Plastic boxes are lighter and cheaper, and they work fine for most homes. Metal boxes are more durable and required in some older homes or commercial buildings. Either type works the same way—the outlet screws to the front and the wires connect to the back.
Can I install the box deeper in the wall to hide the wires?
No. The box must sit flush with the finished wall surface so the outlet sits flush too. If you push the box too far back, the outlet will stick out and look wrong, and it may not be safe. Install the box at the correct depth from the start.