How to use the Recipe Cost Calculator
Complete the settings and ingredient rows, then select Calculate. The page shows the total batch cost, cost per serving, costing table, formulas, and export controls.
- In 1. Recipe settings, enter Yield (servings per batch), Number of batches, Waste / spoilage (%), and optional Markup (%, optional). Set Currency symbol if needed.
- Complete each ingredient's name, amount used, amount unit, package size, package unit, package price, and optional density. The page starts with four example rows.
- Select Add ingredient for another row. Use the Remove ingredient control on a row to delete it.
- Select Calculate to display the 2. Result section. Select Reset to restore the default settings and four example rows.
- Use Copy result, Download result (.txt), or Download costing table (.csv) to save the result.
What the calculator calculates
Unit cost = Package price / Package sizein a common base unit.Ingredient line cost = Unit cost x Amount usedafter conversion to the package unit category.Raw recipe cost = sum of every ingredient line cost.Waste-adjusted recipe cost = Raw recipe cost / (1 - Waste% / 100).Batch cost = Waste-adjusted recipe cost x Number of batches.Total servings = Yield x Number of batches, thenCost per serving = Batch cost / Total servings.- When markup is greater than 0,
Suggested price per serving = Cost per serving x (1 + Markup% / 100). This is markup on cost, not a gross-margin calculation.
Choose units and enter density when needed
Choose from mass units g, kg, oz, and lb; volume units mL, L, tsp, tbsp, cup, and fl oz; or the count unit ct. Mass converts directly to mass, and volume converts directly to volume. A mass-to-volume or volume-to-mass ingredient row requires density in g/mL. Count cannot convert to mass or volume, so its amount and package units must both be count units. Separate ingredient rows may use different unit categories.
Waste, rounding, and limitations
- Waste / spoilage (%) is one whole-recipe percentage applied to raw ingredient cost. There is no per-ingredient waste control, and waste must be below 100%.
- Per-serving and unit costs are displayed to 4 decimals. The main Total batch cost and suggested price per serving statistics are displayed to 2 decimals.
- Detailed assumptions and exported text/CSV retain several totals to 4 decimals. Calculations use full-precision intermediate values before display formatting.
- The calculator uses the package prices you enter. It does not fetch grocery prices, estimate substitutions, or calculate nutrition, calories, or macronutrients.
Validation and common input errors
Yield and number of batches must be greater than 0. Waste must be from 0 up to, but not including, 100; markup must be 0 or greater. Filled ingredient rows require a name, non-negative amount, package size greater than 0, and non-negative package price. Mixed mass and volume rows require density greater than 0. Completely empty rows are skipped. A failed check shows a specific error instead of a result.
Read and export the result
The 2. Result section appears after Calculate. Its summary shows Total batch cost and Cost per serving; a suggested price per serving appears when markup is greater than 0. The Costing table lists the ingredient, amount used, package, density, unit cost, and line cost. The formula area shows intermediate values and assumptions.
Copy result and Download result (.txt) provide a plain-text summary. Download costing table (.csv) provides the ingredient rows and cost summary in CSV format.
Privacy and page data handling
The calculator script performs its calculations in your browser and does not transmit the calculator fields. The imported page also loads Ahrefs and Google Analytics scripts, includes a subscription form that posts an email address to /assets/subscribe.php, and performs server-side page-hit tracking in the footer. Check the site's formal privacy policy for complete page-wide data-handling details.
Frequently Asked Questions
How does the Recipe Cost Calculator work?
For each ingredient, it divides the package price by the package size to get a unit cost, then multiplies that unit cost by the amount you used to get a line cost. All line costs are summed into a raw recipe cost, divided by (1 - waste%) to account for spoilage or trim, multiplied by the number of batches for a total batch cost, then divided by the total number of servings (yield x batches) for a cost per serving. An optional markup percentage is applied last to suggest a selling price.
How is waste or spoilage handled?
You enter a single waste/spoilage percentage representing the share of purchased ingredient cost lost to trim, spillage, or spoilage. The calculator divides the raw ingredient cost by (1 - waste% / 100), which is the standard as-purchased-to-edible-portion costing method - it does not estimate waste automatically or apply a per-ingredient waste figure unless you build that into your amounts.
When do I need to enter a density?
Only when an ingredient's amount is measured in a different unit category than its package - for example, you use cups but the package is priced per kilogram. Density (grams per milliliter) is the bridge between mass and volume. If both the amount and the package are already in the same category (both mass, or both volume), no density is needed and metric/imperial units convert directly.
Does this tool fetch real grocery prices or estimate substitutions?
No. It performs a transparent cost calculation using only the package sizes and prices you type in. It does not fetch live or historical grocery prices, does not estimate substitute ingredients or their cost impact, and does not calculate nutrition or calories.
Can I export the costing table?
Yes. Use Download costing table (.csv) for a spreadsheet-ready file with every ingredient's amount, package details, unit cost, and line cost, plus the cost summary. Copy result or Download result (.txt) give the same information as plain text.