WaterCalculator
Water Treatment

How to Fix Rotten Egg (Sulfur) Smell in Water

Whether the smell comes from the water heater, the well or a single drain changes the fix completely. Here is how to pinpoint the source and choose treatment by concentration.

A person holding a glass of water at a kitchen tap, checking it for odor
The nose detects hydrogen sulfide well below half a part per million, long before it becomes a health concern.

A rotten egg smell in water is hydrogen sulfide gas, and most people can smell it at concentrations well below 0.5 mg/L. The fix depends on where it comes from. If only the hot water smells, the cause is almost always the water heater’s magnesium anode rod reacting with sulfate-reducing bacteria, and swapping it for an aluminum rod usually ends it. If hot and cold both smell, the source is the well or groundwater, and the answer is shock chlorination followed, if needed, by carbon, an oxidizing filter or continuous chlorination sized to the concentration. If only one sink smells, it’s probably the drain. Here’s how to tell and what to do.

Sizing an oxidizing filter? Iron Filter Sizing Calculator Open →

Find the source in five minutes

Where the smell comes from and the usual fix.
What you noticeLikely sourceFirst fix
Hot water only, all tapsWater heater: bacteria + magnesium anodeReplace anode with aluminum or powered anode; disinfect tank
Hot and cold, all tapsGroundwater or wellShock chlorinate; test H₂S level; add treatment if it returns
Only one sink or tubDrain trap or overflowClean and disinfect the drain
Only softened tapsBacteria in the softenerSanitize softener; regenerate regularly
Strong smell when water first runs, then fadesWell, low use periodsShock chlorinate; consider continuous treatment

To test: run the cold water at a tap for a minute, fill a glass, step away from the sink and smell it. Then do the same with hot water. Smelling the glass rather than the sink rules out drain odors.

Why water smells like rotten eggs

Hydrogen sulfide forms in low-oxygen water in three main ways:

  1. Sulfate-reducing bacteria in groundwater, wells and plumbing convert naturally occurring sulfate into hydrogen sulfide. Penn State Extension notes the problem is most common in wells drilled into shale and sandstone.
  2. Water heater anodes. The magnesium rod that protects the tank from corrosion can drive the same reaction, especially in warm water that sits unused.
  3. Decaying organic matter in some aquifers, often alongside iron and manganese.

The bacteria themselves don’t cause illness, and the smell usually makes water undrinkable long before hydrogen sulfide reaches harmful levels, which is why there’s no federal health limit for it in drinking water. Hydrogen sulfide is also corrosive: it tarnishes silver and copper, blackens fixtures and can cause black stains on laundry.

Fixing a smelly water heater

  1. Turn off power or gas, close the cold inlet and open a hot tap to relieve pressure.
  2. Replace the magnesium anode with an aluminum or aluminum-zinc rod, or a powered (impressed-current) anode, which doesn’t react with sulfate at all. Penn State advises against removing the anode entirely, since it shortens tank life and may void the warranty.
  3. Disinfect the tank: add hydrogen peroxide or chlorine bleach per the heater manufacturer’s guidance, let it sit, then flush thoroughly.
  4. Raise the temperature briefly, following safety guidance, to kill bacteria if the manufacturer allows, then return it to a scald-safe setting.

If the smell returns only after vacation or low use, a powered anode is the more permanent fix.

Fixing sulfur from a well

Start with shock chlorination

Shock chlorination, pouring a measured dose of chlorine into the well and circulating it through the plumbing, kills sulfur and iron bacteria. Penn State notes the odor often returns because the bacteria regrow from the aquifer, but shock chlorination clears the system and is the right first step before buying equipment.

Then treat by concentration

Continuous hydrogen sulfide treatment by concentration (Penn State Extension).
MethodTypical rangeNotes
Activated carbonBelow about 1 mg/LLarge whole-house unit; carbon exhausts quickly at higher levels
Catalytic carbonHigher than standard carbonNeeds at least 4 mg/L dissolved oxygen in the water
Manganese greensand / oxidizing filterUp to about 2–3 mg/LAlso removes iron and manganese; regenerate and backwash
AerationGenerally below about 2 mg/LMay form sulfur particles needing filtration; disinfect after
Air-injection oxidizing filterModerate levelsNo chemicals; also removes iron
Continuous chlorination + filtrationAny level; common above 6 mg/LAt least 20 minutes contact; carbon after to remove chlorine
Potassium permanganate + filtrationAbove 6 mg/LAt least 15 minutes contact; handle chemical carefully
Hydrogen peroxide or ozoneModerate to highEffective; less common in homes

Hydrogen sulfide and iron often come together, and many oxidizing filters handle both. Our guide to removing iron from well water covers that combination and how to size backwashing filters, and carbon vs sediment filters explains carbon’s limits.

Test hydrogen sulfide on site. The gas escapes from a sample within hours. Use a lab-supplied preserved bottle or a field test kit, and test the cold water before any treatment so you size equipment for the real level.

