How Composting Works: 131°F Heat, Billions of Microbes, and the 3 Phases That Turn Scraps Into Soil
Compost piles need to hit 131°F for a reason: the science behind the 3 phases, billions of microbes, and chemistry that turn scraps into rich soil.
The first time I pushed a compost thermometer into a fresh pile and watched it climb past 130°F within three days, it didn’t feel like biology — it felt like the pile was alive. In a sense, it is: a single gram of active compost can host billions of bacteria, fungi, and other microorganisms, all working through the same three-phase process whether you’re running a wire cage in the corner of the yard or a sealed tumbler. If you haven’t built your first pile yet, our beginner setup guide covers that groundwork. What most guides skip once you’re composting is the why: what’s actually eating your scraps, why the pile gets hot enough to steam, and what that heat is doing chemically. Understanding the mechanism is what turns a stalled or smelly pile from a mystery into a fixable problem.
What’s Actually Happening Inside a Compost Pile
Compost isn’t just organic matter sitting around rotting. It’s aerobic oxidation — the same basic chemistry that happens when wood burns, just slowed down and run by microbes instead of flame. Bacteria and fungi break the carbon-carbon bonds in sugars, starches, proteins, and cellulose, and every bond they break releases energy. Some of that energy fuels the microbes’ own growth. The rest escapes as heat. Cornell’s compost research describes pile heat as a direct byproduct of this microbial oxidation, which means a pile that stays cold isn’t lazy — it’s biologically underfed, too dry, or short of oxygen.
The whole process moves through three distinct phases, each with a different lineup of microorganisms and its own chemistry. How fast a pile moves through them depends as much on climate as ingredients — a pile that hits 130°F in a Georgia July can take noticeably longer to get there in a Minnesota October, simply because more heat escapes into cold surrounding air. If you’re still deciding which system fits your yard and schedule, our composting guide compares hot, cold, and tumbler methods. This article covers what’s happening inside the pile no matter which one you choose.
Phase 1: The Mesophilic Start
The moment you build a pile, mesophilic microorganisms — bacteria and fungi that thrive at moderate, room-like temperatures — take over first. They go straight for the easiest fuel available: soluble sugars, starches, and simple proteins in fresh kitchen scraps and grass clippings. A 2026 composting microbiome study found genera like Pseudomonas and Sphingobacterium among the early colonizers doing this initial breakdown.

Three pre-planned garden beds, free
Stop staring at empty beds: printable plans with exact layouts, plant lists and planting calendars — yours free from the Garden Library.
If you want that early breakdown running at macro scale rather than just microbial, black soldier fly larvae feed directly on that same fresh, nitrogen-rich material and can process it far faster than microbes alone.
As they metabolize that fuel, they release heat as a byproduct, and because a compost pile insulates itself fairly well, that heat accumulates instead of dissipating. Within two to eight days, the core of a well-built pile climbs past 104°F (40°C). That temperature is the trigger for what comes next: it’s now too hot for the mesophiles that started the job, and they step aside for organisms built to handle it.

