Skip to content
Pest Control Phoenix

By Pest Control Phoenix ·

How long do flies live, and where maggots actually come from

Floor drain in a commercial kitchen, where small flies breed

Two questions bring most people to a page like this: how long does a fly actually live, and where did the maggots in the bin come from. They have the same answer, because a maggot is a fly that has not finished yet. And the honest version is not the one you were told at school — a fly does not live for a day, it lives for weeks. The number that decides whether you have a problem is not how long one fly lives, but how quickly the next one arrives.

The one-day fly is a myth, and a stubborn one

Almost everyone has heard that a housefly lives for twenty-four hours. It is worth correcting first because it quietly shapes what people do next: if the fly in the kitchen will be dead by tomorrow anyway, there is no reason to look for where it came from.

An honest note on sourcing, because it changes how much weight to put on any single figure. The Extension fact sheets are precise about every stage of the life cycle and noticeably quieter about one number: how many days an adult lives. Published figures differ because the answer swings with temperature, humidity and food. So rather than borrow a number, here is what the fact sheets do state, with the arithmetic left visible. The same problem turns up with mosquito lifespan, where the published range runs from two weeks in the field to sixty-six days in a climate chamber.

University of New Hampshire Extension gives three figures for the common housefly. A female lays 75 to 150 eggs in a cluster. She lays 350 to 900 eggs across her lifetime. And she does not begin laying until four to twelve days after she emerges from the pupal case.

Put those together. Reaching that lifetime total takes between three and nine separate clutches, and she spends the first week or so of adult life not laying at all. An insect cannot do that in a day; it needs weeks. Derived from the figures rather than asserted — and more useful than a borrowed number, because it also tells you what the adult is doing with the time.

Where maggots come from, with a timestamp on it

This is what people ask after lifting a bin lid onto something that was not there yesterday. The answer is precise enough to be reassuring.

Maggots are fly larvae — University of Arizona Cooperative Extension uses both words for the same animal. A female lays her eggs in moist organic matter, and Extension lists the usual sites plainly: rotting food residues in trash cans or drains, compost, and animal faeces. Then, according to the New Hampshire sheet, the maggots emerge eight to twenty hours after the eggs are laid.

Eight to twenty hours is the whole mystery. Maggots that appeared overnight did appear overnight, and nothing generated them from the rubbish itself. A fly stood on that material yesterday, laid a cluster of seventy-five to a hundred and fifty eggs too small to notice, and left. What you found this morning is the result, on schedule.

Which means the useful question is never how to kill the maggots, but what was open, wet or uncovered yesterday.

What a maggot actually is, and why it crawls away from the food

New Hampshire Extension describes the housefly larva as creamy white and legless, between about a quarter and three-eighths of an inch long when grown, with no distinct head capsule — which is the detail that separates a maggot from almost every other small larva you might turn up. It has no recognisable head at all.

It feeds for a short, intense period — three developmental stages in three to seven days. Then it does the thing that confuses people most: it leaves. A mature maggot moves out of the wet material and towards a drier spot at the edge of the breeding area to pupate.

That is why they turn up crawling up the inside of a bin, across a patio or along a skirting board, away from whatever produced them — and why it reads as an infestation on the move. It is the opposite: larvae that have finished feeding, looking for somewhere dry to change. They are leaving the food, not spreading from it.

The stage nobody ever sees

Between the maggot and the fly there is a pupa, and it is the reason a fly problem can seem to pause and then restart for no reason.

The puparium is barrel-shaped and small, and its colour runs from yellowish-red to black depending on age. It does not move, feed, or look like an insect. In a bin, in gravel, in the dry crumb at the edge of a compost heap, it reads as a seed or a piece of grit.

The timing is what matters, because this is where temperature takes over completely. New Hampshire gives adults emerging from the pupa in three days to four weeks, depending on temperature and humidity. That is not a vague range — it is the same insect behaving like two different problems. Three days is a Phoenix July.

Three flies, three completely different jobs for you

