Flies in the Garage: Find the Source Before You Spray

By the Pest Control Brief editorial team Updated November 26, 2026 9 min read
A garage interior with the main door open, a wheelie bin and recycling boxes against one wall, sunlight on the concrete floor, no insects
AI-generated illustration.
Quick answer

Flies in a garage are almost always breeding in something stored there: the garbage or recycling bins, bagged lawn clippings, pet waste, damp potting soil or a dead mouse. Find and remove that source and the flies stop within about a week, because UC IPM says house flies and blow flies can go from egg to adult in as little as 7 days. In autumn, sluggish flies on a sunny window are usually cluster flies from the walls, which need sealing, not cleaning.

Match the fly to its source

What you see Likely fly Usual garage source Fix
Grey flies under 3/8 inch with four dark stripes on the back, buzzing around the bins House fly Garbage, lawn clippings, dog faeces, rotting produce Bag and seal waste, lidded bins, weekly pickup, rinse bins
Shiny metallic green or blue flies, maggots crawling across the floor Blow flies Unbagged kitchen waste in a bin, or a dead mouse, rat or bird Bag food waste; search for a carcass
Dull grey flies slightly larger than house flies, with golden hairs on the thorax, on a sunny window in autumn, winter or early spring Cluster flies Wall voids and the attic; they breed in earthworms outdoors Seal cracks before autumn; vacuum the ones inside
Tiny tan flies with red eyes around the recycling Fruit flies Unrinsed bottles and cans, juice and beer residue Rinse recycling; empty and wash the bin
Small dark, mosquito-like flies on the windows and plant pots Fungus gnats Open bags of damp potting mix, compost, overwintering pot plants Close or move the bags; let pots dry out
Flies that bite ankles in late spring and early summer Stable flies Moist grass clippings or compost near the garage Remove or properly compost clippings

Compiled by The Pest Control Brief from UC IPM Pest Notes (flies, fungus gnats), Penn State Extension (cluster flies) and University of Kentucky Entomology (fruit flies).

A wheelie bin with its lid open being rinsed with a garden hose on a driveway
Rinsing bins removes the residue house flies breed in. AI-generated illustration.

Why are there so many flies in my garage?

Because a garage often holds the exact things flies breed in, close to a door that stays open. UC IPM says house flies lay eggs in warm, moist organic material such as manure, garbage, lawn clippings, decaying vegetables and fruits, in several batches of about 100 to 150 eggs per female. It also advises placing garbage as far from a building entrance as is practicable, which is the opposite of where many bins live: inside an attached garage beside the kitchen door.

The numbers climb quickly because of the speed of the cycle. UC IPM gives as little as 7 days from egg to adult for house flies under optimal summer conditions and for blow flies at ideal temperatures, so a bin left two weeks can produce two generations. Cooler weather slows this, as our guide to the house fly life cycle by temperature shows.

Fastest egg-to-adult time for garage flies, in daysMinimum development times under favourable temperatures; cooler weather slows every one of them. A bin left for a week is long enough for a full house fly or blow fly generation. The fungus gnat figure adds UC IPM's egg, larva and pupa stages at 75°F.House fly7daysBlow flies7daysStable fly12daysFungus gnat (at 75°F)17days
Fastest egg-to-adult time for garage flies, in days Minimum development times under favourable temperatures; cooler weather slows every one of them. A bin left for a week is long enough for a full house fly or blow fly generation. The fungus gnat figure adds UC IPM's egg, larva and pupa stages at 75°F. Source: UC IPM Pest Notes: Flies (7457) and Fungus Gnats (7448).

Work through the sources in this order

1. The bins

Blow fly maggots that leave a bin to pupate are the classic sign. UC IPM describes homeowners seeing a mass of maggots crawling from trash cans when kitchen waste was not sealed in a plastic bag, and warns that garbage sitting for more than one week is likely to produce adult blow flies. Its rules are simple: bag household garbage and pet faeces and seal the bags, use containers with tight-fitting lids, and set cans out for pickup at least once a week even when not full. Cleaning a bin that already has maggots is covered step by step in maggots in the trash can.

2. Recycling and the drinks shelf

The University of Kentucky says fruit flies breed in empty bottles and cans, trash containers, mops and cleaning rags, and that all they need is a moist film of fermenting material. A recycling box of unrinsed beer and soda cans in a warm garage fits that exactly. If you are unsure whether the swarm is fruit flies or gnats, compare them in small flying bugs in the house. Kentucky’s point applies here too: unless breeding sites are removed or cleaned, the problem continues no matter how often adults are sprayed.

3. Lawn clippings, compost and pet waste

Bags of fresh clippings stored in the garage until collection day can breed flies. UC IPM lists lawn clippings among house fly breeding material and says moist grass clippings and poorly maintained compost are sources of stable flies, which can develop from egg to adult in 12 days and give a painful bite. It recommends removing dog faeces at least once a week. Keep clippings outside, spread thin to dry, or in a turned compost pile.

4. Potting soil and stored plants

