Getting rid of kitchen flies comes down to two things: removing whatever they’re breeding in and trapping the adults already buzzing around. Most kitchen fly problems clear up within one to two weeks once you cut off their food and moisture sources. The trick is figuring out which type of fly you’re dealing with, because each one breeds in a different spot.
Identify Which Fly You Have
The tiny flies swarming your kitchen are almost certainly one of three types, and each requires a slightly different approach.
Fruit flies are the most common kitchen invader. They’re about 1/8 inch long with a stout body and distinctive red eyes. They breed in any fermenting fruit, vegetable, or sugary liquid. Overripe bananas, rotting onions, leaking potato bags, and even the wet bottom of your trash can are prime real estate for them. Under warm conditions, their eggs hatch in just two to four days, which is why a small problem turns into a swarm so fast.
Drain flies are fuzzy, moth-like flies that hover near sinks. They lay eggs in the slimy organic film that builds up inside drain pipes, so you’ll notice them most around kitchen sinks and garbage disposals.
Phorid flies look similar to fruit flies but have a distinctive hunched back and tend to run across surfaces rather than fly immediately. They breed in decaying organic matter of all kinds, including broken garbage disposals, wet potted plant soil, and food debris trapped under appliances.
Find and Eliminate the Breeding Source
Traps alone won’t solve a fly problem. A single fruit fly breeding site can produce hundreds of new flies, so you need to find and remove whatever is feeding the next generation. This is the step that actually ends the infestation.
Start with the obvious spots: any fruit or vegetables sitting on your counter. Ripe or damaged produce should be eaten, refrigerated, or thrown away. Then check the less obvious places. Open your pantry and inspect bags of potatoes and onions for soft spots or leaking juice. Pull out drawers where you store produce. Look inside your recycling bin for unrinsed wine bottles, beer cans, or soda containers. Check the bottom of your trash can under the liner for sticky residue.
The places people miss most often are under the refrigerator, behind the stove, and beneath other heavy appliances where spills collect unseen. Move these if you can and clean up anything you find. Damp, dirty mops, sponges, and cleaning rags are also surprisingly common breeding sites. Fruit flies can reproduce anywhere wet, fermenting organic matter exists, so think beyond the fruit bowl.
Clear Your Drains
If your flies congregate near the sink, the organic buildup inside your drain pipes is likely the problem. Bleach might seem like the obvious fix, but it doesn’t fully remove the slimy film where flies lay their eggs. It may kill some larvae on contact, but the sludge stays behind and new flies follow.
A more effective approach is to pour a pot of boiling water down the drain to break down organic matter and kill larvae. For stubborn buildup, use a stiff drain brush to physically scrub the inside of the pipe, then follow up with an enzyme-based drain cleaner. These cleaners use biological agents to digest the organic film over time, which removes the breeding habitat rather than just disinfecting it temporarily. Repeat this process daily for several days if you have an active drain fly problem.
Set Traps for the Adults
Once you’ve removed the breeding sources, traps help mop up the adult flies that are already in your kitchen. Without a breeding site, no new flies replace the ones you catch, and the problem ends within a week or two.
Apple Cider Vinegar Trap
This is the most reliable DIY option for fruit flies. Pour about 1/4 cup of apple cider vinegar into a jar or small bowl and add a few drops of liquid dish soap. The vinegar smells like fermenting fruit, which draws the flies in. The dish soap breaks the surface tension of the liquid so the flies’ wings get wet and they sink instead of landing and flying away. Place a few of these traps near problem areas and replace them every couple of days.
Sticky Traps
Hanging fly ribbons and sticky window traps work well as a passive second line of defense, especially for flies that aren’t attracted to vinegar (like drain flies or phorid flies). Window-mounted sticky traps catch flies drawn to natural light, while hanging ribbons work in areas with higher fly traffic. These are inexpensive and widely available, though they’re not pretty to look at.
Daily Habits That Prevent a Comeback
Fruit flies can develop from egg to adult in as little as seven days during warm weather, so even a brief lapse in kitchen hygiene can restart the cycle. A few consistent habits make a big difference.
Empty your kitchen trash every evening during an active infestation, and make sure the can is clean and dry before putting in a new bag. Wipe up any spilled fruit juice, wine, beer, or other sugary liquids immediately and completely. Rinse recyclable cans and bottles before storing them, and keep your recycling bin outside the kitchen if possible. Clean your garbage disposal regularly by running it with cold water and scrubbing the rubber splash guard, where food debris loves to hide.
For produce, get in the habit of refrigerating anything that’s starting to ripen. Bananas, tomatoes, peaches, and berries are the biggest offenders when left on the counter too long. Store potatoes and onions in a cool, dry place and check them weekly for soft spots. These root vegetables rot slowly from the inside, and by the time you notice the smell, flies have already found it.
Keeping your kitchen dry matters as much as keeping it clean. Wring out sponges and dish rags after use, hang mops to dry rather than leaving them damp in a corner, and fix any slow leaks under the sink. Flies need moisture to breed. A clean, dry kitchen gives them nothing to work with.