🔬
🔬 Science & engineering

Compost C:N Ratio Calculator

Results update as you type.

Your numbers

Understanding the compost C:N ratio calculator — concept and principle

The carbon-to-nitrogen (C:N) ratio is the main recipe number in composting. Microbes need carbon for energy and nitrogen to build protein, and they work fastest when the two are in the right proportion. This calculator finds the C:N ratio of a mix of two materials, such as straw or dry leaves (carbon-rich "browns") and grass clippings or food scraps (nitrogen-rich "greens").

C:N ratio of a two-material compost mixBrown material gives N 7 and C 420, green gives N 25 and C 375; 795 ÷ 32 = 24.8, at the low edge of the 25–30 target.Add up carbon and nitrogen, then divideBrown · C:N 6010 kgN 10 × 0.7% = 7C 7 × 60 = 420Green · C:N 1510 kgN 10 × 2.5% = 25C 25 × 15 = 375C 795 ÷ N 32 = 24.8 : 1target 25–301025306024.8Not a plain average: (60 + 15) ÷ 2 = 37.5 ✗
The nitrogen-rich green pulls the mix to about 25 : 1, not to the 37.5 a simple average suggests.

How it is calculated

Masses should be on the same basis as the nitrogen percentage, ideally dry mass, because water contains neither carbon nor nitrogen.

The principle

Ratios cannot be averaged directly. A material with C:N 60 and one with C:N 15 do not give 37.5 when mixed equally, because the nitrogen-poor material contributes little nitrogen. The correct method converts each material back to absolute amounts of carbon and nitrogen, adds them, and then divides. In effect, each material's C:N is weighted by how much nitrogen it supplies.

Worked example

  1. Inputs: material 1 = 10 kg, C:N 60, N 0.7%; material 2 = 10 kg, C:N 15, N 2.5%.
  2. Nitrogen (in % × kg units): 10 × 0.7 = 7 and 10 × 2.5 = 25; total 32.
  3. Carbon: 7 × 60 = 420 and 25 × 15 = 375; total 795.
  4. Mix C:N = 795 ÷ 32 = 24.84, i.e. about 25 : 1.
How Mix C:N changes with Material 1 C:NHow Mix C:N changes with Material 1 C:N152025303540153045607590120Example: 24.84375Material 1 C:N
Each point is the calculator re-run with only “Material 1 C:N” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Material 1 C:NMix C:N
1515
3018.28125
4521.5625
6024.84375
7528.125
9031.40625
12037.96875

How to read the result

Where does your result fall?Too high (slow)20253040Too low (N loss)Slightly lowTargetSlightly highToo high (slow)Your result: 24.8438 :1 · Slightly lowReference: Composting target C:N 25–30:1
Where does your result fall?

The usual target for an active pile is about 25–30 : 1, and the example sits just at the lower edge. Much above 30–40 : 1, decomposition slows because nitrogen runs out; much below about 20 : 1, surplus nitrogen tends to escape as ammonia and the pile can smell. To raise the ratio, add more carbon-rich material; to lower it, add more nitrogen-rich material. Typical values are roughly 50–80 : 1 for straw, 30–80 : 1 for dry leaves, 12–25 : 1 for grass clippings and 15–25 : 1 for vegetable scraps, but they vary widely.

Common mistakes

Keep in mind: Published C:N values are averages; real materials vary with source and age. For precise work, use laboratory analysis of your own feedstocks.

Frequently asked questions

How do I mix to reach exactly 30 : 1?

Increase the carbon-rich material in steps and recalculate until the result reaches 30, or solve the formula for the mass that gives 30.

Is the C:N of finished compost different?

Yes. Carbon is lost as CO₂ during composting, so mature compost usually has a lower ratio, often around 10–20 : 1.

Can I mix more than two materials?

Yes. Add a carbon term and a nitrogen term for each material to the sums.

Sources: R. T. Haug, The Practical Handbook of Compost Engineering, Lewis Publishers, 1993 · Cornell Waste Management Institute, Cornell Composting: Compost Chemistry

Checked 8 Nov 2026. Standard textbook formulas in SI units, computed in your browser. For learning and estimates — real designs must follow your local codes and be checked by a qualified engineer.

🔬 All science & engineering tools →🌍 Calculators by country →