Back to Free Tools
FREE TOOLS
Recipe Batch and Portion Cost Calculator
Price every ingredient from its purchase pack and calculate batch and portion costs.
Rows [name,used quantity,pack quantity,pack price], Other batch cost, Portions produced
JSON
Browser only
Runs locally in your browser. Your files, pasted content and generated output are not uploaded. Reset clears this tool’s working data.
This tool needs JavaScript. If it does not load, refresh the page and try again.
How to use this tool
- Enter the labelled values using the displayed units and explicit assumptions.
- Choose Calculate result and review the complete report and any undefined or no-solution states.
- Choose Download result to save the complete JSON. Reset clears the result and restores example controls.
Examples
Rows [name,used quantity,pack quantity,pack price]: [["Flour",500,1000,2],["Butter",200,250,3],["Sugar",150,1000,1.5]]
Other batch cost: 1
Portions produced: 12
Limitations
- 1–500 JSON rows [name,used quantity,pack quantity,pack price]. Match quantity units within each row,nonnegative used quantity/price,positive pack quantity. Add explicit noningredient batch cost and whole portions1–1e9. No automatic units,yield loss,tax,labour rate or menu-price recommendation.
- Scalar controls accept explicit finite decimal syntax;positive values normally1e-12–1e12,nonnegative0–1e12 unless a narrower range is stated. JSON numeric rows use finite IEEE754 values within their stated bounds. Derived counts above1billion and nonfinite results refuse. Combined input<=400000UTF8 bytes;complete JSON<=4MiB. All processing stays in your browser.
Related tools
No items found.