How to Get Rid of Smell in a Toilet

Getting rid of a toilet smell starts with removing residue around the bowl and base, but a rotten-egg or sewer odor usually needs a plumbing check rather than an air freshener. A toilet can look clean while odor is trapped under the rim, in grout around the base, in a dry drain trap, or escaping through a failed seal. Start by locating the smell, clean the likely surfaces, then check for plumbing clues if it persists.

Use this quick guide to match the odor to the most likely fix.

Where or When You Smell It Likely Cause First Fix
Inside the bowl or under the rim Buildup under the rim or in the bowl Clean the bowl, rim holes, and overflow area thoroughly
On the floor or around the toilet base Urine splash, residue in grout or caulk, or a leaking toilet seal Clean the floor and base; test whether the toilet rocks
Rotten-egg or sewer smell Dry fixture trap, failed wax ring, drain or vent leak Add water to unused drains, then arrange plumbing diagnosis if needed
Musty or mildew smell Damp textiles, wet flooring, moldy caulk, or a hidden leak Dry the room, wash fabrics, and inspect for moisture
Odor appears when water first runs Stagnant water odor or a household plumbing issue Run all household faucets wide open together for 3 to 5 minutes

Why a Clean Toilet Can Still Smell

The toilet bowl is only one possible source. A bathroom odor can come from urine residue on the outside of the toilet, damp flooring, a sink or shower drain, or a plumbing opening that lets sewer gas into the room.

Urine odor can persist despite repeated cleaning, including when the toilet is not being used. Tiny splashes can settle around the toilet base, behind the seat hinges, on the wall beside the bowl, and in porous grout or caulk.

A sewer odor is different. It may smell like rotten eggs, sulfur, or sewage. Your plumbing system uses water-filled traps and sealed connections to block sewer gas from entering the house. A functioning plumbing system is designed to keep those gases out, according to the City of Kerrville’s sewer-odor guidance.

Mildew smells are usually moisture problems, not toilet-bowl problems. Wet bath mats, damp towels, failing caulk, water around the toilet base, or a slow leak can leave a musty smell even after a normal cleaning.

How to Get Rid of Toilet Smell

Work through these steps in order. Stop once the smell is gone, unless you notice a sewer odor, a rocking toilet, water around the base, or damaged flooring.

Step 1: Ventilate the Bathroom and Locate the Odor

  1. Open a window or run the bathroom exhaust fan.
  2. Remove trash, damp towels, bath mats, and laundry from the room so they do not confuse the diagnosis.
  3. Smell carefully near the bowl, under the rim, at the toilet base, beside the sink drain, near the shower or tub drain, and at any floor drain.
  4. Check whether the odor is strongest after flushing, after someone uses the toilet, when the room has been closed up, or when water first runs.

A smell concentrated inside the bowl usually calls for cleaning. A smell strongest at the floor or toilet base needs more investigation.

Step 2: Clean the Bowl, Rim, Exterior, and Floor

  1. Flush the toilet first so you can see the normal water level and confirm that it drains normally.
  2. Apply toilet cleaner inside the bowl and scrub under the rim with a toilet brush. Pay attention to the underside of the rim, where buildup can hold odor.
  3. Wipe the seat hinges, lid, tank handle, tank sides, bowl exterior, supply-line area, and floor behind the toilet.
  4. Clean around the toilet base, including the grout, caulk line, and the narrow gap where the bowl meets the floor.
  5. Rinse or wipe away cleaner residue from surfaces that are not meant for toilet-bowl cleaner, then dry the floor completely.

Do not mix cleaning products. In particular, keep bleach-based products separate from acids, ammonia, vinegar, and other cleaners.

If the odor improves but comes back around the toilet base, treat the surrounding floor as a urine-residue problem before assuming there is a plumbing leak.

Step 3: Use Shaving Cream for Urine Odor Around the Base

