Disclosure: As an Amazon Associate, Sweet Home Advisor earns from qualifying purchases. If you buy through links on this page, we may earn a small commission at no extra cost to you.
A rotten egg smell from your hot water is almost always hydrogen sulfide gas made inside the water heater. Sulfate-reducing bacteria in the warm tank react with the magnesium anode rod and produce the smell. If only the hot water smells, the water heater is the source. The usual fixes are to replace the magnesium anode with an aluminum-zinc or powered anode, disinfect the tank, or heat it to a higher temperature for a few hours. If cold water smells too, the problem is in your well or water supply.
Quick check: where is the smell?
- Hot water only: the water heater (most common).
- Cold water too, but not at unsoftened taps: the water softener.
- Cold water, fades after running a few minutes: bacteria in the well or plumbing.
- Cold water, doesn’t fade: hydrogen sulfide in the groundwater.
- Smell gas near the heater? That’s different. Leave the house and call your gas company from outside.
Source-finding steps adapted from the Minnesota Department of Health.
Why does my hot water smell like rotten eggs?
Many water supplies, especially private wells, contain sulfate and harmless sulfur bacteria. Inside a warm water heater, these bacteria thrive. The Minnesota Department of Health explains that the magnesium anode rod can supply electrons that help bacteria convert sulfate into hydrogen sulfide (H2S), the gas that smells like rotten eggs. The smell often gets worse when the heater sits unused, for example after a vacation or in a vacation home, or when the thermostat is set low.
The smell is usually a nuisance rather than a health risk: the Minnesota Department of Health says it doesn’t usually indicate a sanitary problem. However, because the smell can rarely come from sewage or pollution, test your water for coliform bacteria and nitrate if you have a well. See our water test kit guide.
How to get rid of the rotten egg smell in a water heater
1. Replace the anode rod
This is the most lasting fix. Swap the magnesium anode for an aluminum-zinc anode, which reacts less with sulfate bacteria, or a powered anode, which uses a small electric current instead of a sacrificial metal. Don’t simply remove the anode: the Minnesota Department of Health warns that removing it can shorten the heater’s life, and it may void the warranty. Our anode rod guide covers types and replacement.
Aluminum-zinc anode rods on Amazon → | Powered anode rods →
2. Disinfect and flush the tank
- Turn off the power or gas and close the cold water supply.
- Drain the tank (see our draining guide).
- Remove the anode rod and pour in household bleach or hydrogen peroxide as directed by the heater manufacturer.
- Refill, let it sit for a few hours without using hot water, then drain and flush thoroughly.
- Reinstall a new anode and restore power or gas.
Disinfection alone often helps only for a few weeks if bacteria survive, so combine it with an anode change.
3. Raise the temperature temporarily
The Minnesota Department of Health notes that heating the water to about 160°F for several hours and then flushing can kill the bacteria. Check your manufacturer’s instructions first, make sure the T&P valve works, and warn everyone in the house about scalding. Turn the thermostat back to about 120°F afterward.
4. Treat the water supply (if cold water smells)
If the smell is in your cold water too, fixing the heater won’t solve it. Options include shock chlorination of the well, activated carbon for low levels (below about 1 mg/L), and oxidizing filters such as manganese greensand for higher levels. Our well water filtration guide explains each option.
Fixes compared
| Fix | Best for | How long it lasts | DIY? |
|---|---|---|---|
| Aluminum-zinc anode | Mild to moderate smell | Years | Yes, with tools |
| Powered anode | Persistent smell, long-term fix | Many years | Yes |
| Bleach or peroxide flush | Quick relief | Weeks, unless combined with an anode change | Yes |
| High-temperature treatment | Killing bacteria in the tank | Weeks to months | With care |
| Well treatment or filter | Smell in cold water too | Ongoing | Often professional |
How to prevent it coming back
- Keep the thermostat at about 120°F rather than lower.
- Run hot water through the heater regularly; drain and flush after long periods of no use.
- Flush sediment from the tank once a year.
- Use a non-magnesium anode if you have well water with sulfate.
Frequently asked questions
Is it safe to shower in water that smells like rotten eggs?
Usually yes; low levels of hydrogen sulfide in water are mostly an odor problem. Test well water for bacteria and nitrate to rule out contamination.
Why does only my hot water smell?
Because the smell is being made inside the water heater by bacteria reacting with the anode rod. Cold water bypasses the heater.
Will a water softener cause a sulfur smell?
It can. Bacteria can grow in a softener, especially if it isn’t regenerated or cleaned. If softened cold water smells but unsoftened water doesn’t, disinfect the softener as the manufacturer directs.
Can I just remove the anode rod?
It’s not recommended. The anode protects the tank from corrosion; removing it can shorten the heater’s life and void the warranty.
Sources: Minnesota Department of Health “Hydrogen Sulfide and Sulfur Bacteria in Well Water”; North Dakota State University Extension on sulfates and magnesium anodes; water heater manufacturer manuals. Follow your manufacturer’s instructions before disinfecting or raising temperature.