How Long Do Fruit Flies Live Indoors? Life Cycle Facts

The common fruit fly lives roughly 40 to 50 days indoors at typical room temperature (around 77°F or 25°C). That’s the adult lifespan alone. Factor in the egg, larval, and pupal stages, and the full life cycle from egg to death spans about two months. But temperature makes a big difference, and the real problem isn’t any single fly’s lifespan. It’s how fast they reproduce.

Adult Lifespan by Temperature

Indoor fruit flies belong to the species Drosophila melanogaster, sometimes called vinegar flies or pomace flies. They’re the tiny brown flies with red eyes, about 2 to 3 millimeters long, that hover around your fruit bowl and kitchen drain. Their lifespan is tightly linked to the temperature of your home.

At 77°F (25°C), a standard thermostat setting, adult fruit flies live about 50 to 60 days. Keep your home cooler, around 68°F (20°C), and they can survive significantly longer, averaging 80 to 90 days. At warmer temperatures near 84°F (29°C), their metabolism runs faster and they burn out in roughly 30 days. Males and females have similar lifespans at any given temperature, though females at cooler temperatures tend to live slightly longer.

These numbers come from controlled lab conditions with steady food access. In a real kitchen, fruit flies may die sooner from dehydration, lack of food, or getting trapped. But they can also find steady food sources (a forgotten banana, a sticky recycling bin) that keep them well-fed for their full natural lifespan.

The Full Life Cycle Takes About a Week

A fruit fly’s life doesn’t start as the buzzing adult you notice. Before that, it passes through three earlier stages: egg, larva, and pupa. At room temperature (77°F), the entire development from freshly laid egg to flying adult takes about 9 days. That’s remarkably fast. At cooler indoor temperatures around 72°F, development stretches to about 11 days. In a warm kitchen that stays near 84°F, it can happen in as little as 7 days.

Eggs hatch into tiny larvae within 2 to 4 days. The larvae feed on the fermenting fruit or organic material where they were laid, then form a pupa (similar to a cocoon). A few days later, a new adult emerges and is ready to mate within about 8 hours. This speed is what makes fruit fly populations explode so quickly indoors.

Why One Fly Becomes Hundreds

A single female fruit fly can lay upward of 400 eggs in her lifetime. She deposits them on or near fermenting fruit, moist drains, damp mops, or any surface with decaying organic material. Because development from egg to adult takes under two weeks, a single piece of rotting fruit can produce multiple generations before you’ve even thought to throw it away.

Here’s the math that matters: one female arrives in your kitchen and lays 400 eggs. Nine days later, roughly 200 new females emerge and each begins laying her own 400 eggs. Within a month, you can go from a single fly to thousands. This exponential growth is why fruit fly problems seem to appear overnight and feel impossible to control once they’re established.

How Long an Infestation Lasts

Left completely alone with no food source, an indoor fruit fly population would die off within about two months, since the last adults would reach the end of their natural lifespan. But that scenario almost never happens. As long as there’s any fermenting organic material available (a damp sponge, residue in a drain, a splash of juice under the fridge), the flies keep breeding and the population sustains itself indefinitely.

To actually break the cycle, you need to eliminate breeding sites and trap the remaining adults simultaneously. Remove or refrigerate ripe fruit, clean drains, wipe down counters, and empty trash and recycling bins frequently. Simple traps, like a small dish of apple cider vinegar covered with plastic wrap that has a few small holes poked in it, will catch adults that are already flying around.

Expect the process to take one to two weeks of consistent effort. You’re waiting for every egg and larva already laid to either develop into an adult that gets trapped or fail to find a food source. Since the development cycle is about 9 days at room temperature, you need at least that long of strict sanitation before you can be confident no new adults are emerging. A single missed breeding spot, like a piece of fruit that rolled behind a container, can restart the whole process.

Seasonal Patterns Indoors

Fruit flies are most noticeable in late summer and early fall, when warm temperatures and abundant ripe produce create ideal conditions. But indoors, they can thrive year-round. Your heated home in winter provides the same temperatures as a summer kitchen, and any fruit or vegetable left on the counter is a potential breeding site regardless of the season.

Fruit flies often enter homes by hitchhiking on produce from the grocery store or farmers market. Eggs are too small to see with the naked eye, so a bunch of bananas or a bag of tomatoes can carry dozens of eggs already laid on the skin. Once those eggs hatch indoors, the population establishes itself quickly. This is why infestations sometimes seem to start from nowhere, even in a clean kitchen.