Skip to content
 
Flies in Compost: Which Kind and What It Means
Manageable

Flies in my compost

Fruit flies mean exposed food scraps. Bury them under browns and the swarm goes within days. House flies or maggots mean meat, dairy or cooked food, and that is a different problem. Below: what causes flies in compost, how to fix it today, and how to stop it happening again.

A cloud of tiny fruit flies rising from an open compost bin lid, flies in compost
Flies in compost.

Fruit flies (small, hovering, everywhere at once)

Attracted to exposed fruit and vegetable waste. Harmless to the process, genuinely annoying to you.

Fix: bury every addition under at least 5cm of browns. Keep a bag of dry leaves or shredded cardboard beside the bin. The population collapses in under a week once the food is covered.

House flies and maggots (large, in numbers)

Usually a sign that meat, fish, dairy or cooked food has gone in. The maggots are typically black soldier fly or blowfly larvae. Soldier fly larvae are actually efficient decomposers and not a health problem, but their presence signals material your pile cannot handle discreetly, which is also what attracts rats.

Fix: remove the offending material if you can find it, cover deeply, and keep those materials out.

Do not use insecticide in a compost pile. It kills the organisms doing the work, and the residue ends up in soil you were planning to grow food in.

Related

What belongs in the pile: what can you compost. Index: compost problems.

Further reading on flies in compost

Independent sources worth reading alongside this page: EPA, Composting at Home · Cornell Waste Management Institute.