What C:N Is and Why 30:1 Is the Sweet Spot
Every organic material has a carbon-to-nitrogen ratio. Carbon is structural — cell walls, woody tissue, dry stalks. Nitrogen is metabolic — proteins, enzymes, fresh growth. When you compost, you are feeding a population of bacteria and fungi that need both carbon for energy and nitrogen to build their own bodies. Their ideal diet is roughly 30 parts carbon to 1 part nitrogen by weight.
Below 25:1, there is excess nitrogen that the microbes cannot use fast enough, and they shed it as ammonia — which is the smell. Above 35:1, there is not enough nitrogen to sustain a large microbial population, and decomposition slows dramatically. The pile doesn't rot; it just sits. Both extremes waste material and time. The 25-35 window is where the biology works.
The formula
The calculator uses a volume-weighted average: blend C:N = sum(parts × C:N) / sum(parts). Add your materials and their relative volumes and the blend ratio updates immediately. The fix calculation uses algebra to find exactly how much of a correction material (dry leaves at 60:1 for too-green piles, grass clippings at 20:1 for too-brown piles) brings the blend to 30:1.
Browns vs. Greens Is a Proxy, Not a Law
The "browns and greens" shorthand is useful because it maps to something visible: dried, brown material tends to be carbon-rich, and fresh, green material tends to be nitrogen-rich. But the color is correlation, not causation. The actual measure is the C:N ratio, and several common materials break the visual rule.
Coffee grounds are brown but are a green. Their C:N is approximately 20:1 — the same as grass clippings. You add them to boost nitrogen, not carbon. Many gardeners pile coffee grounds onto a "brown" heap thinking they're balancing it, and then wonder why the pile smells.
Cardboard is brown and very much a brown. Corrugated cardboard has a C:N around 350:1 — one of the highest of any common material. A small amount can dramatically shift a pile that is already borderline toward too-brown. Shred it before adding to speed breakdown and prevent it from matting into oxygen-blocking layers.
Fresh manure is a strong green. Horse, cow, and chicken manure from actively fed animals runs 10-20:1 for herbivores, even lower for poultry. It can jump-start a cold pile or rescue a too-brown heap. Aged manure loses nitrogen as ammonia over time, so fresh application has higher nitrogen impact than stored.
The Smell Diagnostic
You don't need a calculator to know something is wrong. Your nose tells you which direction to correct.
Ammonia smell (sharp, eye-watering): Too green. The C:N is below 25:1. Bacteria are releasing excess nitrogen as ammonia gas because they can't process it fast enough. Add carbon material — dry leaves are the easiest fix because they're free in autumn and have a C:N of 60:1. Straw (75:1) and shredded cardboard (350:1) work if leaves aren't available. Don't add more green material until the smell goes away.
Nothing happening, no heat: Too brown, or too dry, or both. A pile that sits unchanged for weeks is either starved of nitrogen, starved of moisture, or both. Poke a thermometer in — anything below 100°F when daytime temperatures are above 60°F means the biology is dormant. Water until the pile feels like a wrung-out sponge, then add nitrogen material. Fresh grass clippings are the fastest fix in summer.
Rotten egg or sulfur smell: Anaerobic decomposition — the pile has gone without oxygen. Turn it immediately. The smell is hydrogen sulfide from anaerobic bacteria, not a C:N problem. After turning, check moisture; if it's soggy, add dry browns to absorb water.
The Lazy-Accurate Method
If the calculator feels like overkill for casual composting, the field shortcut is: 2-3 parts browns to 1 part greens by volume. This heuristic works because common browns (dry leaves, straw, cardboard) average around 60-100:1, and common greens (kitchen scraps, grass clippings) average around 15-25:1. Three parts leaves at 70:1 mixed with one part kitchen scraps at 18:1 gives a blend of (3×70 + 1×18) / 4 = 228/4 = 57:1 — slightly too brown but close enough that a pile managed with regular turning will balance out.
Use 2 parts browns to 1 part greens if you have a lot of fresh manure or pure grass clippings. Use 3 parts browns to 1 part greens if your browns are mostly dry leaves or straw. Check the balance bar to see where you land, adjust the parts, and adjust the pile the same way.
Moisture and Turning: Ratio Gets You Started, Management Finishes It
A perfect C:N ratio in a dry pile produces nothing. Decomposer bacteria need water to metabolize, and they need oxygen to avoid going anaerobic. The correct moisture is often described as "like a wrung-out sponge" — damp throughout but not dripping when squeezed. In dry climates or summer heat, a pile may need watering every 1-2 weeks. In wet climates, cover it to prevent it from becoming waterlogged.
Turning introduces oxygen and redistributes heat. An active hot pile (properly balanced, moist, and large enough) reaches 130-160°F in the interior, which kills most weed seeds and pathogens. That temperature requires regular turning every 3-7 days. A passive pile left to decompose on its own takes 6-12 months and won't reach temperatures high enough to kill weed seeds — fine for casual composting, not ideal if your pile contains seedy weeds or diseased plant material.
The C:N ratio sets the potential of the pile. Moisture and turning determine how much of that potential you realize.