If the rotten egg smell is only in the hot water and not in the air near the heater, it is almost always hydrogen sulfide made by harmless bacteria reacting with the tank’s magnesium anode rod. Flush the tank, disinfect it with hydrogen peroxide or a raised temperature cycle, and replace the magnesium anode with an aluminium-zinc or powered anode so the smell does not come back. If you smell rotten eggs in the air, near a gas appliance or with all taps off, treat it as a possible gas leak: leave the house and call your gas supplier from outside.
Where the smell comes from
Natural gas and propane suppliers add a sulfur-based odorant so leaks smell like rotten eggs. Hydrogen sulfide in water smells almost the same. That overlap is why the very first check is where and when you smell it, not how strong it is.
In a water heater, the usual source is sulfate-reducing bacteria. They live harmlessly in many water supplies, especially private wells and softened water, and they thrive in the warm, still conditions of a tank. Every tank has a sacrificial anode rod, commonly magnesium, which slowly corrodes to protect the steel tank from rusting. That corrosion releases electrons and hydrogen that the bacteria use to turn sulfate in the water into hydrogen sulfide gas. The result is a smell in the hot water only, often worst after the water has sat unused for a while, such as first thing in the morning or after a holiday.
Your nose is extraordinarily sensitive to hydrogen sulfide; people notice it at concentrations far below anything harmful. At the levels found in household hot water it is a nuisance rather than a health threat, though it can tarnish silverware and stain fixtures.
Pinning down the source
| Observation | Most likely source | Next step |
|---|---|---|
| Smell in the air near the heater, stove or meter, taps off | Possible gas leak | Leave; call the gas supplier or emergency line from outside |
| Hot water smells, cold water does not | Bacteria and anode reaction in the tank | Flush, disinfect, change anode |
| Both hot and cold water smell | Hydrogen sulfide in the water supply itself | Test the water; treat the supply, especially wells |
| Smell only at one sink | Bacteria in the drain or trap | Clean the drain; smell the water in a glass away from the sink |
| Smell started after installing a softener | Softened water feeding the anode reaction | Anode change usually fixes it |
Instrument checks that settle it
- Use a gas detector if you have any doubt. A combustible gas detector held near the heater’s gas valve, the burner area and the supply pipe joints will alarm on natural gas or propane. A detector that stays quiet is reassuring but not a guarantee; if the smell is in the air, call the supplier anyway. Never use a flame to look for a leak.
- Do the glass test. Fill one glass from the cold tap and one from the hot, carry them into another room, and smell each. Drains can mislead you; the glass test removes them from the picture.
- Measure the tank temperature. Run the hot tap until the temperature stops rising and read it with a kitchen thermometer. Bacteria flourish in lukewarm tanks. Many heaters are set to about 120°F (49°C) for scald safety, which is warm enough for bacteria to keep growing.
- Test the water if both taps smell. A home water lab test for sulfate, iron and hydrogen sulfide, or a local water testing service, tells you whether the supply needs treatment. A TDS or pH meter gives general context about the water but does not identify sulfur compounds on its own.
Getting rid of the smell, step by step
- Turn off the heat. On an electric heater, switch off its breaker. On a gas heater, set the control to PILOT or VACATION. Do not touch the gas line or valve fittings.
- Flush the tank. Shut the cold supply, open a hot tap to relieve pressure, attach a hose to the drain valve and drain the tank. Open the cold supply briefly with the drain open to stir up and flush out sediment, where bacteria collect.
- Disinfect. Common methods are adding hydrogen peroxide through the anode port or the cold inlet at a dilution recommended by the heater manufacturer, then refilling and letting it sit for a few hours before flushing again. Check your heater’s manual first, as some manufacturers specify the method and dose they accept under warranty. Chlorine bleach is sometimes used but can be harder on the tank and needs thorough rinsing.
- Replace the anode rod. The anode screws into the top of the tank, either through its own hex fitting or combined with the hot outlet. Swap the magnesium rod for an aluminium-zinc rod, which reduces the reaction, or a powered anode, which uses a small electrical current instead of a sacrificial metal and does not feed the bacteria. Do not simply remove the anode; without it, the tank will rust through far sooner and the warranty is usually void.
- Refill completely before heating. Close the drain, open the cold supply, and run a hot tap until the water flows without air. An electric element powered in an empty tank burns out within seconds.
- Restore heat and check new fittings for leaks.
A temporary alternative is to raise the thermostat high enough for several hours to kill bacteria, then lower it again. Water that hot can scald in seconds, so warn everyone in the house, keep children away from taps, and only do it if your heater and any mixing valve allow it safely.
Confirming the fix and when to call a plumber
Repeat the glass test the day after the work and again after a night of no use, which is when smells are strongest. Clean hot water at that point means the fix worked. If the smell returns within weeks, the supply is carrying a lot of sulfate or bacteria; shock chlorination of a well or a whole-house treatment system may be needed.
Call a plumber if the anode rod is seized, which is common on older tanks and needs a breaker bar and a second person to hold the tank still, if the tank is leaking or badly rusted, or if you are not comfortable draining and refilling it. On electric heaters, if the breaker trips when power returns, the element may have been damaged by being powered while dry; read about a breaker that trips as soon as you turn it on and a 240 volt breaker that keeps tripping, and get an electrician rather than resetting it repeatedly.
And if at any point the rotten egg smell appears in the air rather than in the water, stop work, leave the building, and call the gas supplier from outside. Gas leaks are never a homeowner repair.
Smell two glasses before you buy anything
Fill one glass from the hot tap and one from the cold, take them to another room and smell them. Hot-only smell means flush the tank and change the anode; both smelling means test the water supply; smell in the air means leave and call the gas supplier.
Frequently Asked Questions
Is the rotten egg smell from my water heater dangerous?
At the levels found in hot water it is unpleasant rather than harmful. The danger is mistaking a real gas leak for it, so rule that out first.
Why does my hot water smell worse in the morning?
Water sits still in the tank overnight, giving the bacteria and anode reaction time to build up hydrogen sulfide. The first draw carries the most.
Can I remove the anode rod to stop the smell?
Removing it usually stops the smell but lets the tank rust quickly and typically voids the warranty. Replace it with an aluminium-zinc or powered anode instead.
Will a water softener cause sulfur smell in hot water?
It can make it more likely, because softened water tends to speed up anode corrosion. An anode change usually solves it.
How often should I flush my water heater?
Many manufacturers suggest flushing at least once a year, more often with hard or well water. Regular flushing also reduces the sediment bacteria live in.