Compost Calculator

Good compost needs the right balance of “greens” and “browns”. Greens, such as grass clippings and kitchen scraps, are rich in nitrogen. Browns, such as dry leaves and straw, are rich in carbon. This free compost calculator works out the carbon-to-nitrogen ratio of your mix and tells you whether to add more greens or more browns.

This is an estimate based on typical carbon-to-nitrogen values of about 20:1 for greens and 60:1 for browns. Real materials vary, so use the result as a guide for building your pile.

How the compost calculation works

Mix C:N ratio = (greens × 20 + browns × 60) ÷ (greens + browns). The ideal range for fast, hot composting is a C:N ratio of about 25:1 to 30:1. Below 20:1 the mix is too nitrogen-rich and can get smelly; above 40:1 it is too carbon-rich and breaks down slowly.

For example, 30 kg of greens and 10 kg of browns give (30 × 20 + 10 × 60) ÷ 40 = 30:1, which is ideal. To hit 30:1, you need about three times as much greens as browns by weight.

How to use this calculator

Weigh or estimate your greens and your browns in kilograms, enter both figures and click Calculate Compost Mix. Then follow the guidance to balance your pile.

Frequently asked questions

What counts as greens and browns? Greens are moist, nitrogen-rich materials such as grass clippings, vegetable peelings and fresh manure. Browns are dry, carbon-rich materials such as fallen leaves, straw, sawdust and shredded cardboard.

What if my ratio is too high? Add more greens, water the pile and turn it. If the ratio is too low, add more browns and turn the pile to let air in.

View all calculators →

The C:N ratio in plain words

The carbon-to-nitrogen ratio, or C:N ratio, compares the carbon in a compost mix with the nitrogen in it. The microbes that break down compost need carbon for energy and nitrogen to build their own cells, and they work best when there is about 30 parts of carbon for every 1 part of nitrogen. This calculator uses typical values of about 20:1 for greens and 60:1 for browns, and works out the mix ratio as (greens x 20 + browns x 60) divided by (greens + browns). The ideal range for fast, hot composting is about 25:1 to 35:1, with 30:1 as the target. The worked example on this page, 30 kg of greens and 10 kg of browns, gives (30 x 20 + 10 x 60) divided by 40 = 30:1, which is ideal. If the ratio is much higher than 35:1, there is too much carbon and the pile breaks down slowly; if it is much lower than 25:1, there is too much nitrogen and the pile can smell and lose nutrients. By weighing the two kinds of material and using this calculator, you can fix the balance before you build the pile, instead of guessing and having to correct it later.

Greens versus browns

Greens are moist, fresh materials that are rich in nitrogen, while browns are dry materials that are rich in carbon. A good pile needs both, in layers, so that air and water can move through it. The table below gives common examples of each.

Greens (nitrogen-rich)Browns (carbon-rich)
Grass clippingsDry leaves
Vegetable and fruit scrapsStraw and hay
Coffee grounds and tea leavesShredded newspaper and cardboard
Fresh manure from plant-eating animalsSawdust and wood chips (in small amounts)
Fresh green leaves and weeds (without seeds)Twigs and small prunings

Aim for roughly three parts of greens to one part of browns by weight to reach the 30:1 target, because greens are denser and wetter than browns. By volume, the mix looks more like equal parts. Shred or chop everything into small pieces first, and mix the layers as you build, rather than putting all the greens at the bottom and all the browns on top, because a mixed pile heats up evenly.

Moisture and turning

Compost microbes need air and water as well as food. The pile should feel like a wrung-out sponge: damp all the way through, but not dripping wet. If you squeeze a handful and water runs out, it is too wet; if it feels dry and dusty, it is too dry. Water a dry pile as you build it, and cover a wet pile in rainy weather so it does not become waterlogged. Turn the pile about once a week, or whenever the centre cools down, because turning adds air and moves the cooler outer material into the hot centre. A hot, working pile reaches about 55 to 65 degrees Celsius in the middle and steams when it is turned. Turning also helps the pile break down evenly and kills many weed seeds and plant diseases in the hot centre. A pile that is never turned will still compost, but it will take much longer, and the middle may become smelly from lack of air. Those microbes are mostly bacteria: the Bacteria Growth Calculator shows how fast a starting population of bacteria grows.

What never to compost

Some materials should never go in a home compost pile. Do not add meat, fish, bones, dairy products, cooking fats or oils, because they smell, attract rats and flies, and break down very slowly. Do not add the droppings of dogs, cats or other meat-eating animals, because they can carry parasites and diseases that home composting does not get hot enough to kill. Do not add diseased plants or weeds with ripe seeds, because a cool pile will not kill them and they will spread when the compost is used. Do not add treated or painted wood, glossy or coloured paper, or ash from coal, because they can add chemicals to the compost. Cooked food is best avoided as well, because it attracts pests. When in doubt, leave it out: a clean pile of garden and vegetable waste composts faster and is safer to use on food plants.

Troubleshooting: smell, slow pile, too wet or too dry

Most compost problems come back to the same three things: the C:N ratio, the moisture and the air. The table below covers the common problems and their fixes.

ProblemLikely causeFix
Bad smell, like ammonia or rotten eggsToo much nitrogen or too wet, not enough airAdd browns, turn the pile and let it dry a little
Pile is not heating upToo much carbon, too dry, or too smallAdd greens and water, and build the pile at least 1 cubic metre
Pile is very slowPieces too big, too dry or too coldShred material, water it and turn it more often
Pile is soggy and slimyToo much water or too many greensAdd dry browns, turn it and cover it from rain
Pile is dry and dustyNot enough waterWater in layers while turning, until it feels like a wrung-out sponge
Flies or rats around the pileFood scraps on the surfaceBury scraps in the middle and cover with browns

Finished compost is dark, crumbly and smells like earth, and you should not be able to recognise the original materials in it. That usually takes 2 to 6 months for a hot, well-turned pile, and up to a year for a cold pile. Sieve out any large pieces and put them back into the next pile, then spread the finished compost 2 to 5 cm thick on beds and mix it lightly into the top soil.

More questions about compost

How much compost do I need for a garden bed? As a rough guide, a 10 square metre bed with a 3 cm layer needs about 0.3 cubic metres of finished compost. Remember that a compost pile shrinks a lot while it breaks down: a full cubic metre of raw material usually makes about a third of a cubic metre of finished compost.

Can I compost in winter? Yes, but it is slower. Microbes work more slowly in the cold, so a pile may go cold and stop heating. Keep adding material, keep it covered and insulated with straw or cardboard, and it will start again when the weather warms. Do not worry if the pile freezes: the microbes become active again once it thaws.

Do I need to add a compost activator? Usually not. A pile with the right C:N ratio, moisture and air will start on its own. A handful of garden soil or some finished compost mixed in will add microbes, but shop-bought activators are rarely needed if the balance is right.

Scroll to Top