Skip to content

Compost Calculator (C:N Ratio and Moisture)

Work out the carbon-to-nitrogen ratio and moisture of a compost mix, how many browns or greens to add for 25–30:1, and the water needed.

Calculator Details

C:N ratio of your mix:25.9:1See results ↓

Pick the closest material; typical values from the On-Farm Composting Handbook

Wet weight as you add it (a 20 L bucket of grass clippings is about 4–5 kg)

Kilograms (volume in m³) or pounds (volume in cubic yards)

The handbook prefers 25–30:1; 20–40:1 still composts

The row whose amount is worked out to hit the targets (usually your brown)

Your Results

C:N ratio of your mix: 25.9:1

C:N ratio of your mix

25.9:1

within the 25–30:1 sweet spot

Moisture

75.2%

too wet: add dry browns

Leaves for 30:1

8.82 kg

Add 3.82 kg

Water to reach 55%

None

Or 34.71 kg of leaves for 55%

Loose pile volume

0.1 m³

25 kg before settling

Your mix has a C:N ratio of about 25.9:1 and 75.2% moisture. For 30:1, use 8.82 kg of leaves.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Carbon and nitrogen by material (kg)

Carbon and nitrogen by material (kg)

Detailed Breakdown

Your materialsTypical values from the On-Farm Composting Handbook (NRAES-54), Appendix A.
MaterialAmount (kg)N (% dry)C:NMoistureDry matterShare of N
Vegetable and fruit scraps102.719:187%1.328.3%
Grass clippings103.417:182%1.849.3%
Leaves (balancing)50.954:138%3.122.5%
Mix2525.9:175.2%6.2100%

How This Calculator Works

How it's calculated

C:N = Σ mass × %N × C:N × (100 − moisture) ÷ Σ mass × %N × (100 − moisture)

Moisture = Σ mass × moisture ÷ Σ mass

Amount of one material for a target R: (C_others − R × N_others) ÷ (R × N_per_unit − C_per_unit)

Your mix: 10 kg vegetable and fruit scraps (0.67 C, 0.04 N) + 10 kg grass clippings (1.04 C, 0.06 N) + 5 kg leaves (1.51 C, 0.03 N) gives 25.9:1 at 75.2% moisture. Holding the other rows, 8.82 kg of leaves brings it to 30:1.

Frequently Asked Questions

What is the best C:N ratio for compost?

About 25–30 parts carbon to 1 part nitrogen by weight, the On-Farm Composting Handbook’s preferred range; 20–40:1 still works. Below that, the extra nitrogen escapes as ammonia and the pile smells; above it, microbes run short of nitrogen and the pile composts slowly.

What is the greens to browns ratio for compost?

There is no single ratio by volume or weight, because greens and browns differ so much. Grass clippings are about 17:1 and leaves about 54:1, so equal weights of each give 34.6:1, and 5.9 kg of leaves per 10 kg of grass hits 30:1. Sawdust (442:1) needs far less. The calculator works it out for your materials.

Why does moisture matter in the C:N calculation?

Carbon and nitrogen are measured as a share of dry matter, and wet greens are mostly water: grass clippings are about 82% water, so 10 kg holds under 2 kg of dry matter. The formula multiplies each material’s nitrogen and carbon by its dry fraction (100 − moisture) before adding them up.

How wet should a compost pile be?

50–60% water by weight, which feels like a wrung-out sponge: a squeezed handful releases a drop or two. Drier than about 40% and composting slows; wetter than about 65% and air can’t get in, the pile turns anaerobic and smells. The calculator gives the water to add, or the dry browns to add, to reach your target.

Where do the material values come from?

Table A.1 of the On-Farm Composting Handbook (NRAES-54), which collects typical nitrogen, C:N, moisture and bulk density values from many studies. They are averages: your grass, manure or leaves can differ a lot. For a precise recipe, send samples to a lab, or enter your own values in the two custom rows.

Can I compost with only one material?

Rarely well. A material close to the target, such as horse manure with bedding (about 30:1), can compost alone, but most greens are too rich in nitrogen and too wet, and most browns too dry and too poor in nitrogen. Mixing two or three lets you hit both the C:N ratio and the moisture.

How big should a compost pile be?

A home pile needs about 1 cubic metre (roughly 1 cubic yard, 3 ft × 3 ft × 3 ft) to hold heat. The calculator estimates the loose volume of your materials from the handbook’s bulk densities; the pile settles as it composts and usually shrinks by half or more.

A mixing estimate with the Cornell Waste Management Institute’s composting formulas and the typical material values in the On-Farm Composting Handbook (NRAES-54, 1992), Appendix A; targets of 25–30:1 and 50–60% moisture are the handbook’s preferred ranges. Real materials vary widely (grass clippings run from 9:1 to 25:1), so treat the result as a starting recipe and adjust by feel and smell. Not included: how available the carbon is (wood carbon breaks down far more slowly than leaf carbon, so a sawdust mix composts as if it had less carbon), particle size, porosity and bulk density after settling, pH, nutrient content of the finished compost, pile temperature and turning schedules, and rules for composting manure, food waste or animal mortalities in your province or state.

Compost Calculator: C:N Ratio, Moisture and How Many Browns to Add

By FindMySum · Last reviewed

A compost pile is a microbial kitchen, and like any recipe it works best with the right proportions. The two that matter most are the carbon-to-nitrogen ratio (C:N) and the moisture. This compost calculator takes up to four materials and their weights, works out both for the mix, and tells you how much of one material to add or take out to hit a target ratio, plus how much water a dry pile needs.

Why carbon and nitrogen

