Compost C:N Calculator.
Compost C:N Calculator
The carbon-to-nitrogen ratio and moisture of a compost mix, and how much of a material reaches your goal.
The C:N ratio of a compost mix is worked out on dry weight: for each material, its nitrogen is the dry weight times its percent nitrogen, and its carbon is that nitrogen times its C:N ratio; add up the carbon, add up the nitrogen, and divide (Cornell Waste Management Institute; On-Farm Composting Handbook, NRAES-54). The handbook's preferred starting range for rapid composting is 25:1 to 30:1 (20:1 to 40:1 workable), with moisture of 50 to 60% (40 to 65% workable). Because wet and dry materials differ, the C:N goal and the moisture goal usually call for different amounts: in Cornell's example, with its own values for the two materials, 10 kg of grass clippings needs 3.5 kg of leaves to reach 30:1, but 6.8 kg to bring the mix to 60% moisture.
The math
All three sources use the same two formulas. In words: the mix's C:N is its total carbon divided by its total nitrogen, each counted on dry weight, and its moisture is its total water divided by its total wet weight. As equations, for material n with wet weight Q, moisture M (% of wet weight), nitrogen N and carbon C (% of dry weight):
dry weight = Q × (100 − M) / 100 carbon % = N % × C:N ratio mix C:N = Σ [C × Q × (100 − M)] ÷ Σ [N × Q × (100 − M)] mix moisture % = Σ (Q × M) ÷ Σ Q
Holding every other material fixed, the calculator also solves for the amount of the last material that reaches the C:N goal, and the amount that reaches the moisture goal, from the same two equations (our rearrangement). With only two materials these are the handbook's shortcut formulas. If a mix is too dry, it also gives the water to add, since water raises moisture without changing the C:N ratio (Cornell). A negative answer means the goal cannot be reached that way: a wet material cannot bring a mix's moisture down, and a nitrogen-rich one cannot bring its C:N up (Cornell).
Which goal to meet. When the two goals call for different amounts, Cornell finds moisture usually the more critical, especially above 60%, where a pile is likely to go anaerobic; it advises erring toward a higher C:N, which may slow composting a little but is more likely to be trouble free. If the mix is dry, meet the C:N goal and add water. The handbook likewise suggests building a recipe on moisture first, then adjusting for C:N.
Worked examples it reproduces
| Example | Published | Calculator |
|---|---|---|
| Cornell: 10 kg grass (77% water, 2.4% N, 45% C) and leaves (35% water, 0.75% N, 50% C), goal 30:1 | 3.5 kg leaves | 3.47 kg |
| Same, goal 60% moisture | 6.8 kg leaves; the mix is then a little under 37:1 | 6.8 kg; 36.7:1 |
| Same, with 3.5 kg leaves | Moisture over 66% | 66.1% |
| Cornell: 10 kg grass, 13.31 kg leaves, 8.14 kg food scraps (80% water, 5.0% N, 42% C) | 60% moisture and 30:1 | 60.0%; 30.0:1 |
| NRAES-54: chicken manure (70% water, 6% N, 10:1) and sawdust (35% water, 0.11% N, 500:1), goal 60% | 0.4 lb sawdust per lb manure; mix 17.7:1 | 0.4 lb; 17.7:1 |
| NRAES-54: the same manure and wheat straw (15% water, 0.3% N, 128:1), goal 25:1 | 1 lb straw per lb manure; mix 42.5% moisture | 1.03 lb; 42.5% at 1 lb |
| University of Idaho: dairy manure (80% water, 2.5% N, 15:1) and straw (20% water, 0.5% N, 120:1), goal 30:1 | 0.2 lb straw per lb manure; mix 70% moisture | 0.21 lb; 70% at 0.2 lb |
Where the calculator shows more decimals, the publication rounded.
Typical raw materials
From Table A.1 of the On-Farm Composting Handbook (NRAES-54, 1992, pages 106 to 113), which compiles published values and warns they are representative, not true ranges or averages: test your own materials where it matters. Nitrogen is a percentage of dry weight; moisture of wet weight. A dash means the table gives no value; the calculator asks for it.
| Material | N (% dry) | C:N | Moisture (%) |
|---|
Cornell's own short lists put grass clippings at 15:1 to 25:1 and about 19:1, leaves at 30:1 to 80:1, straw at 40:1 to 100:1, wood chips or sawdust at 100:1 to 500:1 and higher, and manure at 5:1 to 25:1.
The other conditions for rapid composting
| Condition | Workable range | Preferred range |
|---|---|---|
| C:N ratio | 20:1 to 40:1 | 25:1 to 30:1 |
| Moisture | 40 to 65% | 50 to 60% |
| Oxygen | Greater than 5% | Much greater than 5% |
| Particle size | 1/8 to 1/2 inch across | Varies |
| pH | 5.5 to 9.0 | 6.5 to 8.0 |
| Temperature | 110 to 150°F | 130 to 140°F |
From NRAES-54 Table 2.1, for rapid composting; the handbook notes conditions outside these ranges can also give good results.
What the calculator does not do
- It does not account for how available the carbon is. Cornell notes straw, corn stalks and newspaper break down slowly because their carbon is bound in resistant forms, so a mix heavy in them may need a lower starting ratio.
- It works in weight, not volume. To convert, you need each material's bulk density (some are in the handbook's table, in pounds per cubic yard).
- It cannot tell you a material's true values. Moisture and nitrogen vary widely between sources of the same material; a laboratory test gives your own.
Sources
- Rynk, R. (ed.) and others. 1992. On-Farm Composting Handbook. NRAES-54, Northeast Regional Agricultural Engineering Service, Cornell University. Table 2.1 (recommended conditions, p. 6), Table 3.3 and the sample calculations (pp. 19 and 20), Table A.1 (raw materials, pp. 106 to 113).
- Richard, T. and N. Trautmann. C/N Ratio and Getting the Right Mix. Cornell Waste Management Institute. The mix formula, about 30:1, finished compost near 10:1, moisture limits, the grass and leaves example.
- Richard, T. Solving the Moisture and Carbon-Nitrogen Equations Simultaneously. Cornell Waste Management Institute. The three-material example, water as an ingredient, impossible goals.
- Cornell Waste Management Institute. Compost Chemistry and Richard, T. Composting Ingredients (Municipal Yard Waste Composting Fact Sheet 2, updated 2000). Short C:N lists, the fall from 30:1 to 10 to 15:1, slow carbon.
- Chen, L., A. Moore and M.E. de Haro-Martí. 2012. On-Farm Composting Management. University of Idaho Extension CIS 1190. Example 1, straw and dairy manure.
- 7 CFR 205.203(c)(2), USDA National Organic Program: compost's initial C:N ratio, read in the 2026 annual edition.
CC BY 4.0. Cite as "Open Agriculture Technology Compost C:N Calculator (openagriculturetechnology.com)".
Frequently asked questions.
What is the best C:N ratio for compost?
About 30:1 at the start (Cornell). The On-Farm Composting Handbook gives 25:1 to 30:1 as preferred for rapid composting and 20:1 to 40:1 as workable. Lower ratios lose nitrogen as ammonia and smell; higher ratios leave the pile cool and slow (Cornell).
How do you calculate the C:N ratio of a compost mix?
Work on dry weight. For each material, multiply the wet weight by (100 minus its moisture %) to get dry weight, then by its nitrogen % for nitrogen; its carbon is that nitrogen times its C:N ratio. Divide the total carbon by the total nitrogen (Cornell; NRAES-54). Averaging the materials' C:N ratios by wet weight gives the wrong answer.
How many leaves do I mix with grass clippings for compost?
It depends on the goal and the materials. In Cornell's example, 10 kg of grass clippings needs about 3.5 kg of leaves to reach 30:1, but 6.8 kg to bring the mix down to 60% moisture; with 6.8 kg the mix is a little under 37:1. Cornell's yard waste fact sheet suggests one part grass to three parts leaves as a rule of thumb.
How wet should a compost pile be?
50 to 60% water by weight is preferred, 40 to 65% workable (NRAES-54). Cornell recommends staying at or below 55 to 60% for most mixes, a little under the handbook's workable ceiling, because wetter piles tend to go anaerobic; decomposition slows below 35 to 40% and nearly stops below 30%.
What is the C:N ratio of manure?
It varies by animal and bedding. The On-Farm Composting Handbook's averages: cattle 19:1, horse 30:1, sheep 16:1, swine 14:1, broiler litter 14:1, laying hens 6:1, turkey litter 16:1. Cornell's short list gives manure 5:1 to 25:1.
What C:N ratio does organic certification require for compost?
The USDA organic rule counts as compost material that started at a C:N ratio between 25:1 and 40:1 and was held at 131 to 170°F for 3 days in an in-vessel or static aerated pile, or for 15 days in a windrow turned at least five times (7 CFR 205.203(c)(2)).
What C:N ratio does finished compost have?
About 10:1 to 15:1. The ratio falls during composting because microbes release about two-thirds of the carbon they consume as carbon dioxide (Cornell).
My compost mix is too dry. What should I add?
Water. It raises moisture without changing the C:N ratio, so for a dry mix Cornell suggests meeting the C:N goal first and adding water as needed. The calculator gives the amount of water to reach your moisture goal.