Why Does My Hot Water Smell Like Rotten Eggs?

The smell is hydrogen sulfide gas. If only the hot water smells, the heater is the likely source; if both sides smell, the water supply needs testing.

Replacing a water heater anode rod to fix rotten egg smell
A magnesium anode can react with sulfate in the water and produce hydrogen sulfide gas.

A rotten egg smell in hot water is hydrogen sulfide gas. It forms when sulfate in the water reacts with the magnesium anode rod inside the heater, or when sulfur-reducing bacteria grow in the warm tank. The gas is noticeable at low concentrations, which is why a small amount can make a whole bathroom smell.

The first diagnostic step is simple: run cold water at the same fixture. If the cold water smells, the source is the supply or the plumbing. If only the hot water smells, the heater is the likely source.

Is It Dangerous?

Low levels of hydrogen sulfide in household water are generally not a health hazard, but the smell is unpleasant and the gas can make water more corrosive. If both hot and cold water smell, or the odor is strong and persistent, test the water. In rare cases, the smell can come from sewage or another contamination source, which needs professional attention.

Do not assume the smell is harmless just because it is common. A water test is inexpensive and answers the question.

How to test for hydrogen sulfide

Fill a glass from the cold tap and another from the hot tap. Swirl each and smell immediately. If only the hot glass smells, the heater is the source. If both smell, test the supply. A lab water test can measure sulfate, sulfur bacteria and other water-quality factors that affect the fix.

Why It Happens

Magnesium anode reaction

Most tanks use a magnesium or aluminum anode rod to protect the steel lining. Magnesium can react with sulfate in the water and produce hydrogen sulfide. This is more common in homes with sulfate-rich water and in tanks with a magnesium anode.

Sulfur-reducing bacteria

These bacteria thrive in warm, low-oxygen environments such as a water heater. They feed on sulfate and release hydrogen sulfide. The smell may be stronger after the water sits unused for hours or days.

Well water or a softener

Well water can carry naturally occurring sulfur and bacteria. A water softener or filter that is not serviced can also become a growth point. If the cold water has a faint odor too, the supply is the place to start.

Stagnant water

A vacation home or a rarely used bathroom can develop the smell because water sits in the tank and pipes. Flushing the system often clears a mild, temporary odor.

Anode types and odor risk

The right anode depends on water chemistry and tank warranty requirements.
Anode typeOdor riskNotes
MagnesiumHigherBest corrosion protection, but reacts with sulfate
AluminumLowerCommon odor fix; may not suit every water chemistry
Aluminum-zincLowerOften used for smelly water
Powered / impressed currentLowestNo sacrificial reaction; higher upfront cost

Hot Only or Both?

Test both taps at the same fixture before choosing a repair.
Where it smellsLikely source
Hot water onlyAnode rod or bacteria in the heater
Both hot and coldWater supply, well or plumbing
Only one fixtureAerator, local pipe or trap
After a vacationStagnant water in the tank or lines

How to Fix It

Flush and disinfect the tank

Drain the tank, flush it and disinfect with a chlorine solution approved for potable water systems. This kills bacteria in the tank but does not change the water chemistry. The smell can return if the anode or supply is the underlying cause.

Replace the anode rod

Switching from a magnesium anode to an aluminum or zinc anode can stop the reaction in some homes. A powered anode is another option. Do not simply remove the anode and leave the tank unprotected; that shortens the life of the heater.

Treat the water supply

If the cold water smells or testing shows sulfur, a water treatment system may be needed. A carbon filter, oxidation system or specialized sulfur treatment depends on the water chemistry. Test before buying equipment.

Call a technician

Anode replacement, tank disinfection and gas or electrical work should be done by a licensed technician. If the tank is old and the smell comes with rusty water, replacement may be the better path. See our rusty water guide.

When to replace the heater

Replace rather than repair if the tank is leaking, the base is rusted, the unit is 10 to 12 years old and the smell keeps returning, or the repair costs more than half of a new installed unit. A new heater will not fix the smell if the supply contains sulfur or bacteria, so test the water first.

Prevent the Smell

  • Flush the tank annually and do not let water sit unused for long periods.
  • Have the anode rod checked during maintenance.
  • Service water softeners and filters on schedule.
  • Test well water if the smell returns after treatment.
  • Run unused taps and guest bathrooms periodically.

Annual water heater maintenance and a water heater inspection can identify the anode condition and the source of the odor without guesswork.

Frequently Asked Questions

Why does only my hot water smell like rotten eggs?

The heater is the likely source. A magnesium anode reacting with sulfate or sulfur-reducing bacteria in the warm tank produces hydrogen sulfide gas.

Is rotten egg smell in hot water dangerous?

Low levels are generally not a health hazard, but the gas can be unpleasant and corrosive. If both hot and cold water smell, test the supply for sulfur or contamination.

Can I just remove the anode rod to stop the smell?

Removing the anode stops the reaction but leaves the tank unprotected, which shortens its life. Replace it with an aluminum, zinc or powered anode instead.

How do I get rid of the smell?

Flush and disinfect the tank, replace the anode if it is the cause, and treat the water supply if testing shows sulfur. Persistent cases need a water test.

Will a new water heater fix the smell?

It may fix it temporarily, but if the water supply contains sulfur or bacteria, the new heater can develop the same odor. Test the water before replacing equipment.

Published October 28, 2026. Reviewed by Steven Bassler.

Sources

Smelly Hot Water? Find the Source.

Book a water heater inspection and water test before replacing the anode or the unit.