How to Get Rid of Fruit Flies Fast, and Keep Them Away

Traps catch the adults, but fruit flies keep coming back until you remove where they breed: overripe fruit, a damp drain, a bin or a forgotten spill. Do both, and they are gone within about a week.

By Trends Editorial

Published 4 min read

In brief

Why fruit flies appear, how to find where they are breeding, a simple vinegar trap that works, how to clean drains and bins, and how to tell fruit flies from drain flies and fungus gnats.

The two-step fix

  1. Trap the adults with a simple vinegar trap (below).
  2. Remove where they breed. This is the step people skip, and why the flies keep coming back.

Do both at the same time, and keep going for about a week. Fruit flies can go from egg to adult in roughly a week to ten days at room temperature, so a few more will hatch even after you clean up.

Make a fruit fly trap

You need apple cider vinegar, a drop of washing-up liquid and a small jar or glass.

  1. Pour about 2 cm of apple cider vinegar into the jar. Wine, beer or a piece of overripe fruit also work.
  2. Add one drop of washing-up liquid. This breaks the surface tension, so flies sink instead of landing and leaving.
  3. Cover with cling film, secure it with a rubber band, and poke a few small holes with a toothpick. Or roll a paper cone and put it in the jar opening, narrow end down.
  4. Place it where you see the most flies: by the fruit bowl, bin or sink.
  5. Refresh every few days.

Set out two or three traps if you have a lot of flies. Shop-bought traps and sticky strips work on the same principle.

Find and remove the breeding sources

Check every one of these:

  • Fruit and vegetables: throw out anything overripe, bruised or leaking. Check the bottom of fruit bowls and potato and onion bags, where a single rotten item often hides.
  • Bins and recycling: empty them, wash the bin and lid, and rinse bottles, cans and jars before recycling. Sticky drink residue is a magnet.
  • Compost caddies: empty often and keep the lid closed.
  • Drains: the film inside sink drains and garbage disposals is an ideal breeding ground (see below).
  • Spills: check under the fridge, behind the bin, and under appliances for spilled juice, wine or food.
  • Dishcloths, sponges and mops: wash or replace them. Damp, food-soiled cloths attract flies.
  • Pet food bowls and anything fermenting, such as kombucha, home brews or vinegar.

Clean the drains

If flies hover around the sink, the drain may be the source.

  1. Pour boiling water (or very hot water for plastic pipes) slowly down the drain.
  2. Scrub inside the drain with a long, narrow brush to remove the slimy film.
  3. Use an enzyme drain cleaner, which breaks down the organic build-up, following the label.
  4. Repeat for a few days.

To test whether a drain is the source, tape a piece of clear tape loosely over it overnight. If flies are stuck to the underside in the morning, they are coming from the drain.

Fruit flies, drain flies or fungus gnats?

Fruit fliesDrain fliesFungus gnats
LookTan body, often red eyes, about 3 mmFuzzy, moth-like, grey wingsThin, dark, long-legged, like tiny mosquitoes
FoundAround fruit, bins, drinksAround sinks, showers, drainsAround houseplants and windows
Breeds inFermenting foodDrain slimeDamp potting soil
FixRemove fruit, clean bins, trapsClean drains thoroughlyLet soil dry out between waterings, use yellow sticky traps

Getting the identification right saves effort: vinegar traps do little for fungus gnats, and cleaning the fruit bowl will not fix drain flies.

Keep them away

  • Store ripe fruit in the fridge, particularly in warm months.
  • Wash fruit when you bring it home, which can remove eggs.
  • Empty bins regularly and keep lids closed.
  • Rinse recycling before it goes in the bin.
  • Wipe up spills straight away, especially sugary drinks.
  • Clean drains weekly with hot water.
  • Fit or repair window screens.

If storage is part of the problem, our home organisation guide has ideas, and our fridge storage chart shows how long food lasts. For slow sink drains that may be harbouring flies, see how to unclog a drain.

When to call pest control

Fruit flies are almost always solvable at home. Call a professional if numbers stay high after two weeks of traps and cleaning, which may mean a hidden source such as a broken pipe, a dead animal in a wall cavity or rotting food in a hard-to-reach space.

Key takeaways

  • A vinegar trap with a drop of washing-up liquid catches the adults.
  • Removing breeding sources is what actually stops them.
  • Check fruit, bins, recycling, drains, spills and cloths.
  • Keep going for a week to ten days to break the breeding cycle.

Questions readers ask

Where do fruit flies come from?

They are attracted by the smell of fermenting food, and often arrive as eggs or larvae on fruit brought home from the shop, or fly in from outside. They breed in overripe fruit and vegetables, damp drains, bins, compost caddies, recycling, mops and spills.

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

With traps and the breeding sources removed, numbers usually drop sharply within a few days. Eggs already laid can still hatch, so keep traps out and cleaning up for about a week to ten days, which covers one full breeding cycle at room temperature.

Why is my fruit fly trap not working?

The most common reason is that the flies have a better food source nearby, such as overripe fruit or a dirty bin. Remove the source first. Also check you added dish soap, which breaks the surface tension so flies sink, and refresh the bait every few days.

Are fruit flies harmful?

They do not bite, but they can carry bacteria from bins and drains onto food and surfaces. Throw away fruit or food that has had flies or larvae on it, and keep surfaces clean.

Filed under

Found this useful? Pass it on.

Written by

Trends Editorial

A small editorial desk focused on practical, well-structured information that helps readers make confident decisions.

How we research and revise our stories

More from Lifestyle and nearby subjects