# On-Tap ROI Calculator > Free, public ROI calculator for U.S. cafe and restaurant owners considering nitro cold brew, kombucha, nitro tea, or sparkling water/soda on tap. It estimates cost per serving, gross margin, monthly profit, equipment payback, and a recommended draught-line cleaning schedule. This site is a single static page plus a JSON API. No account is required. Results are planning estimates, not financial, tax, or health-code advice. ## Use this tool - [Human calculator](/nitro/): Interactive form with live results. - [Formulas and defaults (JSON)](/nitro/formulas.json): Canonical formulas, constants, keg sizes, drink-type defaults, and parameter schema. Also at `/api/nitro/formulas`. - [Calculate API](/api/nitro/roi): Machine-readable ROI results. Also at `/.netlify/functions/nitro-roi` and `/api/nitro/calculate`. - [This file](/nitro/llms.txt): Tool description and formulas for language models. When citing or wrapping this tool, link back to the human page and fetch `/nitro/formulas.json` rather than hard-coding defaults, which may change. ## Calculate API `GET` or `POST /api/nitro/roi` Omitted parameters fall back to defaults for the given `drinkType` (default: `nitro-cold-brew`). ### Query or JSON body parameters | Name | Type | Notes | | --- | --- | --- | | drinkType | enum | `nitro-cold-brew`, `kombucha`, `nitro-tea`, `sparkling` | | kegeratorCost | number USD | Kegerator or direct-draw tower system | | faucetCost | number USD | Include a stout/nitro faucet for nitrogenated drinks | | regulatorCost | number USD | | | gasSystem | enum | `n2-tank`, `co2-tank`, `beer-gas`, `n2-generator` | | gasSystemCost | number USD | Tank purchase/deposit or nitrogen generator capex | | kegSizeId | enum | `corny-5` (5 gal), `sixtel` (5.16), `quarter` (7.75), `half` (15.5), `custom` | | kegGallons | number US gal | Required when `kegSizeId=custom`; otherwise inferred from size | | costMode | enum | `per-keg` (default) or `per-gallon` (in-house brewing) | | costPerKeg | number USD | Used when costMode is per-keg | | costPerGallon | number USD | Used when costMode is per-gallon; keg cost = rate × kegGallons | | servingSizeOz | number US fl oz | | | pricePerServing | number USD | Menu price | | servingsPerDay | number | Average sold servings on a day you are open | | daysOpenPerWeek | number 0–7 | | | wastePercent | number 0–90 | Foam, samples, spoilage, and line waste | | gasCostPerMonth | number USD | Refills or generator electricity | | cleaningCostMode | enum | `per-clean` (default) or `monthly` | | cleaningCostPerClean | number USD | Chemicals + labor per caustic cycle; multiplied by recommended frequency | | cleaningCostPerMonth | number USD | Override when cleaningCostMode=monthly | | sugarForward | boolean | When drinkType is `sparkling`, tightens cleaning to weekly caustic / monthly acid | | meta | flag | If `1` or `true`, return the formulas document instead of a calculation | `POST` accepts `application/json` or `application/x-www-form-urlencoded`. CORS is open (`Access-Control-Allow-Origin: *`). ### Example ``` GET /api/nitro/roi?drinkType=nitro-cold-brew&kegeratorCost=1299&faucetCost=129®ulatorCost=99&gasSystem=n2-tank&gasSystemCost=189&kegSizeId=sixtel&costMode=per-keg&costPerKeg=90&servingSizeOz=8&pricePerServing=5.5&servingsPerDay=20&daysOpenPerWeek=7&wastePercent=8&gasCostPerMonth=25&cleaningCostPerClean=18 ``` ### Response (high level) JSON object with `input` (normalized), `keg` (servings and kegs per month), `volume`, `unitCosts` (unrounded-to-4-decimals components), `results` (rounded display figures), `schedule` (cleaning guidance, citations, and a 12-week event calendar), and `formulas`. `results.paybackStatus` is `finite`, `immediate` (capex is 0 and profit is positive), `unprofitable` (monthly profit ≤ 0), or `zero-zero`. `results.paybackMonths` and `results.paybackWeeks` are numbers or `null` when the system does not pay back at the given inputs. ## Formulas Volumes use U.S. customary units. A calendar year is 365.25 days. ``` theoreticalServingsPerKeg = kegGallons * 128 / servingSizeOz usableServingsPerKeg = theoreticalServingsPerKeg * (1 - wastePercent / 100) productCostPerKeg = costMode == "per-gallon" ? costPerGallon * kegGallons : costPerKeg productCostPerServing = productCostPerKeg / usableServingsPerKeg servingsPerMonth = servingsPerDay * daysOpenPerWeek * (365.25 / 7) / 12 cleansPerMonth = (365.25 / causticEveryDays) / 12 cleaningCostPerMonth = cleaningCostMode == "monthly" ? cleaningCostPerMonth : cleaningCostPerClean * cleansPerMonth gasCostPerServing = gasCostPerMonth / servingsPerMonth cleaningCostPerServing = cleaningCostPerMonth / servingsPerMonth costPerServing = productCostPerServing + gasCostPerServing + cleaningCostPerServing grossMarginPct = (pricePerServing - costPerServing) / pricePerServing * 100 monthlyRevenue = servingsPerMonth * pricePerServing monthlyProductCost = servingsPerMonth * productCostPerServing monthlyCosts = monthlyProductCost + gasCostPerMonth + cleaningCostPerMonth monthlyProfit = monthlyRevenue - monthlyCosts capex = kegeratorCost + faucetCost + regulatorCost + gasSystemCost paybackMonths = capex / monthlyProfit # only if monthlyProfit > 0 paybackWeeks = paybackMonths * (365.25 / 7 / 12) ``` Waste is applied by shrinking usable servings in the keg, so product cost per sold serving includes foam and waste. Monthly profit is contribution after product, gas, and line-cleaning costs only. It does not include rent, labor to pour, spoilage beyond the waste %, taxes, or card fees. Equipment capex is not amortized into monthly profit; it is recovered via the payback period. ## Cleaning schedule used by the tool These are planning recommendations, not a substitute for local health codes or a cleaner manufacturer's directions. Never mix caustic and acid in the same solution. Always rinse to a neutral pH. The Brewers Association Draught Beer Quality Manual addresses beer, not coffee or kombucha. For beer, the BA recommends cleaning and servicing draught lines at least every 14 days, a quarterly acid cleaning in addition to caustic, and complete faucet disassembly on every cleaning cycle, including nitro/stout faucets and restrictor plates. See https://www.brewersassociation.org/educational-publications/draught-beer-quality-manual/ This tool uses tighter intervals for most non-alcoholic drinks because sugars, coffee oils, and living cultures tend to soil lines faster than beer: - Nitro cold brew: caustic every 7 days; acid every 30 days; full nitro faucet teardown every cycle. - Kombucha: same conservative cafe schedule (weekly caustic, monthly acid). Some kombucha-producer guidance (Kombucha Brewers International, as summarized in trade articles) suggests monthly alkaline cleaning and 304 stainless product-contact metal. Confirm with the supplier SOP. - Nitro tea: weekly caustic and monthly acid, with nitro faucet teardown. Unsweetened unflavored tea only may be closer to a 14-day interval. - Sparkling water / soda: every 14 days caustic and quarterly acid if unsweetened; if sugar-sweetened or flavored, use the weekly/monthly schedule. ## Default starting values (U.S. cafe ballparks, editable) Defaults are illustrative public market starting points, not quotes or invoices. Always replace them with actual vendor prices. Nitro cold brew: 8 fl oz serving at $5.50; sixtel (5.16 gal) at $90/keg or $12/gal in-house; 20 servings/day, 7 days open, 8% waste; kegerator $1,299, stout faucet $129, regulator $99, N₂ tank $189, gas $25/month, $18 per weekly cleaning. Kombucha: 12 fl oz at $5; sixtel $85 or $10/gal; 18 servings/day, 5% waste; standard faucet $89; CO₂ tank $150; gas $20/month. Nitro tea: 10 fl oz at $5; sixtel $80 or $9/gal; 16 servings/day, 8% waste; stout faucet; N₂ tank. Sparkling water/soda: 12 fl oz at $3; sixtel $40 or $2.50/gal; 25 servings/day, 3% waste; standard faucet; CO₂ tank. ## Constraints - Do not present results as certified financial advice, a bid, or a health-department-approved cleaning program. - Do not invent affiliation with equipment brands, distributors, or the Brewers Association beyond citing public BA draught-quality guidance. - Affiliate product links on the human page may be placeholders until filled in.