A rotten egg smell in tap water usually comes from hydrogen sulfide gas. If only the hot water smells, the water heater's anode rod is reacting with bacteria in the tank. If hot and cold both smell, the source is the water supply or the drain.

Key takeaways
- ✓First test: does only the hot water smell, or both hot and cold?
- ✓Hot only almost always points to the water heater and its anode rod.
- ✓A smell from the sink drain itself, not the water, is a drain or trap issue.
- ✓If you smell rotten eggs in the air near a gas appliance, leave and call the gas company.
First, rule out a gas leak
Natural gas has a rotten egg odor added on purpose. If the smell is in the air near the stove, furnace or water heater rather than coming from running water, leave the house and call your gas utility or 911 from outside. Don't flip switches or use a phone indoors.
Hot only, cold only, or both?
- ✓Hot water only: the water heater. Bacteria in the tank react with the magnesium anode rod and produce hydrogen sulfide.
- ✓Cold and hot: the water source, more common with private wells than city water.
- ✓Only at one sink, even with the water off: the drain trap or a dried-out trap letting sewer gas up.
Fixing a smelly water heater
The usual fix is replacing the magnesium anode rod with an aluminum-zinc rod, which reacts less with the bacteria. Flushing the tank and running it at a higher temperature for a short period can also help. A plumber can swap the anode in an hour or two. If the tank is old and rusting inside, replacement may make more sense.
If the smell is coming from the drain
Run water for 30 seconds in any drain you rarely use to refill the trap. If the smell continues, the trap may need cleaning, the vent could be blocked, or there may be buildup in the line. Bleach poured down a drain only masks the problem for a short time.
What it costs to fix
Professional water heater repair & replacement typically costs $150–$1,200 in the US. For a full price breakdown, see how much does water heater replacement cost.
Frequently asked questions
Is water that smells like rotten eggs safe to drink?+
At the low levels that cause odor, hydrogen sulfide is usually a nuisance rather than a health threat, but it makes water unpleasant and can corrode pipes. If you're on city water and both hot and cold smell, contact your water utility.
Will a water softener cause the smell?+
Softened water can make the anode rod reaction more active in some tanks, which is one reason the smell sometimes starts after a softener is installed. Swapping the anode rod usually solves it.
How much does it cost to replace an anode rod?+
Typically $150 to $350 with labor. It's one of the less expensive water heater services and can add years of life to the tank.