Home & Kitchen

How to Get Rid of Fruit Flies, and Where They Are Breeding

A trap full of flies feels like progress and changes nothing. Somewhere within a few metres, the next generation is already developing in something damp.

A bowl of ripe fruit on a kitchen counter, illustrating how to get rid of fruit flies

Illustration generated by Nexulab

The short answer
  • Traps catch adults. They do nothing about the eggs already developing, which is why the problem returns in a few days.
  • Fruit flies breed in damp organic film, so the source is usually a drain, a bin, a recycling container or a bottle you forgot.
  • The generation cycle is short, measured in days rather than weeks, which is why an infestation appears so suddenly.
  • A cider vinegar trap with a drop of washing-up liquid is genuinely effective at catching adults while you find the source.
  • Drains are the most commonly missed breeding site, and pouring bleach down them does less than physically scrubbing the pipe wall.

There is a moment in every fruit fly problem where you empty a trap full of dead flies, feel satisfied, and find the same number in the kitchen two days later.

That loop is the whole problem, and it comes from treating the wrong thing.

Traps catch adults. Meanwhile, somewhere within a few metres, eggs are hatching in something damp that you have not thought to look at. The population regenerates faster than the trap empties it.

Find the breeding site and it ends in days. Keep trapping without finding it and it lasts all summer.

Why they appear overnight

The life cycle is remarkably short — days, not weeks, from egg to breeding adult.

That speed explains the two things people find confusing.

Why an infestation seems to appear from nothing. A few eggs arrive on shop-bought fruit. Nothing visible happens for several days. Then a generation matures, and now there are dozens.

Why removing one banana does not fix it. By the time you notice flies, they have already laid elsewhere. The banana was where it started, not where it currently is.

Where they are actually breeding

They need moist organic material. That is a wider category than fruit, and the sites people miss are all the damp ones.

Drains. The most commonly missed. A thin film of organic residue on the inside wall of the pipe is enough. Kitchen sink, but also the utility sink, the dishwasher drain and any floor drain.

The bin, and specifically under the liner. Liquid escapes and pools in the bottom of the container. Emptying the bag does nothing to that.

Recycling. Unrinsed bottles, cans and jars. A beer bottle with a centimetre of residue is an ideal nursery, and it sits there for a week waiting for collection.

Under and behind appliances. Something rolled under the fridge months ago.

The mop head, the cleaning cloth, the sink strainer. Damp, organic, undisturbed.

Compost caddies, obviously, but also the lid seal.

Wet soil in houseplants, particularly if overwatered — though that more often produces fungus gnats, which are a different insect with a similar remedy.

Standing water anywhere. A dishcloth in the sink. A pet water bowl that never gets scrubbed. The drip tray under the fridge.

Fresh fruit on a kitchen counter, relevant to how to get rid of fruit flies
Traps handle the adults; the drain and the bin are usually where the next generation is. · Photo by Lisa from Pexels

The search, in the order that finds it fastest

1. Watch where they cluster. Flies hover near their breeding site. Stand still for two minutes and follow them rather than swatting.

2. The tape test for drains. Tape a piece of clear tape sticky-side down across the drain overnight, leaving a gap for air. If flies are emerging from the pipe, some will be stuck to it in the morning. This is the single most useful diagnostic and almost nobody does it.

3. Empty and clean the bin container, not just the bag. Wash the inside with hot water and detergent, dry it, and check the lid rim.

4. Rinse everything in the recycling. All of it, including the one you are sure is fine.

5. Move the appliances you can move. Fridge, toaster, the bin itself.

6. Check the sink strainer and the plug hole, and the overflow if the sink has one.

Clearing a drain properly

Pouring bleach down a drain is the standard reflex and it is close to useless here — it runs straight through and barely contacts the film on the pipe wall, which is where the larvae are.

What works:

Physical scrubbing. A long bottle brush or drain brush, worked around the inside of the pipe as far as you can reach. This is the effective step.

