Rotten-Egg Smell on the Hot Side Only Anode vs Bacteria Decision Tree

Why this matters

A rotten-egg (sulfur) smell on the hot water only is almost always hydrogen sulfide generated inside the water heater. It comes from a reaction between the sacrificial anode rod (especially magnesium) and sulfate-reducing bacteria living in the tank, fed by sulfate in the supply water. Customers blame the sewer; the real source is the heater. The fix path forks on whether the dominant driver is the anode chemistry, a bacterial colonization of the tank, or both. Picking the wrong remedy (swapping an anode when the tank is heavily colonized, or shocking a tank while leaving an aggressive magnesium anode in place) produces a temporary fix that returns in weeks. This tree separates the two drivers and sequences a durable remediation.

Symptom presentation

  • Smell on hot water at every fixture, none on cold: classic in-tank hydrogen sulfide.
  • Smell strongest on first hot draw of the morning, fades with flow: gas accumulated in the tank overnight.
  • Smell worsened recently after a softener install or a heater replacement: softened water plus a fresh magnesium anode accelerates the reaction.
  • Black flecks or a black slime at aerators on the hot side: iron sulfide and biofilm, indicating bacterial activity.
  • Both hot and cold smell of sulfur: the source is the supply water (well/sulfate), not just the heater; treat the source, not only the tank.

Quick checks

  1. Confirm hot-only: smell hot at a fixture, then cold at the same fixture. Hot-only points squarely at the heater.
  2. Note the anode situation: gas vs electric, age of heater, and whether the original anode is magnesium (most common factory rod). Softeners make magnesium anodes far more reactive.
  3. Water source: municipal or well? Well water with measurable sulfate and any sulfate-reducing bacteria is the classic feedstock.
  4. Tank temperature: a heater set under 120F is a comfort zone for bacteria. Setpoint matters to the diagnosis and the cure.

Isolation tree

Branch A: anode-driven (magnesium rod plus softened or low-conductivity water). Indicators: recent softener, fresh magnesium anode, smell scales with tank dormancy, little to no black biofilm.

  • The magnesium anode's galvanic reaction releases hydrogen that bacteria convert to hydrogen sulfide. Softened water increases anode current and accelerates this.
  • Remedy direction: replace the magnesium anode with an aluminum/zinc anode, or a powered (impressed-current) anode that does not feed the reaction. Do not simply remove the anode and run anode-less, which voids most warranties and accelerates tank corrosion.

Branch B: bacteria-driven (colonized tank, often well water with sulfate). Indicators: black slime/flecks, smell present even with an aluminum-zinc anode, well source, low setpoint history.

  • Sulfate-reducing bacteria have colonized the tank and possibly downstream lines.
  • Remedy direction: disinfect the tank (chlorine shock and a high-temperature pasteurization cycle), flush, and address the supply if the source carries the organisms.

Branch C: source-driven (smell on hot and cold).

  • The supply water itself carries hydrogen sulfide or its precursors. No heater-only fix will hold.
  • Remedy direction: whole-house treatment (aeration, oxidizing filter, or chlorination/contact-tank) ahead of the heater.

Confirming diagnosis

Anode confirmation: pull the anode. A magnesium rod that is heavily consumed and pitted in softened-water service, combined with a heater that smells worse after sitting overnight, confirms the anode pathway. Replacing with an aluminum-zinc or powered anode and re-testing after a week is the decisive trial.

Bacteria confirmation: a tank that still smells after the anode is changed, or that shows black iron-sulfide biofilm, confirms colonization. A chlorine shock plus a one-time pasteurization (raise setpoint per the manufacturer's safe limit, hold, then return to a safe service temperature) that eliminates the smell confirms the bacterial driver.

Source confirmation: smell on the cold side, or rapid recurrence after a properly disinfected tank, confirms a supply source needing upstream treatment.

Remediation

  • Anode-driven: install an aluminum-zinc or powered anode. Verify the new anode clears the smell over one to two weeks.
  • Bacteria-driven: disinfect the tank (chlorine concentration and contact time per the manufacturer), pasteurize once, flush thoroughly, and set the service temperature to control regrowth.
  • Source-driven: add whole-house oxidation/filtration upstream of the heater, then disinfect the tank once to clear residual colonization.
  • Maintain a service setpoint that controls bacteria without creating a scald hazard at fixtures; where higher tank temperature is used for pasteurization, install or verify a thermostatic mixing valve at the outlet.

Raising water heater temperature to pasteurize a tank can produce scalding water at fixtures. Water at 140F can cause a third-degree burn in seconds. Never raise tank setpoint above the manufacturer limit, never leave a tank above safe service temperature without a thermostatic mixing valve (ASSE 1017) on the outlet, and warn the occupant before and after the procedure. When chlorine-shocking, ventilate and never mix chlorine with other cleaning chemicals.

References

  • International Plumbing Code (IPC) 2021 Chapter 5 Water Heaters (temperature and outlet limiting)
  • ASSE 1017 Performance Requirements for Temperature Actuated Mixing Valves for Hot Water Distribution Systems
  • ANSI Z21.10.1 / CSA 4.1 Gas Water Heaters (anode and setpoint guidance, generic)
  • AWWA Standard G200 / EPA Secondary Drinking Water Regulations (hydrogen sulfide and sulfate)
  • ASME A112.18.1 / CSA B125.1 Plumbing Supply Fittings