How to Prevent Water Heater Rust and Corrosion
Learn how to prevent water heater rust with anode rod maintenance, tank flushing, and other proven strategies that extend your water heater's lifespan by years.
Rust Is the #1 Killer of Water Heaters
Most water heaters don't die from mechanical failure — they die from rust. Internal corrosion slowly eats through the steel tank lining until pinhole leaks develop, and at that point, no repair can save it. The entire unit has to be replaced.
The good news: knowing how to prevent water heater rust is straightforward, and a small amount of maintenance can add years to your water heater's life. A tank that might fail at 8 years without maintenance can last 15+ years with proper care. Here's exactly what to do.

Need a plumber? Get free quotes from trusted local plumbers
Are you a plumber? Learn about our partner programHow Corrosion Works Inside Your Tank
Understanding the enemy helps you fight it. Here's what's happening inside your water heater:
- Steel + water + oxygen = rust. Your water heater tank is made of steel, and it's constantly filled with water. That's a recipe for corrosion.
- The glass lining helps — but it's not perfect. Tank manufacturers coat the inside with a vitreous enamel (glass) lining to protect the steel. But this lining develops microscopic cracks during manufacturing, shipping, and the constant expansion/contraction of heating cycles. Water seeps through these cracks and reaches the bare steel.
- Dissolved minerals accelerate the process. Hard water contains calcium, magnesium, and other minerals that create an electrochemical environment that speeds up corrosion.
- Heat makes it worse. Higher water temperatures increase the rate of chemical reactions, including corrosion. Water set to 140°F corrodes a tank faster than water at 120°F.
Left unchecked, this process takes about 8-12 years to eat through a tank. With proper maintenance, you can slow it dramatically.
1. Maintain Your Anode Rod (The Most Important Step)
The anode rod is your tank's primary defense against rust — and it's the single most important maintenance item most homeowners never touch.
What It Does
An anode rod is a metal rod (usually magnesium or aluminum) suspended inside your tank. It works through a process called galvanic corrosion: the rod is made of a metal that's more "reactive" than steel, so corrosive elements in the water attack the rod instead of the tank. It's called a "sacrificial" rod because it literally sacrifices itself to protect your tank.
The Problem
Anode rods are designed to be consumed over time. Once the rod is fully corroded — usually in 3-5 years depending on water quality — there's nothing left to protect the tank, and corrosion shifts to the steel lining. Most homeowners never check or replace the rod, so by the time they notice rusty water, the tank itself may already be damaged.
How to Inspect It
- Turn off the power — circuit breaker (electric) or gas control to "pilot" (gas).
- Turn off the cold water supply valve at the top of the tank.
- Release some pressure — open the T&P relief valve or a hot water faucet briefly, then drain 2-3 gallons from the drain valve at the bottom.
- Locate the anode rod — it's typically accessible through a hex-head bolt on top of the tank (usually 1-1/16" socket). On some models, it's hidden under a plastic cap. Check your owner's manual if you can't find it.
- Unscrew and pull it out — this may require some force. If it's stuck, try tightening it slightly first (a quarter turn clockwise) before loosening. A breaker bar helps with stubborn rods.
- Inspect the condition:
- Good: Mostly intact, some surface corrosion — reinstall and check again in 1-2 years
- Needs replacement: Less than 1/2 inch thick, heavily pitted, or more than 50% corroded
- Overdue: Wire core exposed, rod mostly dissolved, or missing entirely
How Often to Check
- Every 2-3 years in areas with average water quality
- Every 1-2 years in areas with hard water, well water, or high mineral content
- Annually in coastal areas or homes with water softeners (softened water is more corrosive to anode rods)
Choosing a Replacement Rod
- Magnesium: Best protection, corrodes faster. Ideal for homes with soft or moderately hard water. The most common type found in new water heaters.
- Aluminum or aluminum-zinc alloy: Lasts longer than magnesium, good for hard water. Aluminum-zinc versions also help combat sulfur/rotten egg smells caused by bacteria.
- Powered (electronic) anode rod: Uses a small electrical current instead of sacrificial metal. Never corrodes, lasts the life of the water heater. Costs $100-200 but eliminates the need for future rod replacements.
Low-clearance tip: If your water heater is in a closet, under a low ceiling, or in a tight space, look for a flexible or segmented anode rod. These bend or fold so you can remove and install them without needing several feet of clearance above the tank.
2. Flush the Tank Annually
Sediment buildup doesn't just cause popping noises — it accelerates corrosion. Here's how:
- Sediment traps water against the tank floor, creating a constantly moist environment that promotes rust
- Hot spots form where sediment insulates the tank from the heat source, causing localized overheating that weakens the glass lining
- Mineral deposits create an electrochemical environment that speeds corrosion
Flushing your tank once a year removes this sediment before it causes damage. The process takes about 30 minutes:
- Turn off the heat source (breaker or gas control to pilot)
- Connect a garden hose to the drain valve at the bottom of the tank
- Run the hose to a floor drain or outside
- Open a hot water faucet in the house to prevent a vacuum
- Open the drain valve and let the tank empty
- Turn the cold water supply on and off a few times to flush remaining sediment
- Close the drain valve, refill the tank, and restore power
If you have hard water, flush twice a year. The more mineral-heavy your water, the faster sediment accumulates.
3. Set the Right Temperature
Higher water temperatures accelerate corrosion. The recommended setting is 120°F (49°C), which provides comfortable hot water while minimizing the chemical reactions that cause rust.
Every degree above 120°F increases the corrosion rate. If your water heater is set to 140°F or higher, lowering it to 120°F will slow corrosion, reduce energy costs by 3-5% per 10 degrees, and decrease the risk of scalding.
4. Address Water Quality Issues
The water flowing into your tank has a huge impact on how fast corrosion occurs.
Hard Water
Hard water (high in calcium and magnesium) creates more sediment and mineral deposits, which accelerate corrosion. If you have hard water:
- Install a water softener: Removes calcium and magnesium before they enter the tank. This dramatically reduces sediment buildup. However, note that softened water is slightly more corrosive to magnesium anode rods — you may want to switch to an aluminum or powered anode rod.
- Use a sediment filter: An inline filter on the cold water supply line catches minerals before they reach the tank.
Well Water
Well water often contains higher levels of iron, sulfur, and other minerals that are particularly corrosive. If you're on well water:
- Inspect your anode rod annually — well water consumes rods faster
- Consider a whole-house water treatment system
- Flush the tank every 6 months
Low pH (Acidic Water)
Water with a pH below 7 is acidic and significantly more corrosive to metal. This is common with well water in certain regions. A neutralizing filter or chemical feed system can raise the pH to a safe level.
5. Insulate the Tank and Pipes
Tank insulation isn't just about energy savings — it also reduces corrosion in two ways:
- Reduces condensation: In humid environments, condensation forms on the outside of the tank, causing external rust. Insulation keeps the exterior warmer and drier.
- Reduces temperature cycling: Better insulation means the burner or heating element runs less often, which means fewer expansion/contraction cycles on the glass lining — reducing the micro-cracks that let water reach bare steel.
A water heater insulation blanket costs $20-30 and takes 15 minutes to install. Don't cover the top of a gas water heater (the flue needs airflow), the thermostat, or the T&P valve.
Insulating exposed hot water pipes (especially the first 6 feet from the tank) also reduces heat loss and prevents condensation on the pipes.
6. Check the T&P Relief Valve
The temperature and pressure relief valve is a safety device, but it's also relevant to corrosion prevention. If the valve is dripping or releasing water regularly, it can indicate:
- Excess pressure in the tank, which stresses the lining and accelerates wear
- Thermal expansion issues that cause repeated pressure spikes
- Overheating that accelerates corrosion
Test the T&P valve once a year by lifting the lever briefly — water should flow freely and stop when you release it. If it drips continuously or doesn't release at all, replace it.
7. Keep the Area Around the Heater Dry
External corrosion is preventable. Water heaters in damp basements, humid utility rooms, or areas prone to condensation rust from the outside in. To prevent this:
- Ensure the area has adequate ventilation
- Use a dehumidifier in damp basements
- Clean up any water leaks or spills around the base promptly
- Keep the tank off a bare concrete floor if possible — use a water heater pan or platform
- Inspect the exterior periodically for rust spots, especially at the base and around fittings
Annual Maintenance Checklist
Here's a simple yearly routine that takes about an hour and can double the life of your water heater:
- Flush the tank — drain completely, flush with cold water until it runs clear
- Inspect the anode rod — replace if more than 50% corroded
- Test the T&P relief valve — lift the lever, confirm water flows and stops
- Check the temperature setting — confirm it's at 120°F
- Inspect for leaks — check all connections, valves, and the base of the tank
- Look for external rust — check the tank body, fittings, and pipe connections
- Clear the area — remove any clutter, flammable materials, or moisture sources from around the unit
When It's Too Late for Prevention
If you're already seeing signs of tank failure — persistent rusty water, visible tank corrosion, or leaks from the tank body — prevention measures won't reverse the damage. Once the steel tank is compromised, replacement is the only option.
That said, knowing how to prevent water heater rust on your next unit means you won't be back in the same situation in 8 years. Apply these maintenance habits from day one and your new water heater will last significantly longer.
How Old Is Your Water Heater?
Age is the biggest risk factor for corrosion. If you don't know when your water heater was manufactured, use our free Water Heater Age Checker to find out — just enter the brand and serial number. Units over 10 years old without regular anode rod maintenance are at high risk for internal corrosion, even if they look fine on the outside.