Science

How Composting Actually Turns Food Scraps Into Soil

Illustration for How Composting Actually Turns Food Scraps Into Soil

Composting Is Digestion, Not Decay

It is tempting to think of a compost heap as rubbish rotting slowly, but what actually happens is closer to digestion performed by billions of organisms at once. Bacteria, fungi, actinomycetes and larger creatures consume the carbon in food scraps and garden waste as fuel, and their metabolic activity is what dismantles the material.

The distinction matters because digestion can be managed. Feeding those organisms the right balance of materials, air and moisture makes them work fast and cleanly, while starving them of any one of those inputs is precisely what produces the slow, smelly, fly-ridden heap that people associate with failed composting.

Microbes Need Carbon for Energy and Nitrogen for Bodies

Every composting organism needs two things from the pile: carbon, which it burns for energy, and nitrogen, which it uses to build proteins and enzymes and to reproduce. Neither alone is sufficient, and the ratio between them governs almost everything else that happens.

Dry, brown, woody materials such as fallen leaves, cardboard, straw and sawdust are carbon-rich. Wet, green, fresh materials such as vegetable peelings, grass clippings, coffee grounds and fruit waste are nitrogen-rich. A working pile is essentially a recipe that brings these two categories into balance.

The Thirty-to-One Ratio Is the Single Most Useful Number

Composting guidance converges on a carbon-to-nitrogen ratio of roughly thirty parts carbon to one part nitrogen by weight, because that is close to what the microbial population itself is made of and therefore what it consumes most efficiently.

Stray too far toward carbon and the process crawls, because there is not enough nitrogen to build new microbial cells. Stray too far toward nitrogen and the excess is released as ammonia gas, which is both the classic sour smell of a failing heap and a straightforward loss of fertility to the air.

Surface Area Determines How Fast Anything Happens

Microbes can only attack the exposed surfaces of a material, never its interior, so a whole cabbage decomposes far more slowly than the same cabbage chopped into pieces. Reducing particle size multiplies the surface available for colonisation.

This is why shredding leaves, tearing cardboard and cutting larger scraps has such a disproportionate effect on speed. It is also why very fine material can overdo it: dust-like particles pack together and block the air channels the same microbes need, so moderate pieces outperform both extremes.

Oxygen Decides Which Microbes Win

A well-aerated pile is dominated by aerobic organisms, which use oxygen to break carbon compounds down efficiently into carbon dioxide, water and heat. This pathway is fast, releases a great deal of energy and produces essentially no offensive odour.

When air runs out, anaerobic organisms take over instead. They extract far less energy, work much more slowly, and generate hydrogen sulphide, organic acids and methane as by-products. Practically every complaint about compost smelling foul traces back to this switch, and the cure is almost always more air.

Water Must Be Present but Never Dominant

Microbes live in the thin film of water coating each particle, so a dry pile simply stops working; its organisms go dormant rather than dying, which is why a neglected summer heap can sit unchanged for months and then resume after rain.

Too much water is equally disabling, because water fills the pore spaces that would otherwise hold air and pushes the pile anaerobic. The widely used rule of thumb is a wrung-out sponge: damp enough to feel wet, dry enough that squeezing releases only a drop or two.

The Pile Heats Itself Because Metabolism Releases Energy

No external heat source is involved in a hot compost pile. As aerobic microbes oxidise carbon compounds, some of the chemical energy released escapes as heat rather than being captured for growth, exactly as it does in any respiring organism.

In a small kitchen caddy that heat dissipates instantly, but in a pile of roughly a cubic metre the surrounding material insulates the centre. Heat accumulates faster than it escapes, and internal temperatures climb well beyond anything the surrounding air could explain.

Temperature Rises in Distinct Biological Stages

A pile begins in a mesophilic phase, where moderate-temperature organisms consume the easiest sugars and starches and drive the temperature from ambient up through roughly forty degrees Celsius within a day or two.

That heat then makes the environment intolerable for those same organisms, and heat-loving thermophilic species succeed them, pushing the core to between fifty-five and seventy degrees. When the readily available food is exhausted the temperature falls again and mesophilic organisms return for a long curing phase.

Thermophilic Heat Is What Kills Pathogens and Weed Seeds

