What Is a Fly’s Life Cycle? The 4 Stages Explained

Flies go through complete metamorphosis. Every fly starts as an egg, hatches into a maggot, seals itself in a case, and comes out as a winged adult, four stages that look so different they hardly seem like one animal.1PubMed Central. Visualization of insect metamorphosis Each stage has its own job: the maggot exists to eat and grow, and the adult to spread and breed. Heat sets the pace, and in a warm summer the whole cycle can turn over in under two weeks.

Stage 1 The Egg

A female house fly lays her eggs in batches, often 100 or more at a time, on moist decaying matter like garbage, manure or spoiled food. The larvae that hatch can’t travel far, so the mother picks a spot that is already full of food. She can lay several batches over her life. In warm conditions most eggs hatch in 8 to 24 hours.

If you find fly eggs, they are white, about a millimetre long and shaped like grains of rice. They sit in clumps tucked into cracks or under the surface of food, so they are easy to miss on a bin lid or in a pet food bowl.

Remove the material that day, before it turns into maggots. Wrapping the scraps in a sealed bag and taking them outside is enough. Rinsing eggs down a sink just moves them to the drain, where leftover film can feed any that survive. Wash the surface where the eggs sat as well, since stray eggs stuck to a lid or bowl rim can still hatch after the food is gone.

Some flies skip the egg altogether. Certain flesh flies can hold eggs inside and deposit live young maggots instead, especially when no good laying spot is available.2PubMed Central. Colonization pattern and thermal needs of immature phases of Sarcophaga argyrostoma (Diptera: Sarcophagidae): Significance for estimating postmortem interval

Stage 2 The Larva or Maggot

A fly larva, called a maggot, is a legless, pale, cone-shaped grub with no real head. It grows by shedding its skin twice, passing through three sizes. Maggots have hooked mouthparts that rasp and grind soft food into tiny particles before swallowing.3PubMed Central. Growth efficiency, intestinal biology, and nutrient utilization and requirements of black soldier fly (Hermetia illucens) larvae compared to monogastric livestock species: a review They eat nearly nonstop and pile on fat, with one species going from about 5% to 28% body fat in two weeks.3PubMed Central. Growth efficiency, intestinal biology, and nutrient utilization and requirements of black soldier fly (Hermetia illucens) larvae compared to monogastric livestock species: a review Food supply sets their size directly: maggots fed more grow bigger and fattier.4PubMed Central. Black Soldier Fly Larvae’s Optimal Feed Intake and Rearing Density: A Welfare Perspective (Part II)

This is also why maggots seem to appear from nowhere. The eggs were laid a day or two earlier, unseen. Maggots don’t come from the food itself; they hatch from eggs, or are deposited as live young, by a visiting fly.

For house flies, this stage lasts about four to seven days in warm weather. Cooler weather can stretch it to weeks.

Outdoors, maggots that feed on dead animals and dung are a key part of how nature breaks down waste and returns nutrients to soil.5PubMed. Decomposition dynamics: the influence of anthropogenic disturbance on organic matter degradation by sarcosaprophagous flies They live among bacteria and digest most of them, though some survive into the adult fly.6Oxford Academic (Annals of the Entomological Society of America). Flourishing in Filth: House Fly–Microbe Interactions Across Life History

When fully fed, a maggot’s behaviour flips. It stops eating and crawls away from the wet, bright food to a dry, dark spot to pupate. That is why maggots turn up under bins, along skirting boards and in cupboards well away from the original mess.

Stage 3 The Pupa

The maggot shortens, and its outer skin hardens and darkens into a brown, barrel-shaped case. Inside, almost all the maggot’s tissues break down.7Journal of Morphology. The metamorphosis of Drosophila melanogaster, including an accurately timed account of the principal morphological changes The adult is built from small groups of reserved cells that were waiting inside the maggot all along.7Journal of Morphology. The metamorphosis of Drosophila melanogaster, including an accurately timed account of the principal morphological changes These cell groups unfold, spread and join together to form the legs, wings and body wall of the fly.8PubMed. Cellular basis of the dynamic behavior of the imaginal thoracic discs during Drosophila metamorphosis

The body is rebuilt rather than simply grown. A grasshopper, by contrast, hatches as a mini adult and just gets bigger. Some bacteria the maggot carried survive this rebuild and end up in the adult.6Oxford Academic (Annals of the Entomological Society of America). Flourishing in Filth: House Fly–Microbe Interactions Across Life History

At home, the hard brown cases look like small seeds. They gather under bins, in carpet edges or in soil. They don’t move, so people often mistake them for droppings.

For house flies this stage takes about three to six days in warm weather, and much longer in the cold. Some flies sit out winter as pupae.

If flies keep emerging after you have cleaned the bin, search the dry, sheltered places a wandering maggot would reach, such as under the bin, behind it and along the wall edges. Sweep or vacuum the cases up and dispose of the bag outside, since crushing is unnecessary and they are tough. Check again a few days later, because maggots that wandered off late will have pupated after your first sweep.

Stage 4 The Adult Fly

To get out of the pupal case, many flies use an inflatable sac on the forehead that pumps in and out to crack it open.9Journal of Cell Science. On the Ptilinum of the Blow-fly (Calliphora erythrocephala) In blow flies this sac is covered in hard scales, so it also works as a digging tool to push up through soil.10Canadian Journal of Zoology. THE PTILINAL ARMATURE OF FLIES (DIPTERA, SCHIZOPHORA) Once the fly is out, the sac pulls back into the head and is never used again.9Journal of Cell Science. On the Ptilinum of the Blow-fly (Calliphora erythrocephala)

