How to Get Rid of House Flies Indoors (Identify the Fly First)

You have flies in the house, you searched for a fix, and the internet handed you a video titled something like "KILL Every Fly (Easy DIY)." One jar, one hack, problem solved. Except it usually isn't — because "house flies indoors" is rarely one insect. It's often four, and they breed in four completely different places.

A vinegar trap by the fruit bowl will never touch a drain-fly colony living in the slime under your sink. Sealing your attic does nothing for the gnats circling a forgotten potato. That's why the single most useful move costs nothing: figure out which fly you actually have before you buy anything. Here's the honest, extension-science version — what's real, what's a myth, and what's genuinely a bad idea near your food. Working from the pest, not the product, is exactly how doing your own pest control at home stays cheap and effective.

First, figure out which fly you actually have

Spend 30 seconds watching the fly before you spend a dime fighting it. Size, eye color, where it lands, and the time of year narrow it down quickly — and each answer points to a different breeding source, which is the thing you'll actually have to fix.

Close-up of several tiny red-eyed fruit flies crawling on the rim of a fruit bowl holding overripe bananas on a kitchen counter
The flyWhat it looks likeWhere it restsWhere it actually breeds
House flyMedium, dull gray, sluggishWalls, windowsills, near the trash and kitchenGarbage, pet waste, decaying organic matter
Fruit / vinegar flyTiny, often red-eyed, about 1/4 inch, hoveringOver the fruit bowl, recycling, or a slow drainOverripe produce, spills, wet drains, empty bottles and cans
Drain / moth flyTiny, fuzzy, moth-like wings, about 1/8 inchSitting still on bathroom or kitchen walls near drainsThe slimy organic film coating a drain
Cluster flyNoticeably larger than a house fly, dark gray, golden hairs, sluggishUpstairs windows in fall and early springOutdoors — the larvae parasitize earthworms

The tell that settles it is the breeding location, not the bug. If you can't confidently name the fly by sight, you'll confirm it in the next step when you go looking for the source — because that's where the fly leads you. One honest caveat: identifying by look and behavior is a "most likely," not a lab result. Fruit flies and the drain-loving humpbacked (phorid) flies can look alike, so let the source have the final say.

Step 2: Sanitation first — kill the source, not the adults

Before any trap, any spray, any gadget: find and remove the wet, rotting material the maggots are living in. This is not the boring throat-clearing before the "real" solution — extension entomologists are blunt that it is the solution. Purdue's guidance states plainly that insecticides alone cannot be expected to rid premises of flies, and UC IPM's rule is just as direct: when flies have access to garbage, baits alone will not control them.

The reason is speed. A house fly can go from egg to adult in as few as 7 to 10 days, so a source you don't remove simply refills faster than you can trap. And there's a health reason to care about house flies specifically: a systematic review linked at least 130 pathogens — from bacteria to viruses — to them, because they walk on waste and then on your counter. Here's the source hunt by species:

  • House flies — take out the trash, keep bins tightly lidded, clean up pet waste, and clear any decaying plant or food matter. Then close the door they came in.
  • Fruit flies — toss the overripe produce, wipe up juice and soda spills, rinse the recycling, and check for a forgotten onion or potato at the back of a bin.
  • Drain flies — this one is physical. You have to scrub the organic film out of the drain with a stiff brush. UC IPM is explicit that the key is elimination of breeding sites, not pouring something down the hole.
A hand pushing a long stiff bristle bottle brush down into a stainless steel kitchen sink drain to scrub out the organic film

The catch: source-hunting can take detective work. A hidden culprit — a drain in a rarely used guest bathroom, produce that rolled under the counter — keeps the problem alive even after the visible cleanup, which is why the flies "come back" for people who skipped this step.

What actually works indoors (the honest tier list)

Once the source is gone, a few tools genuinely help mop up the stragglers — at their real, modest power level, not the miracle level the ads promise. And a few popular "solutions" are worth none of your money. Here's the honest tier list.

VerdictMethodThe honest read
REALSticky fly paper or ribbonsEffective at eliminating a few flies in confined areas — a mop-up, not a whole-house cure
REALCider-vinegar bait trap + a drop of dish soapGenuinely works, but only for fruit flies, placed right at the infestation
REALNon-electrocuting UV light trapCan work indoors where it isn't competing with daytime sunlight — so, away from windows
REALScreens and sealing gapsThe actual long-term fix for house flies and cluster flies getting in
MYTHA water bag hung by the doorNo evidence it repels flies
MYTHBleach or boiling water down the drainDoesn't remove the film the larvae live in — short-term at best
DANGEROUSA bug zapper near food prepExplodes flies and flings germ-laden parts several feet

Placement is what separates a tool that works from one that just hangs there. Put the bait trap right next to where the fruit flies are; a well-made cider-vinegar trap that actually catches them exploits their attraction to fermentation, which is exactly why it does nothing for a drain fly or a house fly. Put the fly paper where flies already rest. Keep the UV trap out of competing daylight. One limit to be honest about: there's no trustworthy percentage for how many flies sticky paper catches, so anyone quoting you a catch rate is guessing — treat it as "a few flies, small rooms" and no more.

A homemade fruit fly trap made from a drinking glass of apple cider vinegar covered with plastic wrap poked with small holes, sitting on a kitchen counter

