How to Get Rid of Bathroom Smell: 11 fixes sorted by smell

You’ve scrubbed the toilet, washed the bath mat and the bathroom still stinks. That’s the trap with how to get rid of bathroom smell: most of it doesn’t come from anything you can wipe. They come from a pipe that’s lost its water, a seal under the toilet, the water heater or the floor around the toilet base.

So before you buy another cleaner, put a name on the smell. Sewage, rotten eggs, stale pee and damp each point to a different source, and each has a quick test that tells you if you’ve found it. Air freshener isn’t one of them. A master plumber quoted by Bob Vila calls covering the smell with air fresheners and forgetting about it the biggest mistake he sees homeowners make.

How to get rid of bathroom smell: what causes each smell

What you smell Where it’s usually coming from The test
Sewage, strongest at a sink, tub or floor drain A dry trap, or gunk in the drain Run water. Then fill a glass at that sink, step away and swirl it
Sewage, strongest at the toilet A failed wax ring under the toilet Does it rock? Is there water at the base?
Sewage that comes and goes, gurgling drains A blocked plumbing vent or a cracked pipe Comes back within a day or two of refilling the trap
Rotten eggs from the hot tap only The water heater Smell a glass of hot water, then a glass of cold
Stale urine, even after cleaning Pee soaked into grout, caulk and floor round the toilet Blacklight in a dark room
Musty, damp, mildew Moisture: steam, wet towels, a slow leak Worse after showers? Damp under the sink?

The glass test comes from UGA Extension, and it’s the most useful thing on this page. If the water in the glass doesn’t smell once you’re away from the sink, the water is fine and the smell is coming up the drain.

1. Sewer smell: refill any dry drain trap

Start here, because it’s free and it’s the usual answer in a guest bathroom. Every drain has a U-bend (the trap) that holds a plug of water to keep sewer gas in the pipe. When nobody uses it, the water evaporates, and a sink drain can go dry in under 30 days, according to that same master plumber.

Run the faucet for a minute, or pour a quart (about 1 liter) of water into a shower or floor drain. For a toilet nobody uses, flush it 3 to 5 times. If the smell fades within the hour, that was it.

Going away for a while? Oatey suggests 1 to 2 tablespoons (15 to 30 ml) of mineral oil on top of the water in each trap. It floats and slows evaporation.

Running the faucet of a little-used bathroom sink to refill its drain trap

2. Sewer smell: scrub the slime out of the drain

If the trap is full and the drain still smells (and the water in your glass doesn’t), the culprit is the film inside the pipe. Hair, soap and other gunk build up on the pipe walls, and bacteria in that film are the most common cause of a sewage or rotten-egg smell from a drain.

Pull the stopper or cover, clean it, and scrub as far down the pipe as you can reach with a stiff drain brush. If it drains slowly, clear the clog with a drain snake first. Boiling water, bleach, and baking soda with vinegar don’t shift the film. The full drain routine is in our guide to drain smell.

3. Sewer smell at the toilet: replace the wax ring

A wax ring seals the bottom of the toilet to the drain in the floor. When it fails, sewer gas leaks out at the base. The signs: the smell is strongest beside the toilet, the toilet rocks, there’s water around the base, or the floor next to it is stained or warped.

Tighten the two floor bolts gently first. If the toilet still rocks or the smell stays, the ring has to go. Shut off the water, empty the tank and bowl, unhook the supply line, take off the nuts and lift the toilet straight up. Scrape off all the old wax and clean the floor underneath while you’re there. Set the new ring centered, lower the toilet onto the bolts and tighten only until it stops wobbling, because overtightening can crack the porcelain. If the floor around it is soft, get the subfloor checked before the toilet goes back.

Setting a new wax ring on the toilet flange with the toilet lifted off

4. Sewer smell that keeps coming back: get a plumber’s smoke test

You refilled the trap, the toilet is solid, and two days later it smells again. That points to the plumbing vent (the pipe through your roof that lets sewer gas out and keeps air pressure even) or a cracked pipe. Oatey lists gurgling drains, slow drainage and on-and-off sewer smells as the signs of a vent problem. A blocked vent can pull the water out of your traps.

Leaves or snow over the roof vent can block it, but stay off the roof. A plumber can check the vent and run a smoke test, blowing harmless smoke into the drain lines to show exactly where it escapes.

5. Rotten eggs from the hot tap: replace the anode rod

Hot water smells of rotten eggs, cold doesn’t? It’s the water heater. Texas A&M AgriLife Extension explains that many heaters, electric ones especially, have a magnesium rod inside that protects the tank from corrosion. It can react with sulfur in the water and make hydrogen sulfide, the rotten-egg gas.