The new fly looks odd. It is pale and soft with crumpled wings, and it can’t fly for the first hour or so. It typically crawls to a spot where it can stay still while its wings unfold. Blood-like fluid is pumped into the wing veins to expand them, and then they dry and stiffen into flat, working wings. Its colour darkens and its body firms up as the outer shell hardens.

Adult house flies can begin laying eggs within a few days of emerging. A female needs to mate and to feed on protein-rich and sugary food before her eggs can develop. This short gap, together with the quick egg-to-adult cycle, explains why a few flies can become a large problem within about two weeks.

Heat speeds egg laying early but shortens life, so flies at 32°C lay more in their first week but live less long than at 25°C.11Entomologia Experimentalis et Applicata. Effect of temperature on egg production in the common housefly What an adult eats matters as well: milk produces more eggs than silage.12PubMed Central. Longevity, feeding behavior, and egg production of adult house flies (Diptera: Muscidae) provided with potential foods on dairy farms Food scraps and spills therefore feed adults as well as maggots. House flies usually live about two to four weeks.

How Long the Whole Cycle Takes

For house flies in summer heat, egg to adult takes about 7 to 10 days. Other flies and cooler weather stretch that toward four weeks. A common green blow fly took 26 days at 20°C but only 14 days at 30°C.13Entomology, Ornithology & Herpetology: Current Research. Effect of Different Constant Temperature on the Life Cycle of a Fly of Forensic Importance Lucilia cuprina Above about 35°C it got no faster, levelling off around 11 days.13Entomology, Ornithology & Herpetology: Current Research. Effect of Different Constant Temperature on the Life Cycle of a Fly of Forensic Importance Lucilia cuprina

The reason is that each stage needs a set amount of warmth built up over time before it can move on.14PubMed Central. Post-mortem Interval Estimation Through Entomology Using Calliphorid Flies: A Case Series Warmth during the egg stage can even speed up later stages.15PubMed. Thermal plasticity of stage-specific development time and adult body size under temperature shifts: A case study using Drosophila melanogaster Cold slows the process without always stopping it: some blow flies keep developing slowly even near 4 to 5°C.16PubMed. Development rates of some pre-adult stages in blowflies with reference to low temperatures

The same fly also takes different times in different places. A fly in a hot kitchen or beside a heater can finish its cycle much faster than the same species in a cool garage, so timings like 7 to 10 days are averages for warm conditions, not guarantees. Species differ too: a large blow fly generally takes longer than a house fly under the same conditions.

Breaking the Cycle at Home

Adult flies carry germs from filth to kitchens, and most disease-carrying germs found on flies are on adults.17Annals of the Entomological Society of America. Flourishing in Filth: House Fly–Microbe Interactions Across Life History18PubMed Central. A systematic review of human pathogens carried by the housefly (Musca domestica L.) But killing only adults misses the eggs, maggots and pupae already on the way. Controlling every life stage works best, while sparing natural fly predators.19PubMed. House fly (Musca domestica): a review of control strategies for a challenging pest Treating maggots where they gather also uses far less chemical than spraying everywhere.20Acta Tropica. Successful yeast microencapsulation of fluralaner and its potential as a larvicide for vector control

At home, that means emptying and rinsing bins at least weekly in summer, inside the 7 to 10 day cycle. Seal food, clean pet waste and wipe spills promptly. A one-off deep clean helps less if the habit that caused the problem, such as leaving food out, continues.

Check for hidden breeding spots: under bins, behind fridges and in drains, plus compost and pet bedding. Forgotten fruit or a dead mouse can feed a whole batch.

If you find maggots, bag and remove the material, then pour boiling water over any leftovers. Clean the area so new eggs aren’t laid, and watch for adults over the next week from pupae you missed. Screens and lids prevent the problem in the first place. Outdoor compost should be covered or turned regularly.

Swatting alone doesn’t solve it, because each adult you kill is replaced by new ones emerging from breeding material you haven’t dealt with. Swatting or traps work best as a finishing touch once the source is gone.

Useful Flies and Their Maggots

Fly larvae can shrink manure, food scraps and market waste, leaving material useful as fertiliser.21PubMed. The use of fly larvae for organic waste treatment Manure processed by maggots breaks down quickly in soil and releases nutrients fast.22Canadian Journal of Soil Science. Decomposition and nutrient release pattern of animal manures biodegraded by fly larvae in Acrisols Black soldier fly larvae turn waste into protein for animal feed, replacing fishmeal and soy.23PubMed Central. Black Soldier Fly: A Keystone Species for the Future of Sustainable Waste Management and Nutritional Resource Development: A Review They can even process sewage sludge into biomass low in heavy metals.24Resources, Conservation and Recycling. Black Soldier Fly-based bioconversion of biosolids creates high-value products with low heavy metal concentrations Researchers are now working to engineer them to make enzymes and other products.25PubMed Central. Diverting organic waste from landfills via insect biomanufacturing using engineered black soldier flies (Hermetia illucens)

Black soldier flies differ from house flies in useful ways. Adult soldier flies don’t feed or visit kitchens, and they aren’t known as disease carriers. Home composters sometimes find their large maggots in bins. They are harmless and help the compost break down.