Sustained temperatures above about fifty-five degrees Celsius are lethal to most human and plant pathogens, fly larvae and weed seeds, which is the practical reason composting guidance places such emphasis on reaching and holding a hot phase.

The catch is that a pile is never uniformly hot. The outer twenty centimetres stay far cooler than the core, so material at the edges is never sanitised unless it is physically moved inward, which is the real justification for turning a heap rather than simply aerating it.

Turning Does Two Different Jobs at Once

The first job is mechanical: turning reopens the air channels that settling and microbial glue have closed, restoring oxygen to a core that has usually gone at least partly anaerobic since the last intervention.

The second is positional: it moves cool, unprocessed outer material into the hot centre and brings processed core material out. A pile turned several times reaches a far more uniform result than one left alone, which is the entire difference between hot composting and slow passive composting.

Fungi Handle What Bacteria Cannot

Bacteria dominate the early, hot, high-nitrogen phase, but they are poorly equipped for the toughest structural compounds in plant material. Lignin, the rigid polymer that makes wood woody, resists bacterial enzymes almost entirely.

Fungi, particularly during the cooler curing phase, secrete enzymes capable of breaking lignin apart and grow hyphae that physically penetrate woody fragments. A pile containing significant woody material therefore needs time at moderate temperature rather than more heat.

Actinomycetes Give Finished Compost Its Smell

The distinctive sweet, earthy odour of good compost and freshly turned soil comes largely from actinomycetes, filamentous bacteria that produce a compound called geosmin. Human noses are extraordinarily sensitive to it, detecting concentrations of a few parts per trillion.

Their presence is a useful diagnostic. A heap that smells earthy is aerobic and progressing normally; one that smells of ammonia has excess nitrogen; one that smells sour or of rotten eggs has gone anaerobic and needs turning and drier, coarser material.

Larger Organisms Arrive Only After the Heat Passes

Worms, mites, springtails, beetles and woodlice cannot survive thermophilic temperatures and are absent from a genuinely hot core. They colonise the cooler outer regions and move in properly once the pile has cooled into its curing phase.

Their contribution is mainly physical rather than chemical: they fragment material, mix it, and pass it through their guts, which inoculates it with further microbes. Their appearance in quantity is a reliable sign that a pile has left its hot stage behind.

Worm Composting Is a Different Process Entirely

Vermicomposting uses composting worms, typically red wigglers, kept deliberately cool. It is not a hot process, and letting a worm bin heat up kills the population it depends on, which is why the two methods are managed as opposites.

The output is also chemically distinct. Worm castings are richer in immediately plant-available nutrients and in microbial diversity, but the process cannot sanitise pathogens or weed seeds because it never reaches the temperatures required to do so.

The Finished Product Is Humus, Not Leftover Food

What remains at the end is not simply smaller pieces of the original input. Repeated microbial processing leaves behind humus: complex, dark, chemically stable organic compounds that resist further rapid breakdown because the easily digestible fractions are gone.

This stability is the entire point. Humus persists in soil for years rather than weeks, and that persistence is what lets it perform the structural and nutritional roles that raw organic matter cannot.

Compost Improves Soil Structure Before It Feeds Anything

Humus binds mineral particles into crumbs, creating a granular structure riddled with pores. Those pores let water infiltrate instead of running off, hold moisture against drought, and admit the oxygen that plant roots need to respire.

This is why compost helps both heavy clay and light sand, soils with opposite problems. It opens compacted clay into workable aggregates and gives loose sand something to hold water and nutrients against, improving each by the same mechanism.

Nutrient Release Is Slow and Biologically Mediated

Compost is a weak fertiliser measured by immediate nutrient concentration; a synthetic feed delivers far more nitrogen per kilogram. Most of the nitrogen in compost is locked inside organic molecules that plants cannot absorb directly.

Soil organisms release it gradually as they consume that organic matter, producing a slow trickle over seasons rather than a pulse. This matches plant uptake far more closely, which is why compost rarely burns roots and why very little of its nitrogen leaches into groundwater.

Immature Compost Can Temporarily Starve Plants

Compost dug in before it has finished still contains plenty of undigested carbon. The soil microbes that continue the work need nitrogen to process it, and they take that nitrogen from the surrounding soil, outcompeting plant roots.