Boiling water afterwards, poured slowly.

A foaming drain cleaner, if you want a product. The point of the foam is that it expands and holds contact with the pipe wall instead of draining away.

Enzyme cleaners work by digesting the organic film and are a reasonable maintenance approach, though slower.

Do this to every drain in the room, not just the obvious one.

Do not skip this. It reduces the adult population and makes the kitchen usable while you deal with the source.

Apple cider vinegar in a glass, with a drop of washing-up liquid stirred in.

The vinegar attracts them; the detergent breaks the surface tension so they sink rather than landing, drinking and leaving. That second part is what makes it work — a bowl of plain vinegar catches far fewer.

Refinements that help:

  • Cover with cling film pierced with a few small holes. Tidier, and they struggle to leave.
  • A paper funnel in a jar achieves the same.
  • Overripe fruit or a splash of wine or beer in the bottom works as well as vinegar.
  • Several small traps beat one large one, placed where you actually see flies.

Change it every couple of days. If a trap fills repeatedly for more than a week, you have not found the source.

Preventing the next one

Refrigerate ripe fruit rather than leaving it in a bowl, especially in summer.

Wash produce when it comes home. Eggs arrive from the shop on the skin.

Rinse recycling immediately, not on collection day.

Empty the bin more often in warm weather, and wash the container monthly.

Run water down rarely used drains weekly. It keeps the trap sealed and disturbs any film forming.

Do not leave a wet cloth in the sink overnight.

What not to bother with

Insecticide sprays in the kitchen. They kill visible adults, leave residue on food surfaces, and do nothing about the eggs. Poor trade. The US EPA guidance on pest control makes the same general point: removing the conditions works better than spraying.

Electric zappers, which are designed for larger flying insects.

Essential oil repellents, which may discourage adults from a small area and do not touch the breeding site.

Doing nothing and waiting. They do not leave on their own while food and moisture remain.

The short version

Set a trap today, so the kitchen is usable.

Then find the source, and it is a drain or a bin more often than it is fruit.

Tape test the drain overnight. That one test resolves most cases.

Once the source is gone, they disappear in a few days. If they do not, the source is still there — keep looking rather than buying more traps.

For more in this series, see our other home & kitchen guides.

Frequently asked questions

What is the best homemade fruit fly trap?

Apple cider vinegar in a glass or jar with a drop of washing-up liquid stirred in. The vinegar attracts them and the detergent breaks the surface tension, so they sink instead of landing and leaving. Cover with cling film pierced with a few small holes if you want it tidier, though the open version works. Place it where you see the most flies, and expect it to fill within a day if the population is established.

Where do fruit flies come from suddenly?

Usually from eggs that arrived on fruit or vegetables from the shop, or from a breeding site that has been developing quietly for a week. The life cycle is short — days rather than weeks from egg to adult — so a population goes from invisible to obvious very quickly. That speed is why an infestation feels like it appeared overnight when it actually began with a few eggs on a banana.

Do fruit flies breed in drains?

Yes, and it is the site people miss most often. A thin film of organic residue on the inside wall of a drain pipe is enough for them to develop in. Pouring bleach down does surprisingly little because it runs straight through without contacting the film for long. What works is physically scrubbing with a bottle brush, or filling the drain with boiling water and a foaming cleaner that clings to the wall.

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

Once the breeding site is removed, a few days — long enough for the remaining adults to die off, with traps speeding that up. If it is dragging on for weeks, you have not found the source yet. That is the diagnostic: persistent flies mean an active breeding site somewhere, not that the traps are failing.

Are fruit flies harmful?

They are a nuisance rather than a danger in a domestic kitchen. They can transfer bacteria from where they have been to food surfaces, which is a reason to keep them off prepared food and to clean surfaces, but they do not bite and do not spread disease the way some insects do. The practical concern is hygiene and irritation, not health risk.