Cleaning

How to Get Rid of Flies, Summer’s Unwanted Guests

All the ways you can trap 'em, repel 'em, and just keep them away from your home.

June 30, 2020
Photo by Rocky Luten

Every once in a while, and increasingly in summer, a fly will get into my apartment, and it just won’t leave! I’ll admit it’s entertaining to watch my cat do mid-air acrobatics trying to catch the pesky bug, but it’s far less amusing when it’s buzzing around the bedroom while we’re trying to sleep. And just when you think it’s finally gone, it pops up in a different room. Ack!

That whole “house flies only live for 24 hours” concept is a total myth, by the way—in fact, these pesky bugs can live up to a month, according to Orkin, giving them plenty of time to pester your pets and slowly drive you to the brink of despair. (Don’t even get me started on fruit flies, which can live even longer and produce hundreds of offspring!) If you need to get rid of flies quickly, here are all the ways you can trap them, repel them, and ultimately just keep them away from your home.

Get Rid of What Attracts Them

To successfully get rid of flies, you have to think like a fly… maybe that’s a little dramatic, but it does help to understand why they’re in your home to begin with.

You see, house flies are looking for places to lay their eggs, and they’re attracted to decaying organic material and waste, such as garbage, dirty drains, old produce, sugary spills, and even pet food. They’re also attracted to heat and light, which is why you can often find them hanging out in your windows.

Join The Conversation

Top Comment:
“Fly swatters are really the best (I recommend "Sergeant Swat" brand)- the trick (outdoors) is to find them early in the morning at the spots that the sun hits first; flies are to a great extent solar powered, and seek out hot spots to bask and get themselves started in the morning; they're relatively sluggish then.”
— Smaug
Comment

To make your home less attractive to flies, Ehrlich Pest Control recommends cleaning up food waste immediately—aka, no leaving half-eaten sandwiches on the counter all day—as well as investing in a covered trash can and cleaning up pet food and waste regularly. By removing these breeding areas, you can prevent flies from reproducing in your home.

Make DIY Fly Traps

But what about the pesky fellas that are already inside? There are a few ways to make DIY fly traps to capture and dispose of house flies, the easiest of which involves a soda bottle.

You’ll want to clean out a 1- or 2-liter plastic soda bottle, then cut off the top ⅓ of the bottle—basically from the label up. Fill the bottom of the bottle with a few inches of sweet liquid, such as soda or sugar water, then flip the top upside down and place it in the base, creating a funnel. Flies will be attracted to the sugar, and once they crawl down into the bottle, they won’t be able to find their way out again.

Another option is to fill a shallow dish with apple cider vinegar, a tablespoon of sugar, and a generous squirt of dish soap. Place the dish near where your flies hang out, and they’ll get stuck in the sweet mixture. This is also a tried-and-true method for capturing fruit flies.

Additionally, you can use clear fly traps to capture the bugs who hang out in your windows, and when in doubt, a fly swatter will do the trick—you just have to be quick! (Rhyme not intended.)

Use Plants to Keep Flies Away

Once you’ve gotten rid of the flies in your home, you may want to take steps to keep them from coming back, and luckily, you generally don’t need to use pesticides. There are a number of plants that naturally repel flies, including:
- Basil
- Bay leaf
- Lavender
- Nasturtiums
- Mint
- Marigolds

By planting the flowers near your doors or as herbs in window boxes, you can keep flies away from the places where they commonly get into your house. Plus, you’ll also have lovely blooms and fresh herbs to cook with. Win-win!

Other Way to Keep Bugs Out

If you want to do everything possible to keep flies and other bugs out of your home during the summer, there are a few more steps you can take.

Start by inspecting your screens and patching any holes. If the screen is in bad shape, you may want to replace the whole thing. You can also add weather stripping to your doors and windows to seal off any cracks through which bugs can gain entry.

You’ll also want to clean up dead leaves and other yard waste, including pet waste, and if you have an outdoor compost pile, place it at least 20 feet away from your home.

When you take these steps, you’ll finally be able to enjoy a bug-free home all summer—just make sure you get your cat a new toy to keep him busy.

How are you keeping your home fly-free this summer? Tell us in the comments below.

Grab your copy

It's here: Our game-changing guide to everyone's favorite room in the house. Your Do-Anything Kitchen gathers the smartest ideas and savviest tricks—from our community, test kitchen, and cooks we love—to help transform your space into its best self.

Grab your copy

See what other Food52 readers are saying.

  • T
    T
  • Rachel
    Rachel
  • Ruth McAllister
    Ruth McAllister
  • Selma McIntire
    Selma McIntire
  • Smaug
    Smaug
Freelance writer, product tester & baking enthusiast.

12 Comments

T July 6, 2020
We were in Valencia, Spain a few years back at a tiny counter only cafe for their specialty, grilled fresh sardines. Spaced along the counter every few feet were lemon wedges studded with a few cloves. We asked what they were for, assuming it was some interesting condiment for a particular dish and the chef told us that they were there to keep away the flies.
 
Rachel July 4, 2020
We have found our Bug-a-salt (uses table salt as the weapon, so it's safe in the kitchen!) to be quite effective on the battle against flies (and other flying bugs)! It sounded like just another gimmicky product, but me husband has now gotten some for his father and brothers.
 
Ruth M. July 4, 2020
A speedy way to get rid of flies is to vacuum them up or use the electric shock fly swatters from the Dollar store.
 
Smaug July 4, 2020
I on occasion vacuum up a fly, but they're damn difficult to catch up with- maybe if you had a bunch of them swarming on a spot you could catch some. I've tried electric swatters- more often than not they just momentarily stun the fly- they'll get up and fly away in a minute or two; flies are tough. Good for mosquitos, though.
 
Selma M. July 3, 2020
"She was such a bad cook that the house flies got together and fixed her door screen!"
 
Smaug June 30, 2020
If you want to make (or buy) a bottle type trap, something really foul, such as a bottle full of rotten flies, is by far the most effective attractant. Don't know what that stuff is in the commercial versions, but it's nothing you want around the kitchen. I don't know where the notion that basil repels flies come from- they love the stuff. Water your basil with fish emulsion and you'll draw every fly in the county. Fly swatters are really the best (I recommend "Sergeant Swat" brand)- the trick (outdoors) is to find them early in the morning at the spots that the sun hits first; flies are to a great extent solar powered, and seek out hot spots to bask and get themselves started in the morning; they're relatively sluggish then.
 
Arati M. July 1, 2020
All great tips, Smaug! You’re an encyclopedia on the subject! :)
 
Smaug July 2, 2020
I would consider myself a pretty nice guy, but I do seem to spend rather a lot of time tormenting flies and gophers.
 
Kestrel June 30, 2020
Wait....I was hoping you sold those pretty screens shown in the photo!
 
Casey S. June 30, 2020
You can find the Food Net Covers here: https://food52.com/shop/products/1173-outdoor-net-food-cover

They're great, I hope you enjoy!
 
Kestrel June 30, 2020
Thank you! In my cart!
 
Arati M. July 1, 2020
Thanks Casey :)