Every fly you see began as an egg, spent its youth as a legless maggot, and rebuilt itself inside a hard case before emerging with wings. The maggot and the adult live such different lives that they rarely compete for the same food, so a fly’s life works almost like two different animals sharing one body over time. In warm weather, common flies can finish the whole cycle in about one to two weeks, which is why a few flies can become many so quickly.
The Four Stages of a Fly’s Life
The change from egg to adult is called metamorphosis, and in flies it is complete. It happens in four steps:
- Egg: laid in batches on moist, rotting food such as manure or garbage.
- Larva: the maggot, which does nothing but eat and grow.
- Pupa: a resting stage inside a hard brown case, where the body is rebuilt.
- Adult: the winged fly that mates and lays the next round of eggs.
Insects that go through this full transformation grow much faster than insects that change gradually.1PubMed Central. Rapid growth and the evolution of complete metamorphosis in insects They can put all their effort into growing first and build the adult body afterward.1PubMed Central. Rapid growth and the evolution of complete metamorphosis in insects Because each stage does one thing, neither body has to be a compromise between eating and flying.
Compare that with a grasshopper or cockroach. Their young look like small adults and simply molt into bigger versions, and they never have a resting pupa. A maggot looks nothing like a fly: no legs, no eyes, no wings.
That difference explains a common mistake about small flies. Many people assume a tiny fly is a young one that will grow. An adult fly never grows after it emerges. All the growth happens in the maggot stage, so a small fly is either a different species or an adult that was poorly fed as a maggot.
Eggs Where the Food Is
House flies prefer to lay eggs in sheltered spots with crevices and edges to push the eggs against.2European Journal of Entomology. Effect of the size of the pupae, adult diet, oviposition substrate and adult population density on egg production in Musca domestica (Diptera: Muscidae) The ammonia smell of manure also attracts egg-laying and may help females lay more eggs.2European Journal of Entomology. Effect of the size of the pupae, adult diet, oviposition substrate and adult population density on egg production in Musca domestica (Diptera: Muscidae) Bacteria growing on freshly laid eggs at first draw other females to lay there too.3Animal Behaviour. Proliferating bacterial symbionts on house fly eggs affect oviposition behaviour of adult flies As certain bacteria multiply over time, though, the signal flips and discourages more egg-laying.3Animal Behaviour. Proliferating bacterial symbionts on house fly eggs affect oviposition behaviour of adult flies That makes sense for the young: eggs laid days apart produce maggots of mismatched ages, which lowers their success.3Animal Behaviour. Proliferating bacterial symbionts on house fly eggs affect oviposition behaviour of adult flies
At home, fly eggs are tiny, white and rice-shaped, laid in clumps. They are often tucked into the folds of bags or under food scraps, and in warm weather they usually hatch within about a day. Spotting a clump early means you can clean before any maggots appear. Rotting food gives off the smells females follow, and gaps under lids and folded bags offer the sheltered edges they prefer, so sealing bins and rinsing them out removes both.
The Maggot Stage
A newly hatched maggot is a small peg-shaped grub with a pair of mouth hooks at the front for feeding.4PubMed Central. The use of insects in forensic investigations: An overview on the scope of forensic entomology It grows rapidly through three growth stages, shedding its skin between each.4PubMed Central. The use of insects in forensic investigations: An overview on the scope of forensic entomology Maggots often gather in writhing masses, because many females lay in the same place. Once it reaches full size, it stops eating and crawls to a drier place to form its pupa.4PubMed Central. The use of insects in forensic investigations: An overview on the scope of forensic entomology So maggots found crawling across a floor, away from a bin, are usually about to pupate.
Pouring boiling water over the maggots, or bagging and freezing them, kills them, and emptying, sealing and washing the bin stops the cycle there.
Diet shapes the adult too. In fruit flies, protein-rich food gives bigger adults, while sugar-rich food gives longer-lived adults.5PubMed Central. Nutritional Trade-Offs in Drosophila melanogaster6PubMed Central. Insights Into the Immune Response of the Black Soldier Fly Larvae to Bacteria
Inside the Pupal Case
The maggot’s own skin hardens into a brown, barrel-shaped shell, the pupal case. Inside, small groups of cells set aside in the maggot unfold, spread and join to form the adult’s legs, wings and body wall.7PubMed. Cellular basis of the dynamic behavior of the imaginal thoracic discs during Drosophila metamorphosis
Much of the maggot’s body is broken down and reorganised while those cell clusters grow into adult parts. The case is sealed, so the pupa cannot eat. It runs on the fat and nutrients the maggot stored, which is why a maggot that fed poorly can become a smaller or weaker adult.
Many flies break out using a balloon-like sac on the front of the head that swells and shrinks to crack open the pupal case.8Annals of the Entomological Society of America. A Study of the Ptilinum and Ptilinal Musculature of the Pomace Fly, Drosophila Melanogaster Meigen1 (Diptera, Drosophilidae) After emerging, the sac pulls back into the head for good, leaving a seam visible on the face.8Annals of the Entomological Society of America. A Study of the Ptilinum and Ptilinal Musculature of the Pomace Fly, Drosophila Melanogaster Meigen1 (Diptera, Drosophilidae) In blow flies the sac is covered in tiny scales and works as a digging tool to tunnel up through soil.9Canadian Journal of Zoology. THE PTILINAL ARMATURE OF FLIES (DIPTERA, SCHIZOPHORA)10Elsevier / Tissue and Cell. The final stages of wing development in Drosophila melanogaster
A freshly emerged fly is pale and soft, with crumpled wings, and cannot fly for a short while. Over the next few hours its body darkens and hardens.
At home, pupal cases look like small brown seeds or grains of rice. They turn up under rugs, in cracks, or in soil near bins. Empty ones have a cap broken off at one end. Finding them means flies have already hatched or soon will.
How Long the Lifecycle Takes
Fly growth depends on accumulated warmth, so each stage needs a certain total amount of heat to finish. A common green bottle fly takes about 8 to 12 days from egg to adult in warm conditions.11PubMed Central. Temperature Requirements of Some Common Forensically Important Blow and Flesh Flies (Diptera) under Laboratory Conditions The flesh fly needs more heat and takes about 13 to 19 days.11PubMed Central. Temperature Requirements of Some Common Forensically Important Blow and Flesh Flies (Diptera) under Laboratory Conditions In each of these flies, the pupa stage needs more heat than the egg and maggot stages combined,11PubMed Central. Temperature Requirements of Some Common Forensically Important Blow and Flesh Flies (Diptera) under Laboratory Conditions which means the pupa is usually the longest part of the cycle.
Cold changes everything. Cooler temperatures slow every stage, so a species that takes under two weeks in a warm kitchen may take much longer in a cool garage. Very cold conditions can stop development altogether until warmth returns, though that does not necessarily kill the young, so relying on cold weather to clear flies is unreliable.
Indoors in summer, a warm kitchen keeps development near the fast end. Leaving a full bin for a week or more can let a new generation reach the pupa stage, so at least weekly bin cleaning in summer helps break the cycle before adults appear.
Flies That Give Birth to Maggots
Not every fly lays eggs. In flesh flies, eggs hatch inside the mother, and the young maggots are held until she finds suitable food.12Featured Creatures. A Flesh Fly Sarcophaga crassipalpis Macquart (Insecta: Diptera: Sarcophagidae) She then deposits the newly hatched maggots straight onto the food, and they start feeding at once.12Featured Creatures. A Flesh Fly Sarcophaga crassipalpis Macquart (Insecta: Diptera: Sarcophagidae) A single female can deposit several hundred maggots.13PestWest LLC USA. Fleshing Out the Flesh Fly – PestWest LLC USA
That head start is why maggots can show up on meat within hours. Holding the young until a suitable source turns up also keeps them from drying out on a bare surface.
For a home, this means maggots on meat or in a bin do not prove eggs were laid there earlier, since a flesh fly may have deposited the maggots directly. Covering food and sealing bins still works, because the female must reach the food to deposit her young.
How Flies Survive Winter
Many flies spend winter as a pupa in a paused, resting state. Green bottle fly maggots kept outdoors away from germs survived winter cold well, which suggests soil fungi and parasitic worms may cause more winter deaths than cold does.14Bulletin of Entomological Research. Winter survival of larvae and pupae of the blowfly, Lucilia sericata (Diptera: Calliphoridae)
A resting pupa slows its body processes sharply, which lets it live on stored fat through months without food. It barely grows or changes during the pause, and spring warmth restarts development. The pause is a built-in survival strategy, not a sign the pupa has died.
The winter pause also explains why flies reappear on the first warm days. Pupae buried in soil or cracks finish developing as soon as it warms, and adults hidden in wall spaces wake up. An early spring cleanup of compost and bins reduces the first wave.
Why Fly Lifecycles Matter
Because flies arrive fast and grow at predictable speeds, investigators use them to estimate the minimum time since death.15PubMed Central. Initial blow fly development and larval mass formation in a funeral home cooler: analysis of insect evidence in the suspected desecration of a cadaver The age of the oldest maggots gives the most precise estimate,16Egyptian Journal of Forensic Sciences. Various methods for the estimation of the post mortem interval from Calliphoridae: A review and computer models work out when maggots hatched based on species and temperature.17PubMed. A model for the aging of fly larvae in forensic entomology In one case, maggot growth suggested a body had been kept in a funeral home cooler, since blow flies can develop slowly even in the cold.15PubMed Central. Initial blow fly development and larval mass formation in a funeral home cooler: analysis of insect evidence in the suspected desecration of a cadaver
Maggots also do useful work. Manure broken down by fly larvae becomes a fertiliser that releases nitrogen and phosphorus quickly, so farmers could use less chemical fertiliser.18Canadian Journal of Soil Science. Decomposition and nutrient release pattern of animal manures biodegraded by fly larvae in Acrisols Black soldier fly larvae fed on food waste become protein for animal feed.6PubMed Central. Insights Into the Immune Response of the Black Soldier Fly Larvae to Bacteria Screens and fly traps handle adults but not breeding sites, so seal bins, empty them at least weekly in warm weather, and check soil and corners for pupal cases.

