How do I get rid of fruit flies in the kitchen?

Updated October 2026 · How we answer

Short answerFruit flies are attracted to ripe produce and fermenting liquids. Eliminate their food sources, set apple cider vinegar traps, and clean drains to get rid of them.

Why They Appear

Fruit flies lay eggs on overripe fruit, vegetables, and in moist areas like sink drains or recycling bins. They can also come in on produce from the store. They multiply quickly—a single female can lay hundreds of eggs—so a small problem can become an infestation in days. They're especially drawn to fermenting sugars and organic matter.

  • Overripe or rotting fruits and vegetables
  • Sticky spills in recycling bins or trash cans
  • Dirty sink drains with organic buildup
  • Open compost buckets or garbage disposals
  • Moist mops or rags left out

How to Get Rid of Them

First, remove all attractants: refrigerate ripe produce, take out trash daily, and clean recycling bins. Then set traps. A simple one: pour apple cider vinegar into a small bowl, add a drop of dish soap, and cover with plastic wrap punched with small holes. The flies enter, get trapped, and drown. For drains, pour boiling water down the drain followed by a mixture of baking soda and vinegar; let it sit, then flush with hot water. Repeat daily until flies are gone. You can also use sticky fly strips or a small bowl of wine or beer as bait.

Prevention

Keep kitchen surfaces clean and dry. Store produce in the refrigerator or in sealed containers. Rinse bottles and cans before recycling. Fix leaky faucets and ensure drains flow well. If you have a compost bin, empty it frequently and keep it covered. With consistent cleaning, fruit flies should disappear within a week or two.

Common mistakes

  • Leaving out ripe fruit—this is the main breeding ground.
  • Only killing adult flies without cleaning drains or trash, so eggs and larvae survive.
  • Using a trap without removing the source, which won't solve the problem.
From our shopsDad Gift Lab: Personalized mugs, tees and keepsakes for dad.