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

A big fly is bouncing against the kitchen window, and you have already swatted three this week. Most advice treats every large fly indoors as the same insect and sends you to the same spray or trap. It is not one insect, and which one it is decides whether you need a trash can with a tight lid, a search of the attic, or a caulk gun.

This guide covers the three large flies that get inside: house flies, blow flies and cluster flies. The tiny flies around fruit, houseplants and drains breed indoors and need a different fix, which has its own fruit fly, fungus gnat and drain fly guide.

Which big fly is it? Where it came from tells you what to fix

Four of the larger flies that turn up indoors are in the table, and each points to a different problem. A house fly came in from outside, where it bred in garbage, manure or rotting food. A blow fly most often means kitchen or pet waste that sat outdoors too long, and less often something dead in the building. A cluster fly is a winter visitor that never bred in your home at all.

The flyWhat it tells youDoes fly paper catch it?
House fly: gray, four dark stripes on its backIt came in from outside. Larvae develop in garbage, manure, lawn clippings and rotting produce, and most adults stay within ½ to 1 mile of where they bredYes, a few at a time. They rest on walls and other vertical surfaces
Blow fly: shiny metallic green or blueUsually kitchen or pet waste that sat outdoors for more than a week. Maggots indoors can mean a dead animal in the buildingNo. Blow flies do not regularly rest on vertical surfaces
Cluster fly: dull gray with golden hairs on the thorax, slowAn overwintering visitor. Its larvae feed on earthworms in lawns, so it never bred indoorsMostly no. Colorado State says most fly traps do not attract them
Little house fly: about two-thirds the size of a house fly, no stripesMales fly in swarms in still air, often 5 to 6 feet up. Larvae develop in animal waste, compost or fermenting grass clippingsUnlikely. Colorado State says indoors they fly for long periods and rarely rest, and UC IPM says they are not attracted to the baits and traps that catch house flies

Sources: UC IPM Pest Notes on flies, Colorado State Extension, Flies in the Home, Colorado State Extension, Cluster Flies and Texas A&M AgriLife Extension, Indoor Flies and Their Control.

Behavior narrows it down further. Cluster flies are sluggish and gather at upper-floor windows from fall through spring, house flies rest on walls and other vertical surfaces, and blow flies are the metallic ones. Identifying a fly by sight is a "most likely," not a lab result. If yours matches none of the rows, the first step is still the same: find where it bred.

House flies: they came in from outside, so work outside first

House flies rarely breed indoors. Texas A&M calls them outdoor flies that are generally not an important indoor pest unless doors or windows are poorly screened or often left open, and UC IPM says flies found inside a building have entered from the outside in almost all cases. So the nursery is outdoors, and usually close: Texas A&M says most house flies stay within ½ to 1 mile of where they bred, which in a neighborhood often means your trash cans, dog waste, a compost pile or a neighbor's. It is worth the effort. A systematic review identified over 130 pathogens, mostly bacteria, from house flies.

The order is simple. Block the door first, since UC IPM names barriers as the first line of defense: seal cracks around windows and doors and keep screens in good repair. Then starve the source. UC IPM says to remove and dispose of organic waste, including dog feces, rotting fruit and kitchen waste, at least once a week, to hold garbage in plastic bags inside containers with tight-fitting lids, and to place it as far from a building entrance as practical. In summer, Colorado State says household garbage may need to go out as often as every 4 to 5 days.

Speed is why the schedule matters. Texas A&M says a house fly needs about 45 days to complete its life cycle at 60°F but only about 7 days at 95°F, and Purdue puts the fastest case at as few as 7 to 10 days. In hot weather, a nursery you skip for a week can produce a new generation.

Once the source is handled, traps are a mop-up. UC IPM says sticky fly paper or ribbons are effective at eliminating a few flies in relatively confined areas but not at managing heavy infestations, and that UV light traps may work indoors where they are not competing with daytime sunlight. Texas A&M says to mount light traps 4 to 6 feet above the floor, the typical flying height of house flies, and out of view from outdoors, because the light can draw flies from a distance. For a few strays, a swatter works, but UC IPM says not to use one near food preparation areas because insect parts can contaminate food. Insecticides come last: Purdue says insecticides alone cannot be expected to rid premises of flies, and UC IPM says pesticides are not needed or recommended in most home situations. Where sanitation is not possible, it names a nonresidual pyrethrin aerosol as an option, and the label is the law for rooms, food areas and ventilation.

Safety note: do not use a bug zapper in a kitchen or anywhere food is prepared or eaten. UC IPM warns that the insect body often explodes on the wires and parts can be propelled over several feet, and Texas A&M says high-voltage zappers should not be used indoors because they scatter insect fragments. In a Kansas State University lab study, electrocuting flies released 1 of every 10,000 of the bacteria and viruses sprayed onto flies, and 1 of every 1,000,000 of those the flies had eaten, and the researchers recommended keeping such traps out of food-handling areas, hospitals and daycare facilities. That was a lab test and did not document a home zapper making anyone sick, but it is reason enough to keep the zapper out of the kitchen.
Front view of a house fly with red eyes resting on a white surface
Photo: Garuda / Pexels