Foaming shaving cream can help lift odor-causing residue from textured flooring, grout, caulk, and the area around the toilet base.

  1. Start with a clean, dry floor and toilet exterior.
  2. Spread shaving cream around the toilet base, over nearby grout lines, and on any area where urine splash is likely. Keep it off rugs and fabrics.
  3. Leave it in place for at least 15 minutes. For stronger urine odors, leave it for up to 30 minutes.
  4. Wipe up the shaving cream with paper towels or a damp cloth, then wipe the area again with clean water.
  5. Dry the floor fully so you can tell whether a new wet spot appears after flushing.

Do not leave shaving cream on the floor for longer than 3 hours. It may help with surface urine odor, but it will not fix a failed toilet seal, a drain problem, or sewer gas.

Step 4: Refill Any Dry Sink, Shower, or Floor-Drain Trap

Every sink, shower, tub, and floor drain has a trap designed to hold water. That water creates an air seal between the room and the sewer line. If a fixture has not been used for a while, the water can evaporate and allow sewer odor into the bathroom.

  1. Run water into every sink, shower, tub, and floor drain in or near the bathroom.
  2. Pay special attention to guest-bathroom showers, basement floor drains, utility sinks, and rarely used tubs.
  3. Recheck the room after the drains have water in them.

A dry trap lets sewer gas vent directly into the home (Village of Almont sewer-odor guidance). For a rarely used drain, you can add ¼ cup of mineral oil after adding water; the oil slows evaporation from the trap.

Step 5: Test the Toilet Seal at the Floor

A toilet that smells around its base may have a failed wax ring. The wax ring seals the toilet outlet to the drain pipe below the floor. If the seal fails, sewer odor and sometimes moisture can escape.

  1. Grip the toilet bowl near the rim and gently try to move it side to side.
  2. A properly secured toilet should resist a few pounds of pressure and should not rock.
  3. Look for moisture, staining, soft flooring, cracked caulk, or a dark ring around the base.
  4. If the toilet rocks, stop using it until the bowl is secured and the seal is checked. Rocking can break the wax seal even when there is no visible leak.

If the floor is solid and the toilet is otherwise in good condition, replacing the bowl wax ring can be a manageable DIY repair:

  1. Shut off the water valve behind the toilet, flush, and remove remaining tank and bowl water with a sponge or small container.
  2. Disconnect the water-supply line from the tank. Remove the plastic caps at the toilet base, then remove the nuts from the closet bolts.
  3. Lift the toilet straight up and set it on a protected surface. A helper is useful because toilets are heavy and awkward.
  4. Scrape off the old wax ring. Inspect the toilet flange, subfloor, and surrounding floor. Stop and call a plumber if the flange is broken, the floor is soft, or there is clear water damage.
  5. Center a new bowl wax ring on the flange, lower the toilet straight down over the bolts, and press it firmly into place without sliding it around.
  6. Reinstall the washers and nuts, tightening them gradually until the bowl is stable. Do not overtighten, because porcelain can crack.
  7. Reconnect the supply line, turn the water back on, let the tank fill, and flush several times. Check the base with dry paper towels for moisture.

Other Toilet and Bathroom Smells

Bathroom odors may come from ongoing moisture, lingering residue, or water sitting in household plumbing, while persistent sewage-like smells may indicate a trap, seal, drain, or vent issue.

Musty or Mildew Smells

A mildew smell usually means there is ongoing moisture somewhere in the bathroom. Remove and wash bath mats and towels, dry the floor, clean any visible mildew from suitable surfaces, and inspect the shower, tub, vanity, and toilet base for leaks.

Look closely at caulk around the tub and toilet, flooring around the toilet, and the ceiling below the bathroom if there is one. A persistent musty odor, bubbling paint, soft flooring, or visible staining calls for a plumber or water-damage professional.

Poop Smell That Lingers After Flushing

A brief odor after use is normal, but it should clear after a proper flush and ventilation. If it remains in a clean bathroom, scrub under the toilet rim and clean the outside of the bowl, floor, and base where residue may have settled.

If the smell is sewage-like, keeps returning when the bathroom is empty, or gets worse after flushing, treat it as a possible trap, seal, drain, or vent issue.

Water Odor That Fades While Faucets Run

