How long do flies live?

How long do flies live?

Published February 7, 2023 • Updated November 14, 2025
Reviewed by Julie Miller, BA in Language Arts, Editorial Lead, Dr. Killigan’s

TL;DR: Most houseflies live only 15 to 25 days, but they reproduce quickly, which is why fly problems can feel endless. This guide covers their full life cycle from egg to adult, where they lay eggs, what attracts them into your home and how to get rid of flies using safe, non-toxic methods like smart trapping and better sanitation.

Flies can be a constant annoyance, buzzing around your home, landing on your food and refusing to disappear. They seem to show up out of nowhere, then circle the room as if they own it.

Pocket fact: Houseflies belong to the order Diptera and are considered “filth flies,” meaning they breed in decaying organic matter and can carry bacteria from one surface to another.

Fly close-up

What are houseflies? 

Houseflies are small, dark gray insects measuring 5–7 mm long, with two overlapping wings and large compound eyes. They have a soft, sponge-like mouthpart designed to soak up liquids —which is why they’re drawn to food waste, spills and moisture.

If “filth flies” didn’t bother you, picturing that spongy straw-like mouth dabbing and sucking across surfaces probably will.

Despite their reputation, houseflies do play ecological roles such as breaking down organic material. But inside your home, they’re unwelcome guests.

Where do flies come from? 

Flies don’t typically travel far. While some can journey several miles, most stay within one to two miles of where they hatched.

They’re attracted to:

  • Rotting or moist organic food 
  • Food waste
  • Manure
  • Decaying vegetation 
  • Compost 
  • Warm indoor air escaping from homes

If your trash lid doesn’t seal, if you keep a garden with manure, if you have torn screens or a door left open “for just a minute,” you’ve provided an entry point.

For a deeper look at what draws flies into homes and which colors attract them, read our guide on what attracts flies and which colors they love.

Pocket fact: Flies prefer temperatures around 88°F, which is why warm homes tend to bring them inside.

How long do flies live?

Lifecycle of a fly

In typical conditions, an adult housefly survives only a few weeks, with factors like temperature, humidity and access to food affecting how long it lives.

  • In temperate regions: 10-12 generations per year
  • In subtropical or tropical regions: 20+ generations per year 

Temperate regions have milder seasons, while tropical and subtropical regions stay warm and humid most of the year. This means that in warm climates—or warm homes—flies reproduce continuously, which is why indoor infestations can feel never-ending.

The life cycle of a housefly

A female housefly lays up to 500 eggs over 3–4 days, often near other females doing the same. The life cycle moves fast:

  1. Eggs hatch in under 24 hours
  2. Larvae ( maggots) feed and grow for 1-2 weeks
  3. Pupae develop inside a hardened case for a few days
  4. Adults emerge, feed, mate and repeat the cycle 

Pocket fact: Houseflies can hibernate during the winter in either their larvae or pupal stage.

Where do flies lay eggs?

Flies need moisture and organic material. They lay eggs in:

Flies egg on meatFlies egg on meat
  • Animal feces
  • Carrion
  • Human excrement 
  • Grass clippings or other garden waste
  • Fermenting vegetable matter
  • Kitchen waste
  • Partially incinerated garbage
  • Compost piles 

In homes, flies rarely get the chance to lay eggs—unless in your wall void, crawlspace or attic, where an animal (like a dead rodent or bird) entered and is decaying. 

Pocket fact: Flies can lay eggs on exposed food, but you wouldn’t see the eggs—only the maggots a few days later.

How do I get rid of flies in my house?

Here’s the part that matters most—controlling flies after they’ve entered and preventing them from coming back.

If you prefer natural methods, our article on four natural ways to deter flies offers additional prevention tips that pair well with the steps below.

1. Eliminate what attracts them

2. Use an effective fly trap

Dr killigans the fly inn

When you want a hands-off solution,  The Fly Inn Flying Insect Trap is our top recommendation. Designed for windows and glass doors, it quietly catches houseflies, gnats and other light-loving insects, then hides them behind its inner walls so you’re not staring at a strip of stuck bugs. Its proprietary visual attractant and non-toxic sticky inserts work with the light already streaming into your home, so once it’s in place, the trap can keep working while you get back to your day. 

How to use The Fly Inn

  • Choose a "busy" window or glass door where flies (and other insects) already tend to hover. 
  • Clean the glass, lightly dampen the suction cups, then press the trap along the bottom edge of the window so insects are likely to fly straight into the opening.
  • Replace the insert when full—there are no fumes or sprays to worry about, just swap and keep going.

Why it works:

Flies naturally gravitate toward windows. The Fly Inn turns their favorite landing spot into the last place they’ll ever land.

3. Reduce breeding sites outdoors

  • Keep garbage bins tightly closed
  • Move bins away from doors
  • Maintain compost properly 
  • Clean animal waste regularly
  • Avoid leaving pet food outdoors

Together, these steps break the fly lifecycle and stop future waves of adults from entering.

Julie standing outside with red shirt and blurred background

Content Strategist & Eco-Living Advocate

Julie Miller

Julie is Dr. Killigan’s in-house writer and content strategist with a passion for science-backed, natural living. She holds a degree in Language Arts and brings over a decade of writing experience to the team. At Dr. Killigan’s, she works closely with the product and customer experience teams to ensure every article delivers accurate, helpful and trustworthy information. When she’s not writing, Julie is tending her vast array of indoor plants, crafting homemade moisturizers or fermenting carrots with her children.

FAQs

More Questions?
Contact Us

Get into the nitty-gritty on insects & arachnids

View all
biting-midge-problem-insect

Biting midges (no-see-ums): How to identify, treat and prevent midge bites on humans and animals

 Discover the outsized impact of biting midges on humans and animals with Dr. Killigan's comprehensive guide to these tiny tormentors.

Woman scrathing her arms on the bed

How to get rid of dust mites: A simple, science-based guide

Say goodbye to dust mites with Dr. Killigan’s plant-powered solutions. Learn how to reduce allergens and create a healthier, happier home.

The European corn borer

How do insects survive winter? Cold-blooded adaptations, diapause & climate change

Discover how particular insects push survival boundaries with cold-weather adaptations, and how climate change puts them at risk.

Read all about our unique ingredients

View all
laboratory chemicals

The chemicals you didn’t know you were using (and how to avoid them)

Many pest control products contain hidden chemicals that put your home and the environment at risk. Learn how to spot toxic ingredients, avoid greenwashing, and choose safer solutions.

Cute dog and cat together

The hidden toxins in your pet's food

Pet food can contain harmful ingredients for your four-legged friends. Find out what these toxins are, the damage they can do to your pets, and what Dr. Killigan has to say about it.

Plant-powered insect control: The benefits of peppermint oil

Plant-powered insect control: The benefits of peppermint oil

Peppermint oil has a multitude of benefits and uses, including being an incredible natural and safe pest control option. Read to find out how Dr. Killigan uses peppermint oil.