Plumbing

Hot water smells like rotten eggs

A sulfur or rotten egg smell that shows up only in your hot water usually comes from the water heater tank. Harmless bacteria in the water react with the tank's magnesium anode rod and give off hydrogen sulfide gas, which you smell when the hot tap runs. Flushing and disinfecting the tank clears it for a while, and swapping the anode rod for a different type usually stops it for good. If the smell is in the air rather than the water, or near a gas appliance, treat it as a possible gas leak first.

Hands holding a worn anode rod and a socket wrench beside the top of a tank water heater
A worn anode rod can react with the water and cause the rotten egg smell.
Quick answerFirst make sure it isn't gas: if the smell is in the air or near a gas appliance, leave and call the gas company. If only the hot water smells, turn off the heater's power or set the gas control to Pilot or Vacation, flush the tank, disinfect it if the manufacturer allows, and replace the magnesium anode rod with an aluminum-zinc or powered anode.
Worth checking firstRun a cold tap and a hot tap side by side and smell each in a glass. If both smell, the source is the water supply, often a well, and the water heater isn't the problem. If only hot smells, the tank is the source.
Moderate2–5 hours$0–60
Cutaway diagram of a tank water heater showing the anode rod hanging from the top, the cold inlet and hot outlet, the drain valve at the bottom and the gas or electric shutoff
Bacteria in the tank (1) react with the magnesium anode rod (2), which hangs from a hex head on top (3). Flush through the drain valve (4). Turn off the power or set the gas control (5) first.

Why hot water smells like rotten eggs

Every tank water heater has an anode rod, a long metal rod that hangs down from the top of the tank. It's there on purpose to corrode, so the steel tank doesn't. Most tanks come with a magnesium rod. In some water, especially well water or softened water, harmless sulfate-reducing bacteria live in the warm tank and react with the magnesium, producing hydrogen sulfide gas. That's the rotten egg smell, and because the gas forms in the tank, you notice it only from the hot taps, strongest after the water has sat overnight or after you've been away.

There are two ways to stop it. You can knock the bacteria back by flushing and disinfecting the tank, which often works for weeks or months. Or you can change the conditions so the reaction doesn't happen: an aluminum-zinc anode rod, or a powered anode that uses a small electric current instead of a sacrificial rod, usually solves it long term. Removing the anode rod altogether stops the smell but voids most warranties and lets the tank rust out early, so don't do that.

Why the hot water smells

Magnesium anode rod

Reacts with bacteria in the tank and makes hydrogen sulfide.

Sulfate-reducing bacteria

Common in well water and harmless, but smelly.

Water sitting in the tank

Smell builds after vacation or low use.

Low thermostat setting

Cooler tanks let bacteria grow more easily.

Water softener

Softened water can speed up the anode reaction.

The water supply itself

If cold water smells too, the source is the well or supply.

What's happening?
You noticeLikely causeStart at
Smell in the air, near a gas appliancePossible gas leakStep 1
Hot and cold water both smellWater supply, often a wellStep 1
Only hot water smellsBacteria and the anode rodStep 2
Smell strongest after time awayWater sitting in the tankStep 3
Smell comes back after flushingAnode rod needs changingStep 5
Smell fades but isn't gone yetNeeds a few days to clearStep 6
Gas, power and scalding waterIf you smell rotten eggs in the air, especially near the water heater, furnace or stove, it may be a natural gas or propane leak: don't flip switches, leave the house and call the gas company from outside. Before working on the heater, turn off the breaker for an electric heater, or set a gas heater's control to Pilot or Vacation. Never touch gas lines or burner parts. Tank water can be scalding: let it cool or run hot water off first, and keep hands away from the drain and relief valve outlets.

Let's fix it

