Electrical Basics

How to Replace a GFCI Outlet (Line and Load Wiring Explained)

Replace a GFCI outlet safely: turn off the breaker, identify the line and load wires, connect them to the right terminals, then test that it trips and resets.

Short answer

Turn off the breaker and confirm the power is off. Note which cable brings power in (line) and which carries it on to other outlets (load). Connect the line wires to the LINE terminals and the load wires to the LOAD terminals, with ground to the green screw. Then test that the GFCI trips and resets.

Difficulty
Difficulty: Moderate
Time
30–60 minutes
Tools
7 items

Tools & supplies

  • New GFCI outlet (15 or 20 amp to match)
  • Non-contact voltage tester
  • Plug-in GFCI tester (optional)
  • Flat and Phillips screwdrivers
  • Needle-nose pliers
  • Wire stripper
  • Masking tape and a marker
In this guide

A GFCI (ground fault circuit interrupter) outlet cuts the power in a fraction of a second if current leaks somewhere it shouldn’t, such as through water or a person. They wear out, and a GFCI that won’t reset, trips constantly or doesn’t trip when you press Test needs replacing. The job is like replacing a regular outlet, with one important difference: the wires must go on the correct line and load terminals.

Safety: Turn off the breaker for the circuit and confirm the power is off with a non-contact voltage tester before touching any wire. Stop and call a licensed electrician if you find aluminum wiring, scorched or melted insulation, more wires than described here, or anything you’re unsure about. Local rules may require a permit or a licensed electrician for electrical work, so check first.

Line and load, in plain terms

  • Line terminals take power from the breaker panel.
  • Load terminals send protected power on to other outlets downstream.

A GFCI wired backward may seem to work but won’t protect anything, and most newer GFCIs won’t reset at all if line and load are swapped. If only one cable enters the box, it’s the line, and the load terminals stay covered and unused.

Step 1: Check that it really needs replacing

Press Reset firmly, then Test, then Reset again. If it won’t reset, check whether another GFCI upstream has tripped, and whether the breaker is on. See how to reset a GFCI outlet first, because a GFCI that won’t reset sometimes has no power reaching it, not a fault.

Buy a GFCI with the same amp rating as the old one (15 or 20 amps, printed on the face). Use a tamper-resistant model in living areas and a weather-resistant model outdoors, where codes require them.

Step 2: Turn off the power and confirm it’s off

  1. Plug a lamp or tester into the GFCI, or a downstream outlet, and turn off breakers until it goes dark.
  2. Remove the cover plate.
  3. Test every wire in the box with the voltage tester. Test the tester on a live outlet first so you know it works.

Step 3: Remove the old outlet and label the wires

  1. Unscrew the outlet from the box and pull it out gently.
  2. Before disconnecting anything, look at the back. Old GFCIs usually have LINE and LOAD marked next to the terminals. Put a piece of masking tape on each wire and label it “line” or “load” from where it was connected.
  3. Take a photo.
  4. Loosen the terminals and disconnect the wires.

If the old outlet wasn’t a GFCI, or you’re not sure it was wired correctly, use Step 4 to identify the wires.

Step 4: Identify the line wires, if they’re unlabeled

Skip this step if you labeled the wires in Step 3 and only one cable enters the box.

With two cables, you need to find which one brings power from the panel:

  1. Separate the two cables so their bare ends can’t touch each other or the box. Cap each black and white wire end individually with a wire nut.
  2. Turn the breaker on.
  3. Carefully hold the non-contact tester near each black wire without touching any wire. The cable whose black wire makes the tester beep is the line cable.
  4. Turn the breaker off again and confirm with the tester that everything is dead.
  5. Label the line cable’s black and white wires.

If you’re not comfortable working near live wires, stop here and call an electrician.

Step 5: Connect the new GFCI

  1. Peel off the tape covering the LOAD terminals only if you’re connecting load wires.
  2. Connect the line black wire to the brass LINE terminal and the line white wire to the silver LINE terminal.
  3. If there’s a second cable, connect its black wire to the brass LOAD terminal and its white wire to the silver LOAD terminal.
  4. Connect the ground wire (bare or green) to the green screw. If there are two ground wires, join them with a short pigtail wire under a wire nut, and connect the pigtail to the screw.
  5. Many GFCIs have clamp terminals, where the straight wire goes into a hole and the screw tightens a plate on it. Strip the length shown by the gauge on the back.
  6. Tighten every screw firmly and tug each wire to check it’s secure.

Step 6: Install and test

  1. Fold the wires neatly into the box. GFCIs are bulky, so take your time and don’t force it.
  2. Screw the outlet to the box and attach the cover plate.
  3. Turn the breaker on. The GFCI’s indicator light may show it needs resetting.
  4. Press Reset, then test with a lamp. Press Test: the lamp should go out. Press Reset again.
  5. If load terminals are connected, check that the downstream outlets also lose power when you press Test.

If it won’t reset, turn the breaker off and check that the line and load wires aren’t reversed.

When to call an electrician

  • The box has no ground wire, more than two cables, or aluminum wiring.
  • You find scorch marks or a burning smell.
  • The new GFCI trips immediately every time it’s reset, which can mean a ground fault on the circuit.
  • You’re not comfortable identifying the line wires.

Common questions

What happens if line and load are reversed on a GFCI?

Most GFCIs made in recent years won’t reset if they’re wired backward. On older ones, the outlet may work but not protect against shocks. Always connect the wires from the panel to LINE.

Can I replace a regular outlet with a GFCI?

Yes, and it’s a common upgrade in kitchens, bathrooms, laundry rooms, garages and outdoors. If the box has no ground wire, a GFCI can still provide shock protection, but it should be labeled “No equipment ground”. Check local code or ask an electrician.

How long do GFCI outlets last?

They wear out over time and should be tested monthly with the Test button. Replace any GFCI that doesn’t cut the power when you press Test, or won’t reset.

Do I need a GFCI for every outlet in the kitchen?

Codes usually require GFCI protection for kitchen countertop outlets and other areas near water. One GFCI can protect the regular outlets downstream from it through its load terminals. Check your local code.

Bottom line

Turn off the breaker, label which cable is line and which is load, and connect them to the matching terminals with the ground on the green screw. Test that the GFCI trips and resets, and that downstream outlets go off too. If an outlet still has no power, see outlet not working.

Sources and further reading

Back to top