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 exterminators
From average costs to expert advice, get all the answers you need to get your job done.
Man removing termite damaged wood
Nov 8, 2024
Nov 8, 2024
Termite damage repair costs can vary greatly based on the damage severity and location. Learn more about the associated costs of this project with our guide.
A bright white kitchen with a pastel fridge
Jan 8, 2024
Jan 8, 2024
If you need to get rid of bugs and pests making your home unsafe, it's time to decide if fumigation is necessary. Learn more about average fumigation costs.
Two storks nesting on a house roof
Jan 10, 2024
Jan 10, 2024
Sometimes birds nest in unwelcome places. Find out how much bird nest removal will cost based on factors like location, bird species, and preventative measures.
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.
Close-up of a wasp nest
May 15, 2024
May 15, 2024
Wasps are a pain to share space with, but you have options for removal. While it’s best to call a pro, here’s how to get rid of wasp nests the DIY way.
close up of roach on cupboard
Apr 30, 2024
Apr 30, 2024
Cockroaches are irritating pests with a strong sense of smell. Use that knowledge to your advantage by deterring them with smells roaches hate.
Share project details to get started.