Most common flies live for only a few weeks: a typical housefly lives around 15–30 days, while some species (like fruit flies or cluster flies) can stretch to several weeks or a few months in ideal conditions.

Quick Scoop: How long is a fly’s lifespan?

For everyday “annoying kitchen fly” purposes, you can think of their lifespan like this:

  • Housefly: about 15–30 days as an adult.
  • Fruit fly: roughly 40–50 days in warm, indoor conditions.
  • Drain fly/gnat: often around 7–14 days as adults.
  • Cluster fly: can live 1–3 months, often resting dormant in walls/attics.

Most of the time, when you notice a fly, you’re seeing only the final “adult” stage of a life cycle that started about a week or two earlier as an egg and larva somewhere in food waste, drains, or soil.

Mini breakdown: their life story in fast‑forward

A fly’s life is short, but intense:

  1. Eggs
    • Laid on moist organic material like garbage, manure, or rotting fruit.
 * Hatch in about 12–24 hours for houseflies.
  1. Larva (maggot)
    • Feeds for 4–7 days, growing quickly.
  1. Pupa
    • Transforms over about 4–6 days into an adult fly.
  1. Adult
    • Lives about 2–4 weeks for a housefly, up to 30 days or a bit more in good conditions.

Warmth, food, and moisture can stretch that lifespan toward the higher end; lack of food can kill an adult fly in just 2–3 days.

Why it feels like flies “never die”

Even though each fly is short‑lived, females lay a lot of eggs—houseflies can lay several batches, adding up to hundreds of offspring in their 2–4 week adult life.

Because the whole cycle can complete in as little as 7–10 days in warm weather, populations can explode, which is why you keep seeing flies even though individual ones don’t live long.

TL;DR:
A typical housefly lives about 2–4 weeks as an adult (15–30 days), while some flies like fruit flies or cluster flies can live longer—up to several weeks or a few months in ideal conditions.

Information gathered from public forums or data available on the internet and portrayed here.