0 of 6 done
  1. Rule out gas and find the sourceSmell the air near the water heater, furnace and stove. A rotten egg smell in the air, not in a glass of water, can mean a gas leak: leave, don't use switches or phones inside, and call your gas company from outside. If the air is fine, fill one glass from a cold tap and one from a hot tap, let them sit about 1 minute and smell each away from the sink. If only the hot glass smells, the water heater is the source, and you can keep going. If the cold water smells too, the source is your water supply. For a well, have the water tested and talk to a well or water treatment pro; for city water, call the water utility.
    Two glasses of water on a counter, one from the cold tap and one from the hot tap, being smelled one at a time
  2. Turn off the heater and the waterFor an electric heater, turn off its breaker and confirm it's off. For a gas heater, turn the gas control knob to Pilot or Vacation, which keeps the burner from firing while the tank is low, and leave the gas line alone. Close the cold water shutoff valve on the pipe going into the top of the tank. Open a hot water tap somewhere in the house to let air in so the tank can drain. If you can, wait a few hours or run hot water at a tub until it's no longer hot, so you're not handling scalding water.
    Hand turning the gas control on a water heater to Pilot and closing the cold water shutoff valve at the top of the tank
  3. Flush the tankAttach a garden hose to the drain valve near the bottom of the tank and run it to a floor drain, a utility sink or outdoors below the tank level. Open the drain valve and let the tank empty. Then open the cold shutoff for a minute or two at a time to stir up and push out sediment, until the water runs clear. Close the drain valve. Flushing alone sometimes reduces the smell for a while, and it removes sediment that bacteria live in. Don't turn the heater back on with the tank empty; an electric element can burn out in seconds without water around it.
    Something went wrong?
    • The drain valve barely trickles Sediment is clogging it. Open and close the cold supply in short bursts to push it through, or have a plumber replace the valve.
    • The drain valve drips after closing Snug it gently, or put a hose cap on it. Plastic drain valves crack if forced.
    Garden hose attached to the drain valve at the bottom of a water heater running to a floor drain
  4. Disinfect the tank if your manufacturer allows itMany water heater makers describe a hydrogen peroxide treatment for odor. Check your manual or the maker's website first, since some don't recommend it and the amount matters. A common instruction is about 1 to 2 pints of 3% hydrogen peroxide per 40 gallons. It's poured into the tank through the anode or hot outlet opening with the water off, then refilled and left for a couple of hours before flushing. Don't use bleach unless the manufacturer says to, and never mix chemicals. Refill the tank completely, with a hot tap open until water flows steadily and the air is out, before restoring power or turning the gas control back on.
    Hydrogen peroxide being poured through a funnel into the top opening of a water heater tank with the water turned off
  5. Replace the anode rodThis is the long-term fix. With the tank off and partly drained (a few gallons below the top), find the anode's hex head on top of the tank, sometimes under a plastic cap or combined with the hot outlet. Loosen it counterclockwise with a 1 1/16 inch socket and a long breaker bar; it's usually very tight, so have a helper hold the tank steady. Lift the old rod out. Wrap the new rod's threads with thread sealant tape and thread it in clockwise, then tighten firmly. Choose an aluminum-zinc rod or a powered anode, which most makers offer for odor problems. If there isn't enough overhead space, use a flexible link-style rod. Check your warranty terms first.
    Something went wrong?
    • It won't budge Don't strain the tank or connections. A brief burst from an impact wrench often frees it; otherwise, have a plumber do it.
    • Not enough overhead clearance Buy a segmented or flexible anode that bends as you insert it.
    Breaker bar and socket loosening the hex head of an anode rod on top of a water heater, with a new aluminum-zinc rod beside it
  6. Refill, restart and checkOpen the cold shutoff with a hot tap open in the house until water flows steadily with no sputtering, so the tank is full. Check the anode fitting and drain valve for drips. Then turn the breaker back on, or turn the gas control back to its setting and relight the pilot if your heater needs it, following the label on the heater. Keep the thermostat at about 120°F, the usual safe setting; higher settings increase scald risk, so use anti-scald valves if you go higher. Run the hot water the next morning: the smell should be gone or much weaker, and it may take a few days to fade completely.
    Hot tap running steadily at a sink while the water heater's thermostat dial is set to 120 degrees

Watch it done

Water Heater Anode Rod Replacement (Stop Rusty, Smelly Hot Water!)By 1 Tom Plumber on YouTube. Their method may vary a little from ours.
Watch on YouTube
How you'll know it's fixed
  • Hot water has no sulfur smell, even first thing in the morning
  • No drips at the anode fitting or drain valve
  • The heater runs normally and the water gets hot

Smell still there? Test the water supply, or call a plumber.

If it comes back

If the smell returns after a flush and peroxide treatment, the anode rod is the real cause, so replace it with an aluminum-zinc or powered anode. If you already did, the bacteria may be coming in with the water supply, which a water treatment specialist can test and address.

If the hot water runs out fast or the tank rumbles, sediment is building up. See the guide for a noisy water heater and the guide for hot water that runs out fast.

If you notice water around the base of the tank, see the water heater leak guide before you do anything else.

Away for a while?After a trip, run each hot tap for a few minutes. Water that sat in the tank smells strongest, and flushing it out often clears a mild odor.
Renting?Report a sulfur smell to your landlord. Don't drain the tank or replace the anode in a rental yourself.
Call a plumber ifYou smell gas in the air, the anode won't come loose, the tank is rusty or leaking, the drain valve won't close, the heater is gas and you're unsure about the controls, or cold water smells too.Fix it yourself or call? Compare the cost →

What a pro typically charges (a rough estimate; prices vary by area): A plumber typically charges about $150–$300 to replace an anode rod and flush the tank, including the part. A powered anode often adds about $100–$250 for the part.

Find a plumber near you

Something else going on?

Smelly hot water questions

Why does my hot water smell like rotten eggs?

Usually harmless bacteria in the water heater tank react with the magnesium anode rod and make hydrogen sulfide gas. If only the hot water smells, the tank is the source.

Is rotten egg smelling water dangerous?

The amounts in hot water are usually more unpleasant than harmful, but if the smell is in the air rather than the water, it may be a gas leak. Leave and call the gas company.

How do I get rid of the sulfur smell in my hot water?

Flush the tank, disinfect it if your manufacturer allows, and replace the magnesium anode rod with an aluminum-zinc or powered anode.

Can I remove the anode rod to stop the smell?

It stops the smell but lets the tank rust out early and usually voids the warranty. Use a different type of anode instead.

Why does only my hot water smell?

The gas forms inside the water heater tank, so the cold water, which bypasses the tank, doesn't smell.

Reader reports

Did this fix work for you?

Tell the next person how it went. Your numbers are added to the totals anonymously; tips are read by our team before they appear.

How did it go?
Reader Q&A

Questions from readers

No questions on this guide yet. If you're stuck, ask below. Useful questions and answers get added here for the next person.

Ask a question

We read every question before anything is published, and we never show names or emails. Please leave out personal details. PrivacyAccessibility

About the authors

GrabTheHammer Team

  • No sponsored picks
  • Safety first
  • Tells you when to call a pro

We're a small team of writers and editors who check every guide against manufacturer instructions and common code requirements. Our goal is to help you understand the problem, tackle what you safely can and know when to call a pro.

Checked against: Water heater manufacturer service instructions for odor, flushing and anode replacement, and gas utility safety guidance.

How we write and review →
A helpful next stepWater heater making noiseFlush out sediment while you're at it.