How to get rid of fruit flies: find where they breed, then trap the rest
In short: Fruit flies breed in anything wet and fermenting. 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.
Co-authored by Sonia Abu Bakar✓, MSc Botany
By Abu Bakar Saadat7 min readPublisher: Saadat Rafiq
Last updated: 29 October 2026References
IllustrationAt 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 only catch adults
- 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
- October 2026
Fruit flies lay their eggs in anything moist and fermenting, and a new generation can be flying within about a week (University of Kentucky). That is why killing the flies you see rarely works: MSU Extension says to aim at the eggs and larvae instead. So the order matters. Find and clear where they breed first, then trap the adults that are left.
Are they fruit flies?
Tiny, tan-and-black, red eyes, around fruit, bins and glasses
Fruit flies. Adults are about 1/8 inch (roughly 3 mm) long, tan at the front and black at the rear, usually with red eyes (University of Kentucky). Follow the steps below.
Dark, long-legged, like tiny mosquitoes, around houseplant pots
Probably fungus gnats, which breed in damp compost, not fruit. They need a different fix: drying out and treating the compost.
How to get rid of them
Clear out the fruit bowl and the vegetable store.

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). Bananas and strawberries are favourites (Texas A&M AgriLife).
Then open the potato and onion store. 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.
Empty the kitchen bin and recycling, then wash them out.

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.
Rinse bottles and cans before they go in the recycling, and keep the recycling box out of the kitchen if you can (MSU). 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.
Hunt down hidden spills, damp mops and cloths.

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, which can breed flies too (University of Kentucky). 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.
Test each drain overnight with a clear food bag.

Illustration 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). 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).
Careful: don't mix drain 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 something down the drain, don't add a second product on top of it.
Scrub out the drain that caught flies, then rinse it with very hot water.

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 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.
Set a cider-vinegar trap where the flies gather.

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 stops the flies floating, so they drown.
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 says to replace the bait in a fruit trap every day.
You should see: flies in the liquid within a day. Fewer each day means the breeding sites are gone.
Keep the traps going and keep checking for about two weeks.

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 two weeks of checking is our suggestion, not a rule from the sources.
You should see: empty or nearly empty traps by the end of the second week.
How to tell it worked
- The traps catch fewer flies each day, then none.
- The overnight bag test on each drain comes up empty.
- No flies hover over the bin or fruit bowl for several days in a row.
- Bin, recycling, mops and the floor under the fridge are clean and dry.
Breeding-site checklist
| Check | What to look for | Source |
|---|---|---|
| Fruit bowl and fridge drawers | Overripe, cracked or leaking fruit, especially bananas and strawberries | MSU, Texas A&M |
| Potato and onion store | A soft or rotting one, often at the back | University of Kentucky, Texas A&M |
| Kitchen bin | Liquid or syrup at the bottom | Texas A&M |
| Recycling | Unrinsed cans and bottles; a box that is never cleaned | MSU, University of Kentucky |
| Under and behind appliances | Dried-on juice, beer or wine spills | MSU, University of Kentucky |
| Sink and other drains | Flies in the overnight bag test | MSU, University of Kentucky |
| Mops and cloths | Damp and left in a bucket or corner | University of Kentucky |
| Home brewing, cider, pickles | A jar or container that isn't sealed | University of Kentucky |
Rules in the UK, Germany, the US and Pakistan
| UK | Germany | US | Pakistan | |
|---|---|---|---|---|
| Do you need a professional? | Rarely: the steps above work without insecticide. 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 bait | The 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; buy one registered for that pest and read the label first (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 happens | What it means | What to do |
|---|---|---|
| The traps fill up every day for more than a week | A breeding site is still active | Go through the checklist again; bag-test every drain, including bathroom ones |
| The trap catches nothing | The bait or the place is wrong, or they aren't fruit flies | Move it to where the flies gather, try wine or banana (Texas A&M), and check the "Are they fruit flies?" box |
| Flies come back after shopping | Eggs 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 kitchen | Adults 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.
What did you think?
Reaction counts are loading.
Spotted a mistake? Menus change with updates, and we want every step to match your screen. Email us about this page or use the contact form. We read every report, and fixes are listed on What changed.
Liked this article?
Follow us for new articles and short how-to videos.
Sources
We use primary, official and specialist sources appropriate to the topic.
- US EPA: Should I use a fogger? (updated 8 September 2026)
- Shelter England: Pests and vermin infestations in rented homes (updated 1 May 2026)
- Berliner Mieterverein: Ungeziefer in der Wohnung, Kammerjagd (German, MieterMagazin 4/2012)
- HSE: Packaging and labelling requirements for biocidal products (updated 2 June 2026)
- LAVES Niedersachsen / DLG: Informationen, die einem Biozid-Produkt beigefügt sein müssen (German, PDF)
- Agricultural Pesticides Ordinance 1971, Pakistan (text, sections 1 and 4)
- Michigan State University Extension: How to get rid of fruit flies in your home (David Lowenstein, 3 October 2023)
- University of Kentucky Entomology: Fruit Flies, Entfact-621 (Michael F. Potter)
- Texas A&M AgriLife Today: How to get rid of fruit flies in your house (6 July 2020, updated 7 May 2024)
- Washington State Department of Health: Dangers of mixing bleach with cleaners


