Find and fix the source before you mask the odor

A sewer smell in your bathroom usually comes from one of four places: a dry P-trap, a cracked or loose vent pipe, a blocked drain, or a problem with the main sewer line. The smell is hydrogen sulfide gas, which rises from decomposing waste. Masking it with air freshener will not stop the gas — you have to locate where it is coming from and seal or clear the leak.

Start by identifying which fixture smells: the toilet, sink, shower, or the whole room. Smell directly over each drain. If the odor is strongest over one fixture, that is your starting point. If it is everywhere, the problem is likely in your vent stack or main line, and you may need a plumber.

Key Takeaways

  • A dry P-trap under a sink or shower is the most common cause and the easiest to fix — pour water down the drain to refill it.
  • If the smell comes from the toilet, the wax ring seal under the base may be cracked, which requires removing and resetting the toilet.
  • A blocked drain or vent pipe traps sewer gas instead of letting it escape outside, and clearing the blockage stops the smell.
  • If the odor is in multiple rooms or you see slow drains everywhere, the main sewer line may be cracked or backed up, and you will need a plumber with a camera.

Refill a dry P-trap under the sink or shower

The P-shaped bend under your sink or in your shower drain holds standing water that acts as a seal. When that water evaporates — usually in a bathroom you do not use often, or after a long vacation — sewer gas rises straight up through the drain. This is the easiest problem to fix.

Pour a pitcher of water slowly down the drain. The water fills the trap and blocks the gas. If the smell goes away within an hour, the trap was dry. To prevent it from drying out again, run water down that drain at least once a week, or pour a cup of water down it before you leave for a trip.

If you have a shower drain that smells and you rarely use it, pour water down it weekly. If the smell returns when ready after you pour water, the trap may be cracked or the drain may be blocked further down — move to the next section.

Check the toilet wax ring and base seal

If the smell is strongest over the toilet, the wax ring that seals the base to the floor may be cracked or compressed. Sewer gas leaks around the base and into the bathroom. You may also notice water pooling around the toilet or soft flooring nearby.

A wax ring replacement requires removing the toilet. Turn off the water supply at the valve behind the toilet, flush to empty the tank, and disconnect the water line. Unbolt the toilet from the floor, lift it straight up, and scrape away the old wax ring. Place a new wax ring on the flange (the pipe opening in the floor), set the toilet back down, and bolt it in place. Reconnect the water line and turn the supply back on.

If you are not comfortable doing this yourself, a plumber can replace a wax ring in under an hour. The cost is usually between $150 and $300 depending on your region and whether the flange needs repair.

Clear a blocked drain or vent pipe

A clogged drain traps sewer gas below the blockage instead of letting it flow to the main line and out through the roof vent. The gas backs up and escapes through the fixture. A blocked vent pipe has the same effect — gas cannot escape outside, so it comes back into the house.

For a sink drain, use a plunger or a drain snake. Fill the sink with a few inches of water, place the plunger over the drain, and pump vigorously 15 to 20 times. If water drains, the blockage is cleared. If not, feed a drain snake down the drain and crank the handle to break up the clog. Pull the snake out and plunge again.

For a shower or tub, remove the drain cover and use a snake the same way. If you have a wet/dry vacuum, you can also try sucking the blockage out — seal the overflow hole with a wet rag first so the vacuum pulls from the drain only.

If the smell persists after clearing the drain, or if multiple drains are slow, the blockage may be in the main line or the vent stack. A plumber with a camera can see inside the pipes and locate the exact problem.

Inspect and seal a cracked vent pipe

Your bathroom vent pipe runs from the drain system up through the roof to let sewer gas escape outside. If it is cracked or loose, gas leaks into the attic or walls and eventually into the bathroom. You may notice the smell is worse in certain spots or after heavy rain.

If you have attic access, look for the vent pipe — it is usually a 2-inch or 3-inch PVC or metal pipe running vertically. Check for visible cracks, loose connections, or gaps where it enters the roof. A small crack can be sealed with PVC cement or plumber's epoxy putty. A loose connection can be tightened with a hose clamp.

If the pipe is cracked along a long section or the damage is near the roof, replacement is safer than patching. This is a job for a plumber or roofer because the roof has to be opened and resealed. The cost varies widely depending on how accessible the pipe is and whether the roof needs repair.

Rule out a main sewer line problem

If the smell is in multiple bathrooms, or if you notice slow drains, backed-up water, or wet spots in the yard, the main sewer line may be cracked, collapsed, or blocked. Sewer gas escapes through the cracks and enters the house through drains and vents.

You cannot fix a main line problem yourself. A plumber will use a camera to look inside the line and locate the damage. Depending on what they find, the repair might be a straightforward clearing of roots or debris, or it might require digging up and replacing a section of pipe. Costs range from $300 for a clearing to several thousand dollars for a replacement.

If you suspect a main line issue, call a plumber for a camera inspection. It is the only way to know for certain what is wrong and what it will cost to fix.

Use temporary measures while you locate the source

While you are tracking down the cause, you can reduce the smell in the room. Open windows to ventilate. Run the bathroom exhaust fan continuously — it pulls some of the gas out of the room, though it will not eliminate the source.

Baking soda absorbs odor. Sprinkle it around the base of the toilet or near drains. You can also pour a cup of baking soda followed by a cup of white vinegar down a drain, let it sit for 30 minutes, and flush with hot water. This will not fix a cracked pipe or dry trap, but it can reduce the smell temporarily.

Do not rely on these measures as a permanent solution. They buy you time while you identify the real problem, but the smell will return until you fix the source.

Frequently Asked Questions

Why does my bathroom smell like sewage only at night?

Temperature changes at night can push sewer gas up through drains more easily, especially if a P-trap is partially dry or a vent pipe is blocked. The gas is still there during the day but may be less noticeable. Pour water down the affected drain and run the exhaust fan to see if that helps. If the smell persists, the trap may be drying out too quickly, which suggests a leak or a blocked vent.

Can I use a chemical drain cleaner to get rid of the smell?

Chemical drain cleaners will not fix the source of sewer smell. They may clear a blockage if that is the problem, but they will not refill a dry trap, seal a cracked pipe, or fix a wax ring. If you use them, follow the label directions carefully and ventilate the room well. A drain snake or plunger is safer and just as effective for most clogs.

Is sewer gas dangerous to breathe?

Hydrogen sulfide in small amounts smells bad but is not when ready dangerous. In high concentrations or over long periods, it can cause headaches, dizziness, and respiratory irritation. If you feel sick or the smell is overwhelming, open windows and leave the room. Have a plumber inspect the source — a persistent sewer smell usually means a real problem that needs fixing, not just a comfort issue.

What if the smell goes away on its own?

If a dry trap refilled itself because you used the drain, the smell will stay gone as long as you keep using it. If the smell disappeared after rain or a plumbing repair elsewhere in the house, something may have shifted or cleared temporarily. Monitor the situation. If it returns, the underlying problem is still there and will need attention.