As an Amazon Associate, Akermin earns from qualifying purchases. Product links on this page are affiliate links.
The most common cause is a plumbing vent stack that is cracked, has a loose joint, or was never carried through the roof, so drain gases escape into the attic instead of venting outside. Dry trap seals elsewhere in the house and a blocked vent terminal can make it worse by pushing gas out at the weak point. Before you go looking, make sure the smell is not natural gas or propane, which also smell like rotten eggs: if there is any doubt, leave the house and call your gas supplier. Once gas is ruled out, a sniff along the vent pipes and a gas or air quality reading near the joints will usually show where the leak is.
How drain gas ends up under the roof
Every sink, tub and toilet drains into a pipe network that is open to the sewer or septic tank. Two things keep that air out of your living space. The first is the water seal in each trap, the U-shaped bend under a sink or built into a toilet. The second is the vent system: a set of pipes that rises from the drains, usually through the attic, and exits through the roof. Vents let air into the drains so water flows smoothly, and they let sewer gas out above the roofline where it disperses.
Because those vent pipes pass through the attic, any break in them releases gas there. Sewer gas is a mixture. The rotten egg smell is mostly hydrogen sulfide, and it also carries methane, ammonia and carbon dioxide. Hydrogen sulfide is detectable by nose at extremely low concentrations, so a small crack can produce a strong smell long before levels become dangerous. The flip side is that at high concentrations hydrogen sulfide dulls your sense of smell, so a smell that seems to fade while you stand in it is not proof that it has gone.
Rule out gas before you climb up
Natural gas and propane are odorized with a sulfur compound so that leaks are noticed, and to most people it smells very much like sewer gas. Gas lines and appliances such as furnaces and water heaters are sometimes in or near the attic. Treat the first sniff as a possible gas leak:
- If the smell is strong, getting stronger, or near a gas appliance or gas pipe, leave the house, do not operate switches or use a phone inside, and call your gas supplier or emergency number from outside.
- A portable combustible gas detector will alarm on methane or propane long before the lower explosive limit. It does not replace the utility’s check, but a zero reading next to a sewer vent joint helps separate the two smells.
- Never try to tighten, tape or repair a gas fitting yourself. That is work for a licensed gas engineer or the utility.
If the detector stays quiet, the smell is localized to the attic, and it is worst after toilets flush or showers drain, you are almost certainly dealing with drain gas.
Likely sources, ranked
| Source | How to spot it | What fixes it |
|---|---|---|
| Cracked or separated vent pipe | Smell strongest at one pipe run; visible crack, gap or sagging joint | Plumber replaces the section or rejoins the fitting |
| Vent ending inside the attic | Pipe stops below the roof deck or is capped with an air admittance valve that has failed | Extend through the roof or replace the valve |
| Blocked roof terminal | Gurgling drains, slow flushing, nest or leaves visible from roof | Clear the terminal; plumber can scope the stack |
| Dry trap in a rarely used fixture | Guest bath or floor drain unused for weeks; smell appears in the house too | Run water into it for a minute |
| Bathroom fan ducted into the attic | Fan duct ends loose near the insulation; smell after bathroom use | Duct it to an exterior hood |
| Dead animal or droppings | Sweet, putrid smell that peaks and then fades over days; flies | Remove, clean, seal entry points |
Wet or mouldy insulation gives a musty, earthy smell rather than rotten eggs. If what you smell is closer to a damp basement, look for a roof leak or condensation problem instead.
Tracing the leak, step by step
- Work in daylight with good footing. Step only on joists or boards, wear a dust mask, and bring a torch. If anyone in the house feels dizzy, sick or has a headache, stop and ventilate.
- Find every vent pipe. They are usually grey or black plastic, or cast iron in older houses, running vertically from the floor below to the roof. There may be one main stack and several smaller branch vents.
- Get someone to run water downstairs. Flushing toilets and draining a full bath pushes air up the vent. Stand near each joint while that happens; a leak often puffs odor in time with the flushing.
- Take readings along the pipe. A combustible gas detector or a monitor with a VOC channel will often show a rise close to the leak. A moisture meter of the kind sold among mould detection meters will not sense the gas, but it is useful afterwards for checking whether escaping moist air has dampened the insulation or roof deck. Move slowly; these sensors react over several seconds.
- Check joints and roof penetrations. Look for cracked couplings, pipes that have dropped out of a fitting, and rubber boots that have split where the pipe passes through the roof deck.
- Check traps downstairs. Pour a litre or so of water into every fixture that is rarely used, including floor drains and basement showers.
- Note the conditions. Smell that appears only on hot afternoons or in windy weather still points to the vent system; heat and wind change the pressure in the stack.
Plumbers can also perform a smoke test, pushing harmless theatrical smoke into the drain system and watching where it escapes. That is the definitive test when the leak is inside a wall or under insulation.
Using a meter without fooling yourself
Most home air quality monitors, including the humidity meters with extra sensors and units like the Sainlogic air quality monitor, report values such as TVOC and HCHO rather than hydrogen sulfide. TVOC sensors respond broadly to many gases, so a TVOC spike near a pipe joint is a useful pointer but not a diagnosis. Give the monitor ten to fifteen minutes in clean air to settle, then carry it slowly toward the suspect area and watch for a consistent rise.
A dedicated hydrogen sulfide detector, of the type used by sewer and wastewater workers, gives a real concentration in ppm and alarms at preset levels. Single gas units are widely available. In a home attic, any persistent reading means there is a leak to fix, even if it is far below occupational limits.
Humidity data can help too. A logger left in the attic for a few days will show whether moisture spikes when bathrooms are in use, which suggests a fan or vent dumping humid air into the roof space.
When it stops being a DIY job
Call a licensed plumber when the leak is in the stack itself, when a vent needs extending through the roof, or when the smell persists after you have refilled traps. Cutting and re-joining drain waste and vent pipe is straightforward for a trade, but solvent welding in a cramped attic is easy to do badly. If the smell comes with gurgling drains or toilets that bubble, ask them to check for a blocked main or vent at the same time.
Leave the house and call for help immediately if you get a strong rotten egg smell near any gas appliance, if a combustible gas detector alarms, or if anyone develops headaches, nausea or eye irritation. Sewer gas in an attic is mostly an odor and moisture problem, but concentrated gas in a confined space is dangerous, and methane in a sealed roof space is flammable.
Your next move
Run water through every rarely used drain tonight, then tomorrow have someone flush the toilets while you stand at each vent pipe in the attic with a torch and, if you have one, a gas or VOC meter. If you can see a crack or gap, photograph it and book a plumber; if you cannot find it, ask them for a smoke test.
Frequently Asked Questions
Is sewer gas in the attic dangerous?
At the low levels you can smell, it is mainly unpleasant, but hydrogen sulfide is toxic at high concentrations and methane is flammable. Do not ignore a persistent smell or sleep with it drifting into bedrooms. Fix the leak rather than masking it.
Why does the smell come and go?
Vent pipes breathe with the drains. Flushing, draining a bath, wind across the roof and hot weather all change the pressure in the stack, so gas escapes in bursts. That pattern is a strong sign the vent system is the source.
Can a carbon monoxide alarm detect sewer gas?
No. A CO alarm only responds to carbon monoxide. For sewer gas you need a hydrogen sulfide detector, or a combustible gas detector for the methane component.
Could a failed air admittance valve cause this?
Yes. These one-way valves are sometimes fitted in attics instead of running a vent through the roof, and when the seal wears out they leak drain gas. They are inexpensive to replace and a plumber can confirm the right type.
Will an air purifier fix the smell?
It may reduce the odor slightly but will not stop the source. The gas will keep coming from the broken pipe, so repairing the vent is the only real fix.