Skip to content
Grow In Backyard
Composting

Are Maggots Good for Compost? Yes — They Speed It Up

Soldier fly larvae break down food waste faster than anything else in the heap. Maggots signal a wet, nitrogen-heavy pile rather than a problem.

A heap of mixed vegetable peelings and kitchen waste in a compost bin
Photo: Couleur, Pixabay Content License, via Pixabay
On this page

Yes. The big pale ones are usually black soldier fly larvae — among the fastest decomposers there are, faster than worms. Harmless, and a sign the heap is working. What they do tell you is that it is wet and nitrogen-heavy.

Which maggots have you got

This table answers the question on its own
Black soldier fly larvaeHouse fly maggots
Size and lookLarge, flattened, grey-brown, toughSmall, pale, soft
MovementSlowFast
Adult behaviourDoes not bite, feed or enter housesLands on food, carries pathogens
What it meansA well-fed, working heapExposed meat or cooked food
ActionLeave them; dry the heap outBury or remove the food source

What their presence is telling you

Too much wet green, not enough dry brown. Food scraps, grass clippings and soft green waste are nitrogen-rich and hold water, so a heap built mostly from them stays damp, goes anaerobic in patches and attracts egg-laying flies.

That is the same diagnosis as a smelly heap, and it has the same fix.

  1. Add plenty of dry browns — shredded cardboard, dry leaves, straw, wood shavings.
  2. Turn it thoroughly, bringing the wet centre out to the air.
  3. Bury fresh food scraps under at least 15 cm of other material.
  4. Cover new additions immediately; a lid helps.

The population falls away as the pile dries and heats — though you do not need to eliminate them. They are useful while they are there.

Meat, fish and dairy are the real cause of a fly problem

They attract house flies and rodents, smell strongly, and rarely reach a temperature a domestic heap can manage safely. A closed hot composter or bokashi handles them. An open heap does not.

Will they end up in the finished compost?

Briefly, and it does not matter. Once the food source is gone and the material has stabilised there is nothing left to eat — any remaining larvae pupate, get eaten by birds, or die off, and none of them harm plants.

If you would rather not see them

Leave the finished heap to mature for a few weeks with no new additions. It clears itself out.

Common questions

Are maggots good for compost?

Yes, and the large pale ones most people find are usually black soldier fly larvae, which are among the fastest decomposers available — they process food waste quicker than worms and leave a rich residue behind. They are not harmful, they do not spread disease the way house fly larvae can, and a heap containing them is working rather than failing. What their presence does tell you is that the pile is wet and nitrogen-heavy, which is worth correcting even though the maggots themselves are useful.

What do maggots in a compost bin mean?

Too much wet green material and not enough dry brown. Food scraps, grass clippings and soft green waste are high in nitrogen and hold moisture, and a heap built mostly from them stays damp, goes anaerobic in places and attracts egg-laying flies. The fix is the same as the fix for a smelly heap — add plenty of dry carbon material and turn it, which restores airflow and makes the pile much less attractive to flies.

How do I get rid of maggots in compost?

Mix in a generous quantity of dry brown material such as shredded cardboard, dry leaves, straw or wood shavings, turn the heap thoroughly to bring the wet centre to the outside, and bury any exposed food scraps under at least fifteen centimetres of other material. A lid helps, as does covering fresh additions immediately. The population falls away once the pile dries and heats, though you do not need to eliminate them — they are doing useful work while they are there.

Are soldier fly larvae different from house fly maggots?

Yes, and the distinction matters. Soldier fly larvae are large, flattened, grey-brown and tough-skinned, move slowly, and the adults do not bite, feed or enter houses. House fly maggots are smaller, pale, soft and fast-moving, and the adults do land on food and can transfer pathogens. A heap full of soldier fly larvae is a well-fed heap; one full of house fly maggots usually means exposed meat or food waste that should be buried or removed.

Should I put meat and dairy in the compost?

Not in an ordinary garden heap. Meat, fish, dairy and cooked food attract house flies, rodents and other scavengers, smell strongly as they break down, and rarely reach a temperature high enough to be dealt with safely in a domestic pile. They are the main reason a bin develops a genuine fly problem rather than a benign soldier fly population. A closed hot composter or a bokashi system handles them; an open heap does not.

Will maggots survive in finished compost?

Not for long, because once the food source is gone and the material has stabilised there is nothing left for them to eat. Any larvae still present when you spread finished compost will either pupate, be eaten by birds, or simply die off, and none of them harm plants. If you would rather not see them, leaving the finished heap to mature for a few weeks without new additions clears them out on its own.

Backyard Weekly

Know what to plant, week by week

Join the weekly email for seasonal jobs, fixes for what is going wrong, and gear worth buying.

Not ready to subscribe? The planting calendar is free and needs no email.

By subscribing you agree to our privacy policy. Grow In Backyard will never sell your address.