The short answer
House flies come into homes because they are looking for food, a place to lay eggs, and sometimes warmth. They are drawn by the smell of garbage, food scraps, pet waste and other decaying material, and they get in through open doors, torn screens and gaps around windows and vents.
A few flies now and then usually means they are wandering in from outside. A steady stream, or a sudden burst of many flies, often means they are breeding somewhere inside or right next to the house.
What attracts house flies indoors
Food and garbage
House flies feed on liquids and on solid foods they can dissolve with their saliva. Open garbage, uncovered food, dirty dishes, spills under appliances and food waste in recycling are all strong attractants. Kitchen bins with meat, fish or fruit scraps are among the most common reasons for flies indoors.
These same materials are also where flies lay their eggs. Moist, rotting organic matter is ideal for their maggots, which is why garbage problems and fly problems tend to go together.
Pet waste and litter boxes
Dog waste in the yard, dirty litter boxes, and soiled pet bedding are attractive both as food and as breeding sites. Homes with pets often see more flies in warm weather if waste is not cleaned up quickly.
Warmth, light and odors
House flies are most active in warm weather and slow down in the cold. In late summer and fall, they may come indoors toward warmth. Strong odors from compost bins, outdoor garbage cans, nearby livestock or manure can draw flies close to the house, and from there it is a short trip through an open door.
How house flies get inside
Common entry points include:
- Doors left open, even briefly
- Missing or torn window and door screens
- Gaps around window frames, air conditioners, pipes and cables
- Unscreened attic, crawl space or dryer vents
- Flies hitching a ride on groceries, plants or items brought in from outside
Outdoor lights near doors can also bring a variety of insects close to entrances at night. If that seems to be part of the problem, our article on what light do bugs hate the most looks at lighting choices.
When flies are breeding indoors
Signs of an indoor source
You may have flies developing inside your home if you notice:
- Many flies appearing over a short period, even with doors and windows shut
- Maggots in bins, around pet areas or in spilled food
- Small brown, barrel-shaped pupal cases near a possible food source
- Flies clustering around one particular room or spot
If this sounds familiar, our article on why do I suddenly have 20 flies in my house goes through the most likely explanations. You can also compare what you find with our housefly maggot pictures guide.
Hidden sources, including dead animals
Sometimes the source is out of sight. A mouse, rat, bird or other animal that has died inside a wall, attic, chimney or crawl space can produce a large number of flies within days, often blow flies rather than house flies. A bad smell along with a sudden wave of flies is a strong hint. Other hidden sources include forgotten food at the back of a cupboard, potatoes or onions rotting in storage, and buildup in drains or under appliances.
Is it a house fly? Other flies you might see
Not every fly indoors is a house fly. Common look-alikes and relatives include:
- Blow flies: shiny metallic green or blue, often linked to meat scraps or dead animals
- Fruit flies: very small, tan, often with red eyes, hovering around fruit and drains
- Drain flies: small, fuzzy, moth-like flies near sinks and showers
- Cluster flies: larger, sluggish flies that gather in attics and on windows in fall and spring, and do not breed in garbage
Knowing which fly you have narrows down the cause. For background on the groups involved, see which flies turn into maggots, and for other insects that commonly share our homes, see what bugs live in homes.
How to reduce house flies at home
- Remove breeding material. Empty kitchen bins often, bag food waste, and keep outdoor cans closed and away from doors.
- Clean bins and spills. Wash and dry garbage cans, and clean under appliances where crumbs and liquids gather.
- Manage pet waste. Pick up yard waste promptly and clean litter boxes regularly.
- Cover food. Store food in sealed containers and don’t leave dishes or pet food sitting out.
- Screen and seal. Repair screens, add door sweeps and seal gaps around windows and pipes.
- Trap the stragglers. Fly swatters, sticky fly strips and light traps can deal with adults that get in, but they work best after the source has been removed.
If you find maggots while cleaning, our guide on what kills maggots immediately covers quick, practical options.
When to call a professional
Consider contacting a pest control professional if flies keep returning after you have cleaned thoroughly, if you suspect a dead animal inside a wall or ceiling, or if you live near a large outdoor source such as a farm or a dumpster you can’t control. In most homes, though, good sanitation and intact screens solve the problem.