Home / Home
Home

How to Get Rid of Fruit Flies: Fast Fixes That Work

Fruit fly sitting on the edge of a slice of fruit

Fruit flies seem to appear from nowhere, usually the day after you bring home a bunch of bananas. The good news is that how to get rid of fruit flies is not a mystery: remove what they feed and breed on, trap the adults that are already flying, and clean the hidden spots where eggs hide. This guide gives you a simple plan using ordinary kitchen items, plus ways to stop them returning. If your tiny pests turn out to be something else, our guides to getting rid of flies and getting rid of gnats will help you tell them apart.

Bowl of assorted fruit on a kitchen counter

Why fruit flies show up

Fruit flies are drawn to the smell of ripe, rotting or fermenting food. Adults can slip in through window screens or arrive as eggs on produce you carry in from the shop. Once inside, a female lays eggs in anything damp and sugary, and pest experts commonly note that a single female can lay dozens of eggs a day. In a warm kitchen the cycle from egg to adult can take roughly a week to ten days, which is why a small problem can seem to explode overnight.

Common breeding spots include overripe fruit and vegetables, a forgotten potato at the back of a cupboard, bin liners, recycling bottles and cans with a sticky residue, damp sponges and mop heads, and the film that builds up inside sink drains.

How to get rid of fruit flies step by step

  1. Remove the food source. Throw away or refrigerate overripe fruit and vegetables. Even produce that looks fine can carry eggs, so do not skip this step.
  2. Clean the usual breeding spots. Empty and wipe the bin, rinse bottles and cans before recycling, wash sponges and cloths, and wipe sticky spills from worktops and shelves.
  3. Treat the drain. Scrub the sink drain with a brush and flush it with hot water to remove the organic film that larvae feed on.
  4. Set traps. Use one or two of the traps below near where you see the flies.
  5. Repeat for 7 to 10 days. New adults keep emerging from eggs and pupae you cannot see, so keep traps topped up until none appear.

DIY fruit fly traps that work

Trap How to make it Notes
Vinegar and dish soap bowl Pour about an inch of apple cider vinegar into a small bowl and add a few drops of dish soap The soap breaks the surface tension so flies sink when they land
Plastic wrap trap Fill a jar or bowl with apple cider vinegar, cover with plastic wrap held by a rubber band and poke small holes Flies get in but struggle to get out
Paper cone trap Put vinegar or a piece of very ripe fruit in a jar and add a rolled paper cone with a small opening at the bottom Easy to dispose of afterwards
Bottle trap Leave a splash of wine, beer or vinegar in the bottom of a bottle Handy if you have no cider vinegar

Apple cider vinegar usually works best because the sweet, fermented smell mimics rotting fruit. Some people warm the vinegar for around ten seconds in a microwave-safe bowl to release more scent. Place traps where the flies gather and replace the liquid every few days.

Stainless steel kitchen sink with a faucet

Drains and hidden breeding spots

If traps catch plenty of flies but more keep coming, the breeding site is probably hidden. Check under the sink, behind the bin, inside the recycling box, around the fridge drip tray and in any pet food bowls. Look at houseplants too, because constantly wet soil can host tiny flies (see our gnat guide for that problem).

For drains, brush away the slimy film, flush with hot water, and consider a cleaner made for drains, following the label. Bleach is not a reliable fix for a fruit fly problem, and pouring it away is not kind to pipes or the environment.

How to keep fruit flies from coming back

  • Keep ripe fruit in the refrigerator or in a covered bowl, and eat or bin it promptly.
  • Wash produce when you bring it home to remove eggs and larvae.
  • Use a bin with a tight lid and empty it regularly, especially if it holds food waste.
  • Rinse bottles and cans before they go into recycling.
  • Wipe up spills straight away and dry sinks and drain boards.
  • Keep onions and potatoes in a cool, dry, ventilated spot and check them often.

When to call a professional

If you have cleaned thoroughly, trapped for two weeks and still see flies, there is probably a source you cannot reach, such as a leak, a damaged drain or something rotting in a wall cavity. A plumber or a pest control company can track it down. In rented homes, tell your landlord, and if this is a food business, follow your local hygiene rules. For other household pests, our guide to getting rid of bed bugs covers a different problem altogether.

FAQ

Where do fruit flies come from?

They drift in from outside or arrive as eggs on fruit and vegetables. They do not appear from nothing, but a few can become many quickly when food and moisture are available.

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

With the source removed and traps set, many kitchens clear within one to two weeks. Because new adults keep emerging, the key is staying consistent.

Do fruit flies carry disease?

They are mainly a nuisance, but they can carry bacteria from rotting food onto surfaces. Wash produce, clean worktops and keep food covered.

Are vinegar traps safe around pets and children?

Apple cider vinegar is not a hazard in small amounts, but keep traps out of reach so they are not spilled or tasted. Do not use pesticide sprays near food preparation areas.

Why do fruit flies keep coming back?

There is usually a hidden breeding site, such as a drain, a bin or forgotten produce. Find and clean it, then keep up the prevention habits above.