Contact time for chlorination

Chlorine needs time to oxidize sulfide completely, which is why chlorination systems include a contact tank.

contact tank volume (gallons) = peak flow (gpm) × contact time (minutes) 8 gpm peak flow × 20 minutes = 160 gallons of contact volume, often split across a retention tank and the pressure tank.

A carbon filter after the contact tank removes leftover chlorine and any sulfur particles. Our guide to chlorine vs chloramine explains chlorine dosing terms.

Other odors that aren’t hydrogen sulfide

  • Chlorine or bleach smell on city water: normal disinfectant; carbon removes it.
  • Musty or earthy: algae byproducts in surface supplies; carbon helps.
  • Swampy or sewage-like from a well: possible iron bacteria or contamination; test for coliform bacteria.
  • Metallic: iron, manganese or copper; test.

Our guide on how to test water quality at home helps decide what to test.

Hot water only

Anode swap

Aluminum or powered anode, then disinfect the tank.

Well, 0.6 mg/L

Carbon

After a shock chlorination, if it returns.

Well, 2 mg/L + iron

Oxidizing filter

Greensand-type or air injection handles both.

Well, 8 mg/L

Chlorinate + filter

20-minute contact tank, then carbon.

The bottom line

A rotten egg smell is hydrogen sulfide. If it’s only in hot water, replace the water heater’s magnesium anode with an aluminum or powered one and disinfect the tank. If it’s in hot and cold water from a well, shock-chlorinate first, then pick continuous treatment by concentration: carbon below about 1 mg/L, oxidizing filters up to 2 to 3 mg/L, and chlorination or permanganate with filtration at higher levels. If only one sink smells, clean the drain.

Size an oxidizing filterIron Filter Sizing Calculator Open →

Frequently asked questions

Why does my hot water smell like rotten eggs but not my cold water?

The water heater is the source. Sulfate-reducing bacteria in the tank react with the magnesium anode rod and produce hydrogen sulfide. Penn State Extension recommends replacing the magnesium rod with an aluminum one, which usually stops the odor while still protecting the tank. Don't remove the anode entirely; it can shorten the heater's life and void the warranty.

Is it safe to drink water that smells like rotten eggs?

At the low levels that cause odor in household water, hydrogen sulfide isn't usually a health hazard, and the bacteria that produce it don't cause disease. The smell makes water unpleasant long before it could be harmful. Still, test a well for coliform bacteria and other basics if the odor is new.

How do I get rid of sulfur smell in well water?

Shock-chlorinate the well first to kill sulfur bacteria. If the odor returns, choose continuous treatment by concentration: activated carbon below about 1 mg/L, oxidizing filters such as manganese greensand up to about 2–3 mg/L, and chlorination or potassium permanganate with filtration above about 6 mg/L.

Why does only one sink smell like rotten eggs?

It's probably the drain, not the water. Bacteria in the P-trap or overflow produce sulfur gases. Fill a glass at that tap and smell it away from the sink: if the water itself is fine, clean the drain and overflow.

Can a water softener cause a sulfur smell?

Occasionally. A softener can create conditions that help sulfate-reducing bacteria grow, especially if it sits unused. Sanitizing the softener and keeping it regenerating regularly usually fixes it.

How do I test for hydrogen sulfide?

It must be tested at the home or the sample chemically preserved before shipping, because the gas escapes quickly. Many labs supply preserved bottles; home test kits also exist. Test hot and cold water separately to locate the source.

Sources & references

Odor thresholds, causes and treatment ranges in this guide come from these references:

  1. Penn State Extension — Hydrogen Sulfide (Rotten Egg Odor) in Water Wells. Odor threshold, causes and treatment options by concentration.
  2. Minnesota Department of Health — Hydrogen Sulfide in Well Water. Sources, health information and treatment.
  3. U.S. Centers for Disease Control and Prevention — Guidelines for Testing Well Water. Annual testing for private wells.
John Mac, PE
John Mac, PE

Water Systems Specialist · Austin, Texas

A Texas-licensed Professional Engineer with 13+ years in residential water systems, John leads the science, flow and pressure guides on Water Calculator. Read full bio

Licensed Professional Engineer (PE) · Specializes in water density, flow and pressure

Water Treatment

How to Remove Iron From Well Water

Remove iron from well water with the right method for your level: softener under ~5 mg/L dissolved iron, oxidizing filters for 3–10 mg/L, chemical oxidation above that. John Mac, PE··8 min read
Water Treatment

Carbon Filters vs Sediment Filters

Sediment filters strain out particles; carbon filters adsorb chlorine, taste, odor and chemicals. Compare what each removes, micron ratings, order of installation and lifespan. Sarah Bennett, MS··7 min read
Water Treatment

How to Test Your Water Quality at Home

What to test, how to test it and when a lab is worth it. City vs well water, home kits vs certified labs, sampling tips, and the CDC's annual list for private wells. Sarah Bennett, MS··7 min read