Why Your Hot Water Smells Like Rotten Eggs and What Fixes It

Quick Answer: A rotten-egg odor limited to hot water is nearly always due to hydrogen sulfide produced by sulfate-reducing bacteria inside the tank, fed by the magnesium anode rod. If the cold side smells too, the source sits upstream in the supply.
A rotten-egg smell in a house is either natural gas or something in the water, and where you notice it settles which. The odor points to gas when it is in the air with no water running, or when it is strongest near a gas appliance or the meter. Everything below is about the other case, where the smell arrives with running water, stops when the water stops, and almost always only on the hot side.
Where the Sulfur Smell Starts
An odor in the air with no water running, or one strongest near a gas appliance or the meter, is treated as a gas leak. Do not use light switches or a phone indoors. Get outside and call the gas utility.
The gas you are smelling is hydrogen sulfide. Your nose registers it at an extraordinarily small quantity, which is why water can be obviously offensive at the tap and still read as ordinary on a standard mineral panel unless the lab is asked to look for sulfide specifically.
The route your hot water takes matters because each one leads to different work.
Route one: the bacteria are living in your tank: Sulfate-reducing bacteria are common, harmless anaerobes found in groundwater and in municipal distribution piping. What they need, a storage water heater supplies all at once: dissolved sulfate, which is present in most water supplies as an ordinary mineral; a source of free hydrogen; and a still, oxygen-poor place to settle. The bacteria strip oxygen from the sulfate ion and release the leftover sulfur as hydrogen sulfide gas, which dissolves in the surrounding water.
Route two: the sulfur arrived with the water: A private well drawing through sulfur-bearing rock, shale, or decaying organic sediment can deliver hydrogen sulfide to the house already dissolved, before the water ever reaches an appliance. In that case the heater only warms and concentrates what came in, and the difference shows up at the cold tap.
The Part the Anode Rod Plays
A tank water heater is welded steel with a glass lining sprayed on the inside. That lining is never perfect: small gaps remain at seams, at the weld line, and around fittings where bare steel meets water. To keep those spots from rusting through, manufacturers hang a sacrificial anode rod inside the tank, most often made of magnesium.
The rod works by being the more electrically active metal in the water. Magnesium gives up electrons preferentially, corroding in place so the steel does not, and that reaction liberates free hydrogen at the metal surface. Free hydrogen is precisely the ingredient the sulfate-reducing bacteria need to convert sulfate into hydrogen sulfide.
So the anode is doing exactly the job it was installed to do while quietly supplying the fuel for the smell. Magnesium is the most electrically active of the common anode metals, which makes it the strongest protector of the tank and the most productive contributor to the odor. Hard water leaves a calcareous film on the rod, and that deposit shields part of the underlying metal from the water.
A water softener can push the same reaction along. Removing the calcium and magnesium that build up the film leaves more bare magnesium in contact with the water, so the rod's own corrosion runs faster and releases hydrogen faster. Homes that add softening sometimes notice the smell for the first time weeks later, with no change to the heater.
Why Only the Hot Side Smells
Three things change when water enters a tank, and each of them favors the odor.
The first is stillness and warmth. A pressurized cold line keeps moving and stays cool; a storage tank holds many gallons of warm, still, oxygen-depleted water, which suits these bacteria far better than anything on the cold side.
The second is the loss of disinfectant. Utilities carry a chlorine or chloramine residual through the distribution system specifically to keep bacterial populations down. That residual dissipates in a hot storage tank, so the water sitting in your heater has lost the protection the cold line still carries.
The third is physics at the faucet. Hydrogen sulfide comes out of solution readily as water warms and again when it hits open air at the fixture. The same amount of dissolved gas is far more noticeable in a hot shower than in a glass of cold water, so a mild supply-side problem can present as a hot-water-only complaint.
One structural note: a tankless heater has no storage tank and no anode rod, so it has neither the still reservoir nor the hydrogen source. A sulfur smell in a home with a tankless unit points toward the supply.
Why It Gets Worse after the House Sits Empty
Come back from a week away, and the first shower is the worst one you will have all month. The tank sat at temperature with no fresh water moving through it, which meant no new disinfectant residual was arriving, no dissolved oxygen was coming in, and no dilution of what the bacteria produced while you were gone.
That first draw carries the accumulated gas, and after a few minutes of running water the smell fades noticeably. The fade is easy to read as the problem solving itself. It has not; the tank has only been diluted, and the same buildup starts again the moment demand drops off. A vacation home or a second heater serving a rarely used wing complains far louder than a heater in daily service.
What a Plumber Changes to Stop It
Every effective fix targets one leg of the reaction: the anode material, the bacterial population, or the source water. Which one applies depends on what the diagnosis turns up.
A different anode material: Swapping the magnesium rod for an aluminum-zinc alloy anode is the usual first move. Zinc suppresses the sulfide reaction, and the alloy is less electrically active than magnesium, so it produces less free hydrogen while still protecting the steel. It gives up some protective strength in exchange, so the choice depends on the water and the tank's age.
A powered anode: An impressed-current anode is a titanium rod driven by a small plug-in power supply. It protects the tank with an external electric current rather than by dissolving a metal, so nothing is consumed and no sacrificial reaction produces hydrogen. It needs a nearby outlet, and it is the usual answer when an alloy rod reduces the smell without ending it.
A disinfection cycle: A plumber can run a controlled sanitizing procedure through the tank and hot-water lines to clear the established colony. It removes the population without altering the conditions that gave rise to it, so it is typically paired with an anode change.
Storage temperature is handled properly: Tank temperature is one of the levers available, and it is a scald question before it is an odor question. Raising a tank's setting is done alongside a thermostatic mixing valve that limits what actually reaches the fixtures, and in a house with young children or older adults the burn risk from an unmixed hot tank is serious. That is a setting for a plumber to make with the right valve in place, not something to adjust on your own.
Source-side treatment: When testing shows sulfide entering the raw water, the work moves entirely upstream of the heater. A plumber samples both the incoming and treated water and specifies equipment sized to the sample results.
One option suggested online deserves a direct answer: pulling the anode rod and leaving it out does stop the smell, and it also removes the only thing standing between your water and the bare steel behind an imperfect glass lining. The tank corrodes from the inside; many manufacturers treat pulling the rod as voiding the tank warranty, and the eventual failure is a tank leaking onto the floor rather than an odor at the faucet.
What Does Not Fix a Sulfur Smell
Cleaning aerators and showerheads does nothing here, because the gas is dissolved in the water arriving at the fixture rather than deposited on it. Running the tap for several minutes clears the odor by dilution, but it returns as soon as the household stops drawing water.
A whole-house filter installed on the cold line cannot help when the gas is being generated downstream of it, inside the tank. Changing softener salt, adding a rust-cutting additive to the brine tank, or switching salt brands addresses hardness rather than sulfide. Masking the bathroom accomplishes nothing, since the odor arrives fresh with every draw.
Bleach or peroxide poured into a heater or a well can damage the tank lining, react with residues, and leave water unsafe. Tank disinfection is a plumber's job.
Where the Answer Usually Lands
With the gas case ruled out and the odor appearing only when water runs, the scope of the repair hinges on a single distinction that takes minutes to establish.
Run a cold tap somewhere well away from the water heater, let it flow long enough to clear the standing water in the branch, and smell it. Then do the same with a hot tap. Hot only means the tank is generating the gas and the work is at the heater. Both sides, roughly equally, means the sulfide came in with the supply and the heater is a bystander. Both sides with the hot noticeably stronger usually means some sulfide arrives in the supply and the tank is adding more, which is the case that needs attention in two places.
A private well versus a utility supply changes which route is likelier before anyone opens anything, and an odor that began after a recent heater installation, anode replacement, or treatment-equipment addition usually names the change that started it.
A plumber confirms by drawing a sample at the heater's connections rather than at a fixture, since the faucet, aerator, and branch line each add variables.
Before the visit, note which taps smell, whether the cold side smells too, when the heater was installed, and whether the home draws from a well or a utility supply. Those four answers decide the scope of the work.
Frequently Asked Questions
At the concentrations that make household water smell, hydrogen sulfide is an aesthetic complaint rather than a poisoning one, and the nose detects it well below any level treated as a health concern. It does cause damage of another kind: it tarnishes silver, darkens brass and copper fittings, and can leave dark staining in sinks and on laundry. If the water is also discolored, or the odor appeared alongside a change in your supply, have it tested rather than assumed.
Odor at a single basin frequently comes from the drain rather than from the water. Bacteria form a film on the walls of the trap and tailpiece, and a trap that has dried out in a seldom-used bath lets sewer gas rise into the room. Fill a glass at that tap, carry it to another room, and smell it there. Odorless water in the glass points at the drain.
They can. Iron bacteria produce a similar odor along with a rust-colored, slimy deposit visible in toilet tanks, on fixture surfaces, and inside supply piping. That deposit is the tell, since sulfate-reducing bacteria tend to leave a black or gray residue instead. A water laboratory can separate the two, and their treatments differ.
Not by itself. New tanks commonly ship with magnesium anodes, so a replacement installed without specifying a different rod material drops the same reaction back into the same water and the odor returns within weeks. If a heater is being replaced anyway, the anode decision belongs in that conversation, since installation day is the cheapest moment to make it.
No. A nearly consumed rod can produce no odor at all, and a rod installed last month can produce a strong one, because the smell depends on what is living in the water and on the conditions at the rod's surface, not on how much metal remains. Anode condition is assessed by pulling and inspecting the rod during a service visit.
It does. Many electric models carry two anode rods, or a single rod combined with the hot outlet nipple, which puts more sacrificial metal in contact with the water than a typical single-rod gas tank. Electric units also heat the water using elements inside the water column rather than a burner under the tank floor, leaving cooler pockets where these bacteria are more comfortable. Both give the reaction more room to run.
Put an end to the rotten-egg smell in your hot water — an anode and source-water evaluation shows whether the odor starts in your tank or in the supply. Much Better Plumbing serves Las Vegas and Clark County. Call (702) 613-8452.