Ants Bed Bugs Cockroaches Fleas Flies Lice Mosquitoes Rodents Silverfish Spiders Termites Wasps

Maggots: What They Are, Where They Come From & How to Get Rid of Them

Published: 2024-09-04 ยท Updated: 2026-05-16

Sarah Mitchell, BCE, ACE

Certified Pest Management Professional

Maggots: The Larval Stage of Flies

Sign or symptom Likely cause Risk level What to do next
Fresh activity related to Maggots flies are active nearby or recently passed through the area. High if signs repeat or appear in multiple rooms. Inspect the surrounding cracks, seams, food sources, and travel paths.
Old or isolated evidence A past problem, accidental introduction, or inactive nesting site. Moderate until you confirm whether activity is current. Clean and mark the area, then recheck in 24 to 48 hours.
Multiple signs together A developing infestation rather than a one-off sighting. High because populations can spread before they are obvious. Start control steps immediately and consider professional inspection.

Few household discoveries are as unpleasant as finding maggots. These soft, wriggling larvae appear seemingly overnight in garbage cans, drains, and anywhere organic material has been left to decompose. While the sight is nauseating, understanding what maggots are and how they got there helps you address the problem quickly and prevent it from recurring.

What Are Maggots?

Maggots are the larval stage of flies. They are the second stage of the fly life cycle, hatching from eggs laid by adult flies on or near suitable food sources. The term "maggot" is most commonly applied to the larvae of house flies, blow flies, and flesh flies, though all fly species have a larval stage.

Physical Characteristics

  • Size: 3 to 12 millimeters, depending on species and maturity
  • Color: White to cream colored, sometimes with a slightly yellowish or grayish tint
  • Shape: Tapered, with a pointed head end and a blunt rear end
  • Body: Soft, segmented, and legless
  • Movement: Wriggling, crawling motion

Maggots are often confused with other insect larvae, but their lack of legs and characteristic pointed shape distinguish them from beetle grubs, caterpillars, and other larvae.

Where Do Maggots Come From?

Maggots do not appear spontaneously. They hatch from eggs laid by adult flies:

  1. An adult female fly detects decomposing organic material using her highly sensitive olfactory system
  2. She lands on the material and lays a batch of eggs
  3. Eggs hatch within hours to a couple of days, depending on species and temperature
  4. The emerging maggots immediately begin feeding on the surrounding material

Common Locations

Garbage cans: The most common site for maggot discovery. Decaying food waste in warm garbage cans provides perfect conditions.

Under and behind appliances: Forgotten food spills can attract egg-laying flies.

Drains: Drain flies lay eggs in drain biofilm, and the resulting larvae (while technically drain fly larvae rather than classic maggots) are often called maggots.

Pet areas: Pet food left out, pet waste, and litter boxes attract egg-laying flies.

Compost bins: Outdoor compost that is not properly managed can be overrun with maggots.

On or near dead animals: Blow flies are typically the first to colonize animal carcasses. Finding maggots indoors with no obvious food source often indicates a dead animal in a wall void or attic.

How to Get Rid of Maggots

Step 1: Remove the Food Source

This is the most critical step. Maggots cannot survive without food, so removing the organic material they are feeding on eliminates the problem at its core.

  • Bag and dispose of any infested food waste immediately
  • Clean the area thoroughly with hot, soapy water
  • Disinfect with a household cleaner

Step 2: Kill Remaining Maggots

After removing the food source, address any remaining maggots:

Boiling water: Pour boiling water directly on visible maggots. This kills them instantly.

Salt or diatomaceous earth: Sprinkling either substance on maggots dehydrates them. This works but is slower than boiling water.

Vinegar solution: A mixture of equal parts water and white vinegar kills maggots on contact and helps clean the area.

Insecticidal treatments: Permethrin-based fly sprays can kill maggots, but this is rarely necessary if the food source has been removed.

Step 3: Clean and Sanitize

After removing maggots and their food source:

  1. Scrub the area with hot water and dish soap
  2. Rinse with a bleach solution (one tablespoon per gallon of water)
  3. Allow the area to dry completely
  4. For garbage cans, wash inside and out, dry in sunlight, and use a new liner

Step 4: Prevent Reinfestation

  • Seal garbage bags tightly and use bins with tight-fitting lids
  • Take garbage out regularly, especially in warm weather
  • Clean garbage cans monthly
  • Store food in sealed containers
  • Clean kitchen drains weekly
  • Install fly screens on windows and doors
  • Use fly traps to catch adult flies before they can lay eggs

Maggots in Drains

Finding small, worm-like larvae in sink or shower drains is usually a sign of drain fly larvae rather than traditional maggots. These larvae feed on the organic biofilm inside pipes. To eliminate them:

  1. Scrub the drain with a stiff brush
  2. Flush with boiling water
  3. Apply an enzymatic drain cleaner
  4. See our guide on how to get rid of drain flies for detailed instructions

Are Maggots Dangerous?

Maggots themselves are not typically dangerous to humans, but they indicate conditions that pose health risks:

  • The organic material they feed on may harbor dangerous bacteria
  • Adult flies that laid the eggs are disease carriers
  • In rare cases, certain species can cause myiasis (infestation of living tissue) in humans and animals, particularly in open wounds
  • The presence of maggots in a food environment is a serious food safety violation

Maggots on Pets

If you find maggots on your dog or other pet, this is a medical emergency called myiasis. Seek veterinary care immediately. Blow flies and flesh flies can lay eggs in matted fur, wounds, or soiled areas on animals, and the resulting larvae can burrow into tissue.

For comprehensive fly management, visit our complete guide to flies.

