A garlic smell in your bathroom is almost always caused by sulfur compounds, either rising from your drains or, less commonly, from your water supply itself. The most likely culprit is sewer gas seeping through a dried-out or faulty drain trap, but bacterial buildup inside your pipes can produce the same odor. Here’s how to figure out which one you’re dealing with and how to fix it.
Sewer Gas Through a Dry Drain Trap
Every drain in your bathroom has a U-shaped pipe beneath it called a P-trap. This curved section holds a small pool of water that acts as an airtight seal between your living space and the sewer line below. When that water evaporates, the seal breaks, and sewer gas flows freely into your bathroom.
Sewer gas contains a mix of sulfur compounds, and one in particular, methyl mercaptan, is described in chemical databases as having a “disagreeable odor like garlic or rotten cabbage.” It’s produced when organic matter decays under low-oxygen conditions, exactly the environment inside a sewer pipe. Even small amounts are detectable to the human nose, so a partially dried trap can be enough to let the smell through.
How fast does a trap dry out? That depends on your climate. In average conditions, the water in a P-trap evaporates at roughly 1 to 2 inches per month. In arid regions like the desert Southwest, that rate climbs to around 3 inches per month. A guest bathroom or basement half-bath that nobody uses for a few weeks can lose its water seal surprisingly fast. In a dry climate, even six weeks of vacancy can dry out a toilet trap completely.
The fix is simple: run water in every drain you haven’t used recently. Let the faucet or shower flow for 15 to 20 seconds to refill the trap. For floor drains, pour a cup or two of water directly in. If you have a bathroom you rarely use, make a habit of running water through every drain once a week or so. A tablespoon of mineral oil poured into the drain after refilling slows evaporation by floating on top of the water seal.
Bacterial Buildup in Your Pipes
Even when your P-trap is full, a garlic or sulfur smell can come from bacteria living inside the drain itself. A slimy biofilm of soap scum, dead skin cells, hair, and toothpaste builds up along the inner walls of bathroom pipes over time. Bacteria feed on this organic layer and, in the low-oxygen environment of a drain, produce sulfur gases as a byproduct. Sulfate-reducing bacteria are particularly common offenders. They convert sulfate into hydrogen sulfide and related compounds that carry that characteristic garlic-rotten egg smell.
You’ll often notice this smell is strongest when you first turn on the faucet or step into the shower after it hasn’t been used for several hours. That’s because the gas accumulates in the still air inside the pipe and gets pushed out by the first rush of water. If the odor is present only at certain fixtures and not throughout the bathroom, bacterial buildup in that specific drain is the most likely cause.
To clean it out, remove the drain cover and physically clear any visible buildup with a small brush or drain snake. Then flush the drain with a mixture of half a cup of baking soda followed by half a cup of white vinegar. Let it fizz for 15 minutes, then chase it with boiling water. For persistent odors, enzyme-based drain cleaners break down the organic biofilm that bacteria feed on without damaging pipes. Repeating this monthly prevents the problem from coming back.
Sulfur Bacteria in Your Water Supply
If your home uses well water, the garlic smell may not be coming from the drain at all. It could be in the water itself. Sulfate-reducing bacteria can colonize well systems, converting naturally occurring sulfate in groundwater into hydrogen sulfide gas. The telltale sign is that the smell comes directly from the water stream, not from the drain opening, and it’s often most noticeable when water has been sitting in the pipes for a few hours (like first thing in the morning).
Iron bacteria are another possibility in well systems. They produce a bacterial slime inside pipes and water heaters that causes unpleasant tastes and odors. If you notice a slimy, rust-colored residue around your faucet aerators along with the garlic smell, iron bacteria are worth investigating. A water test from your local health department or a certified lab can confirm whether sulfur or iron bacteria are present in your supply. Treatment usually involves shocking the well with chlorine and sometimes installing an aeration or filtration system.
Vent Pipe Problems
Your plumbing system has vent pipes that run up through your roof to equalize air pressure and direct sewer gases safely outside. If a vent becomes blocked by a bird’s nest, leaves, ice, or debris, the system can’t exhaust properly. This creates negative pressure that siphons water out of your P-traps or forces sewer gas back through drains and toilet bowls.
A blocked vent often announces itself with other symptoms: slow drains, gurgling sounds when you flush the toilet, or bubbling in one fixture when another is running. If you’re noticing these alongside the garlic smell, the vent is a strong suspect. Clearing a vent pipe usually requires getting on the roof and flushing it with a garden hose, or calling a plumber if the blockage is deep.
Less Common Causes Worth Checking
A broken or deteriorated wax ring under your toilet can let sewer gas seep out around the base. If the garlic smell seems strongest near the toilet, especially at floor level, this seal may need replacing. You might also notice the toilet rocking slightly on its base, which is a sign the wax ring has compressed or shifted.
Cracked or corroded drain pipes hidden inside walls or under the floor can also leak sewer gas into a bathroom. This is harder to diagnose on your own and typically requires a plumber with a smoke test, where non-toxic smoke is pumped through the drain system to see where it escapes.
In rare cases, a persistent garlic odor on your breath or body (not just in the room) can point to something metabolic rather than plumbing-related. Excessive selenium intake, above roughly 900 micrograms per day, causes a recognizable garlic odor on the breath along with symptoms like hair loss, nail changes, and fatigue. This is uncommon but worth considering if you’re taking high-dose supplements and the smell seems to follow you out of the bathroom.
How to Narrow It Down
Start by identifying which fixtures are affected. If the smell is only near one sink or shower, the problem is local to that drain. If it’s throughout the bathroom, a vent issue or a dried floor drain (sometimes hidden under a cabinet or behind the toilet) is more likely. Smell the running water directly by cupping some in your hands. If the water itself smells like garlic, you’re dealing with a water supply issue rather than a drain problem.
For most people, the answer turns out to be straightforward: a P-trap that needs refilling or a drain that needs cleaning. Both take less than five minutes. If you’ve addressed those and the smell persists for more than a few days, a plumber can run a smoke test or camera inspection to check for cracked pipes, failed seals, or blocked vents that aren’t visible from inside the bathroom.

