How to Keep Flies Away: 8 Ways to Fight Flies in Your Home or Outdoor Space

Learn how to keep flies away for good

A view of a room with an open balcony door
Photo: Photographee.eu / Adobe Stock
A view of a room with an open balcony door
Photo: Photographee.eu / Adobe Stock
Get quotes from up to 3 pros!
Enter a zip below and get matched to top-rated pros near you.
Geo Icon

Flies are as relentless as they are annoying, and it can often feel like there is no escaping the constant harassment. Still, whether they’re darting clumsily about your home or rudely buzzing around your picnic, there are ways to avoid their persistent pestering. Here’s how to keep flies away from your home, indoors and out.

1. Deter Flies With Pennies

If flies are bugging your barbecue, fill a resealable clear plastic bag about 3/4 of the way with water and toss three pennies into it. Then, seal the bag and hang it in a sunny spot near your food and/or gathering spots (use multiple bags to cover larger areas). This effectively, and somewhat mysteriously, keeps flies away.

So, why does it work? Some say the refracted light from the copper and water is disorienting for the fly’s ultra-sensitive compound eyes, according to the National Library of Medicine. Others believe the multifaceted appearance mimics the eyes of a much bigger insect. Either way, many swear by the effectiveness of this simple trick.

2. Repel Flies With Lemongrass Oil 

If you’re looking for a fly repellent, lemongrass oil has proven to be particularly effective. A clinical study found that flies spent significantly less time lingering in areas treated with lemongrass oil when compared to untreated spots, according to the National Library of Medicine

Add a few drops of oil to a diffuser or place soaked cotton balls or fabric strips wherever you see flies buzzing around. 

Keep in mind that lemongrass is harmful to pets, causing stomach upset, difficulty breathing, and in rare cases, death, says the American Society for the Prevention of Cruelty to Animals. To be safe, skip the diffuser and only treat out-of-reach areas if you have any furry friends.

3. Use Plants and Essential Oils to Keep Flies Away

A view of a potted catnip plant and a cat on a patio
Photo: lukszczepanski / Adobe Stock

Along with lemongrass, there are a few other botanicals that flies really can’t stand. 

These include:

  • Lavender

  • Eucalyptus

  • Catnip

  • Mint

  • Citronella

  • Rosemary

Use the essential oils of these plants just as you’d use lemongrass oil. Alternatively, you can plant them in your garden or in planters around your deck or patio. Note that many are also harmful to pets, so stick to pet-friendly repellent plants such as rosemary and catnip from this list if you have animals.

4. Lure and Trap Flies With Apple Cider Vinegar

Vinegar is a homemade insecticide that is highly effective at baiting flies to their demise. Fill bowls or mason jars with apple cider vinegar and a few generous squirts of dish soap. Then, cover with plastic wrap and poke a few holes large enough for the flies to get through. The apple cider vinegar will lure the flies in, while the dish soap will make it impossible to escape. 

5. Hang Fly Baits Around Barns, Stables, and Other Areas

If you’re wondering how to get rid of flies bothering your livestock and outdoor animals, you might need a little extra help. Along with other prevention methods, you can try adding fly baits to control the number of flies in the area. 

A 2015 study on flies found that baits containing cyantraniliprole as the main ingredient were the most destructive to flies, but there are a variety of other options on the market. Keep in mind that these contain a fly attractant, so you’ll want to set them up a good distance from where your animals are. 

6. Repel Flies With a Strong Fan

A view of a fan outdoors
Photo: mike / Adobe Stock

While they pack a lot of “annoying” for their size, flies are indeed tiny—and fans give you the perfect opportunity to use it against them. Simply position a strong fan to knock the little buggers off their flight path. If you’re behind the blast, this will drastically help keep the flies away from wherever you’re sitting. 

7. Know What Keeps Flies Away and Practice Prevention

If you’re curious about the most effective method for keeping flies away, prevention is key. Flies love food, moisture, and decay, so it’s important to eliminate these temptations in and around your home. 

Here are the best ways to prevent flies:

  • Keep food and trash in sealed containers.

  • Clean up doggy business ASAP.

  • Keep your lawn neatly mowed.

  • Remove standing water from your property.

  • Avoid killing spiders—they love capturing delicious flies for their meals.

  • Repair torn or broken window screens to keep flies out of your home.

If you need a deep cleaning for your home, hire a local house cleaning company to help.

8. Get Professional Pest Control 

Houseflies are a persistent pain that might be difficult to control on your own. If you’re seeing a massive, uncontrollable number of flies, there may be a breeding area on your property. A local exterminator has access to stronger insecticides and can help you locate the source of the flies, keeping them away for good.

Need professional help with your project?
Get quotes from top-rated pros.
The homeowners guide to pest control services
From average costs to expert advice, get all the answers you need to get your job done.
Close-up of termites on a wooden surface
Nov 25, 2024
Nov 25, 2024
Keep your home free of termites and the damage they do. Learn more about inspections, infestations, and the average cost of termite treatments.
Two wild snakes
Aug 21, 2024
Aug 21, 2024
Snake removal cost comes down to the type and number of snakes you’re dealing with and where they’re located inside your home. This guide breaks it down.
worker in white protective suit spraying pest repellant on window sill
Nov 12, 2024
Nov 12, 2024
Whether you have bugs, bats, or rodents invading your home, you’ll want to contact an exterminator quickly. Find out how much pest control costs.
A woman standing by wooden house
May 20, 2024
May 20, 2024
Nobody wants to tangle with wasps on their property, as these insects sting with extreme prejudice. Here’s how to get rid of wasps safely and for good.
Spotted lanternfly on maple tree
May 23, 2024
May 23, 2024
The invasive spotted lanternfly makes a mess and causes serious damage to the environment. So, how much does spotted lanternfly treatment cost?
A woman cleaning her kitchen cabinets
May 7, 2024
May 7, 2024
Roaches in your cabinets can make your life hard, and they’re difficult to eliminate. Read on to learn how to get rid of cockroaches in your kitchen cabinets.
Share project details to get started.