How to Get Rid of House Flies: Kill the Source, Not Just the Adults

Written by Thomas Matthews

House flies are not just annoying. They breed in filth and then land on your food, which makes them a genuine health pest, not only a nuisance. The good news is that getting rid of them is straightforward once you understand the one thing that actually works: find and remove whatever they are breeding in. Swatting the adults you see does nothing if a fresh batch is hatching in the trash or the yard.

The short answer: track down and remove the breeding source (garbage, pet waste, or decaying matter), tighten up sanitation so there is nothing to feed on, seal and screen them out, and then trap or swat the adults that remain. This page focuses on house flies specifically. For every other type, see our full guide to how to get rid of flies.

Where do house flies come from

Where House Flies Come From

House flies are the large, dull-gray flies with four dark stripes on the back. They do not breed indoors in clean kitchens. They lay eggs in moist, decaying organic matter, and the maggots are eating and growing within days. The usual sources are garbage and dumpsters, pet waste in the yard, manure, compost, and any spilled or rotting food. A female can lay hundreds of eggs, and in warm weather they go from egg to adult in about a week, so one overlooked source becomes a swarm fast. If you are wondering why there are suddenly so many, the answer is almost always an active breeding site nearby.

How to Get Rid of House Flies, Step by Step

1. Find and remove the breeding source

This is the step that ends the problem. Walk the property and deal with anything flies can lay eggs in: bag and remove garbage, scrub the cans, pick up pet waste daily, turn or cover the compost, and clean up fallen fruit and spills. If you find maggots in a bin, clean the container completely, since that is an active nursery. See our guide to getting rid of maggots for that part.

2. Tighten up sanitation

Take away the food and moisture that keep flies around. Keep counters wiped, dishes washed, trash lidded, and pet food picked up. Indoors, flies are drawn to crumbs, sugary spills, and dirty drains, so the cleaner and drier the kitchen, the less reason they have to stay.

3. Seal and screen them out

Most house flies come in through open or poorly screened doors and windows. Repair torn screens, add door sweeps, and keep doors shut, especially around dusk. Exclusion keeps the next wave outside where it belongs.

4. Trap and kill the adults that remain

Once the source is gone, mop up the survivors. A fly swatter handles small numbers, sticky fly ribbons catch flies passively, and indoor ultraviolet light traps quietly draw and kill them in kitchens and garages. A contact fly spray knocks down adults on the spot. One thing to know: the apple cider vinegar trap that works so well on fruit flies does little for house flies, which are not drawn to it the same way.

1
Zevo Flying Insect Trap - Plug-in Indoor Fly Trap and Bug Light Trap Refill with Blue and UV Light - No-Mess Cartridge for House Flies, Fruit Fly Trap and Gnats (1 Plug-in Base and 1 Cartridge)
  • Catch Flying Insects 24/7: This plug-in flying insect trap uses...
  • No-Mess Adhesive Cartridge: Disposable glue cartridge works like...
  • Spray-Free, Zap-Free, Odor-Free Design: Quiet fly trap helps...
  • Family-Friendly Fly Trap: A smart choice for families, pet owners...
  • Six-Week Cartridge Check Reminder: Blinking blue light reminds...
2
Zevo Flying Insect Trap - Plug-in Indoor Fly Trap and Bug Light Trap Refill with Blue and UV Light - No-Mess Cartridge for House Flies, Fruit Fly Trap and Gnats (1 Plug-in Base and 3 Cartridges)
  • Catch Flying Insects 24/7: This plug-in flying insect trap uses...
  • No-Mess Adhesive Cartridge: Disposable glue cartridge works like...
  • Spray-Free, Zap-Free, Odor-Free Design: Quiet fly trap helps...
  • Family-Friendly Fly Trap: A smart choice for families, pet owners...
  • Six-Week Cartridge Check Reminder: Blinking blue light reminds...
3
Hot Shot Flying Insect Trap, Discreet, Hassle-Free Trap Attracts, Captures House and Fruit Flies, 24/7 Continuous Attraction, No Plug-in Or Electricity Needed, 6 Count 984ml Each, 0.2 Kilograms
  • TRAPS HOUSE FLIES & FRUIT FLIES: This innovative trap attracts...
  • 24/7 CONTINUOUS ACTION: Dramatically decreases the number of...
  • DISCREET & COMPACT: The non-noticeable trap seamlessly blends in...
  • FAST ACTING: This flying insect trap starts working immediately...
  • READY TO USE: With the hassle-free trap, there’s no mess and no...

Are House Flies Dangerous?

Yes, more than most people realize. Because house flies feed on garbage, waste, and decaying matter and then walk on, regurgitate on, and defecate on your food and surfaces, they can mechanically transfer disease-causing bacteria such as Salmonella and E. coli. A few flies are not a crisis, but it is a real reason to keep them off food and to deal with an infestation rather than live with it.

What About Natural Repellents?

Scent-based repellents are weak. Herbs and essential oils like basil, mint, and lemongrass show some repellency in lab tests, but the few drops people use at home dissipate too fast to control an infestation, and the popular bag-of-water-over-the-door trick has no real effect at all. Treat any scent as a minor add-on, never a substitute for removing the breeding source. For a fuller rundown of what works and what does not, our main guide to getting rid of flies covers it.

When to Call a Professional

Most house fly problems are a do-it-yourself job once you find the source. Call a pro if the flies keep coming and you cannot locate where they are breeding, or if a sudden burst of flies points to something dead in a wall or crawl space that you cannot reach. A professional can find the hidden source and treat it.

Related Fly Guides

Frequently Asked Questions

What instantly kills house flies?

A fly swatter, a contact fly spray, or a UV light trap kills house flies quickly. None of those stop the problem on their own, though, so pair them with removing whatever the flies are breeding in.

Why do I suddenly have so many house flies?

There is an active breeding source nearby, usually garbage, pet waste, compost, or something decaying, plus a way in. Find and remove the source, and the numbers drop fast.

What attracts house flies into the house?

Food smells, garbage, sugary spills, pet waste, and decaying organic matter, reached through open or poorly screened doors and windows. Cut off the food and seal the entry points and they lose interest.

Do house flies carry disease?

Yes. They move between filth and your food and can mechanically spread bacteria like Salmonella and E. coli, which is why it is worth keeping them off food and clearing an infestation.

Thomas Matthews
Follow me