The small, fuzzy, moth-like flies resting on your bathroom or kitchen walls are almost certainly drain flies, and killing the ones you can see won’t solve the problem. They breed inside the slimy organic buildup (called biofilm) that coats the inside of your drain pipes, and new adults will keep emerging every few days until you destroy that breeding site. Getting rid of them takes a combination of finding the right drain, physically cleaning it, and waiting out the life cycle.
Why They Sit on Your Walls
Drain flies are weak fliers. After emerging from a drain, they tend to land on the nearest vertical surface and stay there. That’s why you’ll find them parked on bathroom walls, shower tiles, or the ceiling directly above a sink. They’re most active at night, so you may notice more of them in the evening or first thing in the morning. Each adult only lives a few days to a week, but if the biofilm in your pipes remains intact, new flies hatch continuously.
Find the Infested Drain First
Before you start scrubbing every drain in the house, figure out which one is actually producing flies. The simplest method: place a strip of clear packing tape, sticky side down, over each suspect drain at night. Leave a small gap so air can still flow through. Check the tape in the morning. Any flies that emerged overnight will be stuck to it.
You can also coat the inside of a clear plastic cup with petroleum jelly or vegetable oil and invert it over the drain opening. Leave it overnight and check for trapped adults. Test every drain in the area, including floor drains, shower drains, and utility sinks. Run this test for several consecutive nights, since flies don’t emerge on a perfectly predictable schedule.
Don’t assume it’s the most obvious drain. Floor drains in basements and laundry rooms, drains under washing machines, and rarely used guest bathroom sinks are common culprits precisely because they get less water flow and more biofilm buildup.
Mechanical Cleaning Is What Actually Works
The single most effective step is physically removing the biofilm inside the drain. Use a stiff-bristled drain brush (the long, narrow kind sold for cleaning bottle brushes or drain pipes) and scrub the inside walls of the drain body as far down as you can reach. This removes the layer of organic sludge where larvae live and feed. Pull out the drain cover or stopper first and clean that separately, since biofilm collects on those surfaces too.
After scrubbing, flush the drain with plenty of hot water to wash loosened material down the pipe. For drains with heavy buildup, you may need to repeat this process two or three times over the course of a week. The goal isn’t just to kill existing larvae but to strip away the surface they need to survive.
Why Bleach and Boiling Water Fall Short
Pouring bleach down the drain is one of the most common pieces of advice online, and it’s mostly ineffective. Bleach kills adult drain flies on contact, but it does not penetrate the biofilm where larvae are embedded. Biofilm has a protective structure that resists chemical penetration. You may kill a few adults and surface organisms, but the larvae survive inside the slime layer and new adults emerge within days.
Boiling water has a similar limitation. It kills organisms it touches directly, but by the time it travels through the drain body and into the pipe, the temperature drops significantly. It contacts only a fraction of the biofilm surface. As a standalone treatment, neither bleach nor boiling water will end an infestation.
Enzyme-based drain cleaners are a better idea in theory, since they’re designed to break down organic matter. In practice, they work slowly, require repeated applications, and rarely eliminate the full biofilm layer. The buildup in a drain can extend for several feet along the pipe interior, and a single treatment poured from the drain opening can’t reach all of it. Enzyme cleaners work best as a supplement after you’ve already done the mechanical scrubbing.
Kill the Adults You Can See
While you’re addressing the breeding site, you can reduce the number of flies on your walls with a few straightforward methods. A quick spray of diluted dish soap and water will knock them down and kill them on contact. You can also vacuum them off walls and ceilings with a handheld vacuum. Sticky fly traps placed near the infested drain will catch emerging adults before they spread through the room.
None of these methods stop new flies from hatching. Think of them as damage control while the real fix (cleaning the drain) takes effect.
How Long Until They’re Gone
Drain flies complete their entire life cycle in 21 to 27 days under typical indoor conditions. Eggs hatch in less than two days. The larval stage, where they live inside the biofilm, lasts 9 to 15 days. Pupae emerge as adults after just 24 to 48 hours. Adults live only a few days to a week, with females surviving up to seven days if they haven’t laid eggs.
This timeline matters because even after a thorough drain cleaning, you’ll likely see stragglers for up to two weeks. Eggs and pupae that survived the initial scrubbing will still mature into adults. If you’re still seeing new flies after three to four weeks, the biofilm wasn’t fully removed or there’s a secondary breeding site you haven’t found. Go back to the tape test and check drains you may have overlooked.
Preventing Them From Coming Back
Drain flies return when biofilm rebuilds, which happens naturally over time in any drain that carries organic waste. A few habits keep the problem from recurring:
- Run water in unused drains weekly. Guest bathrooms, basement floor drains, and utility sinks that sit idle are prime breeding grounds. A 30-second flush keeps biofilm from accumulating.
- Clean drain covers regularly. Hair, soap scum, and toothpaste residue on stopper mechanisms give biofilm a head start.
- Brush drains monthly in problem areas. If you’ve had an infestation once, a quick scrub with a drain brush every few weeks prevents the sludge layer from reaching a thickness that supports larvae.
- Fix leaks promptly. Any area where moisture collects and organic material sits, including under leaking pipes or around degraded seals, can become a secondary breeding site.
Drain flies are a nuisance, not a health threat, and they’re one of the easier household pests to eliminate permanently. The entire strategy comes down to one thing: remove the biofilm. Everything else is just buying time until you do.