Fruit flies are the tiny tan flies that swarm around ripe produce and kitchen drains, and the single most important fact about them is this: they breed in fermenting organic matter, so you can’t trap your way out of an infestation without finding and removing the source. Clear the breeding site and a fruit fly problem collapses within days.
Key Takeaways
- Fruit flies breed in fermenting material — overripe produce, spills, drains, and damp organic gunk.
- Find and remove the source — trapping adults alone won’t end it.
- They breed fast — egg to adult in about a week, so problems explode quickly.
- An apple cider vinegar trap mops up the remaining adults.
- Prevention is easy — refrigerate produce, clean drains, and take out the trash.
What fruit flies are (and aren’t)
Fruit flies (Drosophila) are small, about 1/8 inch, tan to brownish, often with red eyes. They’re drawn to the yeasts in ripening and fermenting fruit and vegetables. They’re mostly a nuisance, though as filth-associated flies they can carry bacteria from surface to surface, so you don’t want them on food (CDC: Flies).
It’s worth telling them apart from look-alikes: fungus gnats come from overwatered houseplant soil, and drain flies (moth flies) are fuzzy and breed in drain gunk. The fix differs slightly by which one you have, so check the source.
Why they appear “out of nowhere”
A fruit fly’s life cycle is remarkably fast — egg to breeding adult in about a week under warm conditions. Females lay eggs on the surface of fermenting material, where the larvae feed. That speed is why a single overripe banana or a forgotten spill can turn into a cloud of flies seemingly overnight. They didn’t come from the fruit you bought; they’re breeding right there in your kitchen.
How to get rid of fruit flies
1. Find and eliminate the breeding source (the essential step)
Hunt down where they’re breeding and remove it:
- Overripe or damaged produce on counters and in bowls — toss or refrigerate it.
- Spills and residue under appliances, in recycling bins, and around the trash.
- Drains — organic film in kitchen and disposal drains is a classic hidden breeding site.
- Damp mops, sponges, and cleaning rags, and the bottoms of trash and recycling cans.
Until the source is gone, traps just slow the flow of new adults.
2. Trap the remaining adults
An apple cider vinegar trap is cheap and effective: put a little cider vinegar in a jar, add a drop of dish soap (which breaks the surface tension so flies sink), and cover with plastic wrap poked with a few small holes. The flies are drawn in and drown. Refresh it daily.
3. Clean the drains
If flies are coming from a drain, scrub it with a brush to remove the organic film, then flush with boiling water or an enzyme drain cleaner. Avoid relying on bleach alone, which doesn’t remove the gunk the larvae feed on.
Preventing fruit flies
- Refrigerate ripe produce and don’t leave fruit sitting out in warm weather.
- Take out the trash and recycling regularly, and rinse containers before binning.
- Wipe up spills promptly, especially anything sugary or fermenting.
- Run and clean garbage disposals and keep drains clear.
Fruit flies are one of the easiest pests to prevent once you know they breed in fermenting matter. For other fly types and trap options, see our guide to the best fly traps.
Frequently Asked Questions
Where do fruit flies come from?
They breed in fermenting organic matter already in your kitchen — overripe produce, spills, damp drains, and trash residue. The eggs or larvae often arrive on produce from the store, then develop fast indoors, which is why flies seem to appear suddenly.
How do I get rid of fruit flies fast?
Find and remove the breeding source first (overripe produce, spills, drain gunk), then set an apple cider vinegar trap with a drop of dish soap to catch the remaining adults. Without removing the source, traps alone won’t clear them.
Does apple cider vinegar really trap fruit flies?
Yes. Fruit flies are drawn to the fermented smell of cider vinegar, and adding a drop of dish soap breaks the surface tension so they sink and drown instead of landing and escaping. Cover the jar with poked plastic wrap to funnel them in.
How long do fruit flies live?
Adult fruit flies live a few weeks, but the bigger issue is how fast they reproduce — egg to adult in about a week. That rapid cycle is why an infestation builds quickly and why removing the breeding source is essential to stopping it.
