To get rid of drain flies and larvae, clear the organic slime lining your pipes with a stiff brush or drain gel enzyme cleaner, then flush the drain daily for a week to disrupt the breeding cycle before adults can lay new eggs.
At a Glance
- Difficulty: easy, no plumbing skills required
- Time: 20 to 30 minutes of scrubbing plus daily follow up for one to two weeks
- Cost: roughly 5 to 20 dollars for a drain brush and enzyme cleaner
- Drain flies breed in the gelatinous gunk inside pipes, not standing water alone
- A full life cycle runs 8 to 24 days depending on drain temperature
Tools and Materials
- Stiff bottle brush or flexible drain cleaning brush
- Enzyme based drain cleaner or gel (avoid bleach based products for this step)
- Boiling water
- Baking soda and white vinegar
- Rubber gloves
- Piece of clear tape (for identifying the source)
- Old rag or paper towels
How to Get Rid of Drain Flies and Larvae Step by Step
- Find the source first. Cover each suspect drain with a strip of clear tape overnight, sticky side down. Any flies stuck to it by morning confirm that drain as a breeding site, according to Rich Mullins, an Indiana based plumber with more than 25 years in the trade and founder of H20 Plumbing.
- Remove the drain stopper or cover and scrub the visible walls of the pipe with a bottle brush or flexible drain brush, working several inches down. This physically pulls out the slime layer where eggs and larvae live.
- Pour boiling water down the drain to loosen remaining film. Wear gloves and pour slowly, since splashback from boiling water can scald skin.
- Follow with a half cup of baking soda, then a half cup of white vinegar. Let the fizzing reaction sit for 15 minutes, then flush with hot water. Never mix vinegar with bleach or ammonia based cleaners, as the combination can release harmful fumes.
- Apply an enzyme based drain gel cleaner according to the label, letting it sit overnight so the enzymes digest organic buildup rather than just masking odor.
- Repeat the brushing and flushing daily for five to seven days to break the breeding cycle, since eggs already laid will keep hatching even after adults are gone.
Clearing Drain Fly Larvae From Showers and Tubs
Shower drains collect hair, soap scum, and skin cells, which form the exact sludge layer larvae feed on. Remove the drain cover, pull out visible hair clogs by hand or with a drain snake, then scrub the pipe opening with a brush before treating with enzyme cleaner. Standing water in a rarely used shower makes the problem worse, so run water through unused drains at least once a week.
Treating Larvae in a Toilet Bowl or Tank
Drain flies can also breed in toilet tanks or bowls that sit unused, since stagnant water plus organic residue creates the same conditions found in pipes. Scrub under the rim and around the waterline with a toilet brush and enzyme cleaner, and check the tank for slime buildup along the walls. Flushing regularly and keeping the tank clean prevents larvae from establishing there in the first place.

Telling Drain Flies Apart From Fruit Flies
Both pests are small and often confused, but they behave differently. Drain flies have a fuzzy, moth like body and stick to moist debris inside pipes and sewage systems. Fruit flies have slender, rounded bodies with clear wings and gather around ripe produce or sugary spills rather than plumbing sludge. Misidentifying the pest often leads people to spray countertops when the real problem sits inside the drain.
When the Infestation Keeps Coming Back
If flies reappear after a week of consistent scrubbing and flushing, the slime buildup may extend deeper into the pipe than a brush can reach, or a cracked pipe elsewhere may be holding standing water. At that point, a licensed plumber can run a camera inspection or hydro jet the line to clear buildup that home tools cannot reach.
Frequently Asked Questions
How to get rid from drain flies?
Scrub the inside of the drain with a brush to remove the organic slime layer, then treat with an enzyme cleaner and flush with hot water daily until flies stop appearing.
Why do i keep getting drain flies?
Recurring drain flies usually mean organic buildup or slime is still present somewhere in the pipe, or a rarely used drain is sitting with standing water that keeps breeding new generations.
How to get rid of drain flies larvae?
Remove the slime coating where larvae feed by brushing the drain walls, then apply an enzyme gel cleaner and repeat treatment for about a week to catch newly hatched eggs.
How to get rid of drain flies larvae in shower?
Pull out hair and soap scum clogs, scrub the drain opening with a brush, and treat with enzyme cleaner, running water through the drain regularly if the shower sits unused.
How to get rid of drain flies larvae in toilet?
Scrub under the rim, around the waterline, and inside the tank with a toilet brush and enzyme cleaner, then flush regularly to prevent stagnant water from supporting larvae.



