What happens inside a compost heap
A compost heap works through the action of billions of microorganisms—bacteria, fungi, and other decomposers—that eat the organic material you add and break it down into a dark, crumbly, soil-like substance called finished compost. The process happens in layers: as you add kitchen scraps and yard waste, microbes colonize the material, generate heat as they feed, and gradually transform it into nutrients that plants can use. The whole cycle typically takes three months to two years, depending on how you manage the pile and what you put in it.
The speed and success of decomposition depend on four things working together: the right mix of materials, adequate moisture, oxygen, and warmth. Get these four factors in balance, and your pile will heat up, shrink visibly, and smell earthy. Neglect them, and you'll end up with a slow, smelly, or stalled pile that attracts pests.
Key Takeaways
- Microorganisms in the pile consume organic material and generate heat as they break it down, which is why active compost piles feel warm to the touch.
- You need a mix of nitrogen-rich "green" materials (food scraps, grass clippings) and carbon-rich "brown" materials (dry leaves, cardboard) in roughly equal amounts by volume.
- The pile needs moisture like a wrung-out sponge and oxygen from air pockets, both of which you control by turning the pile or leaving it undisturbed depending on your method.
- Finished compost is ready when it looks dark and crumbly, smells like soil, and you can no longer recognize the original materials.
The role of microorganisms and heat
Decomposition is a feeding process. Bacteria and fungi in the pile consume the carbon and nitrogen in your materials and use that energy to grow and reproduce. As they metabolize, they release heat—lots of it. An active compost pile can reach 130 to 150 degrees Fahrenheit in the center, hot enough to kill weed seeds and pathogens. You can feel this heat by pushing your hand into the pile; if it's warm, decomposition is happening fast.
Different microorganisms take over at different stages. In the first few weeks, mesophilic bacteria (the ones that like moderate temperatures) dominate and begin breaking down the easiest materials—sugars and proteins. As the pile heats up, thermophilic bacteria take over and work at the higher temperatures, breaking down tougher stuff like cellulose and lignin in plant fibers. Finally, as the pile cools, fungi and other organisms finish the job and create the stable, dark material you recognize as finished compost.
Balancing greens and browns
The microorganisms in your pile need both nitrogen and carbon to thrive. Green materials—fresh grass clippings, vegetable scraps, coffee grounds, plant trimmings—are high in nitrogen and break down quickly. Brown materials—dry leaves, shredded paper, cardboard, straw, wood chips—are high in carbon and break down slowly. The ideal ratio is roughly 1 part green to 2 parts brown by volume, though anywhere from 1:1 to 1:3 will work.
If your pile is too heavy on greens, it becomes wet and anaerobic (lacking oxygen), which slows decomposition and creates a foul smell. If it's too heavy on browns, decomposition crawls along because there isn't enough nitrogen to feed the microbes. A balanced pile heats up quickly, smells earthy, and shrinks noticeably week to week. You don't need to measure precisely—just aim for a rough mix of fresh and dry materials as you build the pile.
Moisture and oxygen requirements
Microorganisms need water to survive and to transport nutrients through the pile. The ideal moisture level is like a wrung-out sponge: damp enough to hold together when you squeeze it, but not so wet that water drips out. If the pile is too dry, decomposition slows dramatically. If it's waterlogged, oxygen gets driven out, and the pile becomes anaerobic, producing ammonia and sulfur smells instead of earthy ones.
Oxygen is equally critical. Aerobic decomposition (with oxygen) is fast and produces heat; anaerobic decomposition (without oxygen) is slow and smelly. In a pile that sits undisturbed, oxygen gets used up in the center and decomposition slows. Turning the pile—flipping it with a fork or shovel every week or two—reintroduces oxygen and speeds things up dramatically. If you don't turn it, decomposition still happens, just more slowly, over six months to two years instead of three to six months.
What you can and cannot compost
Most plant-based kitchen scraps and yard waste break down well: vegetable and fruit scraps, coffee grounds, tea bags, grass clippings, leaves, plant trimmings, and cardboard or paper. Avoid meat, fish, dairy, oils, and pet waste, which either decompose very slowly, attract pests, or introduce pathogens. Diseased plants and weeds with seeds can survive the pile if it doesn't get hot enough, so either burn them or send them to a municipal compost facility instead.
Shredded or chopped materials decompose faster than whole pieces because microorganisms have more surface area to work with. A pile of whole leaves takes longer than a pile of shredded leaves. Chopped food scraps break down faster than whole ones. You don't have to shred everything, but doing so speeds the process noticeably.
The stages of decomposition
Decomposition moves through recognizable phases. In the first one to two weeks, the pile heats up rapidly as bacteria colonize the fresh materials and begin feeding. You'll see the pile shrink and feel it warm. In weeks two to four, the pile reaches its hottest point and the original materials become harder to recognize. From week four onward, the temperature drops as the easiest materials are consumed, and fungi and other organisms take over to finish breaking down the tougher fibers.
By month three to six (in a turned pile) or six to twelve months (in an undisturbed pile), the material becomes dark, crumbly, and uniform. You should no longer be able to identify the original scraps or leaves. At this point, the compost is finished and ready to mix into garden beds or use as mulch. The pile may still be slightly warm or may have cooled completely—both are normal.
Common mistakes that slow decomposition
The most common mistake is building a pile that's too small. A pile needs to be at least 3 feet by 3 feet by 3 feet to retain enough heat and maintain the right moisture balance. Smaller piles decompose much more slowly. Another mistake is adding too much of one material at once—a huge load of grass clippings, for example, compacts into a wet, anaerobic mat. Add materials in layers and mix them as you go.
Neglecting moisture is also common. If the pile dries out, decomposition nearly stops. Check it every week or two and water it if it feels dry. Finally, many people assume that a slow or cold pile means something is wrong, when in fact an undisturbed pile straightforward takes longer. If you're not turning it, expect six months to two years. If you want faster results, turn it every one to two weeks and keep it balanced and moist.
Frequently Asked Questions
Why does my compost pile smell bad?
A foul smell usually means the pile is anaerobic—either too wet, too compacted, or too heavy on nitrogen-rich greens. Turn the pile to reintroduce oxygen, add dry brown materials, and check the moisture. A healthy pile smells earthy, not rotten. If the smell persists after turning, the pile may be waterlogged; add more brown materials and turn it again.
How do I know when compost is finished?
Finished compost is dark brown or black, crumbly, and uniform in texture. You should not be able to recognize the original materials. It smells like soil, not like the scraps you added. If you can still see leaves or food scraps, it's not ready yet; let it sit longer or turn it more frequently to speed decomposition.
Can I compost in winter?
Yes, but decomposition slows dramatically in cold weather because microorganisms are less active. A pile built in fall will decompose slowly through winter and finish in spring. If you want faster results, insulate the pile with straw or leaves, or wait until spring to build it. In mild climates, composting continues year-round.
Do I have to turn my compost pile?
No. An undisturbed pile will decompose on its own, just more slowly—six months to two years instead of three to six months. Turning it every one to two weeks speeds things up significantly by reintroducing oxygen. Choose based on how quickly you want finished compost and how much work you're willing to do.
What if my pile attracts rats or insects?
Meat, fish, dairy, and oils attract rodents and pests. Avoid adding these to your pile. If pests are already present, bury food scraps deeper in the pile, add more brown materials on top, and turn the pile more frequently. A hot, actively decomposing pile is less attractive to pests than a cool, slow one.