⚡ Quick Summary
- Hot water only smells = the water heater is the source, almost without exception
- Both hot and cold smell = the problem is in the supply (well, storage tank, or municipal)
- Odor strongest after long idle periods = sulfur-reducing bacteria growing in the tank
- Odor worsened after recent anode replacement = wrong anode material was installed for your water chemistry
- Increasing heater temperature to 140°F temporarily suppresses bacteria — but scald risk requires caution
The smell is hydrogen sulfide (H₂S) — the same gas that gives rotten eggs their odor. Inside a water heater, it forms one of two ways: a chemical reaction between the sacrificial anode rod and sulfate minerals in the water, or biological activity from sulfur-reducing bacteria (SRB) that thrive in the warm, oxygen-poor environment of a water heater tank.
The first diagnostic question is straightforward and resolves the diagnosis immediately.
The First Test: Hot Only or Both?
🔥 Only Hot Water Smells
The Water Heater Is the Source
The chemical reaction or bacterial activity is happening inside the tank. Cold water passes through the heater and picks up the odor; the supply itself is clean. This is the most common scenario.
Continue in this guide — the causes and fixes below all apply to this case.
💧 Both Hot and Cold Smell
The Supply Is the Source
The odor is in the incoming water before it reaches the heater. Common in well-water homes with naturally high sulfate content, or when a storage tank or treatment system has bacterial contamination.
The water heater is not the problem. Test and treat the supply water source or well system.
Why It Forms Inside the Heater
1
Magnesium Anode Reacting With Sulfate-Rich or Softened Water
Most Common
Every tank water heater contains a sacrificial anode rod — typically magnesium or aluminum — that corrodes intentionally to protect the tank lining. When water is high in sulfates or has been softened (softening increases reactivity), magnesium anodes release electrons that reduce sulfate ions (SO₄²⁻) to hydrogen sulfide gas (H₂S). The reaction is purely chemical and intensifies with softer or sulfate-rich water.
Pattern: odor present consistently; worsens after water softener was installed or adjusted; well water homes are especially prone.
2
Sulfur-Reducing Bacteria (SRB) Growing Inside the Tank
Very Common
SRB are anaerobic bacteria that metabolize sulfate and produce H₂S as a byproduct. They thrive in the oxygen-poor, warm interior of water heater tanks — particularly in sediment at the bottom, which provides both food and shelter. Homes where the heater operates below 120°F, or where the heater sits unused for extended periods, create ideal conditions for bacterial colonization.
Pattern: odor strongest after the heater has been idle overnight or after vacation; improving at higher thermostat settings; common in vacation homes and seasonal properties.
3
Sediment Supporting Bacterial Colonies
Common in Older Heaters
Mineral sediment accumulating at the bottom of the tank creates warm, anaerobic pockets where SRB colonies can establish. Even if the main tank water is adequately hot, the sediment layer may remain at a lower temperature where bacteria survive. Annual flushing removes sediment and disrupts these bacterial environments.
Pattern: odor combined with popping or rumbling sounds from the heater; heater has not been flushed in several years.
4
Wrong Anode Material for Your Water Chemistry
After Anode Replacement
If odor appeared or worsened after a recent anode replacement, the installed anode is likely the wrong material for your water chemistry. Magnesium anodes react strongly with softened or high-sulfate water. In these cases, an aluminum-zinc anode or a powered (impressed current) anode eliminates the chemical reaction entirely without producing H₂S.
Pattern: odor began or significantly increased immediately after a plumber or homeowner replaced the anode rod.
5
Low Operating Temperature
Easy to Check
Sulfur-reducing bacteria are suppressed at temperatures above approximately 140°F and killed at sustained high temperatures. Heaters set below 120°F — sometimes done to reduce scalding risk or energy use — create conditions where SRB can thrive year-round. Increasing thermostat temperature is a quick diagnostic test: if odor improves or disappears within 24 hours, bacteria are confirmed as the cause.
Pattern: odor improves when thermostat is temporarily raised; heater thermostat confirmed below 120°F.
Scald Risk at Elevated Temperatures
Temporarily raising the thermostat above 120°F to suppress bacteria is a valid diagnostic and treatment step, but water at 140°F can cause serious burns in under 5 seconds. If children, elderly residents, or anyone with reduced sensation uses the hot water, install a thermostatic mixing valve at the heater outlet before raising the setpoint. Turn off the thermostat increase after 24–48 hours and sanitize the tank rather than operating long-term at scalding temperatures.
Symptom Pattern Quick Reference
| What You Observe | Most Likely Cause | First Action |
|---|---|---|
| Hot only smells; cold is odor-free | Anode reaction or SRB inside the heater | Raise thermostat for 24 hrs; note whether odor improves |
| Both hot and cold smell | Supply-side contamination (well, storage tank) | Test water supply; the heater is not the problem |
| Smell strongest first thing in the morning | SRB activity during overnight stagnation | Tank sanitization + thermostat adjustment |
| Odor began after anode replacement | Wrong anode material for water chemistry | Replace magnesium anode with aluminum-zinc or powered anode |
| Odor varies with temperature setting | SRB confirmed as cause | Raise temperature to 120°F minimum; sanitize tank |
| Odor plus popping or rumbling sounds | Sediment bed supporting bacterial colonies | Flush heater; professional service for heavy sediment |
| Well-water home; consistent sulfur smell | Magnesium anode reacting with high-sulfate well water | Replace with aluminum-zinc or powered anode; consider well treatment |
| Rust or discoloration with odor | Internal tank corrosion — heater near end of life | Call a plumber immediately; replacement likely needed |
J.G.
From the Expert
"The anode-odor connection is one of the most frustrating things for homeowners because it makes no sense at first. You replace the anode — which is supposed to be good maintenance — and now the water smells worse than before. What happened is the fresh magnesium anode is very reactive, especially in softened water, and it immediately starts producing hydrogen sulfide. The fix is switching to an aluminum-zinc anode, which still protects the tank but does not produce the H₂S reaction. Or a powered anode, which protects the tank without any sacrificial metal at all. I always ask what kind of water people have before I recommend an anode material. In a softened-water home, I never install a magnesium anode."
— J.G., Licensed Plumber · 50+ Years Commercial & Residential Service Work
What Actually Fixes It
The correct fix depends on the confirmed cause:
- Anode reaction (magnesium + softened/sulfate-rich water): Replace the magnesium anode with an aluminum-zinc alloy anode, which produces far less H₂S, or install a powered (impressed current) anode that protects the tank without any sacrificial metal chemistry at all.
- SRB bacterial contamination: Sanitize the tank with a hydrogen peroxide flush or diluted chlorine solution (professional procedure), then maintain temperature at or above 120°F and flush annually to remove sediment that shelters bacteria.
- Sediment accumulation: Flush the heater to remove sediment. For heavy accumulation that flushing cannot clear, professional descaling or heater replacement may be required.
- Low thermostat setting: Raise thermostat to minimum 120°F. If scalding risk exists for occupants, install a thermostatic mixing valve at the outlet to deliver safe-temperature water while maintaining the tank at bacterial-suppression temperature.
- Odor returns rapidly after treatment: Supply water may have very high sulfate content. Water testing and upstream treatment (filtration, well chlorination) may be needed in addition to anode correction.
How Serious Is It?
Level 1 — Nuisance
Mild anode-related odor. Heater functioning normally. Anode material switch resolves it.
Level 2 — Moderate
SRB present or significant sediment. Requires sanitization and anode evaluation. Schedule professional service.
Level 3 — Serious
Rust or discoloration with odor; odor returns immediately after treatment; anode port damaged. Possible tank failure. Call a plumber.
What You Can Do vs. When to Call
✓ Safe to Do Yourself
- Confirm the odor is hot-water only (run cold at multiple fixtures)
- Note whether odor is worst after overnight or vacation stagnation
- Check and adjust thermostat setting (target minimum 120°F)
- Flush several gallons from the heater drain valve and observe sediment output
- Document whether odor changed after any recent service or anode replacement
✗ Requires a Licensed Plumber
- Anode rod removal and replacement — requires proper tools and water/power shutoff
- Tank sanitization with hydrogen peroxide or chlorine flush
- Powered anode installation — electrical connection required
- Any situation where rust, discoloration, or T&P discharge accompanies the odor
- Anode port that is seized or corroded — do not force
Shut Down and Call Immediately If You See
Rust-colored or discolored hot water accompanying the odor · T&P (temperature and pressure relief) valve discharging · Visible corrosion or leaking at fittings or the tank body · Anode port that is deformed or seized. These indicate internal tank corrosion that may require emergency replacement. Do not delay.
Prevention
- Match anode material to your water chemistry. If you have softened water or well water with high sulfates, use an aluminum-zinc anode or a powered anode from the start.
- Maintain tank temperature at or above 120°F to suppress sulfur-reducing bacteria year-round.
- Flush the heater annually to remove sediment that creates bacterial habitat and reduces efficiency.
- Inspect the anode every 2–3 years and replace when it has been consumed to less than half its original diameter.
- Run hot water regularly in vacation homes or seasonal properties — or set heaters to vacation mode, not complete shutdown, to prevent bacterial colonization during extended idle periods.
Frequently Asked Questions
Is the rotten egg smell in hot water dangerous?▾
At the concentrations produced inside a residential water heater, hydrogen sulfide in hot water is generally not a health hazard for typical household use. However, H₂S is a toxic gas at higher concentrations, and if the smell is extremely strong — particularly in confined spaces like a utility room or basement when water is running — ventilate the area. The primary concerns are water quality and heater condition: persistent odor indicates a chemical or bacterial issue that warrants correction, and rust or discoloration accompanying the odor can indicate advanced corrosion that compromises the heater. The odor itself is typically an indicator issue rather than an acute safety emergency.
Why does the smell come back so quickly after I flush the heater?▾
Flushing removes sediment but does not eliminate the anode reaction or kill bacteria throughout the tank. If your water has high sulfates or has been softened, a magnesium anode will continue producing H₂S as long as it is in the tank. Flushing provides temporary improvement but the cause (wrong anode material or active bacterial colony) is still present. The lasting fix is anode replacement with the correct material for your water chemistry, combined with a tank sanitization procedure to address any bacterial colonization. Flushing alone rarely provides a permanent solution.
Can I just remove the anode rod to stop the smell?▾
This is a common but damaging approach. The anode rod exists to protect the steel tank lining from corrosion — without it, the tank will corrode from the inside and fail, often within 1–3 years depending on water chemistry. Removing the anode also voids most manufacturer warranties. The correct solution is replacing the magnesium anode with a material that does not produce H₂S in your water conditions — aluminum-zinc alloy or a powered (impressed current) anode. Both protect the tank without generating odor.
What is a powered anode and does it really work?▾
A powered anode (also called an impressed current anode) uses a small electrical current to protect the tank instead of a sacrificial metal rod. Because there is no magnesium or aluminum reacting with sulfates, no H₂S is produced. It requires a 120V outlet near the heater and a small plug-in unit. Powered anodes are the most effective long-term solution for homes with softened water or high-sulfate water where anode-related odor keeps recurring. They cost more upfront than a replacement rod but last the life of the heater with no replacement cycles.
My water smells fine until I run the hot water for a few minutes. Why?▾
This suggests the H₂S is concentrated in the upper portion of the tank or at the outlet, rather than throughout the water supply. This is more consistent with an anode reaction at or near the outlet zone, or with a localized bacterial concentration near the dip tube or outlet area. The first water drawn from the heater — which has been sitting longest — carries the highest odor concentration. As fresh water enters and mixes, the odor dilutes. Flushing the heater and correcting the anode material should address this pattern.
Key Takeaways
- Run cold water at multiple fixtures — if cold is odor-free, the water heater is the source. If both smell, it's the supply.
- The two causes are: magnesium anode reacting with sulfate-rich or softened water (chemical), and sulfur-reducing bacteria growing in warm sediment (biological).
- Odor that worsens after overnight stagnation = bacterial cause. Odor that worsened after an anode replacement = wrong anode material.
- The lasting fix for anode-related odor is switching to aluminum-zinc or a powered anode — not removing the anode, which will destroy the tank.
- Rust or discoloration accompanying the odor means call a plumber now — the tank may have internal corrosion damage.