Composting turns kitchen scraps, yard waste, and other organic materials into a dark, crumbly soil amendment. Microorganisms drive this process, and like any living community, they need the right food balance to thrive. In composting, that balance is described by the carbon to nitrogen ratio, usually written as C:N.
Carbon is mainly the energy source for compost microbes. Nitrogen is needed to build proteins, enzymes, and new microbial cells. When there is an appropriate mix of both, microbes work quickly and efficiently, generating heat as they break down organic matter. When the balance is off, piles can become slow, smelly, or compacted.
For most home composting situations, a C:N ratio of about 30:1 by weight is considered ideal. This means that for every 1 part nitrogen, you want about 30 parts carbon in the overall mix of materials. Your compost will still decompose outside this range, but performance and odors are more likely to become a problem.
To make the C:N concept more practical, composters often divide materials into two simple categories:
Typical green materials include:
Common brown materials include:
In general, greens add nitrogen and moisture, while browns add carbon and structure. Achieving a good compost C:N ratio involves mixing appropriate amounts of these two groups, not aiming for perfection with every individual ingredient.
The C:N ratio describes the amount of carbon compared with the amount of nitrogen in your compost mix. In simple terms:
C:N ratio = (total carbon) ÷ (total nitrogen)
Written more formally, the ratio is:
where M is the mass of the material, C is the fraction of carbon by weight, and N is the fraction of nitrogen by weight. The mass term cancels if you look at a single uniform material, but when you blend different components, you sum their carbon and nitrogen contributions before forming the ratio.
Our calculator simplifies this for home composters by assuming:
Using your inputs for total browns and total greens, it estimates total carbon and total nitrogen, then divides carbon by nitrogen to give a single C:N ratio for the whole mix. You can use kilograms, pounds, or any other consistent unit of weight, as long as both inputs use the same unit.
To get a useful estimate from the calculator, follow these steps:
The result might be shown as something like 28:1 or 40:1. This number is dimensionless – it just expresses the proportion of carbon to nitrogen.
Once you have a calculated C:N ratio, you can compare it to the commonly recommended target of about 30:1. Use these general guidelines:
Treat your first calculation as a starting point, not a final verdict. You can adjust your mix and re-calculate as you add more materials over time.
Based on your calculator result, you can change your compost recipe:
Signs include slow decomposition, a cool pile, and very dry, woody material. The calculator may show values like 40:1, 50:1, or higher. To bring the ratio closer to 30:1:
Signs include strong ammonia smells, a dense or soggy texture, and a pile that mats down. The calculator may show values like 15:1 or 20:1. To move closer to 30:1:
Each time you modify the mix significantly, you can re-estimate the total weight of greens and browns and use the calculator again to see how your C:N ratio has changed.
Every compost ingredient has its own approximate C:N ratio. These values vary with moisture content, plant species, and handling, but they give useful ballpark numbers when planning your mix. The table below compares common materials:
| Material | Type | Approx. C:N Ratio | Notes |
|---|---|---|---|
| Fresh grass clippings | Green | 17:1 | Very moist; mix with plenty of dry browns to avoid matting. |
| Vegetable and fruit scraps | Green | 20:1 | Break down quickly; good everyday nitrogen source. |
| Coffee grounds | Green | 20:1 | Fine texture; mix thoroughly to maintain airflow. |
| Horse or cow manure (bedded) | Green | 15:1 to 25:1 | Often mixed with bedding straw; handle carefully and allow full composting. |
| Dry leaves | Brown | 60:1 | Excellent carbon source; shredding speeds decomposition. |
| Straw | Brown | 80:1 | Light and bulky; improves structure and airflow. |
| Shredded newspaper or cardboard | Brown | 150:1 to 200:1 | Avoid heavy glossy inks; tear or shred for faster breakdown. |
| Wood chips and sawdust | Brown | 300:1 to 500:1 | Very carbon-rich; use in moderation and mix with high-nitrogen greens. |
Use these values as reference points. If your compost recipe uses unusually high-carbon ingredients like sawdust, you will typically need a larger proportion of greens to stay near the 30:1 goal.
Suppose you are building a new compost pile with the following materials:
First, group them into browns and greens:
You could enter 20 as the carbon-rich (browns) value and 15 as the nitrogen-rich (greens) value in the calculator. Behind the scenes, the tool uses its assumed average carbon and nitrogen contents to estimate the overall ratio, but you can also do a simplified hand estimate using the typical C:N ratios:
Without going into full laboratory-level detail, you can already see that the browns in this mix are quite carbon-rich, while the greens are moderate. The calculator will usually report a ratio somewhere near the ideal range. If the output happens to be higher than 35:1, you would know to add more greens (perhaps more grass clippings) and then re-calculate.
Because real-world compost materials vary widely, any simple calculator must rely on assumptions. Being aware of these helps you interpret results realistically:
Treat the calculated C:N ratio as a directional indicator. If your compost seems slow, smelly, too wet, or too dry, adjust based on both the number you see and the physical condition of the pile.
Even with a good C:N ratio, other conditions influence how well your compost performs:
Combining a reasonable C:N ratio with these good composting practices will usually give you reliable, high-quality compost without overly complicated calculations.