InputTestHub

Compost Ratio Calculator

Works out the carbon to nitrogen ratio of a compost mix, or solves for the browns needed to hit a target ratio.

Calculators Nothing uploaded No sign-up Free, unlimited
Calculators tool
Enter your figures and press Calculate.
In short A compost heap works when its carbon-to-nitrogen ratio lands somewhere between about 25:1 and 35:1. Above roughly 40:1 the microbes run short of nitrogen and the heap sits cold for a year; below about 20:1 the surplus nitrogen leaves as ammonia, which is what the smell is and is fertiliser walking away. So the practical question is how much brown material to add to a given amount of green — and almost every calculator online answers it wrongly. THE MISTAKE IS AVERAGING THE RATIOS. Mix equal weights of dry leaves at 55:1 and fresh grass at 17:1 and the average of the two ratios is 36. The true answer is 38:1, because leaves are drier and carry more dry matter per kilo. Do the same with sawdust at 400:1 and grass at 17:1 and the average says 208:1 while the truth is 83:1 — out by a factor of two and a half. The reason is simple once seen: a heap ratio is TOTAL CARBON over TOTAL NITROGEN, and carbon and nitrogen add up while ratios do not. Sawdust is 0.125% nitrogen, so a kilo of it contributes almost none, and the mixture ends up weighted towards whatever is actually supplying the nitrogen. That is why sawdust is a far weaker corrective than its headline number suggests, and why leaves at 55:1 do more work per kilo than they look like they should. This page does the additive arithmetic, in both directions: give it two materials and weights and it returns the mixture, or give it a target and it solves for the parts of brown per part of green exactly. It also shows what the naive average would have told you, so the size of the error is visible rather than asserted. Two honest caveats. The carbon fractions and C:N ratios are published typical values and every one is a range — grass clippings run from about 12:1 to 25:1 depending on how recently the lawn was fed. And moisture matters as much as the ratio: a heap wants 50 to 60% water, wrung-out-sponge damp, and a perfectly balanced heap of dry material does nothing at all. That is exactly why an autumn pile of leaves sits untouched until spring rain finds it.

How to use the Compost Ratio Calculator

  1. Enter your figures in the input fields.
  2. The result updates as you type, together with the full working.
  3. Check the breakdown table to see exactly how the number was reached.

About the Compost Ratio Calculator

The Compost Ratio Calculator works out the carbon to nitrogen ratio of a compost mix, or solves for the browns needed to hit a target ratio. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.

What people use it for

  • Balancing a heap that has gone cold or gone slimy.
  • Working out how many leaves to save for next summer.
  • Checking advice that quotes a brown-to-green ratio.

Details

A heap wantsRoughly 25:1 to 35:1
The mix ratio isTotal carbon over total nitrogen — not an average of ratios
Sawdust is400:1, but only 0.125% nitrogen
Moisture wanted50 to 60% — wrung-out-sponge damp
Carbon and nitrogen add up; ratios do not. The C:N values are published ranges, not constants.

Frequently asked questions

What is the right carbon to nitrogen ratio for compost?
Between about 25:1 and 35:1. Above 40:1 it sits cold; below 20:1 it goes anaerobic and smells of ammonia.
Why is my answer different from the brown-to-green ratio I was told?
Because most rules of thumb are by volume and this works by weight, and because a mixture ratio is total carbon over total nitrogen rather than an average of the two ratios. The two disagree badly whenever the materials differ in nitrogen content.
Is sawdust good for fixing a wet, smelly heap?
Less than its 400:1 suggests. It is only 0.125% nitrogen, so it contributes almost no nitrogen and shifts the ratio slowly. It also rots very slowly. Dry leaves or shredded cardboard do more per kilo.
My ratio is perfect but nothing is happening. Why?
Almost always moisture. A heap needs 50 to 60% water. Dry material with an ideal ratio is inert, which is why a pile of autumn leaves does nothing until it is properly wet.
Is the Compost Ratio Calculator free?
It is free, with no account, no trial and no daily cap. Every calculators tool on inputtesthub.com works the same way: open the page and use it.
Is my data uploaded anywhere?
No. The Compost Ratio Calculator runs entirely in your browser using JavaScript. Your input never reaches inputtesthub.com or any third party — open your browser's Network tab while you use it and you will see no request go out.
What does a typical result look like?
Enter Equal weights of dry leaves and fresh grass and the Compost Ratio Calculator returns 38:1 — not the 36:1 an average of the ratios gives.
Who is the Compost Ratio Calculator for?
The most common reasons people reach for it: balancing a heap that has gone cold or gone slimy. Working out how many leaves to save for next summer. Checking advice that quotes a brown-to-green ratio. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Is there a catch?
Carbon and nitrogen add up; ratios do not. The C:N values are published ranges, not constants.
What figures does the Compost Ratio Calculator work from?
A heap wants is Roughly 25:1 to 35:1. The mix ratio is is Total carbon over total nitrogen — not an average of ratios. Sawdust is is 400:1, but only 0.125% nitrogen. These are printed on the page itself, so you do not have to take them on trust.
Can I rely on this for exact work?
The calculation runs in double precision and the result is shown to ten significant figures, so converting a value and converting it back returns the original. What is displayed is rounded for readability; what is copied is not.

Related calculators tools

All 382
01

Loan Calculator

Works out the monthly payment, total interest and full repayment schedule for any loan from…

02

EMI Calculator

Calculates your Equated Monthly Instalment with a full principal-versus-interest breakdown and…

03

Mortgage Calculator

Estimates a full monthly housing payment including principal, interest, property tax…

04

Car Loan Calculator

Calculates a car finance payment from the price, deposit, trade-in, interest rate and term…

05

Personal Loan Calculator

Works out instalments and total cost for an unsecured personal loan, including any processing…

09

SIP Calculator

Projects the maturity value of a monthly Systematic Investment Plan, showing invested amount…