Compost C:N ratio calculator

Enter up to three compost materials by weight with their moisture, nitrogen and C:N values. The calculator gives the C:N ratio of the whole pile, its moisture and how much of the second material brings the mix to your target. The starting values are rules of thumb: replace them with figures for your own materials when you have them.

%
%
%
%
%
%
C:N ratio of the mix37.9 : 1
Rule-of-thumb reading
20–40: a workable range for composting
Moisture of the mix
60 %
Material 2 for the target (same weight unit)
4.2
Total weight
20

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Enter the weight of each material as you would add it, wet. Set the weight of an unused slot to 0.
  2. Check the moisture, the nitrogen share (on a dry basis) and the C:N ratio of each material. Change the defaults if you know better values.
  3. Read the C:N ratio of the mix and its moisture. Put the material you would add more of (usually the brown one) in slot 2 to see how much brings the pile to the target.

How it works

For each material the calculator works out the dry matter, then the nitrogen and carbon in it:

  • dry matter = weight × (1 − moisture)
  • nitrogen = dry matter × N%
  • carbon = nitrogen × C:N

C:N of the mix = total carbon ÷ total nitrogen. The weight of material 2 for a target ratio R makes the carbon left over by the other materials balance out: the sum of nitrogen × (C:N − R) over all materials equals zero. If no positive amount does that, the line is not shown.

Example

10 kg of grass clippings and 10 kg of dry leaves, with the defaults:

  • grass: 10 × 0.18 × 0.024 = 0.0432 kg of nitrogen and 0.0432 × 17 = 0.734 kg of carbon;
  • leaves: 10 × 0.62 × 0.009 = 0.0558 kg of nitrogen and 3.013 kg of carbon.

The mix is (0.734 + 3.013) ÷ (0.0432 + 0.0558) = 37.9 : 1, with a moisture of 60%. To reach 30 : 1 you need only 4.2 kg of leaves per 10 kg of grass, because the wet grass has so little nitrogen per kilogram of fresh weight.

Tips and common mistakes

  • Moisture matters as much as the ratio: a squeezed handful should feel like a wrung-out sponge.
  • Shred woody and leafy browns; a good ratio does not help much if the pieces are large.
  • Food scraps and fresh grass are greens; dry leaves, straw, cardboard and wood chips are browns.

Frequently asked questions

What is a good C:N ratio for compost?

A mix of roughly 25 to 30 parts carbon to 1 part nitrogen is the usual starting goal, and piles from about 20 to 40 still compost. Below that, nitrogen escapes as ammonia; above it, the pile decomposes slowly.

Why not just average the C:N numbers?

Because a ratio of a mix depends on how much carbon and nitrogen each material actually brings. Wet grass carries little dry matter per kilogram, and its nitrogen counts far more than its weight suggests. The calculator adds up carbon and nitrogen separately and only then divides.

Where do the default values come from?

They are typical figures often quoted for grass clippings (C:N 17, 2.4% N, 82% water), dry leaves (54, 0.9%, 38%) and straw (80, 0.7%, 12%). Real materials vary widely with species, age and storage, so treat them as a starting point and replace them with lab or supplier figures when you have them.

What units should I use for weight?

Any unit, as long as it is the same for every material: kilograms, pounds or full buckets of a similar weight. The amount of material 2 needed is given in that same unit.

More in Home

All tools in this category: Home ·Updated November 6, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.