Compost is a mix of partially decomposed organic matter, billions of microorganisms, invertebrates, water, and a range of nutrients from nitrogen and phosphorus down to trace minerals like boron and zinc. What starts as kitchen scraps and yard waste transforms through biological and chemical processes into a dark, crumbly material that looks nothing like what went in. Understanding what’s actually inside a compost pile, both the living and non-living components, helps explain why it works so well as a soil amendment.
The Raw Ingredients: Carbon and Nitrogen
Every compost pile is built from two broad categories of material, commonly called “browns” and “greens.” Browns are carbon-rich: dried leaves, wood chips, cardboard, straw, sawdust. Greens supply nitrogen: food scraps, fresh grass clippings, coffee grounds, manure. The ratio between these two elements matters because it controls how fast microbes can do their work. Decomposition is fastest when the starting mix has roughly 30 parts carbon to 1 part nitrogen by weight. As composting progresses, carbon gets consumed and released as carbon dioxide, so the ratio gradually drops to around 20:1 in finished compost.
Bacteria, Fungi, and Other Microbes
The real engine of composting is invisible. Bacteria are the first colonizers, breaking down simple sugars and starches in fresh organic matter. In the early mesophilic phase, temperatures hover below 45°C (113°F) as these bacteria multiply rapidly and generate heat as a byproduct of digestion. As the pile heats up past 45°C and into the thermophilic phase, peaking around 70°C (158°F), heat-tolerant bacteria take over and attack tougher compounds like proteins and fats.
Fungi play a different role. Most fungal species can’t survive the hottest temperatures, so they proliferate during the cooling and curing phases, breaking down woody, fibrous material that bacteria struggle with. Their thread-like networks (hyphae) physically penetrate tough plant cell walls, giving them access to cellulose and lignin that would otherwise decompose very slowly.
A third group, actinobacteria, becomes more abundant during the final curing phase. These are the organisms responsible for compost’s characteristic earthy smell. They specialize in breaking down some of the most resistant organic compounds left behind after bacteria and fungi have done the initial work.
The Creatures You Can See
Compost piles are also home to a visible community of invertebrates: earthworms, springtails, centipedes, mites, sow bugs, ants, nematodes, snails, spiders, and slugs. These macroorganisms chew, shred, and tunnel through organic matter, physically breaking it into smaller pieces. That shredding dramatically increases the surface area available to microbes, speeding up decomposition. Earthworms are especially valuable because their digestive process concentrates nutrients and coats particles in a microbial-rich mucus. In a healthy pile, these creatures and the microorganisms work in a feedback loop: the invertebrates make food more accessible to microbes, and microbial colonies become food for the invertebrates.
What Holds It All Together: Humic Substances
As organic matter breaks down, it doesn’t simply vanish. Some of it reassembles into large, stable molecules called humic substances, which are among the most important byproducts of composting. Lignin, the tough structural compound that makes wood rigid, plays a central role. During decomposition, lignin fragments provide the aromatic backbone around which humic acids form. These acids incorporate pieces of amino acids, sugars from microbial cell walls, and various protein fragments into a dense, stable structure.
Humic acids are what give finished compost its dark color and its long-term benefits in soil. They resist further breakdown, meaning they persist for years. Their chemical structure is studded with functional groups that grab and hold onto nutrient ions, slowly releasing them to plant roots. This is why compost improves soil fertility not just in the season you apply it, but for years afterward.
Nutrients in Finished Compost
Compost contains the three primary plant nutrients, nitrogen, phosphorus, and potassium, but in modest, slow-release concentrations compared to synthetic fertilizers. Where compost really shines is in its supply of micronutrients that plants need in small amounts: iron, manganese, zinc, boron, molybdenum, and cobalt. The organic matter in compost increases the availability of these trace minerals through a process called chelation, where organic molecules wrap around metal ions and keep them in a soluble form that roots can absorb. Manganese and boron availability, in particular, increase meaningfully when compost is added to soil.
Water and Air Inside the Pile
A working compost pile is surprisingly wet. Optimal moisture content sits between about 50% and 70% by weight, depending on the materials. Below 40% moisture, microbial activity stalls because bacteria need a film of water to move and feed. Too much water, though, fills the air pockets between particles, cutting off oxygen and pushing the pile into anaerobic conditions. That’s when compost starts to smell like rotten eggs instead of earth.
Oxygen is equally critical. Aerobic decomposition, the kind that produces good compost, requires enough free air space in the pile for gas exchange. Turning or aerating the pile replenishes oxygen and redistributes moisture, keeping conditions in the sweet spot where microbes consume material most efficiently.
Pathogens and the Heat That Kills Them
Raw compost ingredients, especially manure and food waste, can carry human pathogens. The thermophilic phase is what makes compost safe. U.S. EPA regulations require that compost from biosolids reach a minimum internal temperature of 55°C (131°F) for at least 3 days in aerated systems, or 15 days with regular turning in open windrow systems. These temperatures kill most disease-causing bacteria, as well as weed seeds.
There’s a caveat, though. Lab research has shown that some strains of harmful bacteria can survive beyond the 3-day guideline at 55°C under controlled conditions. This is one reason commercial composters aim for temperatures well above the minimum and maintain them for longer than required. In a home pile that never gets hot enough, pathogens from meat, dairy, or pet waste may persist, which is why most home composting guides recommend sticking to plant-based inputs.
Contaminants That Shouldn’t Be There
Not everything in compost is beneficial. Municipal and even home compost can contain microplastics, tiny fragments of plastic that enter the waste stream from packaging, food containers, shopping bags, and food wrappers. Studies of commercial compost products have found that plastic pieces larger than 1 millimeter are the most common contaminant, with films from plastic bags and colored fragments from food packaging among the most prevalent types. These fragments can carry their own chemical baggage: plasticizers, flame retardants, stabilizers, and even heavy metals like lead and cadmium that are used in plastic manufacturing.
Heavy metals can also enter compost through other routes. Lead has been found associated with PVC-derived plastic fragments, while cadmium can come from general environmental contamination. Eco-certified compost products tend to contain significantly fewer microplastics and lower heavy metal availability than non-certified alternatives, making the label worth checking if you’re buying bagged compost.
Compostable Plastics: Not Always What They Seem
Items labeled “compostable” are often made from PLA, a plant-derived plastic. PLA needs temperatures above 50°C to begin breaking down meaningfully. In industrial composting facilities running at 58°C, PLA can reach over 90% breakdown. But at 25°C, typical of a backyard pile, that number drops to just 15% even after four months. So those compostable forks and coffee cups won’t disappear in your home bin. A related bioplastic called PHB does break down under mild conditions, reaching full decomposition in soil within five weeks, but it’s far less common in consumer products. If your compost stays below about 50°C, PLA-labeled items are effectively just another form of plastic contamination.

