Lichte keuken met een stenen aanrecht en een schaal vers fruit

How to get rid of fruit flies: what works and what doesn't

Kevin

In brief

Fruit flies smell fermentation. Firm, undamaged fruit doesn't interest them; a banana with a brown patch, the last mouthful of beer in a bottle or a film of grime in the plughole, they can smell right across the kitchen.

They don't fly in from outside, either. The eggs are usually already on the skin of the fruit you have just bought.

So if you want to get rid of fruit flies, start with the source. A trap catches whatever is flying around right now, but as long as that rotting pear is still in the fruit bowl, you'll be back where you started next week.

On this page
  1. In brief
  2. Is it really a fruit fly?
  3. Where they come from
  4. How to get rid of fruit flies: what works
  5. What doesn't work
  6. Frequently asked questions

Is it really a fruit fly?

Three to four millimetres including the wings, yellowish brown, with bright red eyes. You'll see them around the fruit bowl, the kitchen bin or the sink, and they fly straight at it.

On the left a fruit fly with red eyes on an apple, on the right a fungus gnat on potting compost
Left: fruit fly. Yellowish brown, bright red eyes, found near fruit.Right: fungus gnat. Dark, slender, long legs, comes out of the potting compost.

Are they darker and thinner, with longer legs, and do they rise up out of the compost of your houseplants? Then you have fungus gnats. A fruit fly trap does nothing there: it lures with the smell of fermentation, and fungus gnats don't respond to that.

If you're torn between more than two kinds, four of them are compared side by side in small black flies in the house: which one is it?

Where they come from

Almost always from your own kitchen. The female lays her eggs on ripe or damaged fruit, so they're already on it when you unpack the shopping; fresh, undamaged fruit leaves her cold.

From egg to fly takes roughly eight to eleven days, and the warmer it is, the faster that goes. A fertilised female lays four hundred to nine hundred eggs. Hence the pattern everyone knows: first you see two, a week later there's a cloud hanging over the bowl.

Five places go wrong most often: the fruit bowl, the bottom of the bin underneath the bag, the kitchen sink plughole, an empty bottle still standing on the worktop, and an onion or potato at the back of the cupboard that everyone has forgotten about.

How to get rid of fruit flies: what works

Check those five places first

Fruit with a brown patch goes in the bin or the fridge. Rinse out the bin, don't just change the bag. Get rid of empty bottles straight away.

The drain is almost always overlooked. If there's a film of grime in the U-bend, you have a breeding site there, however clean the rest of your worktop looks. Pour boiling water and a scoop of soda crystals down it. Flushing it through every week stops it coming back.

Only then a trap

A trap with vinegar and apple juice as bait catches the adult flies that are there now. Put it by the fruit bowl or the bin, because that's where they fly; in the middle of the kitchen table it looks nicer than it catches.

If you see them in two places, put down two. That works better than one trap in the middle of the kitchen.

What to look for when choosing a trap is explained under fruit flies. If you'd rather make one yourself first from a dish of vinegar, read making your own fruit fly trap: does it work? — it does, but not quite in the way people usually say.

You don't need a pesticide here. The Dutch Knowledge and Advisory Centre on Animal Pests (KAD) says the same: control with biocides isn't necessary for fruit flies, a special fruit fly trap can be used if they're a nuisance, and without tackling the source there is no lasting result.

Keep soft fruit covered

Not everything belongs in the fridge; bananas and tomatoes don't improve in there. But whatever can go in, take out of the cycle. A closed container does the same job: the smell stays in and the female can't get to it.

Strawberries in a closed container next to a bowl of apples and pears
Soft fruit covered. Firm fruit can stay in the bowl; that's rarely where it starts.

What doesn't work

A dish of vinegar on its own

The best-known home remedy, and it only half works. The smell attracts them, they land on the rim, and they fly off again. Without a drop of washing-up liquid you've put out a birdbath; with that drop, the surface tension breaks and they do sink in. What else is and isn't true about that home remedy, including what the research says, is in making your own fruit fly trap.

