Where Are All the Flies in My House Coming From?

Flies appearing inside your house are almost always breeding somewhere indoors, not just wandering in from outside. The key to stopping them is figuring out which type of fly you have, because each species breeds in a very specific kind of material. Once you find and remove that breeding source, the flies disappear within days.

Identify the Fly First

The size, color, and behavior of the flies in your house tell you exactly where to start looking. Tiny tan flies hovering near your kitchen are a completely different problem than large metallic-green flies buzzing at your windows. Here are the most common indoor culprits:

  • Fruit flies: Tiny (about 1/8 inch), tan or brownish, with red or black eyes. They hover around food, sinks, and trash cans.
  • Drain flies: Small, fuzzy, moth-like flies that rest on walls near bathrooms or basements. They hold their wings flat like a roof over their body.
  • Fungus gnats: Tiny black flies that hover around houseplants and potted soil. They look like miniature mosquitoes.
  • House flies: The classic gray fly, less than 3/8 inch long, with four dark stripes down the back. They can’t bite because they have sponging mouthparts instead of piercing ones.
  • Blow flies: Larger than house flies with a shiny metallic green, blue, or copper body. They buzz loudly and tend to cluster near windows.

Fruit Fly Breeding Sites

Fruit flies are the most common indoor fly, and they breed in places most people never think to check. The obvious source is overripe fruit left on the counter, but that’s only the beginning. Fruit flies lay eggs in any moist, fermenting organic matter, and their larvae can develop in surprisingly small amounts of material.

Some of the most overlooked breeding sites include the wet bottom of your trash can (where liquid has leaked past the plastic liner), bags of potatoes or onions stored in the pantry, recycling bins with unrinsed wine or beer bottles, and damp dirty mops or cleaning rags left sitting in a bucket. Open or loosely capped bottles of vinegar, wine, beer, or cider are also prime targets. Even a thin film of juice or alcohol residue at the bottom of a container can sustain a breeding population.

If you’ve cleaned all the obvious spots and still have fruit flies, check your floor drains. A variety called dark-eyed fruit flies breeds more frequently in drains and bathroom areas rather than around produce. Pull out your refrigerator and stove to look for old food debris underneath. Check for sticky spills behind appliances or in the crevices where countertops meet the wall.

Drain Flies and Your Plumbing

Drain flies breed in the slimy organic buildup that coats the inside of pipes. Their larvae feed on soap scum, algae, fungi, and bacteria that accumulate on drain surfaces. The flies themselves are harmless, but they signal that something in your plumbing needs attention.

The most common breeding site is a drain that doesn’t get used often. A guest bathroom shower drain, a basement floor drain, or a utility sink that sits idle for weeks collects stagnant water in its trap, and organic sludge builds up on the pipe walls. Sink drains, tub drains, toilets, and leaky shower pans are all potential sources. Drain flies can also breed where water pools beneath leaking pipes, or they can enter your home when sewer pipes back up.

To test whether a specific drain is the source, place a strip of clear packing tape sticky-side down over the drain opening at night, leaving enough space around the edges for airflow. If drain flies are emerging from that pipe, you’ll find them stuck to the tape in the morning. Test every drain in your house, because the source isn’t always the one closest to where you see the flies.

If you’ve cleaned every drain thoroughly and the flies keep returning, that can indicate a broken pipe or leak under your foundation slab or in a crawlspace. At that point, a plumber may need to inspect the system.

Fungus Gnats From Houseplants

If tiny black flies are hovering around your potted plants, you almost certainly have fungus gnats. Female gnats lay eggs in moist soil, and the larvae feed on organic matter in the potting mix: decomposing roots, fungi, mulch, and compost. They thrive when soil stays consistently wet.

The fix is straightforward. Let the top layer of soil dry out completely between waterings. Fungus gnats can’t survive in dry surface conditions. Improving drainage helps too. Adding perlite or sand to your potting mix makes it harder for the soil to stay waterlogged. Avoid fertilizing with heavy organic materials like blood meal or manure, which give larvae more to feed on. When buying new potting soil, choose pasteurized mixes, because incompletely composted organic matter is often already infested with gnat eggs.

Check all your plants, not just the ones near the flies. Gnats can breed in one pot and fly to another room. Also inspect any bags of potting soil you’ve stored indoors, and look for moist compost or organic mulch kept in garages or basements.

Blow Flies and Dead Animals

A sudden appearance of large, shiny green or blue flies inside your home is one of the more alarming scenarios, and it usually points to a dead animal somewhere in the structure. Blow flies lay eggs on decaying animal matter, and a mouse or bird that died inside a wall void, chimney, ceiling space, or crawlspace is the most common source.

Finding the carcass is often difficult because the animal has typically been dead for several weeks by the time the adult flies emerge and become visible. Look for flies congregating at specific windows or light fixtures, which can help you narrow down the wall or ceiling where the animal is located. If flies are collecting inside ceiling light covers, the source is likely in the ceiling or an adjacent wall. Check lower cabinets and underneath major appliances as well, since rodents sometimes die in those hidden spaces.

The infestation is self-limiting. Once the carcass dries out completely, the flies stop breeding. But if you can locate and remove the dead animal, the problem ends much faster. If you’ve recently used rodent poison or had pest control for mice, a dead animal in the walls is the most likely explanation.

House Flies Getting Inside

House flies are most common during hotter summer months and breed outdoors in garbage, lawn clippings, manure, and decaying organic material. Unlike fruit flies or drain flies, house flies are more likely entering from outside rather than breeding indoors, though they will lay eggs in kitchen waste or garbage cans if conditions are right.

They’re attracted to food and can transfer bacteria they’ve picked up from animal waste, garbage, or decaying material. You’ll notice their presence from dark fecal and regurgitation spots on walls and ceilings, especially on light-colored surfaces where they prefer to rest.

If house flies keep appearing despite clean indoor conditions, the entry points are usually structural: torn or poorly fitted window screens, gaps between window frames and walls, worn-out weatherstripping around doors, or the gap between the bottom of a door and the threshold. Over time, the joints where window frames meet the wall can develop cracks that are invisible from a distance but wide enough for flies. Even properly purchased windows and doors can leave unsealed gaps if they weren’t installed with tight alignment.

How to Find the Source

The single most effective thing you can do is watch where the flies concentrate. Flies stay close to their breeding site, so the room or corner of the house where you see the most activity is where you should search. Fruit flies near the kitchen point to food waste or drains. Small flies near a bathroom point to plumbing. Flies clustering at one particular window suggest something in the wall behind it.

Work through a systematic check: empty and scrub all trash cans, clean under and behind appliances, inspect every drain with the tape test, examine stored produce and recycling bins, check all houseplant soil, and look for any water leaks or areas of persistent moisture. For drain flies specifically, remember that the stagnant water in an unused guest bathroom or basement floor drain is one of the most common sources, and it’s easy to overlook because you never go in that room.

Once you remove the breeding material, adult flies already present will die off within a few days to two weeks depending on the species. No breeding source means no new generations. Traps and sprays can reduce the adults you see in the short term, but they won’t solve the problem if the source is still active. The flies will keep coming back until the organic matter, moisture, or decaying material they depend on is gone.