Phase 2: The Thermophilic Heat Surge
Once the pile crosses roughly 104°F, thermophilic — heat-loving — microorganisms take over, and decomposition shifts into its fastest gear. The productive range runs from about 104°F to 140°F (40-60°C), where these heat-tolerant microbes break down proteins, fats, and the tougher structural carbohydrates — cellulose and hemicellulose — that mesophiles can’t touch efficiently. The dominant organism through this stage is Bacillus, a bacterial genus that survives the heat by forming heat-resistant endospores. The same 2026 genomic study found Bacillus abundant across every phase of composting, with its peak population showing up around day three.
This phase also determines whether your compost is actually safe to use. Federal regulation (40 CFR Part 503, the EPA standard for compost used in agriculture) requires municipal composting operations to hold a pile at 131°F or higher for at least three consecutive days to destroy weed seeds and disease pathogens — a benchmark known as the Process to Further Reduce Pathogens, or PFRP. Home piles don’t get monitored this precisely, but the same biology applies: a pile that never climbs past 120°F hasn’t done much pathogen-killing, which is exactly why hot composting methods are built around hitting and holding this range. Our hot composting guide walks through the ratios that get you there in 30 days.
Push much past 140°F, though, and the relationship reverses. Cornell Cooperative Extension puts the ceiling at 160°F (71°C) — above that, a pile can effectively sterilize itself, killing off the same microbes doing the work, and extreme overheating even carries a small spontaneous-combustion risk in the largest piles. Turning the pile whenever it climbs past 140°F cools it slightly and resupplies oxygen, which keeps the thermophiles working instead of dying off.
Phase 3: Curing and Maturation
Eventually the readily available proteins, fats, and carbohydrates run out, and the thermophilic population shrinks. Temperature drops, and mesophilic organisms recolonize the pile to work through what’s left — mostly cellulose and lignin, the toughest plant structural material. This curing phase can run for weeks to several months, and it’s easy to mistake for “done” once the dramatic heat is gone. It isn’t. Chemical reactions continue at ambient temperature, stabilizing the remaining organic matter into humus — the dark, crumbly material that actually benefits soil structure and plant roots. Pull compost before curing finishes, and its still-high C:N ratio means the same nitrogen-hungry microbes that were feeding on the pile keep working once you dig it into your soil — pulling nitrogen away from plant roots instead, a well-documented effect called nitrogen immobilization. It’s temporary, but it can stunt a crop for the season it happens in. An immature pile may also still carry viable weed seeds if it never held peak heat long enough.
The Carbon:Nitrogen Ratio — Why 30:1 Isn’t Arbitrary
Every “add browns and greens” instruction traces back to one number: a starting carbon-to-nitrogen ratio of roughly 30 parts carbon to 1 part nitrogen. That number isn’t a rule of thumb pulled from nowhere — it comes from what microbial cells actually need. Microbes use carbon as an energy source and nitrogen to build proteins and reproduce, and they burn through carbon much faster than nitrogen because so much of it is respired off as carbon dioxide rather than incorporated into new cells.
Get the starting ratio too low — too much nitrogen relative to carbon, from too many grass clippings or food scraps — and the microbes can’t use the excess nitrogen fast enough. It off-gasses as ammonia, which is the sharp, chemical smell of an overloaded pile. Get the ratio too high — too much dry carbon from leaves, straw, or cardboard — and nitrogen becomes the bottleneck. Microbial growth slows down, and so does heat production. By the time compost is finished, roughly two-thirds of the original carbon has been respired away as CO2, which is why the final C:N ratio settles around 10:1 to 15:1 even though it started near 30:1. The pile isn’t just decomposing — it’s concentrating.
Moisture and Oxygen: The Two Switches That Turn Microbes On or Off
Composting microbes need water to move nutrients across their cell membranes, but too much water pushes air out of the pore spaces between particles. Cornell research puts the ideal moisture range at 50-60% — roughly the feel of a wrung-out sponge. Below about 30%, bacterial activity stalls from dehydration. Above about 65%, water floods the air pockets microbes need, decomposition slows, and the pile starts to smell.
That smell is the oxygen switch flipping. Aerobic decomposition — the kind that builds good compost — uses oxygen as the final step in microbial respiration, releasing carbon dioxide, water, and heat. When oxygen in the pore spaces drops below roughly 5%, a completely different set of organisms takes over: anaerobic microbes, including methane-producing species that are inactive whenever oxygen is present. The EPA notes this is precisely why aerobic composting produces far less methane than food waste left to decompose anaerobically in a landfill — the oxygen itself keeps methanogens shut off. It’s also why a soggy, compacted, oxygen-starved pile smells like sulfur or ammonia instead of the neutral, earthy scent of a healthy one: you’re smelling a different microbial community entirely, not just “rot.”