The result is nitrogen immobilisation: a temporary deficiency that yellows plants in soil that ought to be rich. It reverses once decomposition finishes and the microbes die and release what they absorbed, but the simple remedy is curing compost properly first.

The Carbon Released Is Not Fossil Carbon

Aerobic composting does emit carbon dioxide, which sounds like a climate problem until the source is considered. That carbon was drawn out of the atmosphere by plants during the current growing cycle, so returning it is a closed loop rather than a net addition.

The genuine climate benefit lies in what is avoided. The same scraps buried in landfill decompose anaerobically and release methane, a far more potent greenhouse gas over the short term, which is why diverting organic waste to compost is treated as a mitigation measure.

Meat, Dairy and Oils Fail for Practical Reasons

The standard advice to exclude meat, fish, dairy and greasy food from home heaps is not about whether those materials can decompose; they decompose readily. The problem is that they attract rodents and flies and produce strong odours while doing so.

Fats compound the difficulty by coating particles in a water-repellent film that blocks both moisture and air. Industrial facilities that maintain high temperatures and enclosed vessels handle these materials routinely, which is why municipal collections often accept what home guidance refuses.

Citrus, Onion and Eggshells Are Mostly Myths

Common prohibitions on citrus peel and onion are largely folklore inherited from worm-bin advice, where acidity and sulphur compounds genuinely can irritate a confined worm population. In an open hot pile the quantities involved are diluted and pose no real problem.

Eggshells are similarly misunderstood. They do add calcium, but they are essentially crystalline calcium carbonate and break down over years rather than weeks. Crushing them finely helps considerably; expecting them to disappear in a single composting cycle does not.

Pile Size Has a Hard Lower Limit

Below roughly one cubic metre a pile loses heat through its surface faster than its microbes can generate it, so it never reaches thermophilic temperatures regardless of how good the ingredients are. Geometry, not biology, is the limiting factor.

This is why small garden bins and kitchen caddies produce cold compost. Cold composting works perfectly well and yields the same humus eventually, but it takes many months rather than weeks and never sanitises pathogens or weed seeds.

Bokashi Ferments Rather Than Composts

Bokashi treatment inoculates food waste with lactic acid bacteria in a sealed airtight bucket, deliberately excluding oxygen. Because it is a fermentation, it pickles the material rather than decomposing it, and the contents emerge recognisable but preserved.

That output is not finished compost and is too acidic to plant into directly. It must still be buried in soil or added to a conventional heap, where it breaks down unusually quickly. Its real advantage is that fermentation handles meat and dairy without odour or pests.

Commercial Facilities Simply Industrialise the Same Biology

Large-scale composting operations use the identical microbial process, but with engineering control. Material is shredded to consistent size, formed into long windrows or enclosed vessels, and turned mechanically on a schedule rather than when someone remembers.

Many force air through the pile with blowers and monitor temperature and oxygen continuously, which lets them hold the thermophilic phase precisely where regulations require for pathogen destruction. The result is a predictable, certified product rather than a variable garden by-product.

Compostable Packaging Usually Needs Industrial Conditions

Products labelled compostable are typically certified against standards that assume industrial conditions: sustained high temperatures, controlled moisture and a defined retention period. Bioplastics such as polylactic acid need that sustained heat to hydrolyse at all.

In a cool home heap the same items can persist for years essentially unchanged, and if sent to landfill they behave much like conventional plastic. The label describes a capability under specific conditions rather than a promise about any disposal route.

Compost Restores What Cultivation Continuously Removes

Harvesting crops exports organic matter from soil permanently, and tillage accelerates the oxidation of what remains. Without replacement, cultivated soils lose organic matter steadily, which degrades structure, water retention and biological activity together.

Composting closes that loop by returning stabilised organic matter rather than raw waste. This is why it appears in agricultural practice long before its chemistry was understood, from Roman farm manuals onward, and why it remains central to soil management today.

Cold Composting Trades Speed for Effort

A heap that is simply accumulated as material becomes available, never balanced and never turned, still composts perfectly well. The same organisms do the same chemistry; they just work at ambient temperature with whatever oxygen diffuses in naturally, which is a fraction of what an actively managed pile receives.

The trade is entirely one of time against labour. Cold composting typically takes six months to two years rather than six to twelve weeks, and it neither destroys weed seeds nor kills pathogens. For a gardener with space and patience and no diseased material to dispose of, that is often an entirely reasonable exchange.