The bacteria and fungi that break down organic matter use carbon for energy and to build their cells, and nitrogen for proteins. They need roughly 25 to 30 times as much carbon as nitrogen. With too little carbon (a low C:N, such as a pile of fresh grass clippings), the extra nitrogen escapes as ammonia, the pile smells and you lose nutrients. With too much carbon (a high C:N, such as a pile of dry leaves), the microbes run short of nitrogen and the pile sits there for months.

Gardeners call nitrogen-rich materials greens and carbon-rich ones browns, but the colour is only a hint. Fresh manure is brown and a green; straw is yellow and a brown.

How the calculator works

The Cornell Waste Management Institute's formula weighs each material's carbon and nitrogen by how much dry matter it contributes:

C:N of the mix = Σ (mass × %N × C:N × (100 − moisture)) ÷ Σ (mass × %N × (100 − moisture))

Each material's nitrogen and C:N come from Table A.1 of the On-Farm Composting Handbook, which lists typical values gathered from many studies. Moisture is a simple weighted average of the wet weights.

To balance the mix, the calculator holds every row except one fixed and solves for the weight of that row that gives your target ratio. If the material you chose is on the same side of the target as everything else (for example, trying to fix a nitrogen-heavy mix by adding more grass), no amount of it works, and the page says so.

Worked example: the default mix

The default is 10 kg of vegetable and fruit scraps, 10 kg of grass clippings and 5 kg of leaves:

  • Vegetable scraps: 2.7% nitrogen, 19:1, 87% water
  • Grass clippings: 3.4% nitrogen, 17:1, 82% water
  • Leaves: 0.9% nitrogen, 54:1, 38% water

Only 6.2 kg of the 25 kg is dry matter. The mix comes out at 25.9:1, a little low, and 75.2% moisture, which is too wet. Holding the scraps and grass fixed, 8.8 kg of leaves (3.8 kg more) brings it to 30:1, and the extra dry leaves also bring the moisture down. The table shows each material's share of the nitrogen: here the grass supplies most of it.

The Cornell grass and leaves example

Cornell's own worked example mixes 10 kg of grass clippings (2.4% nitrogen, 45% carbon, 77% moisture) with leaves (0.75% nitrogen, 50% carbon, 35% moisture). For 30:1 you need 3.5 kg of leaves, but that mix is still over 66% water. For 60% moisture you need 6.8 kg of leaves, which pushes the ratio to a little under 37:1. Both answers are acceptable; real recipes are a compromise between the two targets, which is why the calculator shows both. You can reproduce the example with the two custom rows under the advanced options.

Getting moisture right

Microbes live in the thin film of water around each particle, so a dry pile stalls. A waterlogged one fills the gaps with water instead of air, turns anaerobic and smells. The handbook's preferred range is 50–60% by weight. In the hand, that is a wrung-out sponge.

If your mix is too dry, the calculator gives the water to add (in litres for a kilogram mix; a litre of water weighs a kilogram). If it is too wet, it gives the weight of your balancing material that would bring it down, provided that material is drier than the target. Wet greens and dry browns pull in opposite directions on both targets, so a mix that is too wet is usually also short of carbon.

Volume and pile size

The handbook lists loose bulk densities for most materials, and the calculator uses them to estimate the volume of your pile before it settles. Leaves are light (around 200 lb per cubic yard loose), so 5 kg of leaves takes much more room than 10 kg of food scraps. A backyard pile needs about a cubic metre to hold its heat; smaller piles still compost, but slowly and without killing weed seeds. Straw, food waste and corn stalks have no bulk density in the table, so they are left out of the volume and the page says which.

Limits of the numbers

The values in the table are averages, and real materials vary a lot: grass clippings range from 9:1 to 25:1 depending on the lawn and the season. Woody materials also hold carbon in forms microbes can't use quickly, so a sawdust or wood chip mix behaves as if its C:N were lower than calculated. Use the result as a starting recipe, then adjust by feel and smell. For farm-scale composting, a lab analysis of your own materials is worth the cost.

Related calculators

For the volume of soil, mulch or compost to cover a bed, use the mulch, gravel and soil calculator. The rainwater harvesting calculator sizes a barrel to keep the pile and garden watered, and the grass seed calculator covers the lawn that supplies the clippings.

More questions

Is the C:N ratio by weight or by volume?

By weight, and on a dry basis: carbon and nitrogen are measured as a percentage of dry matter, and a ratio of 30:1 means 30 g of carbon for every gram of nitrogen. Volume rules of thumb such as 'two or three buckets of browns per bucket of greens' only work because leaves and straw are fluffy and light; they say nothing about the chemistry.

Why does my compost smell of ammonia?

Too much nitrogen for the carbon available, often a pile heavy in grass clippings, food scraps or chicken manure. The surplus nitrogen leaves as ammonia gas, which wastes it as a nutrient. Mix in a carbon-rich brown such as leaves, straw, shredded cardboard or sawdust and turn the pile.

Why is my compost pile not heating up?

The usual causes are too little nitrogen (a C:N ratio well above 40:1), too little water, or a pile too small to hold its heat. Check the mix in the calculator, add greens or water as it suggests, and build the pile to at least about a cubic metre.

Is sawdust a good brown?

In small amounts. It is very carbon-rich (about 442:1 in the handbook's table) and much of its carbon is in lignin that breaks down slowly, so a mix that looks balanced on paper composts as if it had less carbon. Use it in thin layers, keep it under about a quarter of the mix by weight, and avoid sawdust from treated wood.

Can I put dog or cat waste in my compost?

Not in a home pile used for food crops. Pet waste can carry parasites and pathogens that a backyard pile does not get hot enough to kill. Municipal guidance in Canada and the US generally says to keep it out of backyard compost.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy