We may earn revenue from the products available on this page and participate in affiliate programs. Learn More ›
Houseflies may not deliver a painful bite or sting the way bees, wasps, gnats, 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 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.

Tried-and-True Advice
“I prefer to keep my windows open in the summer, but with the sunshine and breeze comes flies. I’ve tried various methods for keeping them out, including DIY fly traps using apple cider vinegar, and natural repellents like lavender and eucalyptus.
The best defense, I’ve found, is a combination of these things. Keep a few DIY traps out where the flies tend to congregate, and at the same time cultivate a few houseplants that have natural repellent properties. The added benefit of this strategy is that you’ll always have herbs around to use for other purposes, such as cooking or making aromatics.”
—Chase Brush, Contributing Writer
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 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 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.

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—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 outside immediately.
- Keep garbage cans 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.

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 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.
Best Budget Fly Trap

Catchmaster Window Fly Traps
4. Swat them.

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.

For a passive yet ever-ready fly-catching technique, hang good-quality flypaper. You can purchase flypaper 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.

Employ a simple, all-natural homemade fly trap 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 to catch and kill flies.
7. Grow herbs that repel flies.

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.
Using Insecticides to Kill Flies
If these methods fail to solve your fly infestation, you may wish to resort to using insecticides, 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; 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 plant-based bug spray
- Safer Home indoor pest control
- Raid Multi-Insect Killer
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
If you notice flies swarming in a small area, it may be an indication of rotting food or garbage, a pet accident, or a dead animal. But often flies around the house aren’t a “sign” of anything in particular—the bugs just flew in and are looking for a likely spot to feed and breed.
Lavender, eucalyptus, peppermint, basil, cinnamon, and lemongrass are all natural essences that deter flies. Flies also dislike the strong smell of camphor, an organic compound.
The post 7 Ways to Conquer an Indoor Fly Infestation appeared first on Bob Vila.