Fruit Flies on lemon

10 Tips on How to Stop Flies from Coming into Your House

Flies are persistent, and once one finds its way in, more tend to follow. They are also more than irritating. House flies and bluebottles can carry bacteria picked up from bins, drains and decaying matter, so keeping them out is well worth the effort.

The mistake most people make is going after the flies they can see and leaving whatever drew them in. Flies come indoors looking for food, warmth and light. The most effective prevention is to remove those attractions and close the gaps flies use to get in. Swatting does little. Get the prevention right and you stop the problem before it starts.

These are ten ways to keep flies out of your house. If you already have flies inside, our expert guide on getting rid of flies covers how to clear them.

📋 Quick summary: keeping flies out

  • Remove what draws them in. Bins, food waste, over-ripe fruit, pet mess and dirty drains are what attract them.
  • Close the gaps. Fit fly screens and seal cracks around doors, windows and vents.
  • Mind the light. Flies head for bright lights at night, so switch to warm bulbs or turn lights off near doors.
  • Seal up before autumn. Cluster flies push in through tiny gaps to hibernate, so proofing keeps them out.
  • If some still get in, deal with the source first. Then deal with the remaining flies. Our fly control kits include items such as fly papers, window traps and electric fly killers.

What Is Drawing Flies Into Your Home?

Flies do not turn up at random. They follow smells to food and breeding sites. The usual attractions are:

  • Open or overflowing bins and food waste caddies
  • Crumbs, spills and uncovered food
  • Over-ripe fruit and fermenting liquids (the magnet for fruit flies)
  • Dirty drains and standing water
  • Pet faeces in the garden or litter trays
  • A dead rodent in a wall, loft or chimney. This often follows rodenticide use, which is one reason we are cautious about poisons

Bright lights at night draw them in too. In autumn, cluster flies arrive looking for a warm place to hibernate, not for food. Deal with the attractions first, then close the ways in.

One quick check before you start. Tiny flies hovering around houseplants are usually fungus gnats from overwatering, and small flies by the sink or plughole are often drain flies. Both need a slightly different fix from the common house fly.

1. Keep Surfaces and Floors Clean

The first step is to keep everything clean and tidy. Keep kitchen and dining areas free of leftover food, wipe up crumbs and spillages promptly, and do not leave dirty dishes standing. Clean surfaces with no food smells give flies far less reason to come looking.

Maintaining clean surfaces to prevent flies

2. Use Tight-Sealing Bins

Bins attract more flies than almost anything else, so make sure yours have tight-fitting lids, empty them regularly and clean them with disinfectant. It is just as important to site bins away from doors and windows, so any flies they attract are not right next to your entry points.

Tight-sealing bin lids to deter flies

3. Store Food Properly

Do not leave food out in the open, even briefly. Store it in sealed containers or the fridge, check fruit bowls and remove anything that is going off, and cover food after cooking. This stops flies feeding on and contaminating your food, and above all it stops them laying eggs on it.

Storing food in sealed containers

4. Clean Drains Regularly

Flies, and drain flies in particular, breed in the moist, organic film that builds up inside drains and plugholes. Clean and disinfect drains regularly to remove a breeding site and food source that is easy to overlook.

Cleaning drains and pipes to prevent flies

5. Fit Fly Screens

To let fresh air in and keep flies out, fit fly screens to windows and doors. They are the simplest physical barrier available. Choose a mesh that balances a fine weave with a clear view, and keep existing screens in good repair, because flies will find any tear or gap.

Fly screens fitted to a door

6. Seal Cracks and Gaps

Screens stop flies at open windows and doors, but flies also get through surprisingly small gaps. These include gaps around door and window frames, air vents, extractor outlets and where pipes pass through walls. Seal them with a suitable filler or insect-proofing products, and fit brush strips to doors with gaps. This closes the routes that screens alone cannot cover.

7. Mind Your Lighting

Flies are drawn to light at night. Where you can, turn off outdoor lights near doors, or switch them to warm-yellow bulbs, which attract far fewer insects than bright white or blue-toned LEDs. Indoors, draw the curtains at dusk in high summer, especially with the windows open, so the light does not draw flies straight in.

8. Use Natural Deterrents at Entry Points

Flies dislike certain scents, so lavender, basil, marigolds, peppermint and citrus oils all help to discourage them around doors and windows. Grow the plants on windowsills, or put a few drops of essential oil on a cloth or in a spray and refresh it around entry points every few days. They are a useful extra measure but do not replace screens and sealing.

Lavender as a natural fly deterrent

9. Seal Up Before Autumn for Cluster Flies

Cluster flies are a different problem from house flies. They do not come for food. They come to hibernate, pushing in through tiny gaps around eaves, soffits, tiles and window frames every autumn, often in large numbers. We see many of them at that time of year. Because the answer is to keep them out, not to improve hygiene, sealing those gaps with insect-proofing before the weather turns is by far the best prevention. Once they have settled in the loft, they are much harder to remove.

10. If Flies Still Get In

Even with good prevention, the occasional fly gets through. For these, our best-sellers are all lower-risk options: fly trap bags, window fly-trap stickers and a pesticide-free spray such as Organisect. An electronic fly killer is also worth having in kitchens. Our fly control kits include items such as traps and sprays. For a large infestation, our expert guide on getting rid of flies sets out the whole approach. If DIY methods are not keeping flies under control, or you have a heavy cluster fly problem in the loft, a pest controller can help.

Outdoor fly trap

FAQs: stopping flies coming into your house

What attracts flies into the house?

Food smells above all, from bins, over-ripe fruit, crumbs, dirty drains and pet mess, plus bright lights at night. A dead rodent in a wall or loft is also a common hidden cause. Remove the attraction and most of the problem goes with it.

Why do I get flies even though my house is clean?

There is usually a source you have not spotted, such as a drain, a bin just outside the back door, fruit that is going off or a dead animal in a cavity. In autumn it may be cluster flies coming in to hibernate, which has nothing to do with cleanliness.

How do I stop flies coming in through the door?

Fit a fly screen or brush strip, keep the door shut where you can and move bins away from the doorway. Switch outdoor lighting to warm bulbs, so it does not draw flies over in the first place.

What smells keep flies away?

Flies dislike lavender, basil, peppermint, eucalyptus and citrus. Use the plants, or put a few drops of essential oil on cloths or in a spray around doors and windows. They help at entry points but will not replace screens and sealing.

Why have I suddenly got loads of flies indoors?

Usually a batch of eggs has hatched from a nearby source, such as a bin, a drain or a dead animal, or cluster flies have arrived for the autumn. Either way, find and deal with the source as well as the adults.

Final Thoughts

Stopping flies coming in depends on two things: not giving them a reason to visit, and not leaving them a way in. Keep food, bins and drains clean, fit screens and seal the gaps. Mind your lighting, and seal up before autumn for cluster flies. A little regular maintenance keeps flies out of your home and protects your health.

We go to great lengths to ensure that all our DIY fly control kits and products are effective, fast & easy-to-use. You may also find our expert guide on getting rid of flies useful if some have already made it indoors.

Author Bio

William is a seasoned DIY pest control expert with over ten years of hands-on experience tackling pest problems effectively and safely. A proud holder of the Foundation Certificate in Pest Management from the British Pest Control Association (BPCA), William is passionate about empowering others to take control of their homes and businesses using practical and reliable methods. Through his in-depth knowledge and approachable style, William simplifies pest management, ensuring his readers feel confident and informed every step of the way.