Home & Living

This article is for informational purposes only. DIY repairs involve risks including personal injury and property damage. Always use appropriate safety equipment and consider consulting a licensed professional for plumbing, electrical, or structural work.

How to Get Rid of Fruit Flies

Fruit flies appear seemingly out of nowhere — one day your kitchen is fine, the next there is a cloud of tiny flies hovering over the fruit bowl. They are annoying, they multiply quickly, and they always seem to find the one piece of overripe fruit you forgot about.

The good news: you can usually clear them out in a few days with simple traps and a quick cleanup.

Why Fruit Flies Show Up

Fruit flies are attracted to anything fermenting or decaying:

  • Overripe or damaged fruit (bananas, peaches, tomatoes, berries)
  • Uncovered food left on counters
  • Dirty drains and garbage disposals
  • Trash and recycling that hasn’t been taken out
  • Damp sponges, mops, and towels
  • Open drinks — especially juice, wine, and beer

A single female fruit fly can lay hundreds of eggs on the surface of fermenting fruit. Those eggs hatch within 24–30 hours, and the new adults can start laying eggs a day later. That’s why an infestation can explode so fast.

What to Do First: Remove the Breeding Source

Traps help, but they won’t solve the problem if the breeding source is still there.

  1. Check fruit. Throw away anything overripe, bruised, or mushy. Store the rest in the refrigerator.
  2. Take out the trash and recycling. Rinse bottles and cans before putting them in recycling.
  3. Clean the sink drain. Scrub the drain and disposal with hot water, dish soap, and a bottle brush. Biofilm in drains is a common hidden breeding site.
  4. Wipe down surfaces. Countertops, the stove, and any area where food residue may have splashed.
  5. Wash sponges and dishcloths or replace them.

This alone removes the conditions fruit flies need to reproduce.

Method 1: Apple Cider Vinegar Trap (Most Effective)

This is the easiest and most widely recommended DIY trap.

  1. Pour apple cider vinegar into a small bowl, cup, or jar (about 1/2 cup).
  2. Add a drop of dish soap. Swirl gently — the soap breaks the surface tension so flies sink instead of landing and flying away.
  3. Cover with plastic wrap and poke a few small holes with a toothpick or fork (flies fly in but have trouble getting out). Alternatively, leave the bowl uncovered — it still works.
  4. Place near the problem area — on the counter near fruit, by the sink, or next to the trash.
  5. Replace the solution every 2–3 days until flies are gone.

You can also use red wine or beer in place of apple cider vinegar — any fermented liquid works.

Method 2: Wine or Beer Trap

  1. Leave a small amount of red wine or beer at the bottom of a bottle.
  2. Add a drop of dish soap.
  3. Leave the open bottle on the counter overnight. Flies crawl in through the narrow neck and can’t easily escape.

Method 3: Fruit + Jar Trap

  1. Put a piece of overripe banana or peach in a jar.
  2. Cover the opening with plastic wrap and poke small holes.
  3. The strong fruit smell attracts flies through the holes. Empty and replace daily.

Method 4: Store-Bought Traps

If DIY traps aren’t enough:

  • Pre-made fruit fly traps (often shaped like small apples) use the same principle with a non-toxic attractant.
  • Sticky traps placed near the infestation can supplement vinegar traps.

These are inexpensive and usually available at grocery or hardware stores.

Cleaning the Drain (If Flies Persist)

If you still see flies after cleaning up food and setting traps, check the drain:

  1. Scrub the drain walls with a bottle brush and dish soap — pouring liquid alone doesn’t remove biofilm.
  2. Pour boiling water down the drain afterward.
  3. Repeat daily for 2–3 days if needed.

Avoid pouring bleach down the drain as a first resort — it rarely removes the biofilm where eggs are laid, and scrubbing is more effective.

How to Prevent Fruit Flies from Coming Back

  • Refrigerate ripe fruit — especially bananas, berries, and stone fruits.
  • Wash fruit soon after bringing it home to remove any hitchhiking eggs.
  • Take out trash frequently and keep the bin clean and lidded.
  • Clean drains weekly if you’ve had infestations before.
  • Wipe up spills and crumbs the same day.
  • Don’t leave dirty dishes sitting in the sink.
  • Replace sponges regularly.

When to Worry

Fruit flies themselves don’t bite and aren’t considered a health hazard like some other pests. The main concern is food hygiene — they can transfer bacteria from decaying matter to clean surfaces. If you keep kitchen hygiene consistent, they rarely become a recurring problem.

The Bottom Line

Remove the food source, set a vinegar-and-soap trap, and clean the drain. For most kitchens, this combination clears fruit flies within a few days. Keeping fruit refrigerated and surfaces clean is the best way to make sure they don’t return.

Frequently Asked Questions

How long does it take to get rid of fruit flies?

Most infestations clear within a few days to a week if you remove breeding sources and use traps consistently. Fruit flies reproduce quickly, so acting fast makes a big difference.

What causes fruit flies in your kitchen?

Overripe or fermenting fruit, uncovered food, dirty drains, trash, sponges, and even damp mops can attract and breed fruit flies. A single piece of overripe fruit can host hundreds of eggs.

Does apple cider vinegar attract fruit flies?

Yes, apple cider vinegar is one of the best attractants for DIY traps. Its fermented smell lures fruit flies in, where dish soap breaks the surface tension so they sink and drown.

Are fruit flies dangerous?

Fruit flies are not dangerous in the same way as other pests, but they can carry bacteria from decaying food to fresh surfaces. The main issue is hygiene and the speed at which they multiply.

Can you prevent fruit flies permanently?

You can significantly reduce them by storing fruit properly, cleaning drains, taking out trash often, and wiping down surfaces. They can still wander in from outside, so keeping kitchen hygiene consistent is key.