How to Get Rid of Flies in the House

Photo: Chris Curry on Unsplash
To get rid of flies in the house, find and remove what they are breeding in, keep them out with screens and closed doors and catch the ones already inside with fly paper, a light trap or a swatter. Sprays come last. UC IPM says the larval habitat is the key: although adult flies are the annoying part, eliminating where the maggots develop is the best way to manage them, and house flies have become resistant to many insecticides.
Which flies do you have?
| What you see | Likely fly | Where to start |
|---|---|---|
| Medium gray flies with four dark stripes behind the head, around trash and food | House flies | This guide |
| Tiny tan flies with red eyes around fruit and the sink | Fruit flies | How to get rid of fruit flies |
| Tiny fuzzy, moth-like flies on bathroom walls and near drains | Drain flies | How to get rid of drain flies |
| Tiny dark flies around houseplants | Fungus gnats | How to get rid of gnats |
| Large metallic blue or green flies | Blow flies | Look for a dead animal or spoiled meat |
The University of Nebraska IPM manual describes the house fly as medium-sized and gray with four stripes on the thorax, breeding in garbage and manure.
Step 1: Find and remove the breeding source
House flies and blow flies develop in garbage, compost, pet waste and dead animals. UC’s guide to nuisance flies says the best way to manage them is exclusion, sanitation and removing their breeding sites.
- Empty kitchen trash daily and keep it in a can with a tight lid.
- Rinse recycling and wash out trash cans regularly.
- Pick up pet waste in the yard every day or two.
- Turn compost often and keep food scraps buried in it.
- If you suddenly see many blow flies, look for a dead mouse, bird or spoiled meat.
UC IPM notes that under summer conditions, house flies can go from egg to adult in as little as 7 days, so a single overflowing bin can restart the problem within a week.
Step 2: Keep them out
Utah State University Extension lists the basics: keep exterior doors closed, install screen doors or automatic door closers, keep screens in good repair and improve sanitation.
- Repair torn window and door screens.
- Add door sweeps and weatherstripping.
- Do not prop doors open, especially near the kitchen.
Step 3: Trap the flies already inside
- Fly paper or sticky ribbons near windows and lights. Hang them out of reach of kids and pets.
- Light traps with a sticky board, placed so they are not visible from outside.
- A fly swatter for the last few.
Look for fly ribbons or indoor fly light traps at hardware stores or online.
Step 4: Use insecticides only as a last resort
UC IPM advises using insecticides only as a last resort for quick control of adult flies, because flies develop resistance quickly. Sprays do nothing about maggots in the trash. If you do use one, choose a product labeled for indoor flies and follow the label exactly. Our home pest control guide covers using pesticides safely.
Are house flies dangerous?
House flies cannot bite, but UC IPM notes they can carry disease agents they pick up while feeding on garbage and waste, and they leave dark spots on walls and windows. Keep food covered and wipe counters if flies have been landing on them.
Related guides
- How to get rid of drain flies
- How to get rid of fruit flies and our fruit fly trap
- How to get rid of gnats
- Home pest control
Why do I have so many flies in my house all of a sudden?
Usually something nearby is breeding them: overflowing trash, pet waste, compost or a dead animal in a wall or attic. Find and remove the source and the numbers drop within days.
What smell keeps flies away?
Extension guides for house flies focus on screens, closed doors and clean trash cans rather than scents or repellent plants, so start there.
Do fly traps work?
Sticky traps and light traps catch adult flies indoors and help you see where they are coming from, but they do not stop flies breeding outside or in the trash. Use them alongside sanitation.


