Carbon to Nitrogen Ratio Calculator
Work out the C:N ratio of a two ingredient mix from weights, moisture and carbon and nitrogen percentages.
What it does
Compost microbes need carbon for energy and nitrogen to build cells. If the pile has too much carbon, decomposition slows down and the pile stays cool. If it has too much nitrogen, excess nitrogen can be lost as ammonia and the pile can smell. The carbon to nitrogen ratio, written C:N, is the number composters use to keep those two needs in balance.
You cannot average the C:N ratios of two ingredients to get the ratio of the mix. Instead, work out how much carbon each ingredient contributes and how much nitrogen each contributes, then divide one total by the other. The tool does exactly that, using the wet weight, moisture content and dry basis carbon and nitrogen percentages for each material.
Moisture matters because a wet kilogram contains less dry matter than a dry kilogram. The tool first converts each wet weight into a dry weight by removing the moisture fraction, then applies the carbon and nitrogen percentages to that dry weight. Both weights must be in the same unit, but the unit itself cancels out of the final ratio, so kilograms, pounds or buckets all work.
Published C:N values vary widely. Grass clippings and vegetable scraps are usually low, around 12 to 25:1, while straw, leaves, sawdust and paper are much higher. Mixing a high carbon material with a low nitrogen material is the standard way to move a pile toward the often recommended starting point near 30:1. Use the table below as a starting guide rather than a laboratory result.
The result is a design number, not a prediction of pile temperature or compost quality. Carbon availability differs between materials, and woody carbon can break down slowly even when the arithmetic looks ideal. Moisture, particle size, aeration and pile size all matter, so treat the ratio as one input among several when building a recipe.
How to use
- Weigh each ingredient in the same unit, such as kilograms or pounds.
- Find the moisture percentage of each material, or use a published estimate.
- Enter the dry basis carbon and nitrogen percentages for each ingredient.
- Leave the second material at zero if you are checking a single ingredient.
- Read the mixture C:N ratio along with the total carbon and nitrogen masses.
- Adjust the wet weights and recalculate until the ratio lands near your target.
Formula
- wi
- Wet weight of ingredient i, in any consistent unit.
- Mi
- Moisture percentage of ingredient i.
- Ci
- Carbon percentage of the dry matter in ingredient i.
- Ni
- Nitrogen percentage of the dry matter in ingredient i.
- C:N
- Mass of carbon divided by mass of nitrogen in the mixture.
This is the moisture corrected mixture equation used in composting guides. The wet weight times the dry matter fraction gives the dry weight, and multiplying by the carbon or nitrogen percentage gives the contributed mass. The tool prints total carbon and total nitrogen in the same arbitrary weight units you entered, so only their ratio has a fixed meaning. If both nitrogen contributions are zero, the ratio cannot be calculated and the tool returns an error.
Worked example
Example: 100 parts of dry material with 40 percent carbon and 2 percent nitrogen, plus 50 parts with 30 percent carbon and 1 percent nitrogen
Defaults: material 1 wet weight 100, moisture 0 %, carbon 40 % and nitrogen 2 %. Material 2 wet weight 50, moisture 0 %, carbon 30 % and nitrogen 1 %.
- Dry weight of material 1: 100 x (100 - 0) / 100 = 100.
- Dry weight of material 2: 50 x (100 - 0) / 100 = 50.
- Carbon mass: 100 x 40 / 100 + 50 x 30 / 100 = 40 + 15 = 55.
- Nitrogen mass: 100 x 2 / 100 + 50 x 1 / 100 = 2 + 0.5 = 2.5.
- Divide carbon by nitrogen: 55 / 2.5 = 22.0.
- The tool shows 22.0:1, total carbon 55.00 and total nitrogen 2.50.
Reference table
| Material | Typical C:N | Note |
|---|---|---|
| Vegetable scraps | 12 to 20:1 | Wet and nitrogen rich |
| Grass clippings | 12 to 25:1 | Nitrogen rich, compact easily |
| Coffee grounds | About 20:1 | Fine texture, mixes well |
| Fallen leaves | 30 to 80:1 | Varies with species and moisture |
| Straw | 40 to 100:1 | Bulky carbon source |
| Sawdust | 100 to 500:1 | Very high carbon, breaks down slowly |
| Paper | 150 to 200:1 | Shred first for better contact |
Limits
- Uses published or measured carbon and nitrogen percentages, so guesswork in those inputs carries straight into the result.
- Treats two ingredients only, which is enough for many recipes but not for complex blends.
- Does not model how quickly the carbon becomes available to microbes.
- Does not predict pile temperature, oxygen use or the final nutrient content of the compost.
Common mistakes
- Averaging the ingredient C:N ratios instead of adding carbon and nitrogen masses.
- Entering wet weight as if it were dry weight when moisture is high.
- Mixing weight units between the two ingredients.
- Using default carbon and nitrogen percentages for a material that is unusual.
- Expecting a ratio near 30:1 to guarantee a hot, well made pile.
Try it yourself
Quick checks. Answers sit tucked under each question.
Two dry ingredients: 100 parts at 40 percent carbon and 1 percent nitrogen, plus 100 parts at 10 percent carbon and 1 percent nitrogen. What is the ratio?
Carbon is 40 + 10 = 50 and nitrogen is 1 + 1 = 2. The tool shows 25.0:1, total carbon 50.00 and total nitrogen 2.00.
Ingredient 1 is 100 parts wet at 50 percent moisture, 40 percent carbon and 2 percent nitrogen. Ingredient 2 is 50 parts dry at 30 percent carbon and 1 percent nitrogen. What does the tool show?
Dry weights are 50 and 50. Carbon is 20 + 15 = 35 and nitrogen is 1 + 0.5 = 1.5, giving 23.3:1 with totals 35.00 and 1.50.
A single dry ingredient of 100 parts with 30 percent carbon and 1 percent nitrogen, with the second material left at zero. What is C:N?
Carbon is 30 and nitrogen is 1, so the ratio is 30.0:1. The tool shows 30.0:1 with totals 30.00 and 1.00.
Questions
What C:N ratio should a compost pile start at?
Many composting guides suggest about 30:1 at the start. Finished compost is usually much lower, often near 10:1, because microbes release carbon as carbon dioxide.
Can I just average two C:N ratios?
No. Add the carbon masses and the nitrogen masses separately, then divide. Averaging ratios gives the wrong answer whenever the ingredient amounts differ.
Why does moisture matter?
Carbon and nitrogen percentages are based on dry matter. Water adds weight without adding either element, so wet weights must be corrected before the percentages are applied.
Do I need to use kilograms?
No. Any weight unit works as long as both ingredients use the same one, because only the ratio of totals is reported.
Why is sawdust so high?
Sawdust is mostly structural carbon with very little nitrogen, so its C:N ratio can be several hundred to one. It breaks down slowly as a result.
Is a higher C:N always better?
No. Too much carbon starves microbes of nitrogen and slows decomposition, while too much nitrogen can cause ammonia loss and odours.
Sources
- Cornell Waste Management Institute: Composting in the Classroom, chapter 3
- Cornell Composting: C/N Ratio
- Oregon State University Extension: composting and the C to N ratio