How to Get Rid of Fruit Flies
Get rid of fruit flies by removing their breeding sites and trapping the adults already in the air. Toss overripe fruit, scrub out trash cans and recycling bins, and check sink drains for a film of rotting organic matter, since a single female can lay up to 500 eggs and the cycle from egg to adult takes as little as 8 to 10 days in a warm kitchen. For the adults flying around now, set a small jar with a half-inch of apple cider vinegar, a drop of dish soap, and plastic wrap poked with pinholes on top; the soap breaks the surface tension so flies sink when they land. Most infestations clear within a week of combining both steps.
Key Takeaways
- Fruit flies (Drosophila species) are drawn to the yeast and acids that form as fruit, vegetables, or other produce starts to ferment, and they lay eggs directly in that film.
- Fruit flies and drain flies look similar but need different fixes—drain flies breed in the gel-like buildup inside pipes, so a vinegar trap won't touch them; scrub the drain with a bottle brush and an enzymatic cleaner instead.
- A few drops of red wine or beer left in an open cup work as well as apple cider vinegar for luring flies, since fermenting alcohol gives off the same gases.
Explanation
Fruit flies (Drosophila species) are drawn to the yeast and acids that form as fruit, vegetables, or other produce starts to ferment, and they lay eggs directly in that film. According to Oklahoma State University Extension, mating happens within hours of an adult emerging and egg-laying begins about a day later; a single female can lay up to 500 eggs. Under warm, humid kitchen conditions, the whole cycle from egg to adult takes only 8 to 10 days, which is why a small problem turns into a swarm fast.
The classic trap works because fruit flies prefer fermenting sugar to almost anything else in the kitchen. Pour a half-inch of apple cider vinegar into a small jar, add one drop of dish soap, and cover the opening with plastic wrap poked with a few pinholes. The soap lowers the vinegar's surface tension, so flies that land on it sink instead of walking away. A bottle doesn't need to be fresh for this, since vinegar doesn't really expire. Set two or three jars near the worst activity and empty often.
Overripe bananas are a common trigger because their sugars spike fast as they ripen—bananas turn brown within days at room temperature, and that softening fruit is exactly what flies seek out. Refrigerating bananas once they're ripe, as described in how to store bananas, removes one of the biggest draws. Banana peels tossed loose into an open compost pail cause the same problem; if you compost banana peels, bury them under dry leaves or shredded paper instead of leaving them exposed.
Fruit flies also breed in kitchen drains, garbage disposals, recycling bins, and the grime that builds up inside trash cans, so a vinegar jar alone won't solve a widespread problem. Michigan State University Extension recommends pairing traps with sanitation: empty trash and recycling daily during an infestation, run the disposal with hot water and dish soap, and scrub bins where sticky residue collects. If flies persist after the kitchen is clean, check for forgotten produce in a pantry, under an appliance, or inside a grocery bag.
Things to Know
- Fruit flies and drain flies look similar but need different fixes—drain flies breed in the gel-like buildup inside pipes, so a vinegar trap won't touch them; scrub the drain with a bottle brush and an enzymatic cleaner instead.
- A few drops of red wine or beer left in an open cup work as well as apple cider vinegar for luring flies, since fermenting alcohol gives off the same gases.
- If traps keep filling up after a week of sanitation, check unlikely spots: a rotting onion or potato in the pantry, a spill under the refrigerator, or a forgotten glass of juice.
- Fruit flies can ride in on produce that already carries eggs from the store, so washing produce before storing it can stop an infestation before it starts.
- A heavy outbreak that doesn't respond to a week of trapping and cleaning may point to a cracked drain pipe or a hidden food source behind a wall or cabinet, which is a job for a plumber or pest control professional.