Arizona Extension’s household guide covers three, and the separation matters before anybody buys anything, because what works on one does nothing for another.

Common housefly

About a quarter of an inch, with four dark stripes running down the thorax — the single most reliable field mark, and both Arizona and Utah State Extension lead with it. Larvae feed in decaying moist organic material, including faecal matter and rubbish.

Moth fly or drain fly

About an eighth of an inch, small and fuzzy, genuinely moth-like in outline. Larvae develop in wet or damp places holding rich organic decay: floor drains, sink overflows, buckets, anything standing with water and organic matter open to the air.

Fruit fly

About an eighth of an inch, light tan to orange with bright red eyes. Drawn to ripening and rotting fruit, to damp organic matter, and to sugars — juice and soda residue included. Arizona Extension puts the Drosophila cycle at roughly two weeks at 25 °C.

Telling them apart fast

Size does most of it. A quarter-inch grey fly on the window is a housefly. An eighth-inch fuzzy one near a drain is a drain fly. An eighth-inch one hovering over the fruit bowl with red eyes is a fruit fly. Where it sits tells you where it bred.

Each one is breeding somewhere specific, and that is the whole job

Once the species is settled the breeding site follows, and the breeding site is the only thing worth acting on.

Houseflies want decaying moist organic material: indoors, usually an unrinsed bin, food residue under a unit, or pet waste that has been missed. Drain flies want organic film sitting in water with air above it, which is why they appear at floor drains, sink overflows and forgotten buckets. The same damp produces the pale specks people call white mites, which are usually springtails rather than mites at all. Fruit flies want sugar and fermentation — fruit going over in a bowl, unrinsed bottles in the recycling, the sticky ring under a bin liner.

Two of those behave differently in a commercial kitchen than in a house: the drain side is on our restaurant pest control page, the dumpster and delivery-door side on commercial pest control. On a property with animals the arithmetic changes again, and the muck-out cycle beats any treatment — set out on our Queen Creek page.

One more case, and the one people least expect: a sudden cluster of flies at a single ceiling light, in one room, with nothing obvious in the kitchen, often marks a dead animal in a void rather than a hygiene problem. We cover that on the rat poison page, because it is usually how it starts.

Why killing the adults is the least productive thing you can do

This is where the numbers from the first section stop being trivia and start mattering.

A female lays seventy-five to a hundred and fifty eggs at a time, and three hundred and fifty to nine hundred over her life. By the time a fly is slow enough to be swatted on a windowsill, it is unlikely to be a young one. The clutches are already laid — somewhere you have not looked, hatching eight to twenty hours later.

So the adult is the visible stage, the shortest-lived, and the one most completely replaced. Every fly you kill has probably already done the only thing that mattered. Swatters and sticky papers have a place — Arizona Extension lists both — but they are for the flies in the room, not for the problem.

In Phoenix, heat is the variable that changes everything

Arizona Extension notes that flies are especially active through the warm summer months, which reads as obvious until you attach it to the pupal figures.

Take the stages on their fast settings: eggs hatching in eight to twenty hours, three larval stages inside three to seven days, an adult out of the pupa in as little as three. Add the four to twelve days before a new female lays, and the population replaces itself about as fast as you notice it arrived. In a Phoenix summer the slow end of those ranges simply does not apply.

That is the practical difference between a fly problem here and the same problem somewhere temperate. Not that there are more flies — that the gap between a bin going unrinsed and a kitchen full of them is measured in days rather than weeks, and it closes fastest in exactly the months when the bin is worst.

Maggots are decomposers, and that is not a consolation prize

Arizona Extension describes fly larvae as necessary decomposers, and the phrase is doing real work rather than softening the subject.

It tells you what maggots are for, and therefore what they are responding to. They are not attacking the bin; they are processing what is in it. A maggot problem is always downstream of a material problem, and removing the material ends it in a way no product applied to the maggots will. Find the wet organic thing, and the rest stops.

