Why Does My House Smell Like Rotten Eggs (Gas Leak vs. Water Heater)
Rotten egg smell has two sources, and one is dangerous. If it is in every room all the time, treat it as a gas leak and leave. If it only happens with hot water, it is the water heater anode rod.
Quick answer: A rotten egg smell in the house has two possible sources, and you need to identify which one in the next 60 seconds. If the smell is everywhere in the house at all times, treat it as a natural gas leak. Gas companies add mercaptan (which smells like rotten eggs) to natural gas specifically so leaks are detectable. Leave the house immediately, do not flip light switches, and call the gas company”s emergency line from outside. If the smell only happens when you run hot water, it”s hydrogen sulfide from bacteria reacting with the water heater”s anode rod. Replacement is a $30 part and 30 minutes of work, and the smell is gone for years.
A rotten egg smell has two possible sources, and you need to identify which one fast. The wrong answer is dangerous; the right answer takes ten seconds. The distinguishing test: where and when can you smell it?
The next paragraph is the safety case. Read it first, then continue.
Read This First (The Gas Case)
If the smell is in multiple rooms at the same time, or is strongest near a gas appliance (range, oven, water heater, furnace, gas dryer), do this right now:
- Don’t flip any electrical switches. The spark from a switch can ignite a gas-air mixture.
- Don’t use your phone inside the house. Same reason.
- Leave the house. Take family and pets with you. Leave doors open behind you (this vents the gas without creating a pressure surge).
- From outside or a neighbor’s house, call your gas utility’s emergency line (it’s on every bill, also 811 in many areas). Or call 911.
The gas company sends a tech 24/7 for suspected leaks, no charge for the visit. They’ll find the leak, shut off the appropriate valve, and tell you when the house is safe to re-enter.
Natural gas itself is odorless. Utilities add mercaptan (specifically tertiary butyl mercaptan) at a concentration of about 0.5 to 1 part per million so the human nose can detect leaks at 1/5 of the lower flammable limit, well below dangerous concentration. This is mandated by federal pipeline safety regulations. The smell is by design. Trust it.
Most rotten-egg-smell situations turn out to be water heater anode rods, not gas. But the cost of being wrong about which is high, so always rule out gas first.
The Distinguishing Test (60 Seconds)
Here’s how to tell which problem you have:
| Symptom | Source |
|---|---|
| Smell everywhere in the house, all the time | Likely gas. Leave and call. |
| Smell only at the kitchen range area | Likely gas (range pilot or valve leak). Leave and call. |
| Smell only when running hot water (any tap) | Water heater anode rod. Safe to fix yourself. |
| Smell from a single drain when not in use | Dried-out P-trap (see house smelling like sewer). |
| Smell after heavy rain, near a basement floor drain | Sewer backup or vent issue. Different problem. |
For the rest of this article, the “hot water only” case is the focus. If your situation falls into one of the first two rows above, stop reading and call the gas company. This article is not the right place for that.
What’s Happening With the Water Heater
Hydrogen sulfide (H2S) is the gas that smells like rotten eggs. In a water heater, it’s produced by a chemical reaction between three things:
- Sulfate-reducing bacteria that naturally live in trace amounts in well water and (less commonly) in municipal water that has been sitting in pipes.
- The sacrificial anode rod inside the water heater, traditionally magnesium or aluminum. The rod is designed to corrode in place of the steel tank, sacrificing itself to extend tank life by 5 to 10 years.
- Warm water in the tank, which is the ideal temperature for the bacteria to thrive.
When the bacteria react with the corroding magnesium anode, hydrogen sulfide gas is produced and dissolves in the hot water. Turn on a hot tap, the gas comes out of solution, you smell rotten eggs. Cold taps are unaffected because the cold water hasn’t been in the tank.
The fix is to replace the magnesium anode with an aluminum-zinc alloy anode. The aluminum-zinc rod doesn’t produce H2S the way magnesium does, and the small amount of zinc disrupts the bacterial colony. Smell gone, usually within 24 to 48 hours of replacement.
What You’ll Need
- New anode rod, aluminum-zinc alloy ($25 to $40, look for “powered aluminum/zinc” or “flexible aluminum/zinc”)
- A 1-1/16 inch socket and a long breaker bar (or impact driver if available)
- Teflon tape
- A garden hose
- A bucket for excess water
- An old towel
Two trips at most. The anode socket size is standard across nearly every residential tank in the U.S. (1-1/16 inch). The breaker bar matters; the anode is usually torqued in tight at the factory and corroded over years, a regular wrench won’t move it.
Step 1: Identify Your Water Heater Type and Anode Location
The anode is screwed into the top of the tank. On most heaters, it’s a hex head visible after removing a circular plastic cover on the top of the unit.
- Standard tank water heater (40, 50, 75 gallons): Single anode on top, visible under the cover.
- High-output gas water heater: Sometimes a hex-head anode on top, sometimes a “combination” anode that’s part of the hot-water outlet (harder to access, see below).
- Tankless water heater: No anode rod. Tankless heaters don’t develop this smell because water doesn’t sit in a tank long enough for bacterial growth. If you have tankless and you’re getting rotten egg smell, the source is elsewhere.
If the cover lifts off and you see a hex head, you have the easy case. If you only see plumbing fittings and no obvious anode, your unit may have a combination anode in the hot-water outlet, replacement is the same idea but requires disconnecting the hot-water line first.
Step 2: Cut Power or Gas to the Heater
- Electric heater: Flip the breaker for the water heater off at the main panel.
- Gas heater: Turn the gas control valve on the front of the unit to “pilot” or “off.”
This isn’t strictly required for an anode swap, but it prevents the heater from kicking on if you accidentally drain too much water.
Step 3: Shut Off the Water Supply and Relieve Pressure
The cold-water supply valve is on top of the heater, on the inlet (cold) side. Close it.
Open the temperature-pressure relief valve (the lever on the side of the tank with a small drainage tube) to break the vacuum. Water will trickle out, that’s normal, have a small towel ready.
Open any hot-water tap in the house (kitchen sink) and leave it open. This lets air into the system as you drain water out.
Step 4: Drain a Few Gallons
You don’t need to drain the whole tank, just enough to drop the water level a few inches below the anode head.
Connect a garden hose to the drain valve at the bottom of the heater. Run the hose to a floor drain, outside, or into a bucket if no drain is available. Open the drain valve.
Drain 2 to 5 gallons. That’s enough to give you working clearance at the top.
Close the drain valve. Leave the hose connected for now.
Step 5: Unscrew the Old Anode
This is the hard part. The anode is usually torqued in at 80 to 100 ft-lbs from the factory and may have been in place 8 to 12 years.
- Position the 1-1/16 inch socket over the anode hex head.
- Apply a long breaker bar (or use an impact driver). Turn counter-clockwise.
- If it won’t budge: spray with WD-40 around the threads at the tank, wait 15 minutes, try again. Use a cheater pipe over the breaker bar handle for more leverage.
If the tank rotates while you’re trying to turn the anode (the whole heater spins), put a 2x4 against the tank and brace it against a wall. The anode threads usually break free with a sudden snap.
Once it’s loose, unscrew by hand. The old anode comes out as a long rod, often heavily corroded and pitted, sometimes with chunks missing. If there’s almost nothing left of the anode (just a steel cable with a few aluminum nubs), you waited too long; the tank itself has started corroding to fill in for the missing anode. Replacement saves the tank.
Step 6: Install the New Aluminum-Zinc Anode
Wrap 3 to 4 turns of Teflon tape around the threads of the new anode. Thread it into the tank by hand, then snug it down with the socket and breaker bar.
How tight? Tight enough that it won’t leak (about 50 to 80 ft-lbs). You don’t need to crank it to factory original torque, just snug.
If your heater has low ceiling clearance and a full-length rigid anode won’t fit, buy a flexible/segmented anode rod, it comes in 3 sections that link together once inside the tank.
Step 7: Refill, Repressurize, and Check for Leaks
- Close the hot-water tap you left open in Step 3.
- Close the temperature-pressure relief valve.
- Open the cold-water supply valve. The tank starts filling.
- As the tank fills, air vents out through the open hot-water tap. You’ll hear it gurgle, then water runs out, then the tap runs clean. That means the tank is full and the air is out.
- Inspect the new anode connection at the top of the tank for leaks. A small drip means snug it another quarter turn.
- Turn power or gas back on. The heater needs about 30 to 60 minutes to reach temperature.
Step 8: Flush the Tank
This step isn’t required, but it cuts the smell timeline from 24 to 48 hours down to a few hours. Flush 1 to 2 cups of hydrogen peroxide (3%, the standard drugstore concentration) into the tank before refilling. This kills the existing bacterial colony in the tank water and accelerates the smell going away.
Procedure: with the tank partially drained from Step 4, pour the peroxide directly into the open anode port before installing the new anode. Then proceed with installation and refill as above.
Don’t use bleach. Bleach reacts with anything organic in the tank and can produce chloramine gas, which is more dangerous than the H2S you’re trying to fix.
Common Mistakes to Avoid
Ignoring a whole-house gas smell because “it’s probably the water heater.” Gas smell only at a hot tap is the anode. Gas smell everywhere, even with all taps closed, is gas. Mercaptan-based gas leak detection is the most reliable thing in the gas industry, trust it and call.
Replacing the magnesium anode with another magnesium anode. The replacement won’t fix the smell, the magnesium-bacteria reaction is what causes it. Buy aluminum-zinc, that’s the entire point of the swap.
Pouring bleach into the tank. Common bad advice on the internet. Bleach plus anything organic equals chloramine gas, which is genuinely dangerous. Use hydrogen peroxide instead, which breaks down to harmless water and oxygen.
Skipping the cheater bar or breaker bar. A standard ratchet won’t move a stuck anode. Buy or borrow a real breaker bar before you start, save yourself the trip back to the hardware store mid-job.
Not draining at all before unscrewing. If the anode breaks free unexpectedly under full tank pressure, hot water sprays out the open port. Drain the few gallons first.
FAQ
My water smells like eggs but only the hot water. Could it still be the water itself? If only hot water smells and cold water is fine, the source is the water heater, not the supply. Cold water comes from the same source but doesn’t have the heating + sitting + magnesium + bacteria combination. The anode rod replacement fixes it.
Will an aluminum-zinc anode protect my tank as well as the magnesium one did? Yes. Aluminum-zinc anodes have roughly the same sacrificial properties as magnesium for most municipal water. In aggressive well water with very low pH, magnesium protects slightly better but produces the H2S smell. For 95% of homes, aluminum-zinc is the right trade.
How often should the anode rod be replaced? Every 5 to 8 years in soft water; every 3 to 5 years in hard water. Most homeowners never replace it once, which is why most water heaters die at 10 to 12 years. A $30 anode every 5 years adds 10+ years to the tank’s life. The Department of Energy estimates the average lifespan of a water heater jumps from 10 years to 20 years with regular anode maintenance.
My water heater is 15 years old. Is it worth doing this? Probably not. A 15-year-old water heater is past its expected service life, and the tank itself may already be starting to corrode internally. The anode replacement might fix the smell, but the tank is on borrowed time. If your heater is over 12 years old, plan for replacement and address the smell with the new unit’s installation.
Can I get rotten egg smell from a well, even if I replace the anode? Yes, some well water has natural sulfur content that causes the smell regardless of the anode. If the smell persists 48 hours after an aluminum-zinc swap, the source is the well, not the heater. The fix is a sulfur filter on the well water entry point, $300 to $700 in equipment.
Is hydrogen sulfide dangerous at the levels in a water heater? At residential water heater concentrations, H2S is mostly a nuisance, the smell is detectable at vastly lower concentrations than the level that causes any health effect. OSHA’s permissible exposure limit is 20 parts per million for an 8-hour day. A water heater’s hot tap might produce 0.05 to 0.5 ppm during use, well below any health risk. The smell is unpleasant; the gas isn’t a health emergency at these levels. (Industrial H2S exposures, where it can be deadly, are 100x to 1,000x higher concentrations.)
The whole-house gas smell vs. hot-water-only smell test takes 60 seconds and decides whether you call the gas company or buy a $30 anode rod. The gas company side of that decision is the one where being right matters most, so when in doubt, leave the house and call. For the other smell problems (musty, sewer, fishy, smoky), our house smelling musty and house smelling like sewer guides cover those distinct sources.