A drain that smells like rotten eggs, sewage, or mildew rarely fixes itself, and chemical drain cleaners poured down the pipe almost never solve the underlying cause. Learning how to clean a stinky drain means first figuring out whether the smell is biofilm in the pipe, a dry P-trap, a clogged vent stack, or something more serious like a cracked sewer line under the slab. After 20 years of residential plumbing calls, roughly 80 percent of stinky drain calls turn out to be one of three simple causes that any homeowner can fix in 15 minutes for under $10 in supplies.
Diagnose the Smell Before You Clean
Different drain smells point to different problems. A sour or musty smell usually means biofilm, which is a slimy bacterial mat coating the inside of the pipe walls. Rotten egg or sulfur smells suggest a dry P-trap that is letting sewer gas back into the room, or anaerobic bacteria breaking down organic matter in the pipe. A mildew or wet basement smell often points to a slow leak under the sink that is wetting the cabinet floor, not the drain itself.
Run your nose around the cabinet, the drain opening, and any nearby fixtures. If the smell hits hardest when water has not run for a few days, suspect a dry trap or vent issue. If it gets worse right after you run water, biofilm is the most likely culprit.
The Baking Soda and Vinegar Method
This classic two-step approach handles light biofilm and works in 90 percent of mildly stinky kitchen and bathroom drains. Pour one cup of baking soda directly into the drain, followed slowly by one cup of white vinegar. Cover the drain with a plug or wet rag to keep the foaming reaction contained inside the pipe rather than bubbling out. Wait 15 minutes, then flush with a full kettle of boiling water.
The reaction loosens grease and food residue but does not actually kill bacteria or eat through serious clogs. Repeat once a week for three weeks if the smell keeps coming back. For tough cases, add a half cup of salt to the baking soda before pouring it in. The grit gives the reaction more scrubbing action against pipe walls.
Enzyme Cleaners Beat Chemical Drain Cleaners
Liquid-Plumr, Drano, and Crystal Drain Cleaner contain sodium hydroxide or sulfuric acid. They eat through hair and grease but also corrode older galvanized and cast iron pipes, damage rubber gaskets, and create dangerous fumes if mixed with bleach already in your trap. They do not address biofilm at all because the contact time is too short.
Enzyme cleaners like Bio-Clean, Earthworm, or Green Gobbler use bacteria and enzymes that digest organic matter over hours instead of minutes. Pour two ounces down the drain at bedtime, do not run water for eight hours, and the enzymes consume biofilm, hair, soap scum, and food residue overnight. Use weekly for a month, then monthly for maintenance. A $25 bottle lasts six months and works in any pipe material.
The Dry P-Trap Problem
Every drain has a U-shaped pipe called a P-trap that holds about a cup of water. That water blocks sewer gas from rising back into the room. Guest bathrooms, basement floor drains, laundry tubs, and shower drains that go unused for two weeks or more can evaporate dry, releasing hydrogen sulfide gas straight into your home.
The fix takes 10 seconds. Pour a quart of water down any drain that smells like sulfur and has not been used recently. Add a tablespoon of mineral oil on top to slow evaporation if the fixture stays unused. For floor drains in basements or garages, oil floats on the trap water and extends the dry-out time from two weeks to six months or more.
Clean the P-Trap Physically
When chemical and enzyme methods fail, the P-trap usually has a buildup of hair, soap, food, or congealed grease that you need to remove by hand. Put a bucket under the trap, unscrew both slip nuts by hand or with channel locks, and pull the trap free. Dump the contents into the trash, not back into another drain.
Scrub the inside of the trap with a bottle brush and dish soap. Inspect the tailpiece going up to the sink and the trap arm going to the wall. A coat hanger bent into a hook pulls out hair clogs that escape the bottle brush. Reassemble with the slip washers oriented correctly and hand-tighten, then snug with pliers a quarter turn past hand tight. This 15-minute job handles serious smells that no chemical can touch.
Garbage Disposal Stink
Kitchen drain smells often come from the garbage disposal, not the pipe below it. Food particles get trapped under the rubber splash guard and against the grinding chamber walls. Pull the splash guard out by hand and scrub both sides with an old toothbrush and dish soap. The underside is almost always coated in a black slime layer that smells exactly like the drain.
For ongoing maintenance, grind a cup of ice cubes mixed with rock salt to scour the chamber, then drop in a halved lemon or orange peel and grind with cold water running. Avoid pouring grease or starchy foods like pasta and potato peels into the disposal. They coat the chamber walls and accelerate buildup.
When the Smell Means Bigger Problems
If the smell persists after cleaning the trap, the disposal, and running enzyme cleaner for two weeks, the issue is likely deeper in the system. A clogged plumbing vent stack on the roof can pull sewer gas through P-traps even when they hold water. Birds nesting in the vent, ice in cold climates, or leaf debris all block the airflow that lets drains work correctly.
A cracked drain pipe inside the wall or under the slab is the worst case. Sewer gas seeps into the framing or subfloor and the smell spreads through HVAC ducts. If you smell sewage in rooms without drains, or the smell gets worse over months, get a plumber with a smoke test or camera inspection. Repairs run $400 for a clogged vent to $4,000 or more for slab leak repairs, but ignoring them causes mold, structural damage, and serious health risks.
Prevent Smells From Coming Back
Three habits keep drains fresh long term. First, run hot water for 30 seconds after every kitchen sink use to flush grease before it cools and coats the pipe. Second, pour enzyme cleaner down each drain monthly to prevent biofilm buildup. Third, use hair catchers in shower and bathroom sink drains. A $4 silicone catcher prevents 95 percent of hair clogs and the biofilm that feeds on trapped hair.
A Quick Action Plan
Start with boiling water and a baking soda flush. If that fails, try enzyme cleaner for a week. If still stinky, pull the P-trap and clean it physically. Check the garbage disposal splash guard if it is a kitchen drain. Address any dry traps in unused fixtures. If none of that works, call a plumber for a vent or sewer line inspection. Most stinky drains resolve in the first two steps for under $30 in supplies.