If the odor appears when you first turn on water and then fades, the issue may be related to water sitting in household plumbing rather than the toilet itself. Open all household faucets wide open simultaneously for 3 to 5 minutes, then close them and check whether the odor returns.

If the water itself continues to smell bad, contact your water utility if you use municipal water, or have a plumber inspect the household plumbing system. If you use a private well, arrange a well-water evaluation.

When a Plumber Should Diagnose the Toilet Smell

Call a plumber when the odor is strongly sewer-like, the toilet rocks, water appears at the base, the floor feels soft, or cleaning and refilling traps do not solve the problem.

Blocked Vent Stacks

Drain pipes need vent stacks to equalize pressure and keep trap water where it belongs. A blocked vent can contribute to sewer odor, slow draining, gurgling, or trap-water loss.

Have a plumber inspect all vent stacks for clogs or a dead rodent lodged in a vent pipe. Roof access is not a good DIY task for most homeowners, and clearing a vent without identifying the blockage can make the problem worse.

Hidden Drain and Vent Leaks

A plumber can perform a smoke test when the odor source is unclear. During this test, drain vents are capped and smoke is sent through the drain, waste, and vent system. Smoke that becomes visible indoors identifies the opening where odor can escape.

This is especially useful when the toilet is stable, traps contain water, and the bathroom still smells like sewer gas.

Older Cast-Iron Drain Pipes

Older cast-iron drain pipe can crack along its top side, where damage may be difficult to see. Corroded fittings, holes in vent piping, and cracked drain lines can all release odor.

An entire cracked pipe section generally needs replacement rather than a surface patch. A plumber can replace it with PVC drain pipe of the same size and use no-hub couplers; the exact replacement diameter must match the existing cracked pipe.

Confirm the Smell Is Gone and Keep It From Returning

After cleaning or repairing the likely cause, do a simple check:

  • Enter the bathroom after it has been closed and unused, then smell near the bowl, base, sink drain, and shower drain.
  • Flush once and check around the toilet base with dry paper towels.
  • Make sure the toilet does not shift when gently tested.
  • Confirm that sinks, showers, tubs, and floor drains contain water.
  • Check that the exhaust fan works and that towels and bath mats can dry between uses.

For prevention, make regular bathroom cleaning a habit. Run water in rarely used fixtures before their traps dry out.

Frequently Asked Questions

Why does my toilet smell terrible even though it is clean?

A clean-looking toilet can still smell because the source may be under the rim, around the base, in the floor grout, or in the plumbing. A rotten-egg or sewer smell points more strongly to a dry trap, failed wax ring, cracked pipe, or vent problem than to a dirty bowl. If the toilet rocks instead of resisting a few pounds of pressure, the wax ring may have failed.

Can shaving cream remove urine smells from the bathroom?

Yes, shaving cream can help with urine odor trapped in grout, caulk, and textured flooring around the toilet. Leave it on for at least 15 minutes, or up to 30 minutes for a stronger odor, then wipe and rinse the area. Shaving cream will not solve sewer gas, a leaking toilet seal, or moisture coming from under the floor.

What gets rid of poop smell in a bathroom?

Ventilation and thorough cleaning of the bowl, underside of the rim, toilet exterior, and floor usually remove ordinary lingering odor. If the smell remains when nobody has used the toilet, smells like sewage, or returns after flushing, check unused drains for water and arrange a plumbing inspection.

Why does my bathroom smell like mildew?

A mildew smell usually comes from damp materials, hidden moisture, moldy caulk, wet rugs, or a slow plumbing leak. Wash and dry fabrics, dry the bathroom floor, and inspect around the toilet, tub, shower, and vanity. Call a plumber if you find wet flooring, a soft toilet base, water stains, or a smell that persists after the room is dried and cleaned.

When should I call a plumber for a smelly toilet?

Call a plumber if you have a sewer or rotten-egg smell, a rocking toilet, water at the base, slow drains, gurgling, damaged flooring, or an odor that remains after cleaning and refilling drain traps. Ask for vent-stack inspection or a smoke test when the source cannot be found.