What the Biology Tells You When Something’s Wrong
I’ve had piles sit lukewarm for weeks because I kept adding too many dry leaves and not enough kitchen scraps. Once I fixed the ratio, the pile was steaming within 48 hours — the same biology explained above, just applied backward as diagnosis instead of theory. Here’s how the mechanisms above map onto the symptoms you’ll actually see in the pile.
| Symptom | Biological Cause | Fix |
|---|---|---|
| Pile never heats up, stays damp and sweet-smelling | Not enough nitrogen — mesophiles have plenty of carbon but can’t build biomass fast enough to generate heat | Mix in nitrogen-rich greens (grass clippings, food scraps, manure) |
| Sharp ammonia smell | C:N ratio too low — excess nitrogen is off-gassing as ammonia instead of being used | Mix in carbon-rich browns (dry leaves, cardboard, straw) |
| Sulfurous or rotten-egg smell | Oxygen has dropped below ~5% in pore spaces; anaerobic microbes have taken over | Turn the pile to reintroduce oxygen; add bulky material to open air pathways |
| Dry, crumbly center that isn’t breaking down | Moisture below ~30%; bacteria are dehydrated and inactive | Water while turning until it feels like a wrung-out sponge |
| Only the middle is warm; edges stay cold | Pile is too small to retain the heat microbes generate (poor surface-area-to-volume ratio) | Rebuild as one larger pile, at least 3x3x3 feet |
| Large chunks (corn cobs, branches) still intact after months | Low surface area limits how much material microbes can access at once | Chop or shred bulky material before adding it |
Frequently Asked Questions
How long does each phase of composting actually take?
Mesophilic start-up runs two to eight days. The thermophilic heat surge can last anywhere from a few days to several months, depending on pile size, ingredients, and how often you turn it. Curing and maturation typically adds several more weeks to months before the compost is fully stable.
Does compost need to get hot to work?
No — cold composting works through the same mesophilic and curing biology without ever reaching the thermophilic phase, it typically just takes six months to a year instead of weeks. What you lose without sustained heat is reliable weed-seed and pathogen destruction, not decomposition itself.
Why does my compost smell bad if the biology is supposed to be aerobic?
A bad smell almost always means part of the pile has gone anaerobic — usually from excess moisture or compaction cutting off oxygen to pore spaces — or the carbon:nitrogen ratio is off enough that nitrogen is escaping as ammonia gas instead of being used by microbes.
Skip the cold, slimy compost pile.
Enter your brown and green materials — get a balanced C:N recipe and temperature targets that activate hot composting.
→ Build My Compost RecipeKey Takeaways
Composting looks like a black box from the outside — scraps go in, soil comes out — but every stage runs on an identifiable mechanism. Mesophiles kickstart decomposition and generate the first heat. Thermophiles take over above 104°F and handle the heavy structural breakdown, while the EPA’s 131°F, three-day threshold quietly determines whether pathogens actually die. A long curing phase finishes stabilizing what’s left into humus. The carbon:nitrogen ratio, moisture level, and oxygen supply aren’t separate rules to memorize — they’re the three levers that decide which phase your pile is actually in. Once that clicks, troubleshooting a cold, smelly, or slow pile stops being guesswork. You’re reading the biology.
Sources
- Cornell Waste Management Institute — “The Science of Composting” (Chapter 1)
- Cornell Composting — Compost Microorganisms, compost.css.cornell.edu/microorg.html
- Cornell Composting — Compost Chemistry, compost.css.cornell.edu/chemistry.html
- Cornell Composting — Compost Physics
- Cornell Composting — Temperature (Factsheet 5), compost.css.cornell.edu/Factsheets/FS5.html
- U.S. EPA — 40 CFR Part 503, Appendix B, Pathogen Treatment Processes (linked above)
- U.S. EPA — Composting Food Waste: Keeping a Good Thing Going
- University of Illinois Extension — Troubleshooting Composting Problems
- Frontiers in Microbiology (2026) — The composting microbiome and a multifunctional Bacillus tequilensis JZF3
- NC State Extension — Nitrogen Immobilization (linked above)