Small, weak-flying gnats near the window are often coming from an open bag of potting mix. UC IPM says fungus gnats infest soil, potting mix and other container media, that females lay eggs in moist organic debris or potting soil, and that at 75°F a generation runs about 3 days as eggs, 10 as larvae and 4 as pupae. Seal or move the bags and let overwintering pot plants dry between waterings; yellow sticky traps, which UC IPM suggests for monitoring, show whether numbers are falling. The cost and cure of gnats and other small flies are compared in fruit flies, drain flies and fungus gnats.

5. Something dead

If the bins are clean and metallic green or blue blow flies keep appearing, look for a carcass. A mouse that died behind shelving or in a wall is a common culprit, since garages are a favourite mouse shelter, as our page on mice in the garage explains. Follow the smell, check behind stored items, and remove the body with gloves.

UC IPM notes that blow flies take their name from laying eggs on carrion and that their larvae leave the food to pupate in drier, more protected spots, so maggots or pupae turning up away from any bin are a clue. Our guide to the dead mouse smell covers how to find the body.

Because the maggots must feed and then pupate first, adult flies appear days after the death rather than at once, a delay that makes the swarm seem to come from nowhere; the full timeline is in our page on lots of flies in the house all of a sudden.

A bag of potting soil open on a garage shelf next to plant pots
Open bags of damp potting soil can breed fungus gnats. AI-generated illustration.

The autumn exception: cluster flies

Flies on a sunny garage window in autumn, or on a warm day in winter, are usually cluster flies, and they are not breeding in the garage at all. Penn State says that in autumn they fly to the sunny sides of homes to find protected overwintering sites, and that they are not reproducing within the structure but crawl out of wall voids and attics on warm days. Their maggots develop inside earthworms in the soil outdoors.

Cleaning does nothing for them. Penn State’s answer is mechanical exclusion: seal cracks around windows, doors, siding, utility pipes and fascia with silicone or silicone-latex caulk, and repair screens. It advises against insecticide inside the structure once flies are in the voids, partly because dead flies can feed carpet beetles. Where they spend the cold months is in where flies go in winter.

How to get rid of flies in a garage fast

  1. Remove the source the same day. Bag and take out the garbage, rinse the bins and recycling, move clippings and potting mix outside.
  2. Use the right trap for the fly. UC IPM says sticky ribbons remove a few flies in confined areas but will not control blow flies, which rarely rest on vertical surfaces. Odour-baited cone traps work when not competing with garbage, but smell foul, so hang them outside and away from the house. Ultraviolet light traps can work indoors where they do not compete with daylight, which in a garage means with the door shut.
  3. Bait the fruit fly trap with cider vinegar. Kentucky’s paper-funnel jar trap, baited with a few ounces of cider vinegar, is for fruit flies; it will not draw house flies off a garbage bin.
  4. Keep the door down and fit seals. UC IPM says flies inside a building have entered from outside in almost all cases, so seal cracks and use well-fitted screens. A worn bottom seal on the main door lets flies, mice and roaches into the garage alike.
  5. Spray last, if at all. UC IPM says that in most home situations pesticides are not needed or recommended, and that insecticides belong only after every nonchemical step; if sanitation is not possible, a nonresidual pyrethrin aerosol may be used, following the label.

Flies that gather on the driveway and patio rather than inside are a yard problem, covered in how to get rid of flies outside. A professional is rarely needed for garage flies; the exceptions are a carcass you cannot reach inside a wall and a heavy cluster fly problem where exterior sealing is impractical, for which Penn State says exterior insecticide should be applied by a licensed operator in autumn.

A sunny garage window with a few dead flies on the sill in autumn
Flies on a sunny garage window in autumn are often cluster flies coming out of the walls. AI-generated illustration.

Frequently asked questions

How to get rid of flies in a garage fast?

Remove what they are breeding in first: bag and take out garbage, rinse bins and recycling, and move grass clippings and potting mix outdoors. Then trap the adults, using sticky ribbons for a few house flies, an outdoor odour-baited trap for heavy numbers and a cider vinegar jar for fruit flies. UC IPM says house flies can develop in 7 days, so a missed source restarts the problem.

What smell do flies hate most?

No scent has been shown in extension guidance to keep flies out of a garage. UC IPM’s fly Pest Note relies on screens, sealed gaps, lidded bins and removing breeding material, not repellent odours. Flies are drawn to the smell of garbage, faeces and fermenting residue, so removing those odours does more than adding a new one.

What does a sudden infestation of flies mean?

Usually that a batch of eggs has just completed its cycle somewhere nearby. In a garage, that means a bin, recycling, clippings or a dead animal. UC IPM gives as little as 7 days from egg to adult for house flies and blow flies, so a sudden swarm points to a source that has been there about a week or more. Metallic green or blue flies suggest a carcass.

Why are flies in my garage in winter?

Most likely they are cluster flies that entered the walls and attic in autumn. Penn State says they become active on warm days and crawl out of wall voids and attics, often toward sunny windows, but do not reproduce indoors. Sealing gaps before the next autumn is the fix; vacuum the ones that appear meanwhile.

Sources

  • University of California Statewide IPM Program, Pest Notes: Flies (7457), covering house flies, blow flies, stable flies and Fannia.
  • University of California Statewide IPM Program, Pest Notes: Fungus Gnats (7448).
  • Penn State Extension, Cluster Flies.
  • University of Kentucky Entomology, ENTFACT 621, Fruit Flies.
Got flies or pantry pests?Compare local quotes