What Is Compost: How It Works and What’s in It

Compost is decomposed organic matter, transformed by billions of microorganisms into a dark, crumbly, nutrient-rich material used to improve soil. It’s made from everyday waste like food scraps, leaves, and yard trimmings, broken down through a controlled biological process that converts what would otherwise fill a landfill into something that feeds plants and rebuilds soil structure. The process is essentially managed decomposition: you provide the raw materials, and microbes do the heavy lifting.

How Composting Actually Works

Composting is an aerobic process, meaning it depends on oxygen. Microorganisms, primarily bacteria and fungi, consume organic material and generate heat, carbon dioxide, and water as byproducts. The process moves through four distinct phases, each driven by different communities of microbes that thrive at different temperatures.

It starts in the mesophilic phase, where bacteria that prefer moderate temperatures begin breaking down the easiest-to-digest materials like sugars and starches. As they multiply and metabolize, their activity generates heat, pushing the pile’s internal temperature upward. Once it crosses roughly 45°C (113°F), the pile enters the thermophilic phase, where heat-tolerant bacteria take over and temperatures can climb above 55°C (131°F). This is where the most intense decomposition happens: tough materials like cellulose get broken apart, and the high heat kills most pathogens and weed seeds. Federal composting standards require temperatures of 55°C or higher for at least three days in enclosed systems, or 15 days with regular turning in open windrows, to ensure harmful organisms are destroyed.

After the readily available food sources are consumed, microbial activity slows and the pile cools back down into a second mesophilic phase. Finally, a curing phase lasting two to four months allows fungi and slower-acting microbes to finish breaking down the remaining tough compounds. A well-cured compost won’t reheat when you turn it, which signals the process is complete.

What Happens at the Microbial Level

Bacteria dominate the transformation because they tolerate the widest range of temperatures. In the early mesophilic stage, groups specializing in cellulose digestion and nitrogen cycling are most active. Some of these bacteria convert nitrogen compounds in the pile through a process called nitrification, turning them into forms that plants can eventually absorb from the finished compost.

Fungi play a different but equally important role. They release enzymes that can dismantle large, stubborn molecules that bacteria struggle to break down on their own. While intense heat during the thermophilic phase suppresses most fungal activity, fungi return during the cooling and curing stages to finish the job. This tag-team succession of microbial communities is what makes composting so effective at reducing a wide variety of organic materials into a uniform, stable end product.

What Goes Into a Compost Pile

Every compostable material falls into one of two categories based on its chemistry: carbon-rich “browns” or nitrogen-rich “greens.” Browns include dry leaves, straw, cardboard, and wood chips. Greens include food scraps, grass clippings, coffee grounds, and fresh plant trimmings. The ideal starting mix is roughly 30 parts carbon to every 1 part nitrogen by weight. This 30:1 carbon-to-nitrogen ratio gives microbes enough energy (from carbon) and enough protein-building material (from nitrogen) to reproduce and work efficiently.

Too much carbon and the pile decomposes painfully slowly. Too much nitrogen and it turns into a slimy, foul-smelling mess because excess nitrogen gets released as ammonia gas. Getting close to that 30:1 sweet spot doesn’t require precise measurements. A roughly equal volume of browns and greens, with a bit extra brown material, typically lands in the right range.

Moisture and Airflow

The pile needs to stay between 40% and 60% moisture for microbes to thrive. Below 40%, microbial activity stalls. Above 60%, water fills the air spaces between particles and creates oxygen-starved, anaerobic pockets that produce odors and slow decomposition. The classic test: a handful of compost should feel like a wrung-out sponge.

Particle size matters more than most beginners realize. Smaller pieces expose more surface area for microbes to colonize, which speeds things up. But if everything is ground too fine, the material compacts and chokes off airflow. Research on composting feedstocks found that a moderate particle size offers the best balance, providing enough surface area for microbial colonization while maintaining the porosity needed for oxygen to circulate. In practice, this means chopping or shredding materials to roughly the size of a coin or smaller, but not pulverizing them into powder.

What Finished Compost Contains

As decomposition progresses, the carbon-to-nitrogen ratio drops from the starting 30:1 down to between 10:1 and 15:1 in the finished product. That shift reflects carbon being lost as CO2 while nitrogen concentrates in the remaining material. Finished compost typically contains 0.5% to 2.5% nitrogen by dry weight, along with smaller amounts of phosphorus and potassium. These are the same primary nutrients found in synthetic fertilizers, but compost releases them slowly as soil microbes continue to break it down, feeding plants over weeks and months rather than all at once.

The nutrient content alone, though, undersells what compost does. During decomposition, a process called humification converts organic matter into humic substances: large, stable molecules rich in carbon that resist further breakdown. These humic substances are what give healthy soil its dark color and spongy texture. They improve water retention in sandy soils, loosen heavy clay soils, and create binding sites that hold onto nutrients so they don’t wash away with rain. In natural soil, humification takes decades. Composting accelerates it dramatically.

Humic substances also have a remarkable ability to lock onto and neutralize pollutants. Aromatic compounds, heavy metals, and even residual antibiotics can bond with humic molecules through several chemical mechanisms, reducing their toxicity and mobility in soil. This is one reason compost is used in land remediation projects, not just gardens.

The Three Main Composting Methods

Hot composting is the fastest approach. You build a pile at least 3 feet in each dimension, mix your materials to the right carbon-to-nitrogen ratio, maintain moisture, and turn the pile regularly to reintroduce oxygen. A well-managed hot pile can produce finished compost in one to three months. The sustained high temperatures make it the most reliable method for killing pathogens and weed seeds.

Cold composting is the low-effort alternative. You simply add materials to a bin or pile over time and let nature take its course. Temperatures stay lower, microbial activity is slower, and the process takes six months to two years. It works fine for yard waste and kitchen scraps, but without reaching thermophilic temperatures, weed seeds and plant diseases may survive.

Vermicomposting uses worms, typically red wigglers, to process organic material in a contained bin. The worms eat food scraps and produce castings, a fine, nutrient-dense compost. It works well for apartment dwellers or anyone composting small volumes indoors, and produces a finished product particularly rich in plant-available nutrients. The tradeoff is limited capacity: a worm bin handles kitchen scraps but can’t process large volumes of yard waste.

How to Tell When Compost Is Ready

Finished compost looks nothing like what went into the pile. It’s dark brown to black, crumbly, and smells like forest soil. You shouldn’t be able to identify any of the original materials. If you can still see recognizable food scraps or leaves, it needs more time. A simple maturity test: put a handful in a sealed plastic bag for a few days. If it smells sour or like ammonia when you open it, active decomposition is still underway. Mature compost smells earthy and pleasant.

Using compost before it’s fully cured can actually harm plants. Immature compost still has active microbial communities competing for nitrogen, which can temporarily rob soil of the nitrogen your plants need. It can also generate enough heat to damage roots. Patience during that final curing phase pays off in a product that feeds your soil without any downsides.