How to Get Rid of Fruit Flies

Five proven methods that actually work — the 2-minute vinegar trap, drain cleaning, and the one step most people skip.

⏱ 8–10 day life cycle🥚 500 eggs per female✅ Gone in 3–7 days
Key takeaways
On this page

Method 1: The apple cider vinegar trap (fastest)

To get rid of fruit flies fast, start with this trap — full guide at apple cider vinegar fruit fly trap.

  1. Pour 2–3 cm of apple cider vinegar into a small bowl, jar or cup.
  2. Add 2–3 drops of dish soap and stir gently. The soap breaks the surface tension so flies sink instead of landing and flying off.
  3. Optional: cover with plastic wrap and poke a few tiny holes with a toothpick — flies get in but struggle to get out.
  4. Place it where you see the most flies. Replace every 2–3 days.

You will usually see the first trapped flies within a few hours. Keep the trap out for at least a week after the last fly disappears, because eggs keep hatching for days.

Method 2: The funnel trap (no plastic wrap)

  1. Put a piece of overripe banana or peach (or a splash of wine) in a jar.
  2. Roll a sheet of paper into a cone with a tiny hole at the tip and place it point-down in the jar, sealing the edges with tape.
  3. Flies fly down the funnel toward the smell and cannot find the small exit.

Take the whole jar outside to release or dispose of it, then set a fresh one. Works well as a second trap alongside the vinegar trap.

Method 3: Clean the drains (the hidden nursery)

If traps catch flies but new ones keep appearing, they are probably breeding in your sink drain, garbage disposal, or dishwasher filter. Fruit flies lay eggs in the slimy layer of decaying food inside drains.

  1. Scrub inside the drain with a long bottle brush — this physically removes the breeding layer. This step matters more than any liquid you pour.
  2. Flush with boiling water.
  3. Follow with ½ cup baking soda + 1 cup vinegar, wait 15 minutes, then flush with hot water.
  4. Clean the garbage disposal splash guard (the rubber flaps) — food collects underneath.

Bleach alone rarely works. It kills on contact but does not remove the slime layer, so flies return within days. Scrubbing is the real fix.

Method 4: Remove everything that attracts them

Traps kill the adults; this step stops the next generation. Walk through your kitchen and fix every item:

Not sure where they are coming from? Read where do fruit flies come from for the 7 most common sources.

Method 5: Store-bought traps (for stubborn cases)

Wondering about the best fruit fly trap to buy? Commercial traps work on the same vinegar-attractant principle and are useful if you want something tidier than a DIY bowl. They are a convenience, not a stronger solution — pair them with attractant removal like any other trap.

What does NOT work well

MethodWhy it disappoints
Bug zappers indoorsFruit flies are barely attracted to UV light; they follow fermenting smells instead.
Bleach down the drainKills on contact but leaves the breeding slime intact.
Traps alone, no cleanupYou catch adults while eggs keep hatching — the infestation never ends.
Waiting it outThey do not leave on their own while food or moisture remains.

Stop them coming back

Once the flies are gone, these 10 habits keep them away for good.

Read the prevention guide →

Related guides

Frequently Asked Questions

What kills fruit flies instantly? A vinegar trap with dish soap starts catching them within hours. A spray bottle of soapy water knocks down flying ones on contact — but traps plus removing attractants are what end the infestation.

How long does it take to get rid of fruit flies? Usually 3–7 days once traps are set and the breeding source is removed. Keep traps out a full week after the last fly, since eggs keep hatching.

Why do I suddenly have so many fruit flies? One female lays up to 500 eggs, and they become breeding adults in 8–10 days. One forgotten fruit or dirty drain becomes hundreds of flies within a week.

Does bleach kill fruit flies in drains? Rarely for long. It does not remove the slimy layer where they breed — scrubbing with a brush plus boiling water works far better.

Will fruit flies go away on their own? Almost never, while fermenting food or damp organic matter remains. Remove the source and they disappear within days.

Are fruit flies harmful? They do not bite or sting, but they can carry bacteria from garbage and drains onto food and surfaces.