It is also why flies are a health question and not only a nuisance. Extension is direct that some species act as disease-carrying vectors able to contaminate food, and the New Hampshire sheet names Salmonella and E. coli among what a housefly transmits. An insect that feeds in faecal matter and then lands on a worktop is a genuine hygiene issue.

What actually ends it: exclusion and sanitation, in that order

Arizona Extension puts prevention at the front, and two of its specifics are precise enough to act on this week.

The first is a mesh specification, which almost nobody quotes. Extension states that insect exclusion mesh with 22 openings per linear inch and openings no greater than 0.038 of an inch — 0.965 mm — keeps most flies out. That is a number you can hold a screen against, and torn or coarse screening is the commonest reason a house with its doors shut still fills up.

The second is distance. Utah State Extension puts dumpsters at least fifty feet from the building; Arizona’s version is to keep them well away from entrances. Same principle, and the cheapest change available on a commercial site.

The rest of Extension’s list is unglamorous and works: lids closed on bins and compost, prepared food covered and ripening fruit bagged, cans and bottles rinsed before recycling, spills cleaned at the time, drains kept free of organic film, indoor leaks fixed, pet food sealed, pet waste picked up on a schedule. One detail is easy to miss — store mops head up so they dry, because a wet mop head left down is exactly the damp organic material a fly is looking for.

What a treatment can and cannot do here

Flies are one of the few pests a householder can usually finish without us, and saying so costs us nothing.

If the breeding site is inside your own building — a bin, a drain, fruit, a leak — finding and clearing it is the treatment, and that is work you can do today. We earn our place when the source is not findable or not yours: a drain run still producing after a clean, a dead animal in a wall void, a dumpster corral shared with the unit next door, or a site where the pressure is seasonal and relentless rather than one mistake. Where treatment is warranted and there are pets or children about, how it is applied matters as much as what, and our pet-safe pest control page covers that. Still unsure what you have? Our pest identification guide runs through the rest.

Common questions about flies and maggots

How long do flies actually live?

Weeks, not the single day of the myth. Extension figures show a female does not start laying until four to twelve days after emerging, then produces 350 to 900 eggs in clusters of 75 to 150 — several separate clutches. Warmth, humidity and food shift the total.

Where do maggots come from if the bin was clean yesterday?

From eggs laid on it within the last day. New Hampshire Extension puts hatching at eight to twenty hours after laying, and a cluster of 75 to 150 eggs is small enough to miss. Nothing appears from the rubbish itself — a fly landed on it.

How quickly does a maggot turn into a fly?

Three larval stages in three to seven days, then a pupa releasing an adult in three days to four weeks depending on temperature and humidity. In a Phoenix summer you are at the fast end of both.

Why are maggots crawling away from the bin?

Because they have finished feeding. A mature larva leaves the wet material for a drier spot at the edge of it to pupate. It looks like spreading; it is the opposite, and it means that batch is done eating.

How do I tell a drain fly from a fruit fly?

Both are about an eighth of an inch. The drain fly is fuzzy and moth-like and sits near drains; the fruit fly is light tan to orange with bright red eyes and hovers around fruit and anything sugary. They breed in different places, so the distinction decides what you clean.

Does spraying get rid of flies?

It removes the flies in the room, which is worth something, but adults are the shortest-lived and most replaceable stage and have usually laid already. Extension lists swatters and sticky paper traps for the ones indoors, with prevention doing the real work.

What size screen keeps flies out?

Arizona Extension specifies insect exclusion mesh with 22 openings per linear inch and openings no greater than 0.038 of an inch (0.965 mm). Check existing screens for tears while you are at it — that is the usual failure.

Are flies actually a health risk or just annoying?

Both. Extension describes some species as disease-carrying vectors able to contaminate food, and New Hampshire Extension names Salmonella and E. coli among what a housefly transmits. Larvae in faecal matter and adults on worktops is a real hygiene route.

Ready to seal out the desert pests?

Book your free inspection today. Serving Phoenix and the entire Valley.

Free Quote Call Now