{"uid":"cap_hmaiPCfrY3fKgnGeaZN6_","slug":"garden-calculators-compost-c-n-ratio-50b7f5a8","name":"Garden Calculators – Compost C:N Ratio","description":"Carbon-to-nitrogen ratio of a compost mix by the Cornell formula, or the greens-to-browns amounts that reach a target ratio.","url":"https://garden-calc.x402tookit.com/compost-cn-ratio?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"brown":{"type":"string","description":"Balance mode: a carbon-rich ingredient (leaves, bark, paper, sawdust) or any name with brownCn"},"green":{"type":"string","description":"Balance mode: a nitrogen-rich ingredient (grass clippings, food waste, cow manure, horse manure, digested sewage sludge) or any name with greenCn"},"brownCn":{"type":"number","description":"C:N of the brown if not in the table, 30 to 1000"},"greenCn":{"type":"number","description":"C:N of the green if not in the table, 5 to 60"},"targetCn":{"type":"number","description":"Balance mode target C:N, 15 to 50 (default 30)"},"ingredients":{"type":"string","description":"Mix mode: lines name:mass[:moisturePercent[:cn[:nitrogenPercent]]] separated by semicolons, for example 'grass clippings:10:80; leaves:6:30'. Names in the table need no C:N; moisture defaults to 50"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"cnRatio":{"type":["null","number"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"ratioText":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"ingredients":{"type":["array","null"],"items":{"type":"object","properties":{"cn":{"type":["null","number"]},"dryMass":{"type":["null","number"]},"asIsMass":{"type":["null","number"]},"cnSource":{"type":["null","string"]},"ingredient":{"type":["null","string"]},"moisturePercent":{"type":["null","number"]},"carbonPercentDry":{"type":["null","number"]},"nitrogenPercentDry":{"type":["null","number"]}}}},"targetRange":{"type":["null","string"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uko-IoSIXkpzJ3dX4YTpN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the carbon-to-nitrogen ratio of a compost mix using the Cornell formula, or determines greens-to-browns quantities needed to hit a target C:N ratio.","exampleAgentPrompt":"What C:N ratio will I get if I mix 10 kg of grass clippings (80% moisture) with 6 kg of dry leaves (30% moisture)? Use the Cornell formula and tell me if the mix is within a good composting range.","exampleUseCases":[{"title":"Balancing a backyard compost bin","prompt":"I have a pile of dry leaves and some fresh grass clippings — how much grass do I need to add to the leaves to hit a target C:N ratio of 30? The leaves are about 40 parts carbon to 1 part nitrogen."},{"title":"Checking a multi-ingredient compost mix","prompt":"Can you calculate the C:N ratio for my compost mix: grass clippings at 10 kg with 80% moisture, food waste at 5 kg with 70% moisture, and sawdust at 3 kg with 20% moisture? I want to know if the ratio is in the ideal composting range."},{"title":"Custom material with unknown C:N ratio","prompt":"I want to compost horse manure (C:N of 25) mixed with cardboard (C:N of 350) — what ratio of each should I use to hit a target C:N of 30?"}],"resultDescription":"Returns a structured object with the computed C:N ratio as a number and formatted text, a verdict on whether the mix is suitable for composting, a summary, per-ingredient breakdown (dry mass, as-is mass, C:N value and its source), reasons for the verdict, and a disclaimer. Also flags degraded results and lists any unchecked inputs.","failureModes":["Unknown ingredient name not in the built-in table and no custom C:N provided — returns error or missing data","Missing required mode parameters (neither balance nor mix mode inputs supplied)","Out-of-range C:N values (e.g. brownCn below 30 or above 1000) may return validation errors","Malformed ingredients string (wrong separator or missing mass) causes parse failure","Network or payment failure returns HTTP 402 or 5xx"],"whenToPreferThis":"Choose this endpoint when you need to compute or balance the carbon-to-nitrogen ratio of a compost mix using the Cornell formula, especially when you have named ingredients (grass, leaves, manure, sawdust) or custom C:N values. It supports both 'what is my current ratio?' (mix mode) and 'how much of each do I need?' (balance mode). Prefer it over generic nutrient calculators when the specific goal is compost pile optimization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:31:14.676Z","isFirstParty":false,"canonicalSlug":"garden-calculators-compost-c-n-ratio-50b7f5a8"}