| Metric | Value | Copy |
|---|---|---|
| {{ row.label }} | {{ row.value }} |
| Target | Helper | Wet add | Dry add | Projected ratio | Projected moisture | Note |
|---|---|---|---|---|---|---|
| {{ row.label }} | {{ row.helperLabel }} | {{ row.wetWeightDisplay }} | {{ row.dryWeightDisplay }} | {{ row.projectedRatioDisplay }} |
{{ row.projectedMoistureDisplay }}
{{ row.projectedMoistureStatus }}
|
{{ row.note }} |
| Material | C:N | Wet weight | Dry weight | Water | Carbon | Nitrogen | Copy |
|---|---|---|---|---|---|---|---|
|
{{ row.label }}
{{ row.materialClass }} • {{ formatPercent(row.moisturePercent, 0) }} moisture • Dry basis
|
{{ row.ratioDisplay }} | {{ row.wetWeightDisplay }} | {{ row.dryWeightDisplay }} | {{ row.waterDisplay }} | {{ row.carbonDisplay }} | {{ row.nitrogenDisplay }} |
Add your brown and green ingredients to see the blended C:N ratio, moisture window, and repair guidance for balancing the pile.
Compost microbes need carbon as an energy source and nitrogen to build proteins and reproduce. When those inputs are badly out of balance, a pile can turn slimy, smelly, slow, or disappointingly cool even when it looks full of useful material.
This calculator turns that biology into a mix-planning estimate. You load materials with a carbon-to-nitrogen ratio, a moisture estimate, and a weight, and it returns a blended ratio, a target-band classification, practical balancing guidance, contributor summaries, three chart views, and exports for the finished scenario.
That is most helpful when you already have a real pile or recipe in mind and want to know whether it is brown-heavy, green-heavy, or sitting near a workable hot-compost window. A bucket of kitchen scraps, a pile of fresh grass, and a bag of dry leaves do not contribute equally just because they weigh the same when wet. Moisture and carbon density change the picture quickly.
The calculator is also built for adjustment rather than blind trust. It offers presets for common ingredients such as dry leaves, grass clippings, kitchen scraps, coffee grounds, straw, wood-heavy materials, manures, alfalfa, and shredded cardboard, but every ratio and moisture value remains editable because real compost feedstocks vary with age, storage, and local conditions.
One boundary matters from the start. Landing inside the target band does not guarantee a perfect pile. Aeration, pile size, texture, temperature, and moisture management still matter. The result is a strong planning aid for mix balance, not a complete compost-performance simulator.
For a first run, leave the default target band at 25:1 to 35:1 and keep Account for moisture enabled unless the weights you are entering are already dry-matter measurements. Then add the materials you actually have on hand before worrying about fine tuning the last decimal place.
The different tabs support different questions. Materials is the audit trail for each ingredient, Dry Mass Distribution shows which ingredient dominates the solids, Carbon & Nitrogen compares nutrient contribution by material, Mass Components breaks the mix into carbon, nitrogen, removed moisture, and residual dry matter, and JSON keeps a structured record of the run.
The calculator converts each ingredient to an internal kilogram basis, optionally removes water, and then splits the remaining dry matter into carbon and nitrogen shares using the entered ratio. That matters because compost ratios are about dry matter, not fresh weight. A soggy bucket of scraps can look large by weight while contributing far less dry carbon or dry nitrogen than its wet mass suggests.
For each material, the ratio is interpreted as parts carbon to one part nitrogen. Once dry mass is known, carbon is calculated as ratio divided by ratio plus one, and nitrogen is the remaining one part. The blended ratio is then total carbon divided by total nitrogen across the whole mix.
| Symbol | Meaning in this calculator | Source |
|---|---|---|
Mw,i |
Wet mass of one ingredient | Weight |
mi |
Moisture fraction for that ingredient | Moisture |
Ri |
Ingredient carbon-to-nitrogen ratio | C:N ratio |
Md,i |
Dry mass after removing water | Derived |
Ci |
Carbon share of the dry mass | Derived |
Ni |
Nitrogen share of the dry mass | Derived |
Rmix |
Final blended ratio for the whole recipe | Derived |
Classification is straightforward. A result below the lower bound is marked Nitrogen heavy, a result above the upper bound is Carbon heavy, and a result inside the band is Balanced. The default band is 25:1 to 35:1, but the range is user-defined because different composting goals and materials justify different targets.
The midpoint of the target band also drives the rebalancing helper. If the mix is too nitrogen-heavy, the calculator estimates how much Dry leaves would need to be added to reach the midpoint. If the mix is too carbon-heavy, it uses Fresh grass clippings as the helper material. The suggestion is expressed as both wet and dry weight so you can plan with the material as handled and still understand the dry-matter effect.
| Output | What it tells you |
|---|---|
| Summary | Final ratio, classification, guidance, total wet and dry mass, moisture loss, dominant contributors, and any rebalance action. |
| Materials | Per-material wet weight, dry weight, carbon, nitrogen, and the exact ratio used in the calculation. |
| Dry Mass Distribution | A donut view of which ingredients dominate the solids in the pile. |
| Carbon & Nitrogen | A stacked bar comparison of absolute carbon and nitrogen contribution by material. |
| Mass Components | A composition view of carbon, nitrogen, removed moisture, and any remaining dry matter not counted as those two fractions. |
| JSON | A structured export of the inputs, summary, and per-material breakdown. |
All calculations stay in the browser. Unit switching converts existing material weights between pounds and kilograms, and the export actions generate local CSV, DOCX, chart-image, or JSON files without server-side processing.
Enter 20 lb of dry leaves at 60:1 and 10% moisture, 12 lb of kitchen scraps at 15:1 and 70% moisture, and 12 lb of fresh grass clippings at 17:1 and 70% moisture. The calculator returns a final ratio of about 34.0:1, which sits inside the default 25:1 to 35:1 band.
The same run shows 44.0 lb of wet mass but only 25.2 lb of dry mass, with about 42.7% moisture loss. In other words, nearly half the loaded weight was water, and the dry leaves dominate both dry matter and carbon contribution.
Enter 20 lb of food scraps at 15:1 and 70% moisture plus 15 lb of fresh grass clippings at 17:1 and 70% moisture. The result is about 15.8:1, which the calculator marks as Nitrogen heavy.
The rebalance helper then suggests adding about 20.1 lb of dry leaves, equivalent to roughly 18.0 lb of dry matter, to steer the mix toward the midpoint near 30:1. That is a concrete example of why wet green mass can overpower a pile faster than it first appears.
Yes when the weights are fresh, as-collected materials. Turn it off only when you are deliberately entering dry weights or you have already corrected the material weights for moisture outside the calculator.
No. They are practical starting values. Real leaves, manures, bedding, and food scraps vary by source, age, and storage, which is why every preset stays editable.
The calculator converts the existing ingredient weights between pounds and kilograms so the same recipe stays intact. Small rounding differences can appear because converted values are rounded for display and storage.
No. An in-range C:N ratio is helpful, but aeration, particle size, pile volume, and water management still control whether the pile actually heats and decomposes well.