The fix is swapping the magnesium rod for an aluminum or zinc one. Check with the manufacturer first, because taking the rod out can void the heater’s warranty.

Comparing a glass of hot tap water with a glass of cold to find a rotten egg smell

6. Rotten eggs that survive a new rod: heat-treat the water heater

If a new rod doesn’t fix it, bacteria are probably living in the tank. Virginia Cooperative Extension says plainly that in that case, replacing the rod won’t solve the problem. A sour hot-water smell, like an old damp rag, points the same way, and Texas A&M notes it often starts after the thermostat has been turned down.

Wisconsin’s DNR says the bacteria die above 140°F (60°C) and recommends 160°F (71°C) for 8 hours, then draining the tank. Only do it if the heater has a working pressure relief valve, warn everyone about scalding, and turn the thermostat back down afterward. The smell can come back, and you repeat it when it does.

7. Stale urine: find it with a blacklight

You can’t clean pee you can’t see. Dried urine glows yellow-green under a UV blacklight, so wait until it’s dark, turn off the lights and scan the floor round the toilet, the grout lines, the caulk at the base, the wall behind it and the side of the vanity. Mark every glowing patch with masking tape, so none gets missed when you clean.

8. Stale urine: soak the grout with enzyme cleaner

Regular cleaners and bleach kill bacteria but leave the residue that smells. Enzyme cleaners digest it. One Reddit poster whose house came with a previous owner who “had terrible aim” tried a bunch of products, then doused the tile in the enzyme cleaner they used for cat pee: “Smell all gone.”

Soak every marked spot and a margin around it, and keep it wet for the label’s dwell time (plastic wrap over porous grout stops it drying). Let it dry fully before you judge it. If pee has run under the edge of the toilet base, cleaning the top won’t reach it. The fix there is lifting the toilet and cleaning underneath, which means a new wax ring anyway (see method 3).

Spraying enzyme cleaner on the grout around the base of a toilet

9. Musty smell: run the fan, and keep it running

A musty bathroom is a damp bathroom. Turn the exhaust fan on when the shower starts and leave it on for at least 20 minutes after you finish. Most people switch it off on the way out, but the walls, floor and towels keep giving off moisture. A timer switch fixes that for good. It has to vent outside, and a dusty grille barely moves air, so wipe it monthly.

No fan? Open the window after every shower; Homes and Gardens suggests five minutes after use. If there’s already black or gray growth on the grout or ceiling, deal with that next: see mold in the bathroom.

10. Musty smell: hang towels spread open

Hang each towel spread open on its own bar so air reaches both sides. Not on a hook, not folded, never damp in the hamper, where a wet towel starts to smell musty within a couple of hours. Wash bath mats regularly too.

11. Musty smell that won’t quit: check for leaks

A slow leak keeps one corner permanently damp, and no fan beats that. Feel the cabinet floor under the sink and the joints on the pipes for dampness, look around the toilet base, and check the supply line to the back of the tank. Tighten loose connections and replace worn washers. A leak you can’t reach or stop is a plumber’s job.

How to stop bathroom smells coming back

Run water in every drain you rarely use once a month, and flush a spare toilet on the same day. Fan on for every shower, towels spread open, mats washed. Give the floor round the toilet a squirt of enzyme cleaner as part of your cleaning routine. And when the toilet starts to rock, deal with it then, not after the smell arrives.

When to call a professional

Call a plumber when the sewer smell returns after you’ve refilled the trap and the toilet is firm, when drains gurgle, or when you’d rather not lift a toilet or touch a water heater. If the floor round the toilet is soft or stained, have it looked at before the subfloor rots. If sewage is backing up into the house, get out and call for help. Bob Vila’s advice is never to stay in a home with a sewer backup. Mold covering more than about 10 square feet (1 square meter) is also a job for a pro.

Frequently asked questions

Why does my bathroom smell like sewage only sometimes?

A trap that dries out between uses, or a vent problem pulling the water out. If a refilled trap holds for a day or two and the smell returns, suspect the vent.

Why does only my hot water smell like rotten eggs?

The water heater: its magnesium rod or bacteria in the tank. Swap the rod first, then heat-treat if needed.

Why does my bathroom smell like pee even after cleaning?

It’s soaked into grout, caulk or the floor round the toilet, where normal cleaners don’t break it down. Blacklight, then enzyme cleaner.

Do air fresheners get rid of bathroom smell?

No. They only cover it. Worse, they can cover a smell you need to notice, like sewer gas from a failed seal.