Skip to content
Swat & Snap
Fruit Flies & Gnats

How to get rid of house flies

House flies are an outdoor problem that comes indoors. Fix the screens and find the source outside, and the ones in your kitchen stop being replaced.

By Ryder M.Published Updated

A rustic wooden house exterior with a window and insect screen
Quick answer
Find the outdoor breeding site — trash, pet waste, compost, a dead animal — and remove it, then close the gaps they are entering through. Indoors, use a light trap or a swatter; outdoors, hang a bait bag well away from the door you use. Vinegar traps do not work on flies this size.
Disclosure

Swat & Snap earns a commission from qualifying purchases made through the links on this page, at no extra cost to you. It does not change which products we pick — see how we pick and our affiliate disclosure.

These are not fruit flies

A house fly is five to eight millimeters, fast, and lands on food, surfaces and people. A fruit fly is two to three millimeters and hovers around fruit and bins.

The difference matters because almost nothing transfers between them:

  • A vinegar lure does not work on house flies. They are not tracking fermentation the way a fruit fly is.
  • House flies breed outdoors, in animal waste, garbage and decaying matter — not in your drain.
  • Exclusion matters far more, because they are coming in through an opening rather than emerging from inside.

If the insects are tiny and clustered around your fruit bowl, you want how to get rid of fruit flies instead.

Step 1 — find the outdoor source

House flies go from egg to adult in about a week in warm weather and a female lays hundreds of eggs. A single source close to the house produces a continuous supply.

Check, in rough order:

  1. Trash cans. The base, the lid seals, and any liquid in the bottom. Bagged waste left beside the can rather than in it.
  2. Pet waste in the yard. This is a major producer and it is usually the answer where there is a dog.
  3. Compost with cooked food, meat or dairy in it.
  4. A dead animal. Under decking, in a wall void, in the roof space, or in the yard. A sudden large number of flies in one room with no obvious source is the classic sign, and it is worth taking seriously.
  5. Chicken, rabbit or livestock bedding, which is a textbook fly nursery.
  6. Fallen fruit under a tree.
  7. A blocked gutter or a drain holding organic sludge.
  8. A neighbor's version of any of the above, which you can only ask about.

Step 2 — deal with it

  • Bins with tight lids, washed out occasionally, kept away from doors.
  • Pet waste picked up daily and bagged.
  • Compost turned, kept balanced, no meat or cooked food.
  • A dead animal removed — and if it is inside a structure and you cannot reach it, that is a professional job.
  • Bedding changed frequently in any animal housing.

Removing the source is the step that ends it. Everything below manages the flies that already exist.

Step 3 — close the ways in

  • Window and door screens intact, with no tears, and fitted tightly.
  • Door sweeps on exterior doors. The gap under a door is the commonest route.
  • Gaps around pipes, vents and utility entries sealed.
  • Keep the door shut in fly season, which is obvious and still the main failure.
  • A screen door if you want to leave the main door open.
At a glance

Quick picks

#ProductBest forMechanismPrice
1
Planters hanging along a garden fence
Our pickRESCUE! Non-Toxic Disposable Fly TrapA hanging bag with a powerful bait. Effective, genuinely foul-smelling, and therefore a product you hang well away from the door you use.
Outdoor house fliesWater-activated attractant bag
2
A dim corridor lit by exposed industrial light fittings
RESCUE! FlyWeb Indoor Fly LightA plug-in UV light over a glue card. No zap, no smell, and it works on house flies that ignore a fruit fly lure.
Quiet indoor fly controlUV light + glue card
3
A pair of electrical sockets on a plain painted wall
Zevo Flying Insect TrapA plug-in that pairs blue and UV light with a sticky cartridge. It runs quietly in the background, which is exactly what people want from a fly problem.
Rooms you want handled passivelyBlue + UV light, sticky cartridge
4
A wooden outdoor table set with glasses at night
Black Flag Handheld Bug Zapper RacketThe cheapest genuinely satisfying pest product sold. Aimed, instant, and for the specific problem of a single insect it is the correct tool.
One mosquito in the bedroomElectrified mesh racket

#ad — every price link goes to Amazon and Swat & Snap earns a commission on qualifying purchases. No price is shown until it can be pulled live from the retailer.

Planters hanging along a garden fence
Our pick

RESCUE! Non-Toxic Disposable Fly Trap

RESCUE! · Outdoor house flies

A hanging bag with a powerful bait. Effective, genuinely foul-smelling, and therefore a product you hang well away from the door you use.

Specification
MechanismWater-activated attractant bag
CapacityManufacturer states up to 20,000 flies
Placement30+ feet from the house
DisposalWhole bag
Why it is here
  • Pulls flies away from a patio better than anything else at the price
  • Nothing to plug in, nothing to refill
What it will not do
  • The smell is the mechanism — hang it close and you have made things worse
  • Full bags are unpleasant to take down

Check price on Amazon

A dim corridor lit by exposed industrial light fittings
Pick 2Pet-safe design

RESCUE! FlyWeb Indoor Fly Light

