What this calculation means
Ingredient price-change impact isolates a manually entered price difference while the formulation and measured yield stay fixed. Matching-basis mode costs the quantity directly; AP-price mode converts an edible-portion recipe quantity to its as-purchased requirement first.
No prices are retrieved. AP yield must be positive and at most 100%; never apply it again to an already yield-adjusted EP price. Blank price basis uses matching basis and performs no yield adjustment. The optional serving count must be positive and use the same portion definition.
How to use this calculator
Normalize old and new prices to the same unit and valuation basis. Choose matching basis when quantity and price already align, including prices already adjusted to EP. For AP prices with an EP recipe quantity, explicitly choose that mode and enter the same measured yield for both prices. Optionally enter positive batch servings for a per-serving change. Supply current batch recipe cost only when it includes the entire old line; the result then also shows a revised batch total and, if servings are entered, revised cost per serving.
Formula and variables
Matching-basis delta = (New unit price − Old unit price) × Recipe quantity; AP-price delta = (New AP unit price − Old AP unit price) × EP quantity ÷ (Fixed yield percentage ÷ 100); Per-serving delta = Batch delta ÷ Batch servings; Optional revised batch cost = Current batch cost + Line delta
- Old unit priceUSD / unit
- Old comparable unit price, on the same AP or already usable basis as the new price.
- New unit priceUSD / unit
- New comparable unit price. Convert pack sizes before comparing them.
- Recipe quantitymatching quantity unit
- Quantity matching the price unit, or usable EP quantity when AP-price mode is explicitly chosen.
- Price basis
- Matching basis performs no yield conversion. AP prices with EP quantity divide the quantity by the entered fixed yield.
- Fixed usable yield%
- Measured usable yield, required for AP mode only. Blank is required on matching basis to prevent double-adjustment.
- Current batch recipe costUSD
- Optional current batch ingredient cost, including this old ingredient line. Revised batch cost equals the supplied total plus the line delta.
- Batch servingsservings
- Optional positive batch servings; changes the supplementary per-serving delta, not the batch delta.
Dollar amounts display to cents, with exact half-cent values rounded away from zero; intermediate calculations keep full precision.
Understand your result
The primary result is the signed ingredient cost change. Details show the quantity valued at the entered prices, old and new line costs, and optional change per equivalent serving. A yield change or a changed recipe quantity requires a different comparison.
Worked example
At a fixed 80% yield, compare AP prices of $3.00 and $3.50 per lb for 4 lb usable recipe quantity and 10 servings.
Old unit price: 3 USD / unit
New unit price: 3.5 USD / unit
Recipe quantity: 4 matching quantity unit
Price basis: AP prices with an EP recipe quantity
Fixed usable yield: 80 %
Current batch recipe cost: 30 USD
Batch servings: 10 servings
- AP quantity required = 4 lb usable ÷ 0.80 = 5 lb AP.
- Old line cost = 5 × $3.00 = $15. New line cost = 5 × $3.50 = $17.50.
- Batch change = $17.50 − $15 = $2.50. Per-serving change = $2.50 ÷ 10 = $0.25.
- If the current batch costs $30 including the old $15 line, revised batch cost = $30 + $2.50 = $32.50; at 10 servings this is $3.25 per serving.
Example result: $2.50
Frequently asked questions
What if the supplier changed the pack size too?
Normalize both prices to the same comparable unit first. A difference between two whole-pack prices is not a valid unit-price change when pack sizes differ.
Are the prices updated automatically?
No. The example prices load with the page; replace them with current supplier prices. The calculator does not look up live prices.
Why is the yield field rejected on matching basis?
A matching quantity already corresponds to the stated price basis. Applying a yield again could charge loss twice. If prices are AP and the recipe quantity is EP, choose AP-price mode and enter the measured yield explicitly.
