---
title: "7 Ways to Conquer an Indoor Fly Infestation"
description: "This guide contains recommendations for deterring fly activity indoors, and recommended products for reducing fly infestations."
date: "2015-05-12"
modified: "2026-09-14"
authors:
  - name: "Margaret Foley"
    job_title: "Contributing Writer & Editor"
    link: "https://www.bobvila.com/authors/margaret-foley.md"
  - name: "BobVila.com Staff"
    link: "https://www.bobvila.com/authors/bob-vila-staff.md"
url: "https://www.bobvila.com/articles/how-to-get-rid-of-flies-in-the-house/"
categories:
  - "Cleaning & Organizing"
  - "DIY"
  - "Interior"
  - "Pests"
tags:
  - "How To"
---

# 7 Ways to Conquer an Indoor Fly Infestation

![Very close up photo of a fly on the interior side of a window screen, a neighboring home in the far background.](<https://www.bobvila.com/wp-content/uploads/2015/05/fly-on-screen.jpeg>)
*Photo: Africa Studio via Adobe Stock*

Houseflies may not deliver a painful bite or sting the way bees, wasps, [gnats](<https://www.bobvila.com/articles/how-to-get-rid-of-gnats.md>), and horseflies (their bigger cousins) do, but they are not as innocent as they may seem. But houseflies constantly flit back and forth between trash, manure, and decaying matter, picking up bacteria that can contaminate your food. Transmission typically occurs when a fly regurgitates directly on food or on surfaces that humans touch. This can cause a number of illnesses, including:

- Food poisoning
- Dysentery
- Cholera
- **E. coli**
- Typhoid fever
- Tuberculosis
- Eye infections

As if this litany of ills weren’t enough, we can expect to see increasing numbers of these little critters as the planet warms up. [A 2019 Canadian study](<https://royalsocietypublishing.org/doi/full/10.1098/rsos.181394>) that modeled fly population size and activity under various climate scenarios predicted a roughly 30 percent increase in the transmission of campylobacter, a bacteria that causes gastrointestinal illness, by 2050.

Infestations start small. Although you may at first spy just one fly, females can lay five to six batches of 100 eggs that hatch in 12 to 24 hours, leaving you wondering where they all suddenly came from. To get rid of houseflies, you’ll need a multipronged approach. Use these strategies to prevent flies from becoming a real problem at your place.

## 7 Ways to Get Flies Out of Your House

### 1. Seal flies’ pathways into the house.

It's a challenge to keep flies out when you’ve got a busy household of family, pets, and visitors coming and going, but a good defense is essential:

- [Repair damaged screens](<https://www.bobvila.com/exterior/how-to-replace-a-window-screen.md>) on windows and doors.
- Caulk around windows to seal gaps and small crevices where flies could enter.
- Consider adding a quick-closing [magnetic screen door](<https://www.bobvila.com/articles/best-magnetic-screen-door.md>) to high-traffic portals, such as those leading out to a deck or patio.
- Don’t leave attached garages or cellar doors open for extended periods.

### 2. Clear out food debris and garbage.

![Woman places a stainless steel compost bin on a kitchen countertop.](<https://www.bobvila.com/wp-content/uploads/2015/05/how-to-get-rid-of-flies-in-the-house_compost.jpg>)
*Photo: Tom Fenenga for BobVila.com*

To make your home less hospitable to flies, remove or minimize the stuff that attracts them. Don’t leave any food debris out on counters or tables, especially uncovered items. [Fruit](<https://www.bobvila.com/articles/how-to-get-rid-of-fruit-flies.md>)—especially apples—and vinegar are particularly alluring to houseflies. Also:

- Keep countertops clean of crumbs, wash dishes soon after meals rather than leaving them in the sink, and ensure that the door to the dishwasher is firmly closed.
- Be mindful of compost, garbage, and pet food. These also attract flies and can quickly become breeding grounds.
- Take all [compost materials](<https://www.bobvila.com/articles/composting-101.md>) outside immediately.
- Keep [garbage cans](<https://www.bobvila.com/articles/best-kitchen-trash-can.md>) covered, and carry the trash out regularly.
- Clean or completely cover pet bowls between meals, particularly if you give your furry friends wet food.

### 3. Lure them with light.

![Woman in a dark kitchen cranks kitchen window open; window the only source of light.](<https://www.bobvila.com/wp-content/uploads/2015/05/how-to-get-rid-of-flies-in-the-house_light.jpg>)
*Photo: Tom Fenenga for BobVila.com*

Insects are attracted to light, so if you’re dealing with an infestation, here’s how to get rid of flies inside your house: On a bright, sunny day, close the door to the room where flies are present and shut the blinds and drapes, leaving just one gap that lets in light. Open that window wide to the outside. The flies should then head outside, where it’s bright.

You can also use light to lure flies in—into a trap, that is. The [Safer Home Indoor Fly Trap](<https://www.amazon.com/Safer-Brand-SH502-Chemical-Insects/dp/B09T3T1FYN/?tag=bovi01-20>) plugs into an outlet and uses UV light to attract bugs to its sticky glue card, where they’re discreetly held until you throw out the bug-filled card.

### 4. Swat them.

![Closeup of woman's hand holding a fly swatter against a kitchen backsplash to kill a fly.](<https://www.bobvila.com/wp-content/uploads/2015/05/how-to-get-rid-of-flies-in-the-house_swat.jpg>)
*Photo: Tom Fenenga for BobVila.com*

Despite prevention tactics, flies may still find their way in. Combat flies with a good old-fashioned flyswatter or rolled-up newspaper, and the right technique. Good eyesight and sharp reflexes are a plus in the fight against flies. A housefly has almost 360-degree vision, so it’s best to approach from behind and hover just above before making a fast, decisive flick with your weapon. Flies are one of the few insects that are actively affected by colors, so use a flyswatter in a neutral tone for superior stealth.

### 5. Stick (or suck) them up.

![Woman stands by sliding glass door and hangs a piece of fly paper on the glass.](<https://www.bobvila.com/wp-content/uploads/2015/05/how-to-get-rid-of-flies-in-the-house_stick.jpg>)
*Photo: Tom Fenenga for BobVila.com*

For a passive yet ever-ready fly-catching technique, hang good-quality flypaper. You can purchase [flypaper](<https://www.amazon.com/Hanging-Indoors-Outdoors-Catchers-Flypaper/dp/B09VS6DHBK/?tag=bovi01-20>) online or at a local hardware store, or make your own by coating strips of kraft paper with a sticky mixture of water, sugar, and honey or syrup. Bugs are bound to bump into the paper, whether store-bought or DIY, and get stuck as they buzz about.

Another way to outsmart flies is to vacuum them straight out of the air. Hover a few inches behind with the vacuum on to suck them in. Use this method only with vacuum cleaners that have a bag, and dispose of it immediately after foiling the infestation so flies won’t find their way back out and back into your home.

### 6. Build and bait a natural fly trap.

![Woman pours red wine vinegar into a glass measuring cup.](<https://www.bobvila.com/wp-content/uploads/2015/05/how-to-get-rid-of-fruit-flies_vinegar.jpg>)
*Photo: Tom Fenenga for BobVila.com*

Employ a simple, all-natural [homemade fly trap](<https://www.bobvila.com/articles/diy-fly-trap.md#:~:text=Homemade%20fly%20trap%20bait%20options,the%20bottle%20base%2C%20at%20maximum.>) to lure and imprison unwanted insects. All it takes is a plastic container, plastic wrap, and fly bait (like sugary water, fruit, vinegar, or apple cider vinegar). Set up the fly trap in a corner to attract and confine flies, and then dispose of them when you’ve won the battle. If the DIY route isn’t your style, [shop for a fly trap](<https://www.bobvila.com/articles/best-fruit-fly-trap.md>) to catch and kill flies.

### 7. Grow herbs that repel flies.

![Different aromatic potted herbs on windowsill indoors](<https://www.bobvila.com/wp-content/uploads/2015/05/iStock-1463869699.jpg>)
*Photo: iStock Photo: istockphoto.com*

Both potted plants and essential oils can be part of your anti-fly arsenal. Start an indoor herb garden that includes mint, lavender, and basil, all of which are worthy fly fighters. Set the plants on a kitchen windowsill, and flies will be less likely to enter. Another idea is to add a few drops of lavender or eucalyptus oil to a spray bottle full of water, and then mist door and window frames frequently to repel the insects.

**BobVila.com and our parent company, Recurrent Ventures, put conservation and sustainability at the forefront of much of what we do.** Though the solutions offered in this content are all effective, not all of them are organic or sustainable. The staff of BobVila.com encourages readers to make informed choices about maintaining their home and property. We recommend starting with the least extreme solution, escalating only if necessary, and prioritizing solutions that will not have detrimental effects on the health and longevity of this planet and its inhabitants.

## Using Insecticides to Kill Flies

If these methods fail to solve your fly infestation, you may wish to resort to using [insecticides](<https://www.bobvila.com/articles/best-insecticide.md>), but do so only if you've you weigh their advantages and disadvantages: Products containing permethrin are among the most effective and widely available for fly control, but permethrin is highly toxic to cats. Many insect sprays and foggers are designed to [kill flies outdoors](<https://www.bobvila.com/articles/how-to-get-rid-of-flies-outside.md>); if your fly problem is inside the home, you'll want to look for a safe and effective nontoxic option.

The following are few popular fly-control solutions, which are safe if used as directed. They may leave an oily residue, and most kill on contact, which means that you need to be quick to spray houseflies when you see them:

- [Stem](<https://www.amazon.com/Stem-Kills-Ants-Roaches-Flies/dp/B09GD81Q4S/?tag=bovi01-20>) plant-based bug spray
- [Safer Home](<https://www.amazon.com/Safer-Brand-SH110-Indoor-Silverfish/dp/B09T3V8DYP/ref=sr_1_9?tag=bovi01-20&crid=3IR6HVVE71FJ2%2F>) indoor pest control
- [Raid Multi-Insect Killer](<https://www.amazon.com/Raid-Insect-Killer-Orange-Breeze/dp/B07N9K8CMD/?tag=bovi01-20>)

While insecticides can be helpful in getting rid of flies in the house, a better long-term solution is to adopt good habits, like eliminating the odors, food debris, and garbage that attract the flies in the first place.

## FAQ

## Author
Margaret Foley is an editor, educator, and writer based in New York City who has worked for a variety of magazines over her career. She has been contributing to BobVila.com for roughly a decade. When she isn’t sitting in front of a laptop, she spends her time keeping her family of humans, dogs, and one cat fed and healthy and trying to prevent a 100-year-old house from falling down.

## More

- [How to Get Rid of Flies Outside](<https://www.bobvila.com/articles/how-to-get-rid-of-flies-outside.md>)
- [How to Get Rid of Fruit Flies: 5 DIY Traps](<https://www.bobvila.com/articles/how-to-get-rid-of-fruit-flies.md>)
- [How to Get Rid of Drain Flies—and Keep Them From Coming Back](<https://www.bobvila.com/articles/how-to-get-rid-of-drain-flies.md>)
- [How to Make a DIY Fly Trap](<https://www.bobvila.com/articles/diy-fly-trap.md>)
- [4 Ways to Get Fungus Gnats Off Your Plants ASAP](<https://www.bobvila.com/articles/how-to-get-rid-of-fungus-gnats.md>)
- [Drain Flies vs. Fruit Flies: Tips for Identification and Prevention](<https://www.bobvila.com/articles/drain-flies-vs-fruit-flies.md>)
- [How to Get Rid of Phorid Flies in 7 Steps—Even If You’ve Tried Everything](<https://www.bobvila.com/articles/how-to-get-rid-of-phorid-flies.md>)
- [How to Get Rid of Gnats, Indoors and Out](<https://www.bobvila.com/articles/how-to-get-rid-of-gnats.md>)