Spraying

You kill what you hit and nothing else. The eggs on the fruit and the film in the drain don't notice a thing, so in a week you're standing there with the can again.

Cleaning alone

A spotless kitchen with a rotting pear in the bowl will still have fruit flies. As long as that pear is there, cleaning won't get you anywhere.

Frequently asked questions

Do fruit flies go away on their own?

Once the source has gone, yes, and faster than you'd think. Allow a week or two: that's how long the last batch needs to hatch and die off. If you do nothing it won't stop, because as long as something is fermenting in the house, a new generation keeps coming. A fertilised female lays four hundred to nine hundred eggs.

Do fruit flies come from damp potting compost?

No, and this is the mix-up that most often costs money. Small flies that rise up when you water your houseplant are fungus gnats: darker, slimmer, long legs, and they move in short hopping flights over a surface. They aren't drawn to fermentation, so a fruit fly trap does nothing for them. Lots of websites list damp compost among the things that attract fruit flies, and that's wrong. See how to get rid of fungus gnats in houseplants.

Does the vacuum cleaner help?

For a while, yes. You suck up whatever is flying at that moment, which makes a noticeable difference if visitors are about to arrive; empty the bag or canister outside afterwards. You won't reach the eggs on the skin or the film in the drain, so it's no substitute for clearing up. The KAD mentions the vacuum cleaner for mosquitoes and cluster flies, not for fruit flies.

What if they're in the food waste bin by the back door?

That's a classic source, and it sits just out of sight. The KAD explicitly names food and garden waste bins as a place where fruit flies occur, alongside the kitchen. Keep the lid shut, get the waste collected on time and clean the bin after it has been emptied. A trap indoors makes little sense while there's a breeding bin standing against the wall outside.

How long until I'm rid of them?

Once the source has gone, you'll be rid of them in a week or two. That's how long the last batch needs to hatch and end up in the trap.

Why do I only get them in summer?

Warmth, and more ripe fruit in the house. From egg to fly takes about eight to eleven days, and that goes faster at higher temperatures. The KAD doesn't name a peak month; what is established is that warmth speeds up development.

Do they come from the drain?

They can certainly breed there, in that film of grime. A leaking or dirty drain is a classic source. But if you see little insects that are broader and hairy, and that sit still on the tiles in an almost triangular shape, that's a drain fly. Those really do come out of the U-bend, and what to do about them is in bugs in the bathroom.

Are they harmful?

They don't bite. But they walk over something rotting first and then over your worktop, and their droppings can contaminate fruit and vegetables. Not exactly pleasant.

Use biocides safely. Always read the label and product information before use.

Lees ook

Back to blog

Where this information comes from

  1. Appearance, number of eggs and development time Kennis- en Adviescentrum Dierplagen (KAD), the Dutch Knowledge and Advisory Centre on Animal Pests, knowledge base Fruitvliegen (Drosophila spp.), in Dutch, accessed 26 November 2026view the source
  2. That fresh, undamaged fruit is not affected, that control with biocides is not necessary, and that special fruit fly traps can be used if they are a nuisance the same KAD page
  3. That fruit flies in homes are often found in kitchens and in food and garden waste bins, and the advice to keep bins and waste containers closed, have the waste collected on time and clean the bin after emptying the same KAD page
  4. That this KAD page does not name any month or season for fruit flies (the sentence about summer therefore rests only on the development time, not on a peak month) the same KAD page
  5. That the KAD mentions the vacuum cleaner for cluster flies and not for fruit flies Kennis- en Adviescentrum Dierplagen (KAD), knowledge base Klustervlieg (Pollenia rudis), in Dutch, accessed 26 November 2026view the source
  6. That fungus gnats develop in damp potting compost and move in short hopping flights over a surface Kennis- en Adviescentrum Dierplagen (KAD), knowledge base Rouwmuggen (Sciaridae), in Dutch, accessed 26 November 2026view the source

How we write these pages, and what we do when we cannot back something up, is explained on How our advice pages are made.