A sudden surge of flies indoors almost always traces back to a nearby breeding source, an entry point you haven’t noticed, or both. Flies reproduce fast and need very little organic material to establish a population, so even a small oversight like a forgotten bag of potatoes or a rarely used drain can turn into a full-blown problem within days. The fix depends on which type of fly you’re dealing with and what’s feeding them.
Identify Which Fly You Have
Not all indoor flies come from the same source, and the species tells you exactly where to look. The most common culprits fall into a few categories:
- House flies are the classic gray, buzzing flies about a quarter-inch long. They breed in garbage, decaying food, lawn clippings, pet waste, and compost. A single female lays 350 to 900 eggs in her lifetime, depositing 75 to 150 at a time. Eggs hatch in as little as 8 hours, and larvae can mature in 3 to 7 days under warm conditions.
- Fruit flies are tiny, tan or brown, and hover around kitchens and trash cans. They breed on overripe fruit, rotting vegetables, spilled juice or alcohol, and any moist fermenting material. Their entire lifecycle can complete in as few as 8 days, which is why a couple of flies become dozens seemingly overnight.
- Drain flies are small, fuzzy, moth-like flies that appear near sinks and showers. Their larvae develop in the slimy organic buildup inside pipes, feeding on soap scum, algae, and bacteria. They favor drains that sit unused for long stretches, like a guest bathroom.
- Cluster flies are slightly larger than house flies with a golden sheen on their upper body. They don’t breed indoors at all. In autumn, they move to the sunny sides of homes looking for sheltered spots to overwinter, then emerge on warm days throughout winter, sometimes in large numbers.
- Fungus gnats are tiny, dark flies that hover around houseplants. They breed in consistently wet potting soil.
The Breeding Sources Inside Your Home
Flies need moisture and organic matter to reproduce, and homes are full of both. For house flies and blow flies, the usual suspects are kitchen garbage cans (especially when the plastic liner has leaked and left residue at the bottom), pet waste that hasn’t been picked up promptly, or a forgotten compost container that’s been sitting too long. Blow flies are also strongly attracted to carrion, so if you’re seeing large, metallic-green or blue flies, check for a dead mouse or bird in a wall void, crawl space, or attic.
Fruit flies have an even longer list of breeding sites. Overripe bananas, rotting onions or potatoes stored in a pantry bag, tomatoes left on the counter, and damaged strawberries are all prime targets. But the less obvious sources catch people off guard: a damp, dirty mop head stored in a closet, unrinsed wine or beer bottles in a recycling bin, a sticky spill beneath the refrigerator, or vinegar containers with loose lids. The larvae feed on yeasts associated with fermentation, so anything that’s starting to break down and smell sweet is a potential nursery.
Drain flies breed in a different environment entirely. The sludge that coats the inside of infrequently used drains, including soap scum, hair, and organic film, provides everything their larvae need. Water collecting beneath a leaking pipe or in a clogged gutter can also support them. Their larvae develop over about 18 days before pupating, and adults live roughly 35 days total. If you notice small moth-shaped flies resting on bathroom walls, run the tape test: place a strip of clear tape over the drain opening overnight and check for stuck flies in the morning.
How Flies Get Inside
Even if there’s no breeding source indoors, flies follow warmth, light, carbon dioxide from your breath, and food odors through surprisingly small gaps. The most common entry points are damaged or poorly fitted window screens, gaps between door frames and walls, and the space beneath exterior doors that lack a proper sweep. Over time, weather stripping around windows and doors compresses or cracks, creating openings you might not see but flies easily exploit.
Cluster flies are a special case. They enter through tiny cracks in siding, gaps around eaves, and openings where utility lines pass through walls. Once inside wall voids or attics, they go dormant for the winter and then crawl toward interior light on warm days, which is why you might find dozens of sluggish flies near windows in January or February despite keeping a spotless house.
Why It Seems to Happen All at Once
Fly populations explode rather than build gradually, and their reproduction speed is the reason. A house fly goes from egg to adult in as little as 6 days under ideal warm, humid conditions. With each female capable of laying hundreds of eggs, a single generation can multiply a minor nuisance into a visible swarm before you realize a breeding source exists. House flies produce six to eight generations per year, so one overlooked garbage spill in summer can cascade quickly.
Fruit flies are even faster. At 8 days from egg to reproductive adult, a bag of forgotten bananas can seed a population that seems to appear from nowhere within two weeks. Seasonal timing matters too. Warm, humid weather accelerates every stage of the fly lifecycle, which is why summer and early fall are peak season for most species.
How to Eliminate the Source
Traps and sprays only reduce the adults you can see. The infestation won’t stop until you remove the breeding material. Start by inspecting every source of organic waste in your home: garbage cans (pull out the liner and check the bottom), recycling bins, fruit bowls, pantry bags of root vegetables, and compost containers. Clean any residue with hot water and soap. For fruit flies specifically, check under and behind appliances for sticky spills, and look for damp cleaning supplies stored in dark areas.
For drain flies, clean the affected drain thoroughly. A stiff brush pushed into the drain opening to scrub the interior walls of the pipe removes the organic film the larvae depend on. Simply pouring bleach down the drain is less effective because it doesn’t contact the sludge clinging to pipe walls. Running water regularly through unused drains also prevents the stagnant conditions drain flies need.
For fungus gnats, let the top inch or two of potting soil dry out completely between waterings. The larvae can’t survive without consistent moisture.
Sealing Entry Points
Once you’ve addressed the breeding source, reduce future invasions by closing the gaps flies use to enter. Inspect window and door screens for holes or tears, even small punctures let flies through. Check that screens fit tightly within their frames with no gaps at the edges. Replace worn weather stripping around windows and doors with adhesive-backed foam strips. Install a door sweep (a rubber or bristle strip that attaches to the bottom of the door) on any exterior door where you can see daylight beneath it.
Seal cracks where window frames meet walls using silicone-based caulk, paying particular attention to joints where different materials meet. The same goes for gaps around utility lines, vents, and pipes that pass through exterior walls. These small fixes have an outsized impact because flies follow airflow, and any crack that leaks air also guides flies directly inside.
Trapping Flies Already Inside
While you address the root cause, traps help knock down the adult population. For fruit flies, a simple homemade trap works well: pour about a quarter cup of apple cider vinegar into a jar or bowl and add a few drops of liquid dish soap. The vinegar’s fermentation smell attracts the flies, and the soap breaks the surface tension of the liquid so they sink and drown instead of landing and flying away. Place the trap near the area where you see the most activity.
For house flies, sticky fly ribbons or UV light traps are more effective since house flies aren’t drawn to vinegar the same way fruit flies are. Cluster flies respond best to light traps placed near the windows where they congregate.
When the Problem Is Bigger Than DIY
Most indoor fly problems resolve once you find and remove the breeding source. But some situations are harder to diagnose. A dead animal inside a wall, a broken sewer line backing up into the home, or a chronically leaking pipe in an inaccessible crawl space can sustain fly populations that no amount of surface cleaning will fix. Integrated pest management guidelines consider more than three flies per day in a kitchen area a threshold worth acting on. If you’ve cleaned thoroughly, sealed entry points, and set traps but still see persistent daily fly activity, the breeding source is likely somewhere you can’t easily reach or see.