The myths people waste money and effort on

Three of these come up again and again, and each one has a specific reason it fails.

The water bag by the door

Hanging a clear plastic bag of water to "confuse" flies is a classic, and University of Minnesota Extension lists it among natural remedies with no evidence that it repels house flies. If you're curious about why these old-fashioned fixes stick around, there's a separate breakdown of the water-bag trick and other folk remedies — plus a look at which natural repellents actually hold up to scrutiny.

The kitchen bug zapper

This one isn't just useless — it's the one to actively avoid near food. UC IPM warns to never use a bug zapper near food preparation areas, because the insect body often explodes on the wires and parts can be propelled over several feet. A Kansas State University lab study measured what that spray contains: electrocuting flies released roughly 1 in 10,000 of the bacteria and viruses on flies coated with microbes, and about 1 in 1,000,000 from flies that had eaten them, and the researchers concluded such traps could play a role in spreading infectious disease agents. Their advice was to keep electrocuting traps out of food-handling areas, hospitals, and daycare facilities. Fair limit: that study proved microbes get released in a lab; it did not document a home zapper making anyone sick. Treat it as a clear reason to keep the zapper away from the kitchen, not proof of food poisoning.

An electric bug zapper mounted on a wall directly above a kitchen counter where food is being prepared, shown as an example of what not to do

Bleach or boiling water down the drain

It feels decisive, but UC IPM calls it a common misconception: pouring boiling water or bleach doesn't remove the organic film in the drain and gives at best short-term control. The larvae live in that film, not in the standing water, so anything that doesn't physically scrub the film out is a temporary distraction. (And never mix bleach with other drain cleaners — the combination can release toxic fumes.)

When flies are a symptom of a bigger problem

Sometimes flies aren't a nuisance — they're a diagnosis of the building itself.

A cluster of big flies at your upstairs windows in fall or spring is almost never a hygiene problem. Cluster flies don't breed indoors at all; their larvae are parasitic on earthworms outside. Seeing them inside means adults crawled in to overwinter through gaps in your walls, attic, or around vents. The fix isn't spray — it's exclusion: screen the attic vents, add weather stripping, and caulk the gaps around siding, windows, and vents.

A person using a caulking gun to seal a gap around the frame of an attic gable vent to keep overwintering flies out

Drain flies that keep coming back after you've scrubbed every reachable drain point somewhere hidden. UC IPM notes that if you can't find the source in accessible drains, pipes in crawlspaces, wall voids, and beneath concrete slabs may need to be inspected for breaks or leaks. A persistent colony with no visible drain source can mean a cracked or leaking pipe soaking the material they breed in — a prompt to inspect (and possibly call a plumber), not proof of a break on its own.

Quick-reference: the right move for each fly

FlyWhere it breedsThe one thing that fixes itDon't bother with
House flyTrash, pet waste, decaying matterRemove the source + screen the openingsKitchen bug zappers
Fruit flyOverripe produce, spills, wet drainsClean it up, then a cider-vinegar trapFogging sprays
Drain flyOrganic film inside drainsPhysically scrub the film outBleach or boiling water
Cluster flyOutdoors (earthworms); overwinters in wallsSeal and screen the buildingWater bags

Common mistakes

  • Treating all four flies as one problem. A fruit-fly trap by the bowl does nothing for a drain-fly colony. Identify first.
  • Buying a trap before removing the source. Extension science is clear that baits and sprays are temporary while the breeding material stays put.
  • Pouring things down the drain instead of scrubbing it. The larvae live in the film, so you have to physically remove it.
  • Running a bug zapper over the kitchen counter. It sprays fly fragments several feet — the last thing you want near food.
  • Blaming your housekeeping for cluster flies. Those are a sealing problem, not a dirty-house problem.

FAQ

What's the fastest way to get rid of fruit flies?

Remove the fermenting food first — the overripe produce, the sticky recycling, the spill under the toaster — then set a cider-vinegar trap with a drop of dish soap right where they gather. The trap only mops up adults; without clearing the food, new ones keep hatching.

Why do I have flies when my house is clean?

Because the source is usually hidden or outdoors. Drain flies breed in a film you can't see without looking down the drain, and cluster flies don't come from your kitchen at all — they overwinter in wall and attic gaps. Clean counters won't stop either one.

Do ultrasonic or plug-in fly repellents work?

The verified extension and research sources here don't support electronic repellents or repellent essential-oil sprays for house flies. The tools with actual evidence behind them are unglamorous: sanitation, screens, sticky paper for a few strays, and a bait trap for fruit flies.

When should I call a professional?

Call a pest professional if flies keep returning after you've removed every source you can find, and call a plumber if drain flies persist after you've scrubbed all reachable drains — that can signal a cracked or leaking pipe in a wall void or under a slab that you can't reach yourself.

The takeaway: Name the fly, kill its breeding source, and most of the gadgets become unnecessary. Spend less. Live more. — The Thrifty Almanac

Get the Free Home & Pest Almanac

Get weekly budget hacks and simple, chemical-free ways to keep your home pest-free—without paying for an expensive exterminator.

We respect your privacy.

💬

Comments

Share your thoughts on this post

Loading comments...