Professional Insight

Finding maggots is invariably an alarming experience for homeowners, but in my 15 years of IPM practice, I have learned that the solution is almost always straightforward: remove the food source, clean the area, and improve sanitation practices. The most critical piece of advice I give clients is to address the discovery immediately rather than waiting. Maggots develop into pupae within days, and pupae develop into egg-laying adults within another week. A same-day response prevents a maggot discovery from turning into a full-blown fly infestation.

Sources and References

How to Identify

Maggots are legless, soft-bodied fly larvae, cream to pale yellow-white in color, with a pointed head end and a blunt rear end. Size varies by species and stage: house fly maggots reach 10--14 mm at full size, fruit fly larvae are far smaller at 3--4 mm, and blow fly maggots are 12--18 mm and robust. All move in a crawling, wriggling motion and are found within or immediately adjacent to their food source.

Distinguish maggots from other insect larvae by their complete absence of legs, their soft segmented body without a distinct head capsule, and their location in decomposing organic material rather than in soil or living plant tissue. Beetle grubs are C-shaped with a distinct brown head and short legs. Caterpillars have six true legs and additional prolegs, and feed on plant tissue.

Maggot color can indicate development stage: pure white or cream indicates active feeding in fresh material; darker or gray maggots are approaching pupation and will soon migrate to nearby dry material. Finding multiple size classes together indicates continuous egg-laying rather than a single batch, meaning adult flies have repeated access to the source.

Main Causes

Indoor flies activity is driven by accessible breeding material and warmth. House flies and blow flies breed in garbage, pet waste, compost, and dead animals; fruit flies breed in overripe produce, drain biofilm, fermenting liquids, and unrinsed recycling; drain flies breed in the gelatinous film inside infrequently used drains; phorid flies breed in broken sewer lines and decomposing material under slabs. Adults find their way inside through torn screens, gaps around doors, vents, and any opening to the outside. Warm weather accelerates the entire life cycle, and a sustained population always points to an unaddressed source either inside the structure or close enough that adults keep arriving in volume.

Risk and Severity

Flies are mechanical disease vectors, picking up pathogens from feces, decomposing material, and garbage on their bodies and depositing them on food and surfaces. House flies in particular regurgitate digestive fluids when feeding, contaminating any surface they land on. Documented transmissible pathogens include Salmonella, E. coli, Shigella, and Campylobacter. Blow flies in homes signal a dead animal in or near the structure โ€” a secondary health concern from decomposition gases and additional pest activity around the carcass. Biting flies (horse flies, stable flies, black flies) deliver painful bites and can trigger allergic reactions; in some regions they transmit parasites or bacterial infections. Children, elderly, and immunocompromised individuals face elevated risk.

Solutions and Actions

Effective fly control requires locating and eliminating the breeding source โ€” adult-only treatments produce only temporary relief. For house flies: remove and seal garbage, clean pet waste daily, manage compost properly, and check for dead animals in wall voids or attics if blow flies are present. For fruit flies: discard overripe produce, clean drains with enzymatic cleaner weekly, rinse recycling, and empty kitchen compost containers daily. For drain flies: brush drain walls thoroughly and treat with enzymatic drain cleaner weekly for at least three weeks. For phorid flies: investigate for broken sewer lines or moisture intrusion under slabs. Adult control through sticky cards, UV light traps, and targeted residual sprays supplements but never substitutes for source elimination.

Prevention

Prevention combines source elimination with exclusion. Keep all kitchen garbage in sealed bins and empty daily during warm months. Refrigerate ripening produce, rinse all recyclables before storing, and run garbage disposals briefly each day. Clean drains weekly with enzymatic drain cleaner during fly season, and brush drain walls with a flexible drain brush quarterly to remove biofilm. Remove pet waste from the yard daily. Manage compost with a proper carbon-to-nitrogen ratio and bury food scraps under brown material. Install and maintain tight-fitting window and door screens, repair tears promptly, and add door sweeps to exterior doors. Inspect the structure annually for dead-animal indicators (sudden blow fly activity) and resolve any wildlife exclusion issues that could lead to carcasses in wall voids.

Frequently Asked Questions

How do maggots appear so quickly in garbage cans?

Maggots appear quickly because adult flies can detect and reach decomposing food remarkably fast, and their eggs hatch within hours in warm conditions. A house fly can lay 75 to 150 eggs per batch, and those eggs can hatch in as little as 8 hours when temperatures are warm. Even a briefly opened garbage can on a summer day provides enough time for a female fly to deposit eggs that will produce visible maggots by the next morning.

Can maggots hurt you?

Maggots themselves are not directly dangerous to healthy humans. They do not bite, sting, or transmit diseases through contact. However, their presence indicates conditions that pose health risks: the decaying organic matter they feed on harbors dangerous bacteria, and the adult flies that produced them are disease carriers. In rare medical cases, certain fly species can cause myiasis, where maggots develop in wounds or body cavities.

What is the fastest way to kill maggots?

Pouring boiling water directly on visible maggots kills them instantly and is the fastest and most effective method. After killing the maggots, remove the organic material they were feeding on, scrub the area with hot soapy water, and disinfect with a diluted bleach solution. Salt, diatomaceous earth, and vinegar solutions also kill maggots but work more slowly through dehydration.

Why should the surface be dried after removing maggots?

Use this clue as a prompt to recheck the source, not as a standalone diagnosis. For Maggots, compare where the flies appear, what food or moisture is nearby, and whether activity repeats after cleaning. If the same pattern returns within a few days, focus on the breeding site or entry route before adding more sprays, traps, or repellents.

Sources & Further Reading