Stop Fruit Flies: Gone for good.
The fastest way to stop fruit flies from a drain is to confirm the drain is really the source, then scrub away the film they breed in, because pouring something down it isn't enough.
The sink looks clean from above. The flies disagree. A drain can hide a thin, smelly film of food and grease that makes a perfect nursery. Pouring something down it once usually misses that film, which is why the problem keeps returning.
Don't assume the kitchen sink is the only culprit. Confirm each drain before you spend a week scrubbing the wrong one.
When the sink won't be used overnight, cover the drain opening with clear packing tape, sticky side down. Press it to the rim so flies coming up from the pipe have to touch the adhesive. You can leave a tiny gap at one edge, or cover the opening fully if you're sure no one will run the water. In the morning, peel the tape back and look at the sticky side. Flies stuck there mean they were coming from inside that pipe.
Repeat this on every drain that might be involved: the kitchen sink, the bathroom basin, the tub, the shower, a laundry tub, and a floor drain if you have one. If you're testing more than one at a time, label the tape so you know which result belongs where. A drain that catches nothing can still get a basic clean later, but the ones with flies on the tape are your priority.
The same wet pipe can interest more than one small fly, and a plant in the next room can be a completely different problem. A close look saves you from treating the wrong place.
If the tape test is positive, the cleaning steps below are useful for both fruit flies and drain flies, because you're removing the film they use. If the flies are clustering on potting soil and look more like gnats, spend your energy on the plant and a sticky card there, and still give the drain a check so you don't miss a second source.
For a side-by-side look at how they look, how they fly, and which fix fits each one, see fruit flies vs drain flies vs gnats.
The goal is to scrape the slimy layer off the pipe walls, the stopper and any hidden openings. Liquid alone tends to run down the middle and leave that layer in place.
Use a long, flexible drain brush or pipe brush that can reach past the stopper. Take the stopper or strainer out and wash it in hot soapy water. Scrub the visible throat of the drain and as far into the pipe as the brush will go. You're after the coating, not necessarily a clog. If a lot of gunk comes up, that's a good sign you found the right job, not a sign you made things worse.
Many bathroom sinks, and some kitchen sinks, have a small overflow opening near the rim of the basin. It connects into the drain and quietly collects the same wet film. People clean the plughole and never touch it. Use a smaller bottle brush, or a cloth wrapped on something narrow and bent, then flush the overflow with hot tap water. If the tape test was positive and the main drain looks clean, this hole is the next place to suspect.
After you've loosened the film, run hot water from the tap for a good stretch to rinse it down. If your drains are plastic, which is common in modern homes, don't pour a kettle of boiling water into the pipe. That much heat can soften joints and stress seals. Hot tap water is enough for the rinse. If you aren't sure what your pipes are made of, stick with the tap.
Some drain products are designed to cling to the pipe or sit there long enough to help break down organic film. Used after a real scrub, they can be a useful follow-up, especially overnight when the sink won't be used. They are not a substitute for the brush. Read the label for your type of pipes, a septic system, and a garbage disposal, and don't mix products together. We have not tested brands ourselves yet. For how this category compares with traps, and for shopping search links, see our trap comparison.
Food paste collects on the underside of the rubber splash guard and around the rim, which is a short flight from the drain. If your model lets you lift or remove those flaps, clean the underside thoroughly. Wipe the ring around the opening, then flush the disposal according to the maker's directions. A disposal that smells sour after each use is a hint this step is overdue.
A guest shower, a basement floor drain, or a laundry tub you almost never run can sit damp and ignored, or dry out between uses. A dry trap can also let unpleasant sewer odours into the room, which is a separate problem from flies but a sign the drain has been neglected. Tape-test these openings too. Clean any that fail, pour water back into drains you rarely use so the trap isn't left dry, and put them on the same weekly schedule as the kitchen sink until the outbreak is over.
A tight silicone cover can sit over a flat sink or tub opening overnight, once you've already scrubbed, so adults still coming up from the pipe meet a sealed lid. It is not a fruit-fly treatment, and it does not clean the film inside the pipe. One example is the Vaincre 5-inch silicone drain stopper, which is sold as a kitchen and tub cover rather than as a fly trap. We have not tested it.
Eggs already in the pipe can still hatch after a perfect first clean. One enthusiastic night is rarely the end of it.
Even a perfectly cleaned drain may not be the only nursery. Fruit flies often keep a second spot going in the bin, the recycling, or a soft potato at the back of a cupboard. After the pipe is under control, walk through the hidden-source checklist for flies that keep coming back with no fruit around.
Home cleaning has a limit. At some point the issue is the pipe, not your technique.
Call a plumber or your building's maintenance team if any of these sound familiar:
More traps won't fix a broken or inaccessible section of pipe. Get the plumbing looked at, then use a trap only to catch leftover adults once the moisture problem is actually solved.
Bleach often rushes through the middle of the pipe and doesn't cling to the film on the walls, which is the part you need to remove. It's also a harsh thing to put down a household drain without a good reason. A brush, a hot-tap flush, and, if you want, a product meant to sit on that film, is the more useful approach.
A new group may have hatched from eggs that were already in the film, or there's a second source you haven't found. That's why the schedule includes a midweek scrub and a second tape test, and why it's worth checking the no-fruit hidden sources as well.
Yes. Any drain that stays damp can hold film, including a tub, shower, or a floor drain. Tape-test those openings the same way. Also look at the bathroom bin and any slow leak around the toilet base, which are covered in our bathroom fruit fly guide.
It can. That channel stays wet, almost never gets scrubbed, and connects into the same drain. If the main opening looks clean and the tape test is still positive, clean the overflow before you assume the flies are coming from farther down the pipe.