Razão C:N compostagem
- Created by
- Renato Passos, Eng. de Software
- Reviewed by
- Renato Passos, Eng. de Software
Last updated: Apr 18, 2026
About this calculator
The Carbon-Nitrogen (C:N) Ratio Calculator for composting helps you find the optimal balance between carbon-rich materials (browns) and nitrogen-rich materials (greens) in your compost pile. The C:N ratio is a critical factor for successful composting: if too high, decomposition slows down; if too low, it may cause odors and nitrogen loss. The calculator uses the formula: C:N = (total carbon mass)/(total nitrogen mass), considering typical percentages for each material.
To use the tool, enter the types and amounts (in grams or kilograms) of materials you intend to compost. The calculator automatically sums the carbon and nitrogen from each item and displays the final C:N ratio. The ideal range for aerobic composting is between 25:1 and 30:1. Values below 20:1 indicate excess nitrogen (greens), potentially releasing ammonia and causing bad smells. Above 40:1, lack of nitrogen slows microbial activity.
When to use? Whenever setting up a new compost pile or adjusting an existing one. It is especially useful for beginners who want to avoid common mistakes, such as adding too much green material (grass, kitchen scraps) without balancing with browns (dry leaves, sawdust). It is also helpful for large-scale composting, such as in community gardens or small farms.
Cautions: The C and N percentages provided are approximate and vary depending on the origin and moisture of the material. For example, green leaves have more nitrogen than dry leaves. The calculator does not replace practical observation: even with the ideal ratio, you must monitor temperature, moisture, and aeration. In very large piles, the C:N ratio may not be homogeneous, so mix materials well.
Frequently asked questions
What is the ideal C:N ratio for composting?
The ideal range is between 25:1 and 30:1, meaning 25 to 30 parts carbon for each part nitrogen by mass.
What happens if the C:N ratio is too low?
A ratio below 20:1 can cause ammonia odors, nitrogen loss, and a too-wet pile. Add more brown materials (carbon-rich).
What if the C:N ratio is too high?
Above 40:1, decomposition slows because there is not enough nitrogen for microorganisms. Add green materials (nitrogen-rich).
Does the calculator account for material moisture?
Not directly. Carbon and nitrogen percentages are based on dry matter. If the material is very wet, the actual ratio may differ.
Can I use the calculator for vermicomposting?
Yes, but the ideal ratio for vermicomposting is slightly different, usually between 20:1 and 25:1. The calculator can still be used as a reference.