RESCUE! · Quiet indoor fly control

A plug-in UV light over a glue card. No zap, no smell, and it works on house flies that ignore a fruit fly lure.

Specification
MechanismUV light + glue card
PowerMains plug-in
RefillGlue cards
NoiseSilent
Why it is here
  • Silent and debris-free, which a zapper indoors is not
  • Card hides the catch, so it is not a display of dead flies
What it will not do
  • Only pulls flies within a room, and only in low light
  • Glue cards need replacing more often than the box implies

Check price on Amazon

A pair of electrical sockets on a plain painted wall
Pick 3Pet-safe design

Zevo Flying Insect Trap

Zevo · Rooms you want handled passively

A plug-in that pairs blue and UV light with a sticky cartridge. It runs quietly in the background, which is exactly what people want from a fly problem.

Specification
MechanismBlue + UV light, sticky cartridge
PowerMains plug-in, always on
RefillCartridge, roughly monthly
NoiseSilent, no zap
Why it is here
  • No zapping noise and no insect debris — it is a sticky pad behind a light
  • Catches gnats and small flies that a vinegar trap ignores
What it will not do
  • Cartridges are an ongoing cost that outruns the unit price fast
  • Needs a dark room to compete with daylight

Check price on Amazon

A wooden outdoor table set with glasses at night
Pick 4

Black Flag Handheld Bug Zapper Racket

Black Flag · One mosquito in the bedroom

The cheapest genuinely satisfying pest product sold. Aimed, instant, and for the specific problem of a single insect it is the correct tool.

Specification
MechanismElectrified mesh racket
Power2 × AA
UseHandheld, aimed
CoverageExactly where you swing it
Why it is here
  • Solves the actual problem people have at 2am, which no trap does
  • Nothing to refill, nothing to plug in
What it will not do
  • Single-layer mesh on the cheap models will shock a careless finger
  • Does nothing about a population

Check price on Amazon

Step 4 — trap what is already inside

Indoors:

  • A plug-in light trap with a sticky cartridge is the quiet, tidy option. No zap, no debris, no smell — good for a kitchen.
  • An electric swatter. For one or two flies it is simply the fastest thing, and more satisfying than it ought to be.
  • Old-fashioned fly paper works and looks like what it is.
  • Not a bug zapper indoors. Noisy, and it flings insect debris. Why zappers are the wrong tool for most things.
  • Not an aerosol over food preparation surfaces, for obvious reasons.

Outdoors:

  • A disposable bait bag hung at least thirty feet from the door you use, and preferably downwind. These work by smelling genuinely foul, and the smell is the mechanism. Hang one by the back door and you have concentrated the flies exactly where you did not want them.
  • Sticky fly tape in a barn, shed or garage.
  • Fans. A fly cannot make headway in moving air, which is why a fan over a doorway is standard in commercial kitchens and works surprisingly well on a patio.

A note on numbers

A handful of flies is an entry problem: check the screens and the door sweep.

Dozens of flies appearing suddenly in one room is a different signal. That usually means something has died inside a wall, a floor void or a roof space, and the flies are emerging from it. Cluster flies are the other possibility in spring and fall — they overwinter in wall voids and emerge on warm days, do not breed indoors, and are best handled with a vacuum and a light trap.

Keeping them out next summer

  • Bins away from doors, lidded, and washed occasionally.
  • Pet waste picked up daily.
  • Screens checked in spring before the season.
  • Door sweeps replaced when they perish.
  • Fruit bowls covered in hot weather.
  • A fan over the patio door if you like it open.

If the small flies inside turn out to be hovering around fruit rather than landing on surfaces, revisit the identification: gnats vs fruit flies vs drain flies.

Questions

Frequently asked

Where are all these house flies coming from?
An outdoor breeding site close to the house: trash cans, pet waste in the yard, compost with cooked food in it, or a dead animal. A single source can produce a continuous supply because the cycle from egg to adult takes about a week in warm weather.
Why do I suddenly have dozens of flies in one room?
That pattern usually means something has died inside a wall, floor void or roof space and the flies are emerging from it. In spring and fall it can also be cluster flies leaving a wall void on a warm day — those do not breed indoors.
Do vinegar traps work on house flies?
Not well. House flies are not tracking fermentation the way fruit flies are. Indoors, a light trap with a sticky cartridge or an electric swatter is far more effective; outdoors, a bait bag hung well away from the house.
Where should I hang an outdoor fly trap?
At least thirty feet from the door you use, and downwind if you can. These traps work by smelling foul, so hanging one near the patio concentrates flies exactly where you did not want them.
Sources
Next step

More on fruit flies & gnats

Tiny flies in the kitchen are almost never one problem. Identify which of the three you have, then treat the source — the trap alone never finishes it.

Not sure yet? Read how we pick.

About the author

Ryder M.

Ryder M. is the hands-on owner behind Magoo Media Group. He writes Swat & Snap because he got tired of pest-control advice that was either a sales pitch or a scare story.

How we pick · Editorial policy · About Swat & Snap

Read next