Garbage flies are any of several fly species that feed and breed in decomposing waste. The most common ones you’ll find buzzing around your trash are house flies, blow flies, flesh flies, and fruit flies. Each is drawn to different materials in your garbage, but they all share one thing in common: they can go from egg to full-blown infestation in a matter of days during warm weather.
Common Species Around Your Trash
The term “garbage fly” isn’t a single species. It’s a catch-all for what entomologists call filth flies, a group of insects that depend on decaying organic matter to reproduce. Knowing which ones you’re dealing with helps you figure out what’s attracting them.
House flies are the most familiar. About a quarter-inch long, dull gray, with four dark stripes running down the middle of the body. They lay eggs directly on animal feces and garbage, and they’re strong fliers that can travel long distances to reach a food source. If you’re seeing medium-sized gray flies landing on your kitchen trash or outdoor bin, these are the likely culprit.
Blow flies are the metallic-looking ones, shiny blue, green, or bronze. Sometimes called bottle flies because they resemble colored glass. They’re about the same size as house flies or slightly larger, and they’re especially drawn to rotting meat and animal remains. If your garbage contains meat scraps, blow flies will find it. They’re also the species most strongly attracted to the sulfur compounds that decaying protein produces.
Flesh flies are a bit larger still, dark gray or black with three dark stripes on their upper body and a distinctive checkerboard pattern on the abdomen. They seek out carrion and meat scraps for egg-laying.
Fruit flies are the tiny, gnat-sized flies with tan bodies and red eyes. They aren’t attracted to meat at all. Their targets are fermenting sugars: overripe fruit, spilled soda, vinegar, alcohol, and syrup. If your trash contains banana peels, juice containers, or wine bottles, fruit flies will congregate.
How Flies Find Your Garbage
Smell is the primary way flies locate food and breeding sites. As organic matter in your trash breaks down, it releases volatile organic compounds that flies can detect from surprising distances. The specific chemicals matter: research at Purdue University identified dimethyl disulfide and dimethyl trisulfide as especially powerful attractants. These sulfur-based compounds are produced when protein-rich materials like meat, fish, and dairy decompose. They’re the same chemicals responsible for the rotten-egg smell of spoiled food.
Blow flies in particular are highly responsive to these sulfur compounds. But no single chemical tells the whole story. Decomposing garbage produces complex blends of dozens of volatile compounds, and different fly species respond to different parts of that chemical cocktail. Fruit flies, for instance, home in on the alcohols and acids produced by fermenting fruit rather than the sulfur compounds from rotting meat. This is why a trash can with mixed food waste attracts multiple fly species at once.
Moisture amplifies the problem. Wet garbage decomposes faster, releasing more odor compounds into the air. A sealed plastic bag full of wet food scraps on a hot day becomes a concentrated source of fly-attracting chemicals the moment it’s opened or punctured.
From Egg to Infestation
Flies reproduce at a pace that makes small problems escalate quickly. A female house fly deposits eggs directly on garbage or other decaying material. Those eggs hatch into maggots in as little as 8 to 20 hours. The maggots feed intensely, passing through three growth stages in 3 to 7 days under warm summer conditions. They then enter a pupal stage, and depending on temperature and humidity, a new adult fly emerges anywhere from three days to four weeks later.
In peak summer heat, the entire cycle from egg to adult can complete in under two weeks. A single female house fly can lay 500 or more eggs in her lifetime, often in batches of 75 to 150. That means one unnoticed breeding site in a trash can, a forgotten bag of garbage in the garage, or a dirty bin that hasn’t been rinsed, can produce hundreds of new flies before you realize what’s happening. The warmer it is, the faster the cycle runs.
Keeping Flies Away From Your Trash
The single most effective thing you can do is reduce the amount of exposed food waste in your garbage. Meat scraps, fruit peels, and vegetable trimmings are the primary breeding attractants. Composting food waste separately, freezing scraps until trash day, or using a food recycler keeps those materials out of your bin entirely.
When food waste does go in the trash, containment matters. Tie bags tightly before placing them in the bin. A torn or loosely tied bag lets odors escape and gives flies direct access to breeding material. Double-bagging meat scraps or fish packaging adds an extra layer of protection.
Moisture control is your next priority. Plastic garbage bags trap evaporated moisture from decomposing food, creating the damp conditions flies need. Lining the bottom of your bin with newspaper absorbs excess liquid and makes cleanup easier. Some people find biodegradable bags helpful because they’re more porous and allow waste to dry out faster.
Cleaning the bin itself makes a real difference. Food residue caked on the inside of a trash can continues to attract flies long after the garbage is collected. A scrub with a mixture of water and white vinegar, followed by a cup or two of baking soda left overnight, neutralizes odors effectively. Do this every few weeks during warm months, or whenever you notice buildup.
Natural Repellents
Several essential oils act as fly deterrents when sprayed around trash areas. Peppermint oil diluted in water can keep flies and fruit flies away for up to six days. Cinnamon oil, clove oil, and thyme oil also repel flies when sprayed on and around bins. These won’t solve a breeding problem on their own, but they’re useful as a supplementary measure once you’ve addressed the underlying attractants. Basil leaves steeped in boiling water overnight produce a similar repellent spray.
Why Garbage Flies Are a Health Concern
Garbage flies aren’t just a nuisance. House flies and blow flies feed by regurgitating digestive fluids onto food surfaces and then sucking up the dissolved material. They land on feces, rotting meat, and garbage, picking up bacteria on their legs and mouthparts, then transfer those pathogens to any surface they touch next. House flies are known carriers of bacteria that cause food poisoning, dysentery, and other gastrointestinal illnesses.
The risk is highest when flies move freely between outdoor garbage and indoor food preparation areas. A house fly that lands on a trash can and then on your kitchen counter has potentially deposited bacteria from dozens of contaminated surfaces. Keeping flies out of the kitchen by screening windows and doors, and keeping indoor trash sealed, reduces this transfer significantly.
Blow flies and flesh flies pose less of a direct household health risk since they’re less inclined to enter homes, but heavy infestations around outdoor bins can still create problems. Large numbers of maggots in a trash can produce their own odors and attract even more flies, creating a cycle that worsens until the breeding material is removed and the bin is cleaned.