Blow flies: check the trash first, then the walls

Blow flies are the shiny metallic green or blue ones. In town, UC IPM says their most common nursery is human food waste, though accumulations of pet waste may also produce them. They can go from egg to adult in as little as 7 days, and garbage that sits for more than a week is likely to produce adult blow flies. So seal kitchen and pet waste in plastic bags before it goes into the can, put the can out for pickup every week even if it is not full, and wash it out with soap and water now and then. Sticky ribbons will not help, because blow flies do not regularly rest on vertical surfaces. UC IPM says odor-baited traps can control adult blow flies, but they should sit some distance from the house because of the foul smell.

If the flies are indoors in numbers and the trash is clean, think about something dead. Texas A&M says maggots in a home usually mean a bird, squirrel or rat has died somewhere in the structure. Adult blow flies and flesh flies are usually seen 1 to 2 weeks after the maggots appear and may keep emerging for 1 to 3 weeks, after which they should disappear. Colorado State calls a swarm breeding on a mouse or squirrel that died behind a wall rare and usually short-lived, since the flies can breed only on freshly killed animals, so the two sources differ on how common it is. Either way, Texas A&M says the ideal fix is to remove the carcass. When it is out of reach, destroying the maggots and swatting the adults is the practical response. Then seal how the animal got in, using sturdy wire or sheet metal, a chimney cap, and screens on roof vents.

Safety note: if you find a dead rodent, CDC says to wear rubber or plastic gloves, spray the animal and the area around it with disinfectant and let it soak for 5 minutes (or as the disinfectant label says), then put it in a plastic bag and that bag inside a second bag before it goes into a covered trash can, and to wash your hands with soap and warm water after removing the gloves (CDC, How to Clean Up After Rodents). CDC also says not to sweep or vacuum rodent droppings or nesting material, which can put virus-carrying droplets into the air. If the carcass is somewhere you cannot reach safely, a pest or wildlife control professional can find and remove it.

Cluster flies: sluggish, golden-haired, and not a housekeeping problem

These are the dull gray flies that crowd upper-floor windows in fall, winter and spring. Penn State says adult cluster flies are slightly larger than a house fly, dull gray with golden-yellow hairs on the thorax. Colorado State says they are not filth flies: the larvae feed on earthworms, and the adults found in buildings are dormant and cannot reproduce indoors. They start moving into buildings in late August, most move in during September, and they settle in wall voids and attics, then wander into living areas on warm days. Penn State adds that cluster flies will not damage your home and are not known to carry diseases of medical importance, and that they are sluggish enough to swat or capture. Colorado State says those that wander into rooms usually die within a couple of weeks, and most of the rest move outdoors in early spring.

The fix is exclusion, and the timing matters. Colorado State says to seal entry points by mid-August and certainly no later than Labor Day. Penn State recommends good-quality silicone or silicone-latex caulk around windows, doors, siding, utility pipes, behind chimneys and under the fascia, plus repaired screens. Clemson adds screening around attic vents and weather stripping, and a vacuum for the ones already inside. If flies are crawling out into the house, Penn State says to find the openings they use (under or behind baseboards, around window and door trim, around ceiling exhaust fans and lights) and seal those too.

Skip the sprays inside the walls. Penn State says it is not advisable to use an insecticide in wall voids or attics once the flies are in, because the dead flies can attract carpet beetles that then feed on woolens and stored dry goods, and foggers will not stop flies from emerging from wall voids. Colorado State adds that treating the lawn does not reduce later cluster flies, because adults fly long distances to winter shelter, and that drying dusts behind walls need special equipment and usually a professional.

A dull gray fly resting on a weathered wooden surface
Photo: Egor Kamelev / Pexels

Tiny flies are a different job

If the flies are small and hover over the fruit bowl, circle a houseplant or sit on the bathroom wall, they breed indoors and nothing above applies. Fruit flies, fungus gnats and drain flies each need their own fix: a vinegar trap catches only fruit flies, and drains have to be scrubbed. The fruit fly, fungus gnat and drain fly guide sorts out which is which. The hanging bag of water and other folk fixes are covered in the water-bag guide, and the essential oils guide covers "natural" repellent sprays.

A tiny moth fly, one of the small drain-breeding flies, on a white surface
Photo: Lucas Pezeta / Pexels

When to call a professional

Call a pest professional if flies keep coming back after you have sealed the openings, cleaned up outdoor waste and checked the trash. Call one, or a wildlife control company, for a dead animal you cannot reach, and for cluster flies packed into wall voids, where Colorado State says drying dusts need special application equipment and usually a professional. Everything else is cheap: a lidded can, a tube of caulk and a screen patch. Working from the pest, not the product, is how doing your own pest control stays inexpensive and effective.

The takeaway: Name the fly, then fix where it came from: the trash and the door for house flies, the can or a hidden carcass for blow flies, the caulk gun for cluster flies. 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...