The most common source of a rotten egg smell is hydrogen sulfide, a colorless gas produced by the breakdown of sulfur-containing materials. If you’re noticing this odor in your home, the culprit is almost always one of a handful of sources: a natural gas leak, sewer gas seeping through your plumbing, a problem with your water heater, sulfur in your well water, or something as simple as the foods you ate earlier that day.
Natural Gas Leaks
Natural gas is actually odorless on its own. Utility companies add sulfur-based chemicals called mercaptans specifically so you can smell a leak before it becomes dangerous. The most widely used additive, tert-butyl mercaptan, is detectable by the human nose at concentrations below 0.1 parts per billion, making it one of the most potent odor signals in everyday life. Other additives in the blend include isopropyl mercaptan and dimethyl sulfide, all chosen because they produce that unmistakable rotten egg smell.
If you smell rotten eggs and you have gas appliances (a stove, furnace, or water heater), treat it as a possible gas leak first. Don’t flip light switches or create any sparks. Open windows, leave the house, and call your gas company from outside. This is the one scenario on this list where the smell could signal an immediate safety threat.
Sewer Gas From Dry Plumbing Traps
Every drain in your home has a curved section of pipe called a P-trap. It holds a small amount of water that acts as a seal, blocking sewer gas from rising back up through the drain. When a drain goes unused for weeks or months, that water evaporates and the seal breaks. Guest bathrooms, basement floor drains, and utility sinks are the most common offenders.
The fix is simple: run water in every drain you haven’t used recently. A few seconds of flow is enough to refill the trap. If the smell persists after that, the problem may be a cracked or improperly vented sewer line, which typically requires a plumber to diagnose.
Hot Water Heater Problems
If the rotten egg smell only shows up when you run hot water, your water heater is the likely source. Two things can cause this. First, most water heaters contain a magnesium or aluminum anode rod designed to corrode slowly so the tank itself doesn’t rust. As these rods break down, they can react with sulfate minerals in the water and release hydrogen sulfide gas. Second, sulfate-reducing bacteria can thrive in the warm, low-oxygen environment inside the tank, feeding on sulfates and producing hydrogen sulfide as a byproduct.
You can address this a few ways. Flushing and disinfecting the tank with a chlorine bleach solution kills the bacteria. Temporarily raising the water heater temperature to 160°F for several hours also destroys them, though you’ll need to be cautious about scalding during that period. For a longer-term fix, replacing a magnesium anode rod with an aluminum-zinc or powered anode rod often eliminates the smell entirely.
Sulfur in Well Water
If the smell comes from both hot and cold taps, or if you’re on well water, the hydrogen sulfide may be in your water supply itself. Sulfur bacteria can colonize wells, water softeners, and the plumbing system. The Minnesota Department of Health recommends starting by disinfecting the well and plumbing with a strong chlorine solution. For wells with iron bacteria, you may need to scrub the well casing and use special treatment chemicals before disinfecting.
For ongoing sulfur in groundwater, several filtration options work depending on the concentration. Activated carbon filters handle levels below 1 milligram per liter. Manganese greensand filters work for levels up to about 6 mg/L. For higher concentrations, aeration systems, continuous chlorination, or ozone treatment paired with filtration are effective.
Foods That Produce Sulfur Gas
Sometimes the rotten egg smell is coming from you, not your house. Sulfur-rich foods are broken down by gut bacteria that produce hydrogen sulfide as a byproduct. The biggest contributors are members of the allium family: garlic, onions, leeks, and chives, where more than half of all volatile compounds contain sulfur. Cruciferous vegetables like broccoli, cabbage, and Brussels sprouts are also high in sulfur compounds, as are eggs, aged cheeses (Limburger, Camembert, Cheddar), asparagus, and avocados.
In your digestive tract, specific bacteria, including species like Bilophila wadsworthia, metabolize sulfur compounds from food and release hydrogen sulfide. This is what gives certain flatulence its distinctive smell. It’s normal and not a health concern unless it’s accompanied by other digestive symptoms.
Overcharged Batteries
Lead-acid batteries, the type found in cars, boats, and backup power systems, can produce hydrogen sulfide gas when overcharged or failing. If you notice a rotten egg smell near a vehicle, garage, or uninterruptible power supply, a malfunctioning battery is a strong possibility. Beyond the odor, exposure to the gas can cause eye irritation, headaches, dizziness, and nausea. Ventilate the area and inspect the battery for swelling, leaking, or corrosion.
Volcanic and Geothermal Sources
If you’re outdoors near hot springs, geysers, or volcanic terrain, the rotten egg smell comes from hydrogen sulfide released through fumaroles, which are vents in the earth’s surface that emit volcanic gases. These openings release a mix of water vapor, sulfur dioxide, carbon dioxide, and hydrogen sulfide. National parks like Yellowstone and Hawai’i Volcanoes are well-known examples. The smell is expected in these areas, but it’s worth knowing that concentrated hydrogen sulfide is genuinely toxic.
When the Smell Is Dangerous
Hydrogen sulfide is detectable by smell at very low concentrations, and at those levels it’s harmless. The danger increases with concentration. Workplace safety limits set by NIOSH cap exposure at 10 parts per million over a 10-minute period. At 100 ppm, hydrogen sulfide is considered immediately dangerous to life and health. One critical quirk of this gas: it rapidly fatigues your sense of smell, meaning you may stop noticing it even as concentrations climb. If you initially smell rotten eggs and then the odor seems to fade on its own without any action on your part, that’s not necessarily a sign the problem resolved. It may mean your nose has adapted while the gas is still present.
In a home setting, the concentrations from a dry P-trap or a water heater anode rod are rarely high enough to cause health effects beyond the unpleasant odor. The scenarios that carry real risk are gas leaks, confined spaces with poor ventilation, and malfunctioning batteries in enclosed areas.

