Soil health

Compost mix calculator

Check whether your compost pile has the right recipe before you build it. List your materials and rough proportions, and the calculator estimates the carbon to nitrogen ratio and suggests how to correct a mix that leans too green or too brown.

By Tools for Gardeners

What does this compost mix calculator calculate?

This calculator estimates the carbon to nitrogen ratio, written as C:N, of a compost pile built from the materials you list. Compost microbes work fastest on a mix that lands around 25 to 30 parts carbon to 1 part nitrogen. A pile that skews green (nitrogen rich) turns wet and smelly. A pile that skews brown (carbon rich) just sits there.

Each material in the list carries a typical C:N value, such as 17:1 for grass clippings or 60:1 for fallen leaves. The calculator blends them by the number of parts you assign and reports the estimated ratio, the split between greens and browns, and a concrete fix when the balance is off.

What you will need

A list of your materials

Choose the closest match for each ingredient. Values are typical textbook figures: real materials vary. Fresh grass can run richer than 17:1, and dry autumn leaves can run higher than 60:1.

Parts

Use whatever unit matches how you build the pile: buckets, wheelbarrow loads, or pitchforkfuls. The math assumes each part contains a similar amount of dry matter, which is where the estimate lives. A loose bucket of dry leaves and a packed bucket of wet grass clippings are not the same weight, so use the result as a steer rather than a lab reading.

How the calculation works

For each material, the carbon contribution is its typical ratio times its parts. The mix ratio is the total carbon divided by the total parts, which is a weighted average of the materials' ratios:

Sum of (material C:N x parts) divided by sum of parts

Two parts fallen leaves (60:1) plus one part grass clippings (17:1) gives (120 + 17) / 3, or about 46:1, which reads as carbon rich. Adding another part of clippings drops it to about 37:1, and a fourth brings it near the target.

Reading the verdict

  • Under 20:1 is nitrogen rich. The pile goes dense and anaerobic and smells of ammonia. Mix in browns.
  • 20 to 25:1 is close to ideal, slightly green. Watch moisture.
  • 25 to 30:1 is the sweet spot compost bacteria prefer.
  • 30 to 45:1 is carbon rich but workable. Slower, and fine if you are patient.
  • Over 45:1 is too brown to heat up well without added greens.

What the ratio does not control

C:N is one leg of the stool. A pile also needs moisture like a wrung-out sponge, enough air (turn it or build it loose), and enough volume to hold heat, roughly a cubic yard for a hot pile. A perfect 28:1 mix that is bone dry or matted flat still will not cook.

Worked examples

The autumn pile

Four parts fallen leaves with one part grass clippings lands around 51:1. The calculator suggests adding roughly three parts of clippings or a few parts of kitchen scraps to pull it toward 30:1.

The kitchen scrap bin

All food scraps at 15:1 is why small bins turn slimy. Adding two or three parts shredded cardboard or leaves per part of scraps brings the mix into range and solves the smell problem at the same time.

Common mistakes

Counting wet greens and dry browns as equal

Moisture hides in the weight. Greens are mostly water, so a pile that looks balanced by volume is often richer in carbon than it appears. When in doubt, err toward more greens or more water, because a slightly rich pile still composts.

Using wood chips as the brown for a hot pile

At roughly 400:1, wood chips need an enormous amount of green to balance and still break down slowly. Save them for paths and use leaves, straw, or cardboard as the working browns.

Chasing a precise ratio

Real piles are guesses. The practical approach is to build a mix that smells earthy and feels damp, watch what it does over a few weeks, and add greens if it stalls or browns if it smells.

When this calculator may not be the right choice

For worm bins, bokashi, and trench composting the C:N framework matters less than moisture and feedstock type. For compost already built, diagnose by sight and smell rather than ratio: wet and smelly means add browns and air; cold and dry means add greens and water. To size finished compost for beds, use the compost calculator instead.

Where our data comes from

Material ratios follow the typical values published in the Cornell composting chemistry tables and EPA home composting guidance. Ratios are typical, not measured; manure, fresh trimmings, and sawdust vary the most in practice.

Frequently asked questions

What is a good carbon to nitrogen ratio? Around 25 to 30 parts carbon to 1 part nitrogen is where compost microbes work fastest. Under 20:1 the pile tends toward wet and smelly, and over 45:1 it usually will not heat up without added greens.

My pile smells of ammonia. What should I add? Ammonia means too much nitrogen. Mix in dry browns like leaves, straw, or shredded cardboard and fluff the pile for air. The calculator shows how many parts of your available brown bring the mix back toward 30:1.

Can I use wood chips as my brown material? They are a poor working brown for a hot pile at roughly 400:1, because they need an enormous amount of green to balance and still break down slowly. Use leaves, straw, or cardboard and save chips for paths and mulch.

Why is a good ratio still not heating up? C:N is only one leg of the stool. The pile also needs moisture like a wrung-out sponge, enough air, and roughly a cubic yard of volume to hold heat. A dry or matted pile sits still at any ratio.

Sources

Garden guides

Browse all guides

Plant library

Browse all plants