The best kitchen fly trap depends on which flies you’re dealing with. Small fruit flies respond well to a simple bowl of apple cider vinegar with a drop of dish soap, while larger house flies and drain flies need different approaches. Most kitchen fly problems involve fruit flies, and a basic DIY trap can start catching them within hours. Here’s how to pick the right trap and actually solve the problem.
Identify the Fly First
Kitchens typically attract four types of small flies, each breeding in different spots. Getting this right matters because a vinegar trap that works perfectly for fruit flies won’t do much for drain flies.
Fruit flies are the most common kitchen invader. They’re about 1/8 inch long with a stout body and distinctive red eyes (though a dark-eyed variety exists that prefers drains and damp areas). They hover around ripe produce, compost bins, and anything fermenting. A single female can lay up to 100 eggs per day, and at typical room temperature (around 72°F), those eggs become new adults in just 10 to 12 days. That’s why a small problem becomes an infestation fast.
Drain flies look fuzzy or moth-like and tend to sit on walls near sinks. Their larvae live in the slimy biofilm inside drain pipes, so trapping adults without cleaning the drain won’t solve anything.
Phorid flies are similar in size to fruit flies but have a distinctly humped back and run across surfaces in quick, jerky movements rather than flying immediately. They breed in decaying organic matter and can even burrow through soil to reach it.
House flies are much larger and rarely breed indoors. They come in through open doors and windows. Most stay within about a mile of their breeding site outdoors, and they’re known to carry over 100 diseases, so keeping them out of food prep areas is especially important.
The Apple Cider Vinegar Trap
This is the go-to DIY trap for fruit flies, and it works because apple cider vinegar mimics the smell of fermenting fruit. Pour about half an inch of apple cider vinegar into a small bowl or jar, then add a single drop of dish soap. The soap breaks the surface tension of the liquid, so when fruit flies land on it, they sink and drown instead of standing on the surface.
You can boost effectiveness by covering the bowl with plastic wrap and poking a few small holes in it with a toothpick. Flies crawl in through the holes but struggle to find their way back out. Another approach: punch tiny holes in a mason jar lid with a nail, fill the jar with about a quarter cup of vinegar and a few drops of dish soap, and screw the lid on.
Place the trap near the source of the problem, whether that’s your fruit bowl, trash can, or sink. Expect to start seeing flies in the trap within a few hours. Replace the vinegar every two to three days as it loses potency.
Other DIY Baits That Work
Apple cider vinegar isn’t your only option. Red wine works on the same principle, since fruit flies are attracted to fermentation. If you have an almost-empty wine bottle, add a few drops of dish soap to the remaining wine and leave it on the counter. The narrow bottle neck acts as a natural funnel that flies enter but can’t easily escape.
Overripe banana slices placed inside a jar covered with punctured plastic wrap are another effective lure. The banana produces the same fermentation gases that vinegar does, sometimes even more strongly. You can also mix a pinch of active dry yeast with warm water and a teaspoon of sugar in a jar. As the yeast feeds on the sugar, it produces carbon dioxide and alcohol, both of which attract fruit flies.
Commercial Traps for Kitchens
If DIY traps aren’t cutting it, or you want something less visible on your counter, plug-in traps designed for indoor use combine UV light with a small fan and sticky glue boards. The light attracts flies (typically using wavelengths between 365 and 460 nanometers), the fan pulls them in, and the adhesive board holds them. These traps are silent, chemical-free, and safe around food.
One important limitation: most small indoor UV traps work well on fruit flies, gnats, and small moths but are not effective against house flies, which are larger and less responsive to the light at that scale. For best results, place the trap near known problem areas like fruit bowls, trash bins, or houseplants, and turn off surrounding lights so the UV glow stands out.
Sticky window traps and hanging glue strips are a lower-tech commercial option. They use a sweet-smelling adhesive to attract flies. These work for a range of fly sizes but aren’t the most attractive thing to have in your kitchen.
Dealing With Drain Flies
If the flies in your kitchen look fuzzy and congregate near your sink, a vinegar trap won’t solve the root problem. Drain flies breed inside the organic buildup coating the inside of your pipes. To clear them out, start by cleaning the drain mechanically. Remove the drain cover, scrub inside with a stiff brush, and flush with boiling water. Enzyme-based drain cleaners (gel formulas that break down organic matter) can help dissolve the biofilm where larvae live.
Repeat the cleaning every few days for about two weeks. That covers the full breeding cycle and ensures newly hatched larvae don’t reestablish the colony. Simply pouring bleach down the drain is less effective because it flows past the biofilm without breaking it down.
Prevention Is the Real Fix
Traps catch adult flies, but they won’t stop the cycle if breeding sites remain. A few changes in your kitchen can prevent flies from showing up in the first place.
Store ripe fruit in the refrigerator rather than on the counter. Fruit flies lay eggs on the skin of soft, ripening produce, and those eggs hatch within a single day at room temperature. Bananas, peaches, and tomatoes are the biggest attractors.
Take out kitchen trash regularly and wipe down the inside of the trash can with a heavy-duty cleaner when it gets sticky or smelly. Let the can dry completely before putting a new bag in. Fruit flies breed in warm, damp spaces, and the residue at the bottom of a trash bin is ideal habitat.
Keep your sink drain clean and free of food debris. If you have a garbage disposal, run it fully after every use and flush with cold water. A clogged or slow drain creates exactly the warm, moist, organic-rich environment that both fruit flies and drain flies need.
Wipe down counters after preparing food, rinse recyclable bottles and cans before putting them in the bin, and don’t leave open drinks sitting out. Even a thin film of juice or beer residue on a countertop is enough to attract flies and give them a place to feed.
Keeping Larger Flies Out
House flies enter through open doors and windows rather than breeding inside your kitchen. Screens on windows and vents are the most effective barrier. Door sweeps, which seal the gap beneath exterior doors, block another common entry point. If you frequently open doors during warm months, an air curtain (a device mounted above the door that blows a steady sheet of air downward) creates an invisible barrier that flying insects won’t cross.
For house flies already inside, a traditional fly swatter or a wall-mounted glue trap with UV light works better than the small countertop traps designed for fruit flies. Bug zappers are effective but noisy, so they’re better suited for a garage or utility area than a kitchen where you’re eating.