Skip to content
FiftyCalc Free calculators for all 50 states

Compost Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Mix greens and browns by weight and see the C:N ratio and moisture of your compost pile.

Result

Sample figures

C:N ratio of the mix (carbon parts per 1 part nitrogen)—

Moisture of the mix —

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Compost Calculator

Units: switches the fields between the two unit systems.

Greens weight (e.g. grass clippings), in lb: enter 0 or more. Prefilled example: 100.

Greens nitrogen (% of dry weight): enter 0 or more. Prefilled example: 2.5.

Greens C:N ratio (example): enter 0 or more. Prefilled example: 17.

Greens moisture, in percent: enter a number from 0 to 99. Prefilled example: 80.

Browns weight (e.g. dry leaves), in lb: enter 0 or more. Prefilled example: 100.

Browns nitrogen (% of dry weight): enter 0 or more. Prefilled example: 0.8.

Browns C:N ratio (example): enter 0 or more. Prefilled example: 60.

Browns moisture, in percent: enter a number from 0 to 99. Prefilled example: 20.

Affiliate link

This is an affiliate link. As an Amazon Associate I earn from qualifying purchases. This does not change the result.

Search Amazon for compost. Visit Amazon

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Units: switches the fields between the two unit systems.
  2. Greens weight (e.g. grass clippings), in lb: enter 0 or more.
  3. Greens nitrogen (% of dry weight): enter 0 or more.
  4. Greens C:N ratio (example): enter 0 or more.
  5. Greens moisture, in percent: enter a number from 0 to 99.
  6. Browns weight (e.g. dry leaves), in lb: enter 0 or more.
  7. Browns nitrogen (% of dry weight): enter 0 or more.
  8. Browns C:N ratio (example): enter 0 or more.
  9. Browns moisture, in percent: enter a number from 0 to 99.
  10. Read the result: C:N ratio of the mix (carbon parts per 1 part nitrogen); the panel also shows Moisture of the mix.

How this calculator works

C:N of the mix = Σ Q × N × (C:N) × (100 − M) ÷ Σ Q × N × (100 − M), where Q is the wet weight of each material, N its nitrogen as % of dry weight, C:N its carbon-to-nitrogen ratio and M its moisture %. This is the mixing formula of the Cornell Waste Management Institute; (100 − M) turns wet weight into dry weight.

Moisture of the mix = Σ Q × M ÷ Σ Q. Most composting guides aim for a starting C:N near 30:1 and a moisture of about 50% to 60%. Values here are examples: use lab or published values for your own materials.

The formula

  1. R=qg×ng×rg×(100−mg)+qb×nb×rb×(100−mb)qg×ng×(100−mg)+qb×nb×(100−mb)
Symbols used in the formula
SymbolMeaningUnit
qgGreens weight (e.g. grass clippings)lb
ngGreens nitrogen (% of dry weight)
rgGreens C:N ratio (example)
mgGreens moisture%
qbBrowns weight (e.g. dry leaves)lb
nbBrowns nitrogen (% of dry weight)
rbBrowns C:N ratio (example)
mbBrowns moisture%
RC:N ratio of the mix (carbon parts per 1 part nitrogen)

Worked example

Greens weight (e.g. grass clippings)100 lb
Greens nitrogen (% of dry weight)2.5
Greens C:N ratio (example)17
Greens moisture80%
Browns weight (e.g. dry leaves)100 lb
Browns nitrogen (% of dry weight)0.8
Browns C:N ratio (example)60
Browns moisture20%
Moisture of the mix50%
  1. R=100×2.5×17×(100−80)+100×0.8×60×(100−20)100×2.5×(100−80)+100×0.8×(100−20)=41.1404

C:N ratio of the mix (carbon parts per 1 part nitrogen) 41.1

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What is a good C:N ratio for compost?

About 25:1 to 30:1 at the start is the common target. Much higher and the pile is slow; much lower and nitrogen escapes as ammonia.

Why does moisture change the ratio?

Carbon and nitrogen sit in the dry matter. A wet material such as grass contributes less dry matter per pound than dry leaves.

Related calculators