Your guide to household and yard pests Urgent? When to call a pro
What bug is this?

How to Get Rid of House Flies

How to get rid of flies in your house: remove what they breed in, block entry, then trap, swat or spray the rest. Plus the vinegar trap and what fails.

nuisancedoes not biteleaves once you fix the cause updated October 11, 2026
Sticky fly ribbon with caught flies hanging under a porch ceiling and a bottle trap on a windowsill
Step 1
remove breeding source: trash, pet waste, compost
Step 2
screens, door sweeps, seal gaps
Step 3
fly tape, traps, swatter, or a spray
Time to clear
1–3 days for adults if source removed
DIY cost
about $10–$40

To get rid of flies in the house, first remove what they breed in (open trash, pet waste, compost, or a dead animal) and close the gaps they use to get in, then kill the ones already inside with fly tape, a swatter, or a quick pyrethrin spray. If you only do the last part, new flies replace the dead ones within days.

House flies breed outdoors and in garbage, not in your walls, so control is mostly about sanitation and screens. Here is the order that works.

Step 1: Identify the fly

This plan is for house flies (1/4 inch, gray, striped back) and their larger relatives, blow flies. If yours are tiny, use the right guide instead:

  • tan with red eyes, around fruit → fruit flies
  • tiny and black, near houseplants → gnats
  • slow, clumsy flies on fall or winter windows → cluster flies

Not sure? Compare on the house flies page.

Step 2: Remove the breeding source

A house fly lays eggs in moist, rotting material, and the maggots develop in about a week. Extension guides call sanitation the mainstay of fly control, so start here:

  • Trash: use cans with tight lids, bag food waste, take it out at least twice a week in summer, and rinse the can monthly. Put bins away from doors.
  • Pet waste: pick up dog waste daily; scoop litter boxes daily.
  • Compost: keep it covered, bury fresh scraps under brown material, and do not add meat.
  • Food: do not leave pet food out; clean up grill grease and spills.
  • Dead animal: a sudden swarm of shiny green or blue blow flies in one room points to a dead mouse or bird in a wall, attic, or vent. Follow the smell, remove it if you can, and the flies stop within days.
Compost bin with a closed lid and a covered kitchen scrap bucket in a backyard
Closed lids on compost and trash are the cheapest fly control there is.

Step 3: Keep flies out of your house

  • Repair torn screens and fit screens on every window you open. Standard 18x16 mesh keeps house flies out.
  • Add door sweeps and weatherstripping.
  • Close gaps around window AC units, dryer vents, and pipes.
  • Keep doors closed, especially near the grill or trash area.
  • Use a screen door or a magnetic mesh curtain for doors that are often open.
  • For cluster flies, seal attic and siding gaps in late summer, before they move in.
Hands pressing a new screen spline into a window frame to repair a torn window screen

Step 4: Kill the flies already inside

MethodBest forNotes
Fly swatter / electric swattera few fliesfree or cheap, works
Fly ribbon (sticky tape)garages, porches, kitchenshang where flies rest, near windows and lights
Window sticky trapsflies that gather on glassdiscreet, cheap
Vacuumsluggish cluster fliesempty the bag outside
Light traps with glue boardskitchens, commercial spacesgood for continuous low numbers
Pyrethrin aerosolmany flies at oncefast knockdown; follow the label

Using spray safely. Indoor flying-insect sprays usually contain pyrethrins or synthetic pyrethroids. Remove or cover food, dishes, and pet bowls, keep people and pets out of the room until it airs out, and cover aquariums (these chemicals are highly toxic to fish). Always follow the EPA-registered label; the label is the law.

How to get rid of house flies with vinegar

A vinegar trap works best on fruit flies, but it catches some house flies too:

  1. Fill a jar with an inch of apple cider vinegar and a spoonful of sugar.
  2. Add one drop of dish soap.
  3. Cover with plastic wrap and poke a few holes.

For house flies, a better homemade bait is a bit of overripe fruit or a little sugar water with a splash of fruit juice in a bottle with a narrow neck. Outdoors, baited fly traps with a commercial lure work very well, but they smell strongly; hang them 20 feet or more from doors so they pull flies away from the house.

What does not work

  • Bags of water with pennies: no evidence they repel flies.
  • Bug zappers indoors: house flies are weakly drawn to UV, and zappers can scatter insect fragments.
  • Essential oil sprays and herb pots: at best a mild, short-lived effect.
  • Foggers: kill some flies but do nothing about the source, and leave residue on surfaces.

How long it takes

If the source is gone and doors are screened, adults inside are gone in one to three days. If flies keep appearing for more than a week, there is still breeding nearby, possibly a dead animal or a neighbor's compost or dumpster.

When to call a professional

Call a pest professional if you cannot find the source, if there is a dead animal in a wall or crawl space you cannot reach, or if cluster flies come back every year. Pros can treat exterior siding and eaves before fall and set commercial-grade traps. A one-time service typically costs about $150 to $300 (approximate). Compare products in bug sprays.

FAQ

How do I get rid of flies in the house quickly?
Take out the trash and seal the bin, shut doors and windows, then swat or vacuum the flies inside or use a flying-insect spray with pyrethrins. Hang fly tape where they gather. Most are gone within a day if nothing is breeding them.
How do I get rid of house flies with vinegar?
Put apple cider vinegar with a little sugar and one drop of dish soap in a jar, cover it with plastic wrap, and poke a few holes. It catches some house flies but works far better on fruit flies; for house flies, fly tape and baited traps are stronger.
How do I keep flies out of my house?
Repair screens, add door sweeps, keep doors closed, cover trash and compost outdoors, pick up pet waste daily, and place baited fly traps at the edge of the yard, away from doors, to pull flies away from the house.
What is the best way to kill house flies?
A fly swatter or electric swatter for a few flies; fly ribbon or sticky window traps for a steady trickle; a pyrethrin aerosol for many at once. Removing the breeding site is what keeps the numbers down.
How do I get rid of small flies in the house?
Small flies are usually fruit flies, fungus gnats, or drain flies, which need a different plan from house flies. See the fruit fly, gnat, and drain fly pages.

Sources and real-world experience

This article draws on real stories from forums and reviews, not generic advice. We quote what worked and what didn't.

  1. University of Nebraska-Lincoln Extension: House Fly Control Guide (G958)
  2. University of Kentucky Entomology: Cluster Flies, Face Flies, and Blow Flies in Homes
  3. NPIC: Insecticides
  4. University of Kentucky Entomology: Fruit Flies
Nothing working? When it is time to call an exterminator