Menu

How to get rid of fruit flies

Researched by 8 min read

Last updated: 15 November 2026References

Set preferred
Illustration of a woman in a kitchen looking at a fruit bowl with a few tiny flies above it, a small glass trap on the worktop beside her
On this page 10 sections

In short

A little dampness in their food is all fruit flies need to breed. Clear the source (fruit, bin, recycling, drain, mop), test the drain overnight with a food bag, then catch the adults with a cider-vinegar trap. A spray on its own won't end it.

Jump to the steps

Illustration of a woman in a kitchen looking at a fruit bowl with a few tiny flies above it, a small glass trap on the worktop beside her

At a glance

You need
Apple cider vinegar, washing-up liquid, cling film, a rubber band, clear food bags, tape
Egg to adult
About a week (University of Kentucky); 7 to 10 days (MSU)
The real fix
Remove the breeding site; traps help catch flies while you find it
Drain test
A clear food bag taped over the plughole overnight
Advice from
MSU Extension, University of Kentucky Entomology, Texas A&M AgriLife, read 28 October 2026
Checked
November 2026

A cloud of tiny flies rising from the fruit bowl every time you pass is enough to make even the most patient person cross. Chasing the ones you can see won't get rid of them, but finding where they breed will, and that's exactly where we'll begin.

According to the University of Kentucky, fruit flies lay their eggs in anything moist and fermenting, and a new generation can emerge about a week later. So swatting the flies you see rarely clears an infestation, and MSU Extension says targeting the eggs and larvae is essential. That's why the order matters: find and clear the places they breed, then trap any adults that are left.

Are they fruit flies?

Tiny, tan-and-black, red eyes, around fruit, bins and glasses

Fruit flies. The University of Kentucky describes the adults as about 1/8 inch (roughly 3 mm) long, tan at the front and black at the rear, usually with red eyes. Follow the steps below.

Dark, long-legged, like tiny mosquitoes, around houseplant pots

Probably fungus gnats, which breed in damp compost rather than fruit. They need a different fix: drying out the compost and treating it.

How to get rid of them

  1. Clear out the fruit bowl and the vegetable store.

    Illustration of a hand lifting a soft, overripe banana out of a fruit bowl and dropping it into a lidded caddy, with a bag of potatoes open beside it
    Illustration

    Eat, refrigerate or throw away anything ripe or damaged (MSU). Larvae feed near the surface, so you can cut away a damaged patch and keep the rest (University of Kentucky). Larvae feed on decaying fruit such as strawberries and bananas (Texas A&M AgriLife).

    The potato and onion store is very easy to overlook, so open it up. A single rotting potato or onion at the back of a cupboard can keep an infestation going (University of Kentucky, Texas A&M).

    You should see: nothing soft, leaking or mouldy left out. Ripe fruit goes in the fridge until the flies are gone.

  2. Empty the kitchen bin and recycling, then wash them out.

    Illustration of a woman rinsing an empty kitchen bin in a sink, with a row of rinsed bottles and cans drying on a rack beside her
    Illustration

    Sticky liquid at the bottom of a bin is an ideal breeding site (Texas A&M). During a bad outbreak, MSU suggests emptying the kitchen bin every evening and keeping it clean and dry.

    Make sure you rinse bottles and cans before they go in the recycling, and keep the recycling box out of the kitchen if you can (MSU), because a sticky can is a perfect little nursery for them. University of Kentucky entomologists point to recycling bins that are never emptied or cleaned as a common source.

    You should see: a dry, clean bin with no film of liquid in the bottom, and rinsed recycling.

  3. Hunt down hidden spills, damp mops and cloths.

    Illustration of a woman kneeling with a torch, shining it into the gap under a fridge where a small sticky puddle shows, a damp mop leaning against the wall
    Illustration

    University of Kentucky entomologists say all the flies need is a moist film of fermenting material. Shine a torch under the fridge and behind appliances you can move, where juice or drink spills hide (MSU). Check floor cracks as well (Texas A&M).

    Wash or replace damp mops and cleaning cloths, because they can breed flies too (University of Kentucky). If your habit is to leave the mop standing wet in its bucket, the flies will be very grateful to you. Check any home-brew, cider or pickling jars for a seal that isn't tight.

    You should see: dry floors under and behind appliances, and clean, dry mops and cloths.

  4. Test each drain overnight with a clear food bag.

    Illustration of a clear plastic food bag taped flat over a kitchen sink plughole, a few tiny flies inside the bag
    Illustration

    Don't worry if the flies keep coming and you can't find a source. The drain may be it. Tape a clear plastic food bag over the plughole and leave it overnight (MSU, University of Kentucky). It is that easy. Do the same for the dishwasher drain area or any other drain near where the flies gather.

    You should see: in the morning, either an empty bag (that drain is not the source) or flies caught inside it (it is).

  5. Careful: bleach must never meet ammonia, acids or other cleaning products. Washington State Department of Health warns that bleach mixed with acids, including vinegar and some drain cleaners, gives off chlorine gas, and bleach mixed with ammonia gives off toxic chloramines. If you have already poured bleach down the drain, don't add another cleaner on top of it.

    Scrub out the drain that caught flies, then rinse it with very hot water.

    Illustration of a long thin brush being pushed into a sink plughole, with a kettle waiting on the worktop beside the sink
    Illustration

    MSU says to clean the drain and trap as thoroughly as you can, then sterilise them with boiling water. A long, thin drain brush is worth having here, because it reaches the slime inside the pipe where the larvae live.

    If your sink or pipes are plastic and you are not sure they can take boiling water, check with the maker first.

    You should see: a clean plughole with no slimy film. Repeat the bag test the next night to check.

  6. Set a cider-vinegar trap.

    Illustration of a small glass two-thirds full of amber liquid, covered with tight cling film held by a rubber band, a toothpick poking small holes in the film
    Illustration

    MSU's recipe: fill a small glass about two-thirds full with apple cider vinegar, add one or two drops of washing-up liquid and swirl. Stretch cling film tightly over the top, hold it with a rubber band and poke about a dozen holes with a toothpick. The soap drowns flies that try to land on the vinegar (Texas A&M AgriLife).

    No cling film? Roll a sheet of paper into a cone and stand it, narrow end down, in a jar with a little vinegar, juice or rotting fruit (University of Kentucky, MSU). Make several traps and put them where you see the most flies. MSU also says to replace the bait in a fruit trap every day.

    You should see: flies drowned in the liquid. Fewer each day means the breeding sites are gone.

  7. Keep the traps going and keep checking for about two weeks.

    Illustration of a wall calendar with two weeks ticked off, next to a worktop with an empty fruit bowl, a lidded bin and one small trap
    Illustration

    Texas A&M AgriLife says the flies disappear fairly quickly once the breeding sites are gone, because their life cycle is a week or less. Eggs already laid can still hatch, though: MSU says adults can emerge 7 to 10 days later. So please don't stop too early. Two weeks of checking is our suggestion, not a rule from the sources.

    You should see: the flies disappearing relatively quickly once the breeding sites are gone (Texas A&M AgriLife).

