Pick your feedstocks, enter amounts, and see your pile's live C:N ratio against the 25:1 to 30:1 sweet spot. Stuck at 45:1 with nothing heating up? The recipe solver tells you exactly what to add to fix it.
Ad placeholder — 728×90. Affiliate candidate: compost tumblers and bins.
Hot composting finishes in weeks at 130-160°F; cold composting takes 6 months to 2 years at air temperature. How to pick your speed.
1. Build your pile
Add each material with an approximate weight or volume. Values come from published USDA / Cornell feedstock tables and are approximate; real material varies.
Quick add (10 lb each):
2. Your pile's C:N ratio
Live readout. The target band is 25:1 to 30:1 — where microbes work fastest.
Moisture estimate will appear here once you add materials.
3. Fix my ratio — the recipe solver
Tell it where you are stuck and it computes exactly what to add to land at 30:1. Pick a fix material, or let it suggest the best ones.
Add materials above, then run the solver. It balances the equation (C + x·Cfix) / (N + x·Nfix) = target to find x.
Ad placeholder — 300×250. Affiliate candidate: compost thermometers, moisture meters.
What is a compost C:N ratio?
The carbon-to-nitrogen (C:N) ratio describes how much carbon is in your pile relative to nitrogen. Compost microbes need carbon for energy and nitrogen to build proteins. Give them roughly 30 parts carbon for every 1 part nitrogen and they multiply fast, heating the pile to the 131°F–160°F zone where weed seeds and pathogens die.
Too much nitrogen (below ~20:1) smells like ammonia, goes slimy, and loses nitrogen to the air. Too much carbon (above ~40:1) sits there barely warm for months because the microbes are starved of nitrogen.
Greens and browns, translated into numbers
"Greens" are nitrogen-rich (grass clippings, food scraps, manure — typically 10:1 to 25:1). "Browns" are carbon-rich (leaves, straw, cardboard — typically 40:1 to 500:1). The calculator above does the weighted math for you: it converts each material's wet weight to dry weight, sums total carbon and total nitrogen, and divides.
Approximate feedstock values used
These are widely published typical values (dry-weight basis), not lab analyses of your specific materials. Treat them as planning estimates.
Material
C:N
%C
%N
Moisture
Sources: Cornell Waste Management Institute feedstock tables (compost.css.cornell.edu); Mississippi State Extension "Composting for the Mississippi Gardener" feedstock table; UC Agriculture feedstock carbon/nitrogen content table. Figures vary between sources; values above use commonly cited midpoints and are labeled approximate.
Frequently asked questions
What is the ideal C:N ratio for a compost pile?
About 25:1 to 30:1. This range gives microbes enough nitrogen to build cells while burning carbon for energy, producing the fastest heating and decomposition. Finished compost ends up closer to 10:1–15:1 because carbon leaves the pile as CO2.
My pile smells like ammonia. What is wrong?
That is the classic sign of excess nitrogen (ratio too low, often under 15:1). Turn the pile to add oxygen and mix in carbon-rich browns like straw, shredded cardboard, or dry leaves until the solver reads around 30:1.
My pile will not heat up at all. What do I add?
A pile that stays cold is usually too carbon-heavy (above 40:1), too dry, or too small. Add nitrogen-rich greens — grass clippings, food scraps, coffee grounds, or manure — moisten to a wrung-out sponge feel, and make sure the pile is at least 3×3×3 feet.
How do I measure pounds or gallons of leaves and straw?
Weigh a full bucket or bag on a bathroom scale once, then count by container. For volume, the calculator converts gallons to weight using each material's approximate bulk density — handy for loose leaves and wood chips that are hard to weigh.
Does moisture matter as much as the C:N ratio?
Yes. Microbes need 40%–60% moisture by weight. Below 15% decomposition stalls; above 65% the pile goes anaerobic and stinks. The calculator shows a weighted moisture estimate and flags piles that are too dry or too wet.
Hair composts fine. It runs about 15 percent nitrogen, which makes it a genuine green, but keratin breaks down slowly, so spread it thin and mix it with browns.
Can you compost pine needles? Yes. They are a slow brown at about 60:1 to 90:1, fresh needles run pH 3.2 to 3.8 but finish near neutral, and the rule is 10 percent of the pile, shredded, with plenty of greens.
Can you compost tea bags? The tea leaves always, paper bags yes, nylon and silky pyramid bags no, and plant based plastic bags only in industrial compost. The two second bag test.
Can you compost bread and pasta? Yes, plain bread and pasta in small amounts, buried under browns, in a hot active pile. Why the do not compost lists exist, what ruins it, and when bokashi is the better home for leftovers.
Can you compost onions and garlic? Yes in a backyard hot or cold pile, in small amounts, chopped and buried. Keep them out of worm bins, where they drive worms away.
Can you compost banana peels? Yes. Peels are a green material, so chop them, bury them under browns, and keep the pile balanced. Why peel tea and burying raw peels near plants disappoint, and the 1 part peels to 2 parts browns mix that works.
Wheat straw near 80 to 1, the most forgiving brown in the pile. Why the range runs 60 to 130, the straw vs hay confusion, and the worked 30 to 1 recipe.
Seeds die at 130 to 140 degrees held for days, with turning. In a cold pile they survive and you plant them with the compost. The decision rule and the three alternatives.