What Lives in a Compost Pile: Bacteria, Fungi and Bugs
Almost everything crawling in a healthy compost pile belongs there. Bacteria and fungi do most of the chemistry, and mites, springtails, worms and beetles shred and graze the rest. Worry about rodents and sudden clouds of flies, which signal a management problem.
The microbes doing the real work
Bacteria colonize fresh material first and drive the heat. Mesophilic types work at moderate temperatures and thermophilic types take over as the pile heats. EPA describes roughly 131 to 160 degrees Fahrenheit as the range for optimal microbial activity, with beneficial organisms dying off above it. The stages of composting trace that handoff.
Fungi and actinomycetes arrive as the pile matures. Fungi attack woody stems and leaves, which is why white threads show up in cooler, woody spots. Cornell describes actinomycetes as intermediate between bacteria and true fungi, and they add the earthy smell of the later stages. White fuzz is normal; wear a dust mask if you react to spores.
All of them need oxygen, moisture and a balanced diet, and starving any of these tilts the pile toward smelly bacteria. Start with the carbon to nitrogen ratio.
The food web in the pile
Cornell describes the pile as a food web with three levels of consumers.
| Level | Examples | Job |
|---|---|---|
| Primary | Bacteria, fungi, some mites and nematodes, snails, slugs, earthworms, millipedes, sowbugs | Eat residues directly |
| Secondary | Springtails, some mites, feather-winged beetles, protozoa, rotifers | Eat primary consumers |
| Tertiary | Centipedes, predatory mites, rove beetles, ants, carabid beetles | Eat secondary consumers |
Cornell reports that a handful of decaying compost holds several million nematodes.
Sowbugs, millipedes and slugs shred plant matter, increasing surface area for microbes. Worms eat decaying plant matter and microbes, and their tunnels aerate the pile, but they avoid heat and usually appear in cooling or finished material. Centipedes and rove beetles act as pest control, so seeing them means the ecosystem works.
An empty-looking hot pile is not dead. Cornell notes that invertebrates in outdoor systems move to the edges or go dormant during the hot phase, and that indoor container systems may hold few or none.
Visitors that look worse than they are
- White specks and tiny worms: usually springtails or potworms.
- Red-orange dots on the underside of material: often a common compost mite.
- Sowbugs rolling into balls: harmless.
- Ants: often a sign the pile is dry and undisturbed; soak and turn it.
When the creatures signal a problem
Flies
A cloud of flies means scraps are exposed. Bury food in the center under browns. Cornell notes the hot phase destroys fly larvae, so good heat helps; see hot versus cold composting.
Rats and mice
Rodents come for food and shelter. EPA's home composting guidance advises keeping meat, bones and dairy out of a backyard pile, burying scraps and managing the pile well. Check what not to put in compost, and consider a sturdier enclosure if trouble persists.
Foul smell with few creatures
That is an anaerobic pile, wet and short of air. Turn it, add dry browns and loosen the structure. The squeeze test for moisture will show whether water is the cause.
Stinging insects and large maggot masses
Stinging insects may nest in warm piles, so go carefully when turning. Large maggot numbers on meat or fish mean you should remove the source. Where fire ants or venomous snakes occur, wear gloves and boots and ask extension what is typical.
Keeping the community healthy
- Feed a mix of greens and browns.
- Keep moisture at damp, not soggy.
- Add coarse material such as wood chips or straw for air.
- Avoid oils, chemicals and treated wood.
- Leave the small creatures alone, because they work for free.
Cornell's page on invertebrates of the compost pile describes each main group, and EPA's home composting page covers what to add and how to avoid rodents.
Quick answers
Are the bugs in my compost bad?
Almost never. Most are decomposers or predators of decomposers. Real trouble comes from rodents or large numbers of flies, which signal a management issue.
Should I add worms to my pile?
Usually not. Worms move in by themselves once the pile cools. Worm bins for vermicomposting are a separate system with different rules.
Why are there no bugs in my hot pile?
Heat drives many organisms to the edges or into dormancy. They return as the pile cools, so an empty-looking pile is not broken.
Sources and further reading
Reviewed 2026-11-23. Educational only; rules vary by state and locality, so confirm requirements with the agency or professional named in the article.