Home, Building & Energy
Compost C:N Ratio Calculator (Greens and Browns Mix)
Good compost depends on feeding the microbes that do the work a balanced diet. They need carbon for energy and nitrogen to build proteins, and they work best when the materials in the pile contain roughly 25 to 30 parts of carbon for every part of nitrogen, a ratio widely recommended by university extension services such as Cornell’s composting programme. Composters call nitrogen-rich materials greens, such as grass clippings, vegetable scraps, coffee grounds and fresh manure, and carbon-rich materials browns, such as dry leaves, straw, wood chips, sawdust and shredded cardboard. A pile with too much green material tends to become wet, compacted and smelly, releasing nitrogen as ammonia. A pile with too much brown material stays cold and breaks down very slowly. The ratio of a mix is not the average of the two ratios: each material contributes carbon and nitrogen in proportion to its weight and its nitrogen content, so the calculator works with the nitrogen percentage and C:N ratio of each material. It finds the weight of browns needed to reach your target ratio for a given weight of greens, and if you enter the browns you actually have, it calculates the ratio of the mix and says whether it is in the good range. Published figures are typical values on a dry-weight basis, and real materials vary with moisture, freshness and source, so the result is a starting point. Moisture matters too: a working pile should feel like a wrung-out sponge, and turning it adds oxygen.
How to use this calculator
- Enter the weight of green, nitrogen-rich material.
- Enter its nitrogen percentage and C:N ratio from a reference table.
- Enter the nitrogen percentage and C:N ratio of your brown material.
- Choose a target ratio, usually 25 to 30.
- Read how much brown material to add, or enter what you have to check your mix.
Typical materials
Grass clippings and food scraps typically have C:N ratios around 15 to 20, while dry leaves are around 40 to 80 and straw around 50 to 100. Wood chips and sawdust can exceed 200, so they need a lot of nitrogen to break down.
Manures vary widely: poultry manure is very rich in nitrogen, while horse manure with bedding is closer to balanced on its own.
Running a hot compost pile
A pile of at least about one cubic metre holds heat well. With a good C:N ratio and moisture, it can reach 55 to 65 °C within days, which speeds decomposition and kills many weed seeds and pathogens.
Turn the pile when the temperature falls to add oxygen, and add water if it is dry. Finished compost is dark, crumbly and smells earthy.
Formula & method
Nitrogen in each material = weight × N%; carbon = nitrogen × C:NMix C:N = total carbon ÷ total nitrogenBrowns needed = greens × Ng × (C:Ng − target) ÷ (Nb × (target − C:Nb))A ratio of about 25–30 : 1 is the usual target for fast, hot compostingNitrogen = weight × N%. Carbon = nitrogen × C:N. Mix C:N = Σ carbon ÷ Σ nitrogen. Browns needed = mg × Ng × (C:Ng − T) ÷ (Nb × (T − C:Nb)).
Worked example
10 kg of greens (2% N, 15:1) with browns (0.5% N, 60:1)
- Greens: N = 10 × 2 = 20 units; C = 20 × 15 = 300.
- Browns needed for 30:1 = 10 × 2 × (15 − 30) ÷ (0.5 × (30 − 60)) = 20 kg.
- Check: C = 300 + 20 × 0.5 × 60 = 900; N = 20 + 10 = 30; ratio = 30.
Answer: Add about 20 kg of browns, two parts browns to one part greens by weight.
Frequently asked questions
Why does the C:N ratio matter?
Microbes use carbon for energy and nitrogen to build cells; too much nitrogen gives smelly ammonia losses, too much carbon makes the pile slow and cold.
Where can I find values for my materials?
Extension services such as Cornell’s composting programme publish typical nitrogen percentages and C:N ratios; values vary with moisture and source, so treat them as estimates.
Is a 2:1 browns to greens rule correct?
It is a rough guide by volume or weight; the right proportion depends on the actual materials, which is what this calculator works out.
Should I use wet or dry weight?
Published values are usually on a dry-weight basis; for a rough estimate, fresh weights still give a useful guide.
What if my pile smells of ammonia?
It has too much nitrogen; mix in more brown material such as leaves or shredded cardboard.
Can I compost meat and dairy?
Home piles usually avoid them because they attract pests and may smell; follow local guidance.