Finished Compost Should Pass a Simple Maturity Test

Maturity is not obvious by eye, because compost can look dark and crumbly while still being biologically active enough to rob nitrogen from soil. The reliable indicators are that the pile no longer reheats after turning, and that the original ingredients are no longer individually recognisable.

A practical check is the bag test: seal a sample, slightly moist, in a plastic bag for a few days and then open it. Mature compost still smells earthy, while immature material smells sour or alcoholic because anaerobic fermentation resumed as soon as the oxygen in the bag was consumed.

Sources

  1. Wikipedia: Compost β€” Composting biology, carbon-to-nitrogen ratios and the thermophilic process.
  2. Britannica: Composting β€” Encyclopedia overview of composting methods and agricultural use.
  3. US EPA: Composting at Home β€” Official guidance on home composting inputs, ratios and landfill methane avoidance.

FAQ

What actually breaks food scraps down in a compost pile?

Bacteria, fungi and actinomycetes do almost all the work, consuming carbon for energy and nitrogen for growth. Larger creatures like worms and mites mainly fragment and mix material after the pile cools.

What is the carbon-to-nitrogen ratio and why does it matter?

Roughly thirty parts carbon to one part nitrogen by weight matches what microbes are made of. Too much carbon stalls the pile; too much nitrogen is lost as ammonia gas and smells sour.

Why does a compost pile get hot on its own?

Aerobic microbes release heat as they oxidise carbon compounds. In a pile of about a cubic metre the surrounding material insulates the core, so heat builds faster than it escapes.

How hot does compost actually get?

A well-managed pile reaches between fifty-five and seventy degrees Celsius in its thermophilic phase, driven entirely by microbial metabolism rather than any external heat source.

Why does my compost smell bad?

Almost always because it has gone anaerobic. Without oxygen, different microbes take over and produce hydrogen sulphide and organic acids. Turning it and adding dry, coarse material usually fixes it.

How wet should a compost pile be?

Like a wrung-out sponge. Microbes live in a film of water on each particle, but excess water fills air pockets and drives the pile anaerobic.

Why do I need to turn the pile?

Turning restores oxygen to a compacted core and moves cool outer material into the hot centre, so more of the heap actually reaches sanitising temperatures.

Does composting kill weed seeds and pathogens?

Only in the hot core, above about fifty-five degrees. Edges stay cool, so material must be turned inward. Cold composting and worm bins never reach these temperatures.

What gives finished compost its earthy smell?

Actinomycetes produce a compound called geosmin. Humans can detect it at a few parts per trillion, and an earthy smell is a good sign the pile is healthy and aerobic.

Why can't I put meat and dairy in a home compost heap?

They decompose fine, but they attract rodents and flies and smell strongly. Fats also coat particles and block air and water. Industrial facilities handle them routinely.

Are citrus and onion really bad for compost?

In an open pile, no. That advice comes from worm bins, where acidity and sulphur compounds can irritate a confined worm population. Eggshells are fine too, but take years to break down.

Why is my small compost bin never hot?

Below roughly one cubic metre, a pile loses heat through its surface faster than microbes generate it. It still makes compost, just slowly and without sanitising.

Can compost harm plants if used too early?

Yes. Immature compost still holds undigested carbon, and the microbes finishing the job pull nitrogen from the soil, temporarily starving plants. Curing it first avoids this.

Isn't the carbon dioxide from composting bad for the climate?

That carbon came from the atmosphere during the current growing cycle, so it is a closed loop. Landfilling the same waste produces methane instead, which is far worse.

Is bokashi the same as composting?

No. Bokashi is an airtight lactic acid fermentation that pickles waste rather than decomposing it. The output still needs burying or adding to a heap to finish.

About the Author

We reference Wikipedia and other authoritative sources to explain the background and current understanding of this topic.


Loved This Article?

Share it on WhatsApp β†’ Share it on WhatsApp

Get more guides in your inbox β€” Subscribe to our newsletter for weekly surprising stories from Egypt, Saudi Arabia, Dubai, and beyond.


DE

doyouknow.app Editorial Team

Expert writer and researcher at doyouknow.app, covering facts and stories about Egypt, Saudi Arabia, the UAE, and the world.

More articles by this author β†’