Toilet Bugs: How to Identify and Get Rid of Them

The small bugs you’re finding in or around your toilet are most likely drain flies, tiny moth-like insects that breed in the slimy buildup inside pipes. They’re the most common “toilet bug,” but depending on what you’re seeing, you might also be dealing with springtails, fruit flies, or fungus gnats. Here’s how to figure out which one you have and what to do about it.

Drain Flies: The Most Common Toilet Bug

Drain flies are grayish or brownish insects about 2 to 3 millimeters long, roughly the size of a pinhead. Their wings and body are covered in fine hair, giving them a fuzzy, moth-like appearance. When they land, they hold their wings in a roof shape over their body. They’re weak, erratic fliers that only travel a few feet at a time, so you’ll usually spot them sitting on the wall near the toilet or circling lazily around the bathroom.

Their name tells you where they come from. Drain flies breed inside the slimy biofilm and organic sludge that coats the inside of drainpipes. Toilet pipes, sink drains, shower drains, and floor drains all collect a layer of bacteria, grease, and decomposing organic matter that these insects depend on. Females lay 30 to 100 eggs directly on this biofilm, and the eggs hatch in about two days. The larvae feed on the slime for 8 to 15 days, pupate for a day or two, then emerge as adults. The entire life cycle takes 8 to 24 days depending on temperature and humidity, which means a small problem can become a visible infestation within a few weeks if the breeding site stays untouched.

Drain flies don’t bite and aren’t known to transmit diseases, though their presence can aggravate asthma in some people. They’re primarily a nuisance, and a sign that organic buildup in your plumbing needs attention.

Other Bugs You Might Find Near Toilets

If the bugs you’re seeing don’t match the fuzzy, moth-like description of drain flies, a few other species are common in bathrooms.

Springtails are tiny wingless creatures, about 1/16 of an inch long, that show up in moist areas like bathroom floors, sinks, and bathtubs. They’re whitish, bluish, or dark gray, and their signature move is jumping several inches into the air when disturbed. They use a spring-loaded appendage tucked under their abdomen to launch themselves. Springtails feed on mold and decaying organic material and are drawn to any surface that stays consistently damp. They sometimes appear in large numbers, which can be startling, but they’re harmless.

Fruit flies look like tiny house flies with striped abdomens and red or black eyes. They’re about 1/8 inch long and are strong, purposeful fliers compared to the clumsy drift of drain flies. Fruit flies are attracted to rotting fruit, sugary residue, and fermenting liquids. If you’re seeing them near your toilet but also near your kitchen trash or fruit bowl, they’re likely fruit flies that wandered into the bathroom.

Fungus gnats resemble small mosquitoes with brown or black bodies and light-colored legs. They’re almost always associated with potted plants and moist soil, so if you have a plant in your bathroom, that’s probably your source. They hover in swarms close to the soil and show little interest in moving far from it.

Why Your Bathroom Attracts Them

Bathrooms provide three things these insects need: moisture, organic matter, and warmth. Toilets that aren’t flushed frequently, guest bathrooms that sit unused for weeks, and pipes with slow drainage all create ideal conditions. The biofilm that coats the inside of pipes is invisible to you but rich in bacteria, fungi, and microscopic organisms that drain fly larvae feed on. Even a clean-looking toilet can harbor enough organic buildup inside its internal trap and overflow pipe to support a breeding colony.

High indoor humidity makes the problem worse. The EPA recommends keeping indoor humidity between 30 and 50 percent, and no higher than 60 percent. Bathrooms with poor ventilation, especially those without windows or with exhaust fans that aren’t used, regularly exceed those thresholds. That excess moisture supports mold growth on grout, caulk, and tile surfaces, which in turn feeds springtails and other moisture-loving insects.

How to Get Rid of Toilet Bugs

Killing the adult flies or bugs you see on the wall is satisfying but won’t solve the problem. The breeding site is inside the drain, and new adults will keep emerging until you eliminate it.

Start by identifying which drain is the source. Place a piece of clear tape, sticky side down, over each drain opening in the bathroom overnight. If drain flies are breeding in that pipe, emerging adults will get stuck to the tape. This works for toilet overflow holes, sink drains, and shower drains alike.

Once you’ve found the source, the fix is mechanical, not chemical. Use a stiff drain brush to physically scrub the inside of the pipe and break up the biofilm layer. For toilets, focus on the overflow pipe and the area beneath the rim where buildup accumulates. Follow up by pouring boiling water or an enzyme-based drain cleaner through the pipe to dissolve remaining organic material. Standard drain cleaners with harsh chemicals can damage pipes over time, so enzyme-based products are the better long-term option. They contain bacteria that digest the same organic sludge the flies breed in.

For springtails, the fix is reducing moisture. Wipe down wet surfaces after showering, run the exhaust fan for at least 15 minutes after bathing, and fix any leaks around the toilet base or under the sink. A dehumidifier can bring bathroom humidity below 60 percent if ventilation alone isn’t enough. Without standing moisture, springtails lose their reason to be there.

Preventing Them From Coming Back

Regular drain maintenance is the single most effective prevention strategy. Run water through all bathroom drains at least once a week, including in guest bathrooms you rarely use. Stagnant water and dry traps give flies easy access to breeding material. An enzyme drain treatment once a month keeps biofilm from rebuilding to the thickness these insects need.

Ventilation matters just as much as cleaning. A bathroom exhaust fan rated for the size of your room, run during and after every shower, keeps humidity from settling into surfaces. If your bathroom has a window, cracking it open after bathing helps. Fixing dripping faucets, running toilets, and any condensation around pipes removes the moisture sources that attract every species on this list.

Toilet bugs are a plumbing hygiene problem, not a sign of a dirty home. Biofilm builds up in every drain over time regardless of how clean the rest of the bathroom is. The good news is that once you remove the breeding material, the insects disappear on their own within a couple of weeks as the last generation of adults dies off without being able to reproduce.