How to Replace a Water Heater Anode Rod (DIY Guide)

May 13, 2026

The anode rod is a $15-$30 part that sacrifices itself to protect your water heater tank from corrosion. Once it's used up, the tank itself starts rusting... and once the tank rusts through, you're buying a new water heater ($800-$2,500 installed). Replacing the anode rod every 3-5 years is one of the cheapest ways to extend your water heater's life by years. And it's a straightforward DIY job.

What the Anode Rod Does (And Why It Matters)

Your water heater tank is made of steel, which rusts when exposed to water. The anode rod is a metal rod (usually magnesium or aluminum) suspended inside the tank. Through a process called galvanic corrosion, the rod corrodes instead of the tank walls.

Think of it as a bodyguard for your water heater... it takes the hit so the tank doesn't have to. But once the rod is mostly dissolved, the tank becomes the target. A depleted anode rod is the #1 reason water heaters fail before their rated lifespan.

Most tanks come with a magnesium anode rod from the factory. Magnesium provides better protection but dissolves faster (3-4 years in most water). Aluminum rods last longer (4-5 years) but provide slightly less protection. If your water is softened, anode rods dissolve faster because the salt is more corrosive... check yours every 2 years with softened water.

Tools and Parts You Need

Parts: - Replacement anode rod ($15-$30 at any hardware store). Match the thread size to your tank... most residential tanks use a 3/4" NPT thread. Measure your ceiling height too. Standard rods are 44" long. If you have low ceilings above the water heater, get a flexible/segmented rod that bends during installation.

Tools: - 1-1/16" socket (the most common anode rod hex size) - Socket wrench with a long breaker bar or a 1/2" drive ratchet - Garden hose - Pipe thread sealant tape (Teflon tape) - Possibly a cheater pipe (a length of pipe to slide over the wrench handle for extra leverage)

The anode rod hex nut is often extremely tight from heat cycling and corrosion. A standard ratchet might not be enough... the breaker bar or cheater pipe makes this much easier. Some people use an impact wrench, which works great if you have one.

Step 1: Turn Off the Water Heater

For a gas water heater: turn the gas control valve to "Pilot" or "Off." You don't need to turn off the gas supply line, but turning to Pilot ensures the burner won't fire while you're working.

For an electric water heater: flip the breaker at the electrical panel. Electric water heaters have exposed heating elements... you do not want these energized while you're working on the tank.

Turn off the cold water supply valve at the top of the tank (turn it clockwise until it stops). This prevents new water from flowing in while you work.

Step 2: Relieve Pressure and Drain Some Water

Open a hot water faucet somewhere in the house (a bathroom sink works fine). This breaks the vacuum in the tank and relieves pressure.

Connect a garden hose to the drain valve at the bottom of the tank. Drain about 2-3 gallons of water... you don't need to drain the whole tank, just enough to drop the water level below the top where the anode rod sits. This takes about 2-3 minutes.

Warning: this water is hot. Point the hose outside or into a floor drain. Don't drain into a bucket and carry it... that's how people get scalded.

If the drain valve is clogged or stuck (common on older tanks), you can skip the partial drain. There will be some water spillage when you remove the rod, but a towel and bucket can handle it.

Step 3: Find and Remove the Old Anode Rod

The anode rod screws into the top of the tank. On most water heaters, it's a visible hex head on the top of the tank. On some models, it's hidden under the top cover plate or even shares the hot water outlet fitting.

Check your water heater's manual if you can't find it... or look up the model number online. The hex head is typically 1-1/16" across.

Place your 1-1/16" socket on the hex head. Use the breaker bar for leverage. You may need someone to hold the tank steady while you turn, because the torque required can be significant... especially if the rod has never been replaced.

Turn counterclockwise to loosen. The first half-turn is the hardest. Once it breaks free, you can switch to the ratchet and unscrew it the rest of the way by hand.

Pull the old rod straight up out of the tank. Inspect it... if it's heavily corroded (less than 1/2" diameter remaining, or just a thin wire core), it was due for replacement. If it looks mostly intact, you caught it early... which is ideal.

Step 4: Install the New Anode Rod

Wrap the threads of the new anode rod with 6-8 wraps of Teflon tape (pipe thread sealant tape). Wrap clockwise so it doesn't unravel when you thread the rod in.

Lower the new rod straight down into the tank opening. Thread it in by hand first to make sure it's not cross-threaded. Then tighten with the socket wrench until snug... you want it tight enough to seal but don't go crazy. About 1/2 turn past hand-tight is plenty.

If you bought a flexible/segmented rod for low ceiling clearance, feed it in section by section. These rods have segments connected by wire or cable... they bend to fit through tight spaces and hang straight once inside the tank.

Step 5: Refill and Restart

Close the drain valve at the bottom of the tank. Turn the cold water supply valve back on. You'll hear the tank filling.

Leave that hot water faucet you opened earlier running. When water starts flowing steadily from that faucet (no more sputtering air), the tank is full. Close the faucet.

For gas water heaters: turn the gas control back to your normal temperature setting (usually 120-degrees F). The pilot light should still be lit if you only turned to Pilot. If you turned to Off, you'll need to relight the pilot.

For electric water heaters: flip the breaker back on. Important... make sure the tank is completely full before restoring power. Running an electric heating element in an empty or partially empty tank burns out the element immediately.

Check around the anode rod hex nut for leaks. If it drips, tighten another 1/4 turn. A tiny drip that stops within an hour is normal... the Teflon tape is seating itself.

How Often to Check and Replace

Check the anode rod every 2-3 years by pulling it out and inspecting it. If more than 50% of the rod material is gone (you can see the steel core wire), replace it. If the rod is mostly intact, put it back and check again in a year.

Factors that speed up anode rod consumption:

- Softened water (the salt accelerates corrosion... check every 2 years) - High water temperatures (above 130-degrees F) - Heavy hot water usage (large family, frequent long showers) - Acidic well water

A water heater tank that gets regular anode rod replacements can last 15-20 years. The same tank without replacements often fails at 8-10 years. At $20-$30 per rod every 3-5 years, that's $60-$150 in total parts cost to potentially double your water heater's lifespan. It's one of the best maintenance ROIs in the entire house.

Related Replacement Guides

Related Guides