How to stop flies from coming in your house – the 6 best measures you should take according to experts
Pest control experts share 6 best ways to stop flies from getting inside your home
EDITOR’S NOTE: An earlier version of this article included a quote from a purported expert whose credentials we have not been able to verify. The quote has been removed. We regret this lapse in our verification process and have updated our internal protocols to reduce the risk of recurrence.
Flies somehow always seem to find their way into our homes, despite the fact that nobody wants them there. And as the weather is starting to (very) slowly warm up, the chance of flies’ presence increases, which is why taking preventative measures how to stop flies from coming into the house is paramount.
While there are ways to get rid of flies in the house when they set up camp, it’s always better to prevent the issue from developing, rather than scrambling later on to solve it. Flies in your home are included.
According to Make My Blinds’ research, searches for ‘how to stop flies coming in’ have seen a 350% increase in the last three months. So the presence of these pesky pests is clearly already becoming a problem. And this is what you can do about it.
How to stop flies from coming in the house
It's not always possible to keep windows and doors closed all the time, especially when it's hot outside.
That’s why you need to employ other ways to stop flies in their tracks and keep them out of the house. And while things like having the fan on can get rid of flies, these are the 6 ways that our pest control experts recommend.
1. Place fragrant plants near windows
You may not realise just by looking at them, but flies actually have quite a sensitive sense of smell. And there are several fragrances they don’t like, many of which happen to be herbal. So what you can do is place those fragrant herbs and plants near the home entry points - the windows.
‘You can discourage flies by planting insect-repelling herbs such as rosemary and lavender near windows. This will also make your home smell great, too,’ says Dr Jonathan Kirby, pest expert at NOPE!.
Sign up to our newsletter for style inspiration, real homes, project and garden advice and shopping know-how
Mint, lemon balm and basil also work well for this purpose. That’s how you keep flies off your houseplants, too - opting for varieties they can’t stand.

Jonathan is a developmental chemist and pest expert at NOPE!. From pest control to masonry protection, he has dedicated himself to helping protect UK housing stock through the development of new and innovative products.
2. Burn scented candles
Using candles with bug-repellent scents like citronella and lemongrass will really help stop flies from entering your home. Position them by your windows to deter the critters from coming in in the first place.
This trick works similarly to placing fragrant plants near the window - only in this case, it’s the best scented candle to deter flies.
'One of the most effective scents for repelling flies is citronella,' says Chris Hutton, storage expert and owner of Adams Selfstore. 'It’s a lemony fragrance that is commonly found in candles and sprays that are specifically designed to repel insects, so it won’t be hard to purchase some if that’s the route you choose to go down when it comes to your fly troubles.'
Or home spray works just as well. Just make sure you keep reapplying it to keep the scent nice and effective.
3. Hang voile curtains
Voile curtains with their lightness and semi-sheer quality are a great curtain idea during the warmer months. But they also make for a great barrier between your home and flies when you have windows and doors open.
Choosing lightweight voiles over your window to create a barrier can work a treat and won't block natural light or fresh air.
Or if you want to go a step further, then you can install a screen to stop them. ‘Installing window screens can also give you that extra layer of protection to prevent flies from entering while still allowing ventilation,’ Dr. Jonathan says.
4. Don’t leave food out
Flies are attracted to food, which is why it should never be left out and easily accessed by them.
‘You'll need to store your food properly. Make sure that it's covered immediately after you've cooked it and not left outside because this can quickly become attractive to flies,’ says Mihail Velev, Fantastic Pest Control's pest technician.
And this also applies to the bin and dirty dishes, which should be regularly cleaned, washed and sanitised. ‘Take care of your garbage because flies like decomposing food that's rotted and over-ripened, which provides the perfect breeding ground for them. And don't leave dirty dishes or glasses out on the kitchen counter,’ Mihail says.
5. Put fragrant essential oils in your cleaning solutions
We love natural cleaning hacks as natural formulas make for some of the best cleaning products. And whether you make your own at home or buy solutions made from natural ingredients, opting for those with fragrant essential oils like peppermint, lavender and lemongrass will keep flies out of your home.
6. Block gaps around the windows
Any potential entryways, apart from the obvious ones like doors, windows and vents, should be eliminated.
‘For flying insects like flies, you should seal any gaps or cracks in and around your windows and doors to block out common entry points,’ Dr. Jonathan recommends.
FAQs
What smell do flies hate in the house?
As we’ve already established, there are several smells that will naturally deter pests like flies.
‘Smells flies hate include lavender, eucalyptus, peppermint, and lemongrass, which you can use as essential oils and spray in your home,’ Mihail says.
Why do I keep getting flies in my house?
Flies can get into the house through the smallest cracks and gaps, as well as vents and obviously windows. And they can be attracted by various smells, mainly food - both fresh and decomposing.
‘Flies are very small and can get into the home through even tiny gaps in and around points of entry. This is where proofing your home for any obvious gaps and crevices around windows and doors is really important. Flies will be encouraged to enter your home if any food is left lying around, so the cleanliness of your home can play a crucial role in effective pest control. Regularly cleaning up food spills and emptying bin bags to keep the kitchen tidy can go a long way,’ Dr. Jonathan says.
And with all this knowledge, you should be able to keep those pesky flies at bay.

Sara Hesikova has been a Content Editor at Ideal Home since June 2024, starting at the title as a News Writer in July 2023. She is now also the Ideal Home Certified Expert in Training on Furniture, and so far has tested over 150 different sofas.
Graduating from London College of Fashion with a bachelor’s degree in fashion journalism in 2016, she got her start in niche fashion and lifestyle magazines like Glass and Alvar as a writer and editor before making the leap into interiors, working with the likes of 91 Magazine and copywriting for luxury bed linen brand Yves Delorme among others.