MEP Engineering
Why Does Hot Water Smell Bad? – The Hidden Electrochemical and Biological Trap in DHW Tanks
One of the most unpleasant issues we hear about in operating domestic hot water (DHW) tanks — and one that reliably triggers customer complaints — is when foul, rotten-egg-smelling hot water comes out of the tap. Contrary to popular belief, this is rarely the water utility’s fault, and it isn’t simply a matter of water “going stale.” In our design and consulting work we run into this problem often, and behind it lies a distinctive biological, chemical and electrochemical process. Three specific factors have to be present at the same time for the smell to occur — remove any one of them, and it disappears.
The “unholy trio” behind the smell
The unpleasant rotten-egg odor is caused by hydrogen sulfide gas (H₂S), which requires all three of the following conditions to be met simultaneously inside the tank.
Presence of sulfate-reducing bacteria (SRB). Piped potable water naturally contains tiny, completely normal amounts of sulfate-reducing bacteria (e.g. Desulfovibrio strains). These anaerobic (oxygen-free-loving) microorganisms are essentially harmless to health, but as part of their metabolism they can reduce sulfate ions (SO₄²⁻) in the water into hydrogen sulfide. To do that, though, they need “fuel” — free hydrogen.
Magnesium sacrificial anode (the electrochemical factor). Enameled DHW tanks are protected from corrosion by active cathodic protection, most commonly a magnesium anode rod. Because magnesium is more electronegative than the tank’s steel wall, it forms a galvanic cell and acts as a sacrificial anode: it corrodes itself while protecting the tank. In the process, hydrogen ions in the water pick up electrons from the anode, and atomic hydrogen is released at the anode’s surface. This abundant hydrogen source is exactly what kicks off intense bacterial activity: sulfate + hydrogen + SRB bacteria = hydrogen sulfide.
An ideal temperature range (around 45 °C). If the DHW tank is kept persistently at a low temperature — around 45 °C — for energy-saving reasons or to avoid scalding risk, that happens to be exactly the bacteria’s optimal growth zone. There, their metabolism runs at full tilt, churning out the foul-smelling gas.
Effective solutions: how to eliminate the problem
Since all three factors are required, the key to a solution is breaking the chain.
Immediate intervention: thermal disinfection (shock heating)
Heating the tank’s water persistently above 60 °C (ideally to 65–70 °C) kills off the SRB bacteria.
The upside is quick, immediate relief. The downside is that if the tank has a thick layer of limescale or sludge — an excellent hiding place for bacteria — surviving colonies will regrow once the water cools back down. Higher temperatures also accelerate limescale buildup.
The permanent engineering fix: an impressed-current titanium anode
The most reliable method is removing the magnesium anode and replacing it with an active, electronic titanium anode.
A titanium anode isn’t a sacrificial anode: it draws a tiny, controlled DC current from an external mains power supply to provide the tank’s cathodic protection. Since there’s no magnesium dissolving, the amount of free hydrogen available to the bacteria drops radically. Without hydrogen, SRB bacteria can’t produce H₂S, and the smell disappears for good.
Supplementary steps: water treatment and bacterial decontamination
If the incoming well water or mains water has an extremely high sulfate content, mechanical and chemical cleaning is needed: periodically draining the tank and physically removing the biofilm, sludge and limescale that accumulate at the bottom, flushing the system with chlorine dioxide or hydrogen peroxide, and installing appropriate filtration/treatment equipment to reduce sulfate levels.
Summary
Odor in DHW tanks is a classic engineering problem, where corrosion protection unintentionally creates a breeding ground for biology, and persistently low temperatures preserve the issue. In modern MEP practice, switching to a titanium anode and scheduling regular anti-bacterial heat-ups above 60 °C is the long-term solution.
