Use the free tool below: your data never leaves your browser — all work happens on your device, and nothing is uploaded to any server.
What the carbon to nitrogen ratio means
A compost pile is a tiny farm of microbes, and microbes eat carbon for energy and nitrogen for growth. Give them too much nitrogen and the pile turns slimy and smells of ammonia. Give them too much carbon and the pile sits cold and barely changes for months. The balance that works fastest is about 30 parts carbon to 1 part nitrogen, written as 30:1. This calculator finds your pile’s ratio and tells you how to fix it.
Enter the weight of your greens and your browns in kilograms. Greens are wet, nitrogen-rich materials: food scraps, fresh grass clippings, and manure. Browns are dry, carbon-rich materials: dry leaves, straw, shredded cardboard, and wood chips. The calculator uses typical carbon and nitrogen values for each group and returns your pile’s ratio plus the correction needed to reach 30:1.
A worked example
Take 10 kilograms of greens and 10 kilograms of browns. The calculator works out about 9.5 kilograms of carbon and 0.31 kilograms of nitrogen in that mix, giving a ratio near 31:1. That pile is already close to target, and it only needs a small handful of extra greens to hit 30:1 exactly. Most real piles are further off than this tidy example.
Now take 20 kilograms of greens and nothing else. The ratio is about 20:1, which is too nitrogen-rich. The calculator says to add browns: roughly 18 kilograms of dry leaves or straw would bring it to 30:1. That sounds like a lot, but it shows the real rule of composting: you need far more browns by volume than most beginners expect, because browns are light and fluffy.
The opposite case is just as common. A pile of 20 kilograms of dry leaves alone sits near 60:1, too carbon-rich to heat up. The calculator says to add greens, about 16 kilograms, to reach 30:1. Without those greens, the leaves will still rot eventually, but slowly, over a year or more instead of a few months.
Why weight, not volume
Compost recipes often say three parts browns to one part greens by volume, and that confuses people because a bucket of leaves weighs far less than a bucket of food scraps. This calculator uses weight, which is fairer, because carbon and nitrogen are measured by weight in the materials. If you only have buckets, fill a bucket of each material, weigh them once, and learn your own conversion for next time.
Chop or shred materials before adding them. Small pieces rot faster because microbes attack surfaces, and shredding gives them more surface. Shredded cardboard rots in weeks, while whole sheets mat together and block air. Run a mower over dry leaves, and tear cardboard into strips.
Heat, air, and water
A pile near 30:1 with enough size heats up to 50 degrees or more in the centre, which kills weed seeds and speeds rotting. Small piles under a cubic metre struggle to hold heat, so gather materials and build the pile in one go when you can. Turn the pile every week or two to add air: microbes need oxygen, and an airless pile smells and stalls.
Keep the pile damp like a wrung-out sponge. Dry piles stop rotting, and soaking piles go airless. Cover the pile in heavy rain and water it in drought. If the pile smells of ammonia, add browns and turn it. If it smells sour, add air by turning and add dry browns.
Common mistakes to avoid
The classic mistake is adding only kitchen scraps with no browns. The pile turns to smelly sludge and attracts flies. Keep a bag of shredded cardboard or dry leaves next to the bin, and add a handful of browns every time you add food scraps. Another mistake is adding meat, dairy, or cooked food, which attract rats and smell: keep those out of home compost.
People also expect compost in weeks from a cold, small pile. Backyard piles usually take three to six months, and that is normal. Hot piles built all at once can finish in two months, but most home piles are cold piles built bit by bit, and they still make excellent compost.
Frequently asked questions
Do I need to be exact about 30:1? No. Anything from 25:1 to 35:1 works well. The calculator’s correction is a guide, not a laboratory recipe. Real materials vary, so aim for the range and watch the pile.
Can I compost in winter? Yes, but slowly. Cold air slows microbes, and frozen piles pause entirely. Keep adding materials through winter, and the pile wakes up in spring. Insulate with straw bales or old carpet in cold climates.
Is the finished compost ready when it looks dark? Ready compost is dark, crumbly, and smells like soil, not like the things you put in. If you can still recognise food or leaves, give it more time.
Use the calculator above before building or fixing a pile, add browns with every batch of greens, and judge the pile by heat and smell as well as numbers. Garden results are general guidance estimates only. Your local climate, your soil, and the instructions on your seed packets govern what actually grows, and results vary with weather and conditions.
Related calculators
- Spanish version
- Potting Mix Ratio Calculator – Ingredient Litres for Any Mix Recipe
- Mulch Calculator – Cubic Yards and Bags for Any Bed Area
