Compost C/N ratio calculator: mix, moisture and balance

C/N ratio and moisture of your compost mix weighted by dry matter, a sourced table of 18 materials and the amount to add to reach a C/N of 30.

Compost C/N ratio: the Cornell formula with a worked example

A mix's C/N is computed on dry matter: R = Σ Q × C × (100 − M) ÷ Σ Q × N × (100 − M), with Q the wet mass, C and N in % of dry matter and M the moisture in %. Cornell recommends about 30:1 at the start; LSU AgCenter, after the NRAES-54 handbook, gives 25 to 30 as the preferred range.

Formula

Each material counts in the mix by its dry mass, Q × (100 − M) ÷ 100, not by its fresh weight. The mix moisture is Σ Q × M ÷ Σ Q. To aim at a given C/N, the mass of the material to adjust follows from the others: Qx = Σ Qi × (100 − Mi) × (Ci − R × Ni) ÷ [(100 − Mx) × (R × Nx − Cx)].

Example

10 kg of food scraps (N 2.4%, C 36%, 69% water), 5 kg of grass clippings (3.4%, 52.3%, 82%) and 8 kg of fallen leaves (0.9%, 48.6%, 45%) give 3.1 + 0.9 + 4.4 = 8.4 kg of dry matter. Carbon: 111.6 + 47.1 + 213.8 = 372.5; nitrogen: 7.44 + 3.06 + 3.96 = 14.46. C/N = 372.5 ÷ 14.46 = 25.8, moisture 63.5%. Reaching 30 takes 13.2 kg of leaves instead of 8; moisture drops to 60.1%.

Benchmarks and limits

  • C/N: 20 to 40 reasonable, 25 to 30 preferred; moisture: 40 to 65% reasonable, 50 to 55% preferred (LSU AgCenter, after NRAES-54).
  • Table values are averages of lab analyses: your materials may differ, hence the editable fields.
  • The calculation ignores hard-to-degrade carbon (wood lignin, cardboard), which slows composting even at a correct C/N.

Sources and dates: Cornell Waste Management Institute, C/N Ratio; LSU AgCenter, Compost Feed Stock (pub. 3838-D, 2022); Compost Research & Education Foundation, The Composting Handbook, Appendix B (revised 20/12/2021) (checked on 29/10/2026)

Frequently Asked Questions

What is the right carbon to nitrogen ratio for compost?

Cornell recommends about 30:1 at the start. LSU AgCenter, after the NRAES-54 handbook, rates 20 to 40 as reasonable and 25 to 30 as preferred; finished compost falls towards 10:1.

How do I calculate the C/N of a compost mix?

Weight each material by its dry mass: multiply mass × (100 − moisture) × C, add them up, then divide by the same sum with N. 10 kg of food scraps, 5 kg of grass and 8 kg of leaves give 25.8.

What moisture should a compost pile have?

40 to 65% water is reasonable and 50 to 55% preferred according to LSU AgCenter. The example mix is at 63.5%: acceptable, but dry materials such as leaves or cardboard will bring it down.

What is the C/N of fallen leaves and cardboard?

According to Appendix B of The Composting Handbook, fallen leaves are around 54:1 and corrugated cardboard 563:1. Grass clippings sit at 15:1 and food scraps at 15:1.

Is this tool really free?

Yes, all tools on Kristools are 100% free and accessible without registration.

Is my data protected?

Yes. All processing is performed directly and securely inside your browser. No personal data is sent to our servers.