From bowls of ripening fruit and evenings spent dining outdoors, July brings plenty of the sights and smells of summer. Unfortunately, it also marks peak fruit fly season. While these tiny insects are mostly harmless, warm weather allows them to breed rapidly, meaning they can seemingly appear overnight in kitchens, gardens and outdoor entertaining spaces. The good news? Experts say a few simple changes – including checking an often-overlooked spot in your kitchen – can help keep them away.

'July is when fruit flies tend to become the most notable in homes and gardens across the UK,' explains David Denyer, gardening and floristry expert at Eflorist. 'The heatwaves we’ve been experiencing so far this summer speed up the breeding cycle of the species, and ripening fruit, food waste and compost bins provide the perfect environment for them to thrive in.'

Why do fruit flies seem to appear overnight?

'Fruit fly infestations are usually short-lived but can appear suddenly when conditions are right,’ states Daniel Steward, managing director at Shield Pest Control. 'Eggs can hatch within 24 hours, and in warm conditions the full life cycle from egg to adult takes around a week, which allows numbers to build up quickly.'

Daniel says 'persistent activity usually indicates that a hidden food source or damp area has been overlooked.'

drosophila suzukii, commonly called the spotted wing drosophila, cherry drosophila or swd. it is a fruit fly, a serious pest of soft fruits. insect on tomato.pinterest
KLEJDYSZ TOMASZ

How to prevent fruit flies indoors

‘Once breeding sources are removed, infestations tend to subside within a few days, with most problems resolving completely within one to two weeks,' confirms Daniel.

While it can be tempting to stock up on fresh produce, buying more fruit than you can eat increases the risk of attracting fruit flies as it ripens.

'If you only buy what you know you’re definitely going to eat/use, you’ll not only ensure that you have nothing to attract fruit flies into your home, but also save yourself some money,' says Adam Juson, founder of Merlin Environmental, a commercial pest control company.

close up of decorative fruit in bowl on dining tablepinterest
Grace Cary//Getty Images

'Preventing fruit flies comes down to careful food storage and good housekeeping,' adds Daniel.

Cleaning worktops regularly, emptying and disinfecting bins, and keeping drains clean can help remove less obvious breeding sites. It's also a good idea to wash fruit as soon as you bring it home, as this can help prevent fruit fly eggs from being introduced into your kitchen.

However, 'long-term prevention relies on removing food sources and moisture so the flies have nowhere to breed,' says Daniel.

woman washing fresh nectarine in kitchen sink, closeuppinterest
Kseniya Ovchinnikova//Getty Images

How to prevent fruit flies outdoors

While it can appear difficult to avoid insects in nature, these simple tips can help you tackle fruit flies effortlessly.

Grow fragrant herbs nearby

David reveals how strongly-scented herbs like basil, rosemary, lavender and mint can help to create a less inviting environment for fruit flies around patios and outdoor seating areas.

As an added bonus, they can provide fragrance, attract pollinators, and can be picked fresh for cooking and refreshing drinks throughout the summer months.

close up high angle view of potted lavender, sage, and rosemary growing together in a wooden planter box under bright, natural sunlight on balcony in summerpinterest
Tamina 8//Getty Images

Keep on top of plant watering

During hotter months like July, it can be all too tempting to overwater houseplants and outdoor foliage to prevent them from wilting or dehydrating. 'Overwatered pots and saucers filled with stagnant water can create favourable conditions for fruit flies,' warns David.

Ensure you water plants deeply when needed, allow containers to drain properly, and avoid standing water beneath pots for long periods to reduce the occurrence of fruit flies.

Maintain your compost bin

Outdoor compost bins are a natural habitat for fruit flies, but they don’t have to become a problem. Keeping the compost balanced rather than overly wet will make it less attractive to flies. 'Try adding a layer of dry material, such as shredded cardboard or dry leaves, over fresh fruit and vegetable scraps to reduce exposed food and minimise bad smells,' David suggests.

Keep patios and dining areas clean

For those enjoying regular alfresco meals in their gardens, making sure to clear empty glasses, plates and leftover food once finished can also reduce the recurrence of fruit flies. 'In hot weather, you’d be surprised how quickly sweet drinks, wine, and fruit garnishes attract fruit flies, so regular wipe-downs of tables and spillages can make all the difference'.

dining table outside in a garden. al fresco dining on a warm summers day.pinterest
Flashpop//Getty Images

How to get rid of fruit flies (and why you should check your drains first)

When fruit flies suddenly appear, it's easy to blame the fruit bowl — but experts say your drains should be the first place you check.

'The mistake most people make is thinking the job's done once the visible swarm is gone. If there are eggs or larvae still sitting in a drain or a bin, you bet, they'll be back within days. Treating the drains and bins alongside the fruit bowl from the start saves a lot of repeated tedious battles down the line,’ explains Didrik Dimmen, gardening expert, CEO and co-founder of indoor smart garden company Auk.

'Pouring boiling water down the plughole and scrubbing with a brush can often clear up an infestation that hasn't budged for weeks,' adds Didrik.

There are also simple, effective traps you can make at home.

healthy organic food. apple cider or vinegar in a glass bottle and fresh apples on a light background.pinterest
Roxiller//Getty Images

Adam reveals: 'Leaving a mixture of apple cider vinegar and liquid soap in a dish on the side will attract and trap fruit flies.'

Another easy trick? Setting up a bowl of very ripe fruit or a splash of red wine overnight. 'Cover it with cling film with a few small holes pricked in it and you’ll find it draws the fruit flies in and they’ll struggle to find their way out again,' Didrik reveals.

While fruit flies may be an inevitable part of high summer, they needn’t put a dampener on the season. A little extra vigilance now can help keep kitchens, gardens and alfresco dining spaces feeling fresh, leaving you free to enjoy the simple pleasures of July.

Follow House Beautiful on Instagram, TikTok and Pinterest


Fly Traps