Why Do Flies Like Dead Things? The Science Behind It

Flies are drawn to dead animals and other decaying matter because it provides everything they need to reproduce. A carcass is both a food source for adult flies and a nursery for their young, offering the protein-rich environment that developing larvae require to survive. The attraction starts with smell: decomposition releases a cocktail of chemicals that flies can detect from remarkable distances, often arriving within minutes of death.

What Flies Actually Smell

When an animal dies, bacteria immediately begin breaking down tissue. That process releases volatile organic compounds into the air, and certain ones act as powerful signals to flies. The key chemicals include dimethyl disulfide and dimethyl trisulfide (sulfur-containing gases responsible for the unmistakable stench of rot), along with compounds called phenol and indole. Each of these is produced by specific bacteria colonizing the remains, and together they create an olfactory beacon that tells flies exactly what they’re looking for.

Indole appears to be one of the core signals in the communication chain between decomposition bacteria and flies. Bacteria on the carcass essentially advertise the resource’s presence by producing these compounds as natural byproducts of breaking down amino acids, particularly sulfur-containing ones like methionine. Flies didn’t evolve to find these smells pleasant in the way we’d think of it. They evolved to recognize them as indicators of a high-quality site for feeding and egg-laying.

How Flies Detect Death So Quickly

Blowflies, the metallic green and blue flies most commonly associated with dead things, have highly developed olfactory systems tuned to detect carrion volatiles at extremely low concentrations over long distances. Smell is their primary tool for locating a carcass, and it works fast. Adult blowflies can find and colonize a body within minutes after death.

Female flies that are ready to lay eggs are even more sensitive than other flies. Studies on the Australian blowfly found that egg-carrying females detected carrion-related compounds at lower doses than females that weren’t ready to reproduce. This heightened sensitivity gives them a competitive edge: they can locate fresh remains quickly, before the resource becomes overcrowded or too degraded to support their offspring.

It’s Really About Reproduction

The core reason flies swarm to dead things is reproduction. A carcass is a temporary, nutrient-dense package that won’t last long, so speed matters. Female blowflies and flesh flies need protein from carrion (or feces) to produce eggs, and they also need to deposit those eggs somewhere their larvae can eat. Dead tissue checks both boxes.

Maggots are essentially eating machines. They require the proteins and fats found in decomposing flesh to fuel their rapid growth from egg to pupa. Because a carcass is a finite resource that attracts competition from dozens of insect species, birds, and scavengers, flies have evolved aggressive reproductive strategies. They arrive early, lay large numbers of eggs, and their larvae develop as quickly as conditions allow. In warm conditions around 30°C (86°F), some blowfly species can complete their larval development in as few as 16 days. Cooler temperatures slow the process, while warmer ones (up to a point) speed it up by increasing the larvae’s metabolic rate.

Larval density also plays a role. When many maggots feed together, they generate their own heat through metabolic activity, which can accelerate development even when the surrounding air temperature is moderate. For some species, this crowding effect on development time is actually more significant than air temperature alone.

How Adult Flies Feed on Decay

Adult flies can’t chew. They have sponge-like mouthparts that can only take in liquids, so they’ve developed a workaround for solid or semi-solid food: they vomit digestive fluid onto it. The regurgitated liquid dissolves and liquefies the food, and the fly then sucks the mixture back up through microscopic pores on its mouthparts, each less than half a micrometer wide. Flies that don’t have fluid stored in their crop (a small internal pouch) simply cannot feed on anything that isn’t already liquid.

This is why decaying tissue is ideal. As decomposition progresses, flesh becomes softer and more liquefied, making it increasingly accessible to adult flies. Fresh remains are primarily valuable as egg-laying sites, while more advanced decay provides easier meals for the adults themselves.

Which Flies Show Up First

Not all flies are equally drawn to dead things. The primary colonizers belong to two families: blowflies (Calliphoridae) and flesh flies (Sarcophagidae). Among blowflies, the most common species found on remains in temperate climates is the blue bottle fly, Calliphora vicina, present in about 69% of forensic cases studied in Europe. The green bottle fly, Lucilia sericata, shows up in roughly 30% of cases, followed closely by the larger blue bottle, Calliphora vomitoria, at 29%.

Houseflies also feed and breed in decaying organic matter, though they’re generalists that favor feces and garbage alongside carrion. They’re less specialized than blowflies but still common visitors to remains in areas near human habitation.

Why This Matters Beyond the “Ick Factor”

Flies moving between carcasses, feces, and human food aren’t just disgusting. They’re legitimate disease vectors. Houseflies alone carry over 130 identified pathogens, including bacteria, viruses, fungi, and parasites. The transmission is mechanical: pathogens stick to the fly’s body, legs, and mouthparts, then get deposited on the next surface it lands on. Because flies regurgitate fluid as part of their normal feeding process, they can transfer bacteria from a carcass directly onto your food in a single landing.

The constant movement of flies between breeding sites (dead animals, manure, garbage) and human spaces is what creates the risk. They don’t carry diseases the way mosquitoes do, where the pathogen develops inside the insect. Instead, they work more like tiny, airborne contaminated sponges, picking up whatever microorganisms are present on one surface and physically transporting them to the next.

Flies as Nature’s Cleanup Crew

For all the revulsion they inspire, flies that colonize dead things serve a critical ecological role. They’re among the fastest and most efficient decomposers in nature, breaking down remains that would otherwise accumulate. Blowfly larvae can consume enormous amounts of tissue relative to their size, reducing a small animal carcass to bones in a matter of days under warm conditions. The nutrients locked in that tissue get recycled back into the soil and food web, feeding everything from birds to beetles that prey on the maggots themselves.

This efficiency is also why forensic scientists rely on fly activity to estimate how long someone has been dead. Because blowflies arrive so predictably and their development follows known timelines based on temperature, the age of larvae found on remains can provide a minimum time-since-death estimate accurate to within days, even weeks after the fact.