A water heater anode rod is a metal rod, usually magnesium or aluminum, that corrodes on purpose so the steel tank does not. When it is used up, the tank starts to rust. In some water the rod also reacts with sulfate and makes the hot water smell like rotten eggs. Here is how the rod works, why the smell starts, and what Modesto’s hard water changes.
What does a water heater anode rod do?
A storage water heater is a steel tank lined with glass. The lining is never perfect. There are always small gaps at welds, fittings and openings, and wherever water touches bare steel, the steel can corrode. The anode rod is there to stop that. It screws into the top of the tank and hangs down into the water, and it is made of a metal that corrodes more readily than steel. As long as the rod has metal left, the corrosion happens to it and not to the tank wall.
That is why the rod is called sacrificial. It is a part that is meant to be used up. Penn State Extension’s guide to hydrogen sulfide describes the magnesium rod in a water heater as an anti-corrosion device and warns that removing it “could cause increased corrosion and reduced life of the hot water heater” (Penn State Extension, Hydrogen Sulfide (Rotten Egg Odor) in Water Wells). That warning matters later, because pulling the rod out is the first shortcut people reach for when the water smells.
The practical point is simple. A tank fails when it rusts through, and the rod is what holds that off. Once the rod is gone, the clock on the tank itself starts running.
Magnesium, aluminum and powered rods
Most rods fall into three groups, and each behaves a little differently in the tank.
- Magnesium. The most active metal of the common choices, so it protects the tank strongly. It is also the metal Penn State Extension names in the reaction that makes the rotten-egg smell.
- Aluminum. Often sold as the swap for odor problems. Penn State Extension says replacing the magnesium rod with an aluminum rod “should eliminate the rotten egg odor” in a heater where the rod is the cause.
- Powered (impressed current). A titanium rod that uses a small electric current from a plug-in power supply instead of sacrificing metal. It is not used up the same way, and it is a common choice where the smell keeps coming back. We found no primary source on its performance, so treat it as an option to discuss, not a sure fix.
Some rods are combination rods with a zinc section, and some are flexible, segmented rods made for tanks with little overhead clearance. Which one fits depends on the heater, the water and the space above the tank. Check the manual for your model before choosing a water heater anode rod.
Why does hot water smell like rotten eggs?
The smell is hydrogen sulfide gas. Penn State Extension explains that sometimes hydrogen sulfide “may be noticeable only in the hot water in the home,” and that in that case “chemical reactions within the water heater may be the source.” It goes on to say the magnesium rod “can chemically reduce sulfates to form hydrogen sulfide.” In plain terms, sulfate in the water plus a magnesium rod plus warm, still water in a closed tank can produce the gas.
Bacteria can play a part too. The same Penn State guide describes sulfate-reducing bacteria that “feed on small amounts of sulfur in the water” and thrive where there is little oxygen, which is a good description of the inside of a tank that sits unused. A heater that has been off for a vacation, or a guest bathroom tank that is rarely drawn, is a common place for the smell to show up first.
The useful clue is where you smell it. If only the hot taps smell, the heater is the likely source. If the cold taps smell as well, the cause is more likely in the water supply or the plumbing, and changing the rod will not fix it. Run cold water into a clean glass, step away from the sink, and smell it. Then do the same with hot. That one test sorts most cases before anyone buys a part.
Diagnose the smell in the right order
The most common mistake is buying fixes one at a time before anyone has found the cause. A homeowner swaps the rod, adds a filter, tries a chemical treatment, and still has the smell, because none of those steps was matched to a confirmed cause. A better order looks like this.
- Hot versus cold. Do the glass test above at more than one tap. Cold-side odor points away from the heater.
- Recent changes. Note whether the heater was off, the thermostat was turned down, or the house sat empty. Still, lukewarm water favors the bacteria.
- The rod. If the smell is hot-only, the rod is the next suspect. A plumber can pull it, show you its condition and the type, and suggest a different material.
- Bacteria in the tank. If the smell persists after the rod is addressed, the tank may need to be disinfected. That job involves chemicals and the tank’s controls, so leave it to a professional.
Penn State Extension is also clear that hydrogen sulfide is mostly a nuisance at the levels people notice in tap water. It says the gas is “poisonous and flammable” but that “the human nose can detect it well before it causes health concerns,” and that the bacteria themselves “do not cause human health concerns.” That is useful reassurance for the shower. It is not a reason to ignore a rotten-egg smell near a gas appliance, which is a different problem covered below.
Modesto’s hard water and the anode
The City of Modesto’s 2025 Consumer Confidence Report lists average hardness of 199 mg/L as calcium carbonate, with a range of 33 to 388 mg/L across samples (City of Modesto 2025 Consumer Confidence Report). The same report puts average total dissolved solids at 413 mg/L. On the hardness scale published by Penn State Extension, anything over 180 ppm is “very hard,” so the city’s average sits in that band (Penn State Extension, Water Softening).
The CCR also explains why the number moves. In 2025 the city’s supply was about 40% groundwater and 60% treated surface water, and the report says quality varies with the time of year and the share of well water mixing with surface water. It does not map neighborhoods to sources, so nobody can tell you from the report alone what your street gets. A home test strip or a lab test is the only way to know your own water.
Hard water matters because scale collects in the tank. Penn State Extension notes that scale “can also build up on hot water heaters and decrease their useful life.” We could not fetch a source that gives a replacement interval for rods in water this hard, so we will not quote one. In Modesto, have the water heater anode rod checked rather than assume it is fine.
Water softeners and rod wear
Many Modesto homes add a water softener. Penn State Extension describes a softener as an ion exchange unit that swaps calcium and magnesium for sodium and regenerates its resin with salt brine. Softened water stops most of the scale, which is good for the tank, the fixtures and the heating element. A softener is not a reason to skip rod checks.
A softener also changes nothing about sulfate. If your smell comes from the rod and sulfate, softening alone will not stop it. That is another case where matching the fix to the cause saves money.
How do you know the rod is worn out?
You cannot see the rod without removing it, so most signs are indirect.
- Rusty or discolored hot water. Brown hot water with clear cold water suggests the tank is rusting. ENERGY STAR lists rust in the water among the signs a heater may need replacing (ENERGY STAR, When Should You Replace Your Water Heater).
- Visible corrosion at the fittings on top of the tank. ENERGY STAR names this too.
- A rotten-egg smell on the hot side only, as described above.
- Age. On an older tank that has never had the rod looked at, the rod is likely heavily used.
When a plumber pulls a rod, the reading is visual. A healthy rod still has metal along its length. A spent rod is thin, pitted, or down to its steel core wire in places. If the core wire is showing along much of the length, the rod is no longer protecting the tank well.
Is replacing the rod worth it?
On a younger tank, usually yes. A water heater anode rod is a small part compared with a tank, and a fresh rod keeps protecting the steel. Our water heater age framework puts it this way: repair when the heater is under 8 years old and the fault is minor, replace when it is over 10 years old or a major component fails, and replace when it is over 12 regardless. A worn rod on a 5-year-old tank is a minor fault worth fixing. A spent rod on a 13-year-old tank that already shows rust in the water is a sign the tank’s own life is ending, and money is better put toward the next heater. The guide to how long a water heater lasts explains the framework and how to read a tank’s age.
Rod changes are often harder than they look. The hex on top of an old rod can be seized after years of heat and minerals, and it may take a large breaker bar and a second person to hold the tank still. Forcing it can twist the tank, stress the connections, or damage the fittings. That is a good reason to hand it to a professional, especially on a tank that is already strapped in a tight closet or garage.
Rods, flushing and sediment
The rod and the sediment at the bottom of the tank are related. As the rod corrodes, some of its material ends up in the tank as debris, and in hard water it joins the mineral scale that settles out when water heats. ENERGY STAR notes that sediment can build up inside the tank “in a way that reduces capacity.” When a plumber checks the rod, it is a natural time to look at sediment as well. Our article on flushing a water heater in hard water covers that side, including the popping noise sediment makes.
When to call a professional
The hard safety line comes first. A rotten-egg smell near a gas water heater, furnace or stove, rather than in the water itself, can be a natural gas leak, because the gas utility adds a sulfur-smelling odorant to gas. Do not try to diagnose that yourself. Leave the building right away, do not switch lights or appliances on or off, and call 911 or the gas utility from outside. The same applies to any sign of carbon monoxide: if a carbon monoxide alarm sounds, or people in the home feel dizzy, headachy or sick, get everyone out and call 911 first.
Beyond that, call a professional when:
- the rod’s hex will not turn with steady pressure;
- the smell continues after the rod has been addressed and the tank may need disinfecting;
- the hot water is rusty, or the tank top shows corrosion or a leak;
- the heater is gas-fired and the work would involve the burner, gas valve or venting, which should be diagnosed by a trained technician and not adjusted by a homeowner;
- the heater is electric and the job would involve the wiring, elements or thermostats, which carry household high voltage.
AC Service Modesto can inspect the anode rod, check the tank and its sediment, and tell you whether a rod change or a replacement makes more sense for your heater. Call (209) 439-1859 or see our water heater maintenance service in Modesto. For the wider picture of what goes wrong with tanks in the area, see our guide to water heater problems from hard water.
Frequently asked questions
How do you get the rotten egg smell out of your water heater?
First confirm the smell is in the hot water only. If it is, the usual cause is a magnesium anode rod reacting with sulfate, and Penn State Extension says replacing the magnesium rod with an aluminum one should eliminate the odor. If the smell persists, the tank may need to be disinfected by a professional.
Is it safe to use hot water that smells like rotten eggs?
Penn State Extension says the nose detects hydrogen sulfide well before it reaches levels that cause health concerns, and that the bacteria involved do not cause health concerns. A smell near a gas appliance rather than in the water is different: leave the building and call 911 or the gas utility.
Should I call a plumber if my water smells like rotten eggs?
Yes, if the smell does not clear after a simple check or if the rod needs to come out. A plumber can pull the rod, confirm its type and condition, and decide whether the tank needs disinfecting. Removing the rod and leaving it out is not a fix, because the tank then corrodes faster.
What are the first signs of a water heater going bad?
ENERGY STAR lists visible corrosion, water leaks, rust in the water, reduced hot water supply and rumbling noises. Rust in the hot water often means the anode rod is spent and the tank itself is corroding.
What is the average lifespan of a hot water heater?
It varies with water, use and maintenance. ENERGY STAR’s savings figures assume a 13-year lifespan for ENERGY STAR heat pump water heaters, and its replacement advice starts with tanks more than 10 years old. A healthy anode rod is one of the main things that keeps a tank going.