How to get rid of fruit flies and stop them coming back

We reveal the common fruit fly mistakes you could be making - and what to do instead

Sunnier days can herald the arrival of annoying winged intruders in your home, and chief of these is the fruit fly. 

Although you might encounter these tiny black flies throughout the year, their life cycle shortens in warmer weather - so before you know it you've got an infestation on your hands.

We asked the experts at the British Pest Control Association (BPCA) how best to get rid of and prevent fruit flies to keep your food and home pest-free.

From secret breeding grounds to elimination techniques, find out what really works.


Tips for living well - get our free Food & Health newsletter: shop savvy, eat well, stay healthy


3 fruit fly mistakes you could be making

Fruit flies are opportunists and will sniff out any chance to find a suitable feeding (and breeding) ground to thrive in.

You could be inadvertently creating the perfect environment for them, whether it's eating food without picking up crumbs or overbuying their favourite snacks.

1. Eating and drinking in your bedroom

Although they're often associated with kitchens and other food areas, fruit flies aren't fussy and will populate any room in your house if there's suitable nourishment, including your living room or bedroom. 

Be vigilant about clearing up food crumbs or spills on furniture, carpets and rugs, wherever you tend to eat at home.

This applies even to hard-to-see spills, such as of sweet fizzy drinks. You might not be able to see it, but a fruit fly will detect it instantly.

Although fruit flies don't bite humans, they can still potentially transmit harmful bacteria, such as E coli, listeria or salmonella, as they move from dirty to clean environments - for example from kitchen bins to countertops.

Need to spruce up your carpets? Check our picks of the best carpet cleaners and best carpet stain removers.


How often should you wash your bedding? Tips on taking care of sheets, mattresses, mattress covers and more


2. Relying solely on fly spray or homemade traps

You might be tempted to reach for the fly spray, fly tape or even a homemade trap (such as apple cider vinegar in a narrow-necked bottle they can't escape from), but this is unlikely to be a complete solution.

Fruit flies favour damp places to lay 500 eggs at a time, and it only takes a week to go from egg to adult, so infestations occur quickly. 

Alex Wade, pest management expert and consultant member of the British Pest Control Association, says: 'You need to tackle the whole lifecycle, from egg through fully-grown fly, to achieve complete control.'

He advises starting with strategies such as emptying and cleaning bins, and keeping doors and windows closed where possible, before moving on to traps and electronic fly killers. If nothing else works, you can try a chemical insecticide.

How to prevent fruit flies

  • Keep your sink and drains clean. Flies often lay their eggs in drains. Pour boiling water down the plughole to kill fruit fly eggs and larvae, which can usually survive typical water flow. If you're going on holiday, flush through the kitchen sink to remove any residues that might be attractive to fruit flies.
  • Empty your food waste bin regularly. Choose one with a well-fitting lid, and close it while you're peeling veg rather than leaving it open for flies to enter and lay their eggs. Clean under the rim of the lid, too, as eggs and larvae might be lurking there. Wash kitchen and bathroom bins regularly, too.
  • Dry out mops, cloths and sponges. Fruit flies will happily breed in anything wet or damp, even if it holds just a thin film of moisture. This includes cleaning cloths and mop buckets, especially if there are food particles stuck to them.

Best kitchen drain unblockers - from Cillit Bang, Domestos and Mr Muscle through to home remedies like bicarbonate of soda, we reveal which unblocker works best


3. Buying too much fresh produce

Try not to overbuy fresh produce that's in danger of languishing in your kitchen. It's the perfect spot for fruit flies to lay their eggs (and for their larvae to feast on).

  • Check your fruit bowl frequently for rotting or rotted produce. Use a lidded bowl or refrigerate fruit to disrupt the lifecycle of any eggs and larvae that happen to be on the produce. 
  • Look for rotting or rotted items in your vegetable box. If you have veg and fruit delivered, check when it arrives to ensure there's nothing lurking at the bottom that could attract fruit flies and rot other produce. 
  • Freeze any food that can be frozen. For example, put white bread products in the freezer if they're past their best-before date, and only defrost what you need.

See the five reasons you should buy the best fridge freezer we've ever tested


3 ways to get rid of fruit flies

There's plenty you can do to prevent a fruit fly infestation in your home, starting with these simple suggestions:

1. Remember that fruit flies don't only eat fruit

Despite their name, fruit flies have a broad diet, so if you're trying to get rid of them you need to look at more than just how you store fruit. Other things to keep tabs on:

  • White bread - anything 'yeasty' including white loaves, burger buns and pita bread
  • Veg including overripe onions and potatoes
  • Fermented products including soy sauce, kombucha and apple cider vinegar, and alcohol including beer and wine
  • Yoghurt and other cultured foods, for example sour cream, sauerkraut and sourdough bread

Store these foods where fruit flies can't get to them, such as in a fridge, sealed container or bread bin, and wipe away spills and drips on the sides and tops of jars and bottles that might attract them.


Common food storage mistakes to avoid - what you should and shouldn't store together, plus science-based tactics to save money and reduce food waste


2. Rinse out your recycling

Food and drink residue can spoil recycling materials such as paper, and even damage recycling machines - but that's not the only reason to rinse containers before recycling.

Dirty bottles and jars or containers from last night's takeaway are a magnet for fruit flies.

They don't need to be squeaky clean, so a quick rinse should do the trick, although do check with your local authority in case they have different requirements.


Best dishwashers 2023 and buying guide - choose the best dishwasher for you with our top recommendations and expert tips


3. Clean pet food bowls and cages regularly

Dog eating dog food

Leftover food languishing in a pet bowl can attract fruit flies, so clear away any that hasn't been eaten and wash the bowl out with boiling water before putting the next meal in.

A fruit fly infestation could also start in the cage of your rabbit, guinea pig or any other small animal that feasts on fruit and veg.

A spokesperson for the British Small Animal Veterinary Association (BSAVA) said: 'Ensure the hutch is kept clean; in particular, remove any traces of uneaten fruit or vegetables every day and change the bedding frequently.'


Best and worst cat food brands - from Felix to Whiskas, we reveal which cat food brands off the best value for money and which ones cats prefer


Fruit flies, drain flies or fungus gnats: what's bugging you?

If you've spotted little flies around the house they could well be fruit flies, but they might also be drain flies or fungus gnats. 

Here's how to tell the difference:

Fruit flies

These are tan to brown in colour and their oval bodies are about 3mm in length and around 2mm wide.

They have translucent wings, feathery antennae and large, bright red or black eyes.

Drain flies

Also known as sink flies, sewer gnats or moth flies, these non-biting gnats are light grey or tan, are around 1.5-5mm long, and their wings are feathery-looking.

Spraying insecticide will provide temporary relief, but it's important to tackle the root cause. This is usually standing water found in places such as infrequently used toilet bowls, sink or floor drains, or drain pans under refrigerators.

Fungus gnats

Adult fungus gnats are greyish brown flies around 3-4mm long, and can often be seen running over the surface of seed trays and pots or flying slowly around plants.

Using garden compost that's been left open to the elements for houseplants - or nurturing seedlings indoors - are common ways they get inside. Like fruit flies, they can lay hundreds of eggs a day and quickly get out of control.

Try watering houseplants less often so that the soil dries between watering. This will help to break the life cycle. Sticky traps and nematodes (a biological control using tiny harmless soil-dwelling parasites you water into the soil) both work well to get an infestation under control.


Supermarket garden furniture - compare prices and options easily with our 2023 round-up