How to tell it worked

  • The traps catch fewer flies each day, and then none.
  • The overnight bag test on each drain comes up empty.
  • No flies hover over the bin or the fruit bowl for several days in a row.
  • Bin, recycling, mops and the floor under the fridge are clean and dry.

Breeding-site checklist

CheckWhat to look forSource
Fruit bowl and fridge drawersOverripe, cracked or leaking fruit, especially bananas and strawberriesMSU, Texas A&M
Potato and onion storeA soft or rotting one, often at the backUniversity of Kentucky, Texas A&M
Kitchen binLiquid or syrup at the bottomTexas A&M
RecyclingUnrinsed cans and bottles; a box that is never cleanedMSU, University of Kentucky
Under and behind appliancesDried-on juice, beer or wine spillsMSU, University of Kentucky
Sink and other drainsFlies in the overnight bag testMSU, University of Kentucky
Mops and clothsDamp and left in a bucket or cornerUniversity of Kentucky
Home brewing, cider, picklesA jar or container that isn't sealedUniversity of Kentucky

Rules in the UK, Germany, the US and Pakistan

UKGermanyUSPakistan
Do you need a professional?Texas A&M AgriLife says once you track down where they're breeding, fruit flies are fairly easy to get under control. If flies keep coming from a drain or a shared bin area in a rented home, tell your landlord, since the rules for pests in rented homes apply (Shelter in England, Berliner Mieterverein in Germany)
If you buy a spray or baitThe label must show the HSE authorisation number and the uses it is authorised for (HSE)Biocide labels name the BAuA registration number (N-...) and the approved uses (DLG guide published by LAVES Niedersachsen)EPA registers all pesticides; read the label before you buy and again before you use it (EPA)Every pesticide brand must be registered; selling an unregistered one is an offence (Agricultural Pesticides Ordinance 1971, s. 4)

If they keep coming back

What happensWhat it meansWhat to do
The traps fill up every day for more than a weekA breeding site is still activeGo through the checklist again; bag-test every drain, including bathroom ones
The trap catches nothingOther baits can be usedTry wine or banana instead (Texas A&M)
Flies come back after shoppingEggs can arrive on fruit from the shop (MSU)Keep ripe fruit in the fridge and use it up quickly
They appear even with a clean kitchenAdults can get in through window screens (MSU)University of Kentucky suggests tight-fitting 16-mesh screens

Questions readers ask

Where do fruit flies come from if I haven't left fruit out?

Often from somewhere you can't see: a drain, the bottom of the bin, a recycling box, a damp mop or a forgotten potato. MSU Extension adds that eggs can already be on fruit when you bring it home, and adults can get in through window screens.

Are fruit flies harmful?

They are mainly a nuisance. University of Kentucky entomologists say they can carry bacteria and other disease-causing organisms onto food, so throw away anything they have been crawling on.

Does a red wine or banana trap work instead of vinegar?

Yes. Texas A&M AgriLife lists apple cider vinegar, wine and bananas as baits. MSU describes a funnel in a glass with a splash of wine; change the bait every day.

Will a fly spray get rid of them?

Not on its own. MSU and the University of Kentucky both say sprays only kill the adults you can see, while eggs and larvae keep developing in the breeding site. Clear the source first.

Sources and method

Researched by
Abu Bakar Saadat
Pictures
9 illustrations drawn for this article: drawings, not photos.
Sources
Steps checked against the 10 named sources linked below.
What this page adds
A room-by-room breeding-site checklist, drawings of the overnight bag test and a cling-film vinegar trap, and spray label rules in four countries.

What to do next

The small jobs that keep a home running Step 5 of 5

  1. How to descale a shower head without damaging the finishScale blocks the jets bit by bit.
  2. How to clean your dishwasher filter, and how often Bosch, Samsung and Miele say to do itSmelly dishwasher or gritty glasses? The filter is usually why.
  3. How to clean a tumble dryer filter, heat exchanger and water tankA clogged dryer filter wastes time and energy.

Did this solve the problem?

Get new guides by email

Our newest guides, sent to your inbox. Free, and you can unsubscribe in one click.

We'll email you to confirm. How we use your email

Follow howtosimply on Facebook

We share every new article on our Facebook page, so the next fix turns up in your feed.

Follow on Facebook

Also on Instagram · Threads · Pinterest · YouTube

What did you think?

Reaction counts are loading.