🍂
✓ Editorially reviewed by Derek Giordano, Founder & Editor · BA Business Marketing

Compost C:N Ratio Calculator

Balance up to three compost materials for a 30:1 carbon-to-nitrogen ratio and 60% moisture with Cornell’s composting equations, including the two-goal solution

Updated October 2026

🧮
700+ calculators, no signup required
Finance · Health · Math · Science · Business
nnng.com
Compost mix C:N = total carbon ÷ total nitrogen on a dry-weight basis; aim for about 30:1 and 60% moisture. With Cornell’s example materials, 10 kg of grass clippings, 13 kg of leaves and 8 kg of food scraps give Mix: 29.9:1 C:N at 60.2% moisture (31.0 units total).

Why Carbon, Nitrogen and Water Have to Balance

Compost microbes use carbon for energy and nitrogen to build protein. Cornell’s composting program puts the usual starting target at about 30 parts carbon to 1 part nitrogen. Too little nitrogen and the pile will not heat up. Too much, and it can overheat or go anaerobic and smell. As carbon leaves as carbon dioxide, the ratio falls, and finished compost is typically close to 10:1. Moisture is the other half. Cornell’s examples aim for 60%, and in its grass-and-leaves example moisture turns out to be the more critical of the two goals.

The Mixing Formula and a Worked Example

The C:N of a mix is the total carbon divided by the total nitrogen, both on a dry-weight basis. Each material contributes its wet weight × (100 − moisture%) × its carbon or nitrogen percentage. So R = Σ Q × C × (100 − M) ÷ Σ Q × N × (100 − M), and the mix moisture is Σ Q × M ÷ Σ Q.

Cornell’s example. Grass clippings are 77% water, 45% carbon and 2.4% nitrogen (C:N 18.75). Leaves are 35% water, 50% carbon and 0.75% nitrogen (C:N 66.67). Food scraps are 80% water, 42% carbon and 5.0% nitrogen.

The calculator’s default is that rounded mix, and it returns 29.9:1 at 60.2% moisture.

Typical Values for Common Materials

MaterialC:N (Cornell table)MoistureRole
Grass clippings10 to 25:1about 80% (77% in the worked example)Green
Vegetable scraps10 to 20:180 to 90%Green
Fruit wastes20 to 50:180 to 90%Green
Coffee grounds20:1not listedGreen
Horse manure20 to 50:1not listedGreen to neutral
Autumn leaves40 to 80:1about 40% (35% in the worked example)Brown
Straw50 to 150:1not listedBrown
Sawdust200 to 750:1about 40%Brown
Newspaper400 to 900:1not listedBrown
Corrugated cardboard600:1not listedBrown

Cornell calls these representative ranges, not universal values. Leaves alone range from about 15:1 (alder) to 113:1 (larch) in its leaf table, and maple and oak run 52 and 47. To use a C:N figure in the calculator, pick a nitrogen percentage and set carbon = N × C:N, which is Cornell’s own conversion. A lab test of your actual material beats any table.

Scenarios

Mix (kg, Cornell material values)C:NMoistureVerdict
10 grass + 3.5 leaves (C:N solution only)30.0:166.2%Right ratio, too wet
10 grass + 6.8 leaves (moisture solution only)36.7:160.0%Right moisture, ratio a bit high
10 grass + 13 leaves + 8 food scraps29.9:160.2%Both goals, Cornell’s solution
10 grass + 10 leaves41.2:156.0%Dry side, carbon-heavy
10 food scraps + 5 leaves19.8:165.0%Wet and nitrogen-rich: needs more browns

Weight vs Volume, and Fixing a Pile That Is Off

Cornell’s equations use weight, because C:N and moisture are percentages by mass. A bucket of wet grass weighs far more than a bucket of dry leaves, so a “two buckets of browns to one of greens” rule can land anywhere. Weigh a bucket of each material once, then convert. If the pile stays cold, it usually needs nitrogen or water. If it smells, it usually needs dry carbon and air. Cornell suggests treating water as one of the unknowns when your ingredients are dry. Water raises moisture without changing the C:N.

Common Mistakes

What This Calculator Leaves Out

It balances carbon, nitrogen and water only. It does not cover particle size, aeration, pile size or temperature. It ignores how much of the carbon microbes can actually reach: woody materials such as sawdust release carbon slowly. It also does not cover which materials are safe to compost at home. Your local extension office or municipal compost program has rules for meat, dairy, pet waste and diseased plants.

Frequently Asked Questions

What is the best carbon-to-nitrogen ratio for compost?
About 30:1 at the start, the usual target in Cornell’s composting guidance. Finished compost ends near 10:1.
Are compost ratios by weight or by volume?
By weight. C:N and moisture are mass percentages, and wet greens weigh much more per bucket than dry browns.
How many leaves do I need for my grass clippings?
With Cornell’s values, about 3.5 kg of leaves per 10 kg of grass balances the C:N, but about 6.8 kg is needed to bring moisture to 60%.
Why does my compost smell?
Usually too much nitrogen or water and too little air. Add dry, high-carbon browns such as leaves, straw or shredded cardboard and turn the pile.
Why is my compost pile not heating up?
Most often too little nitrogen or too little water. Add greens such as grass or food scraps, or water a dry pile.
Can I compost cardboard and newspaper?
Yes, as browns. Cornell lists corrugated cardboard near 600:1 and newspaper at 400 to 900:1, so a little goes a long way.

How to Use This Calculator

  1. Enter your main material — amount in any weight unit plus its moisture, carbon and nitrogen; grass clippings are the default.
  2. Add a brown and a third material — leaves and food scraps are filled in from Cornell’s example; set material 3 to 0 if you have only two.
  3. Set your goals — 30:1 and 60% moisture are the usual targets.
  4. Read the mix and the solutions — current C:N and moisture, how much material 2 alone would need, and the three-material mix that hits both goals.
📚 Sources & References
  1. [1] Richard T, Trautmann N. C/N Ratio. Cornell Composting, Cornell Waste Management Institute (1996). www.css.cornell.edu
  2. [2] Richard T. Solving the Moisture and Carbon-Nitrogen Equations Simultaneously. Cornell Composting (1996). www.css.cornell.edu
  3. [3] Composting in the Classroom, ch. 3: Getting the Right Mix, Tables 3-1 to 3-3, Cornell Waste Management Institute (accessed Oct 2026). cwmi.css.cornell.edu
✅ Editorial Standards — Every calculator is built from peer-reviewed formulas and official data sources, editorially reviewed for accuracy, and updated regularly. Read our full methodology · About the author