A spike in ingredient prices can wipe out your entire net margin if you don't act in time.
In 30 seconds: Simulate how each ingredient price swing impacts your margin and decide when to adjust prices or reformulate recipes. Deterministic calculation with auditable formulas. The result is indicative — adjust the assumptions to reflect your real operation.
Neighborhood bakery in Puebla selling the individual cake (premium slice) at $38, product cost $14 (flour, sugar, eggs, milk, butter, proportional chocolate, packaging), allocated operating expenses $6 (gas, electricity, prorated rent, base salary distributed per unit).
Gross margin: ($38 − $14) ÷ $38 = 63.2%. Net margin: ($38 − $14 − $6) ÷ $38 = 47.4%. Profit per slice: $18.
Common scenario: eggs jump 30% (from $50 to $65/kg) and butter 18% (from $180 to $212/kg) in 60 days. Your product cost rises from $14 to $17 (+21%). New net margin: ($38 − $17 − $6) ÷ $38 = 39.5%, profit $15. A 17% drop in per-piece profit without having moved price.
To preserve 47.4% net margin at the new cost, the new price must be: ($17 + $6) ÷ (1 − 0.474) = $23 ÷ 0.526 = $43.7. Required increase: 15%.
Operating reality: a 15% jump in a neighborhood bakery probably costs 8-15% of volume. Trade-off: raise only 8% ($41) and absorb 4 margin points, OR raise 12% ($43) and accept 5-8% volume loss. Either beats keeping price and eating 8 full margin points.
Operating recommendation: track wholesale prices of your 3 critical inputs (flour, eggs, dairy) monthly in CDMX/MX (Central de Abasto, OPC, wholesale Supercarnes). When two rise more than 10% in 60 days, adjust prices in waves: premium pastries first (+8-12%), traditional bread last (+3-6%). Customers accept increases more easily where they perceive added value.
High volume, low margin (8-15% per piece). Sensitive to flour price swings. Diversifying into premium (artisan bread) lifts margin 25-40%.
Much higher margin (40-60%) from added value and made-to-order items. Dominant inputs: eggs, butter, dairy.
Beverages (coffee) offset the low margin on bread. Blended margin 35-50%. Watch beverage-to-food ratio in average ticket.
Unit margin 5-12%, offset by volume. Forward buying of inputs (1-3 months) reduces volatility.
Methodology and assumptions
Gross margin = (Price − Cost) ÷ Price · Net margin = (Price − Cost − Expenses) ÷ Price
Break-Even Point
How much you need to sell to cover costs
VAT Calculator
Add or remove VAT from any amount
ROI
Return on your investment
ROAS & ad break-even
Calculate your break-even ROAS and check whether your ad campaign is profitable.
Quick Cash Flow
Calculate revenue minus expenses in seconds
Freelance hourly rate
Work out what to charge per hour to reach the income you want after costs and taxes.
LTV and Churn
LTV, LTV:CAC ratio and SaaS payback
Cohort Retention
Cohort decay and cumulative revenue
CAC and Payback
CAC, payback and SaaS Magic Number
EOQ and Reorder Point
Economic order quantity and safety stock
Occupancy Break-Even
Minimum occupancy to cover costs
Seasonal Demand
Project demand peaks and troughs
Interés Compuesto
Proyecta cuánto crece tu dinero con aportaciones periódicas e interés compuesto.
This calculator is free and embeddable. Copy this snippet into your blog or website so your readers can run it directly from there.
Responsive width, fixed height. Adjust `height` to fit your layout.
The advanced simulators model complete scenarios — 12-month cash flow, pricing with sensitivity analysis, credit risk, delivery routes — with your own data and no sign-up.
Explore the simulatorsCalculator guide
This calculator answers the central question of any bakery: how much does each piece I sell actually leave me? Enter the selling price, the raw-material cost per piece and the operating expenses tied to it, and you get gross profit, net profit, both margins and the markup.
It is built for bakeries, pastry shops and cafés with in-house production that price by piece or by batch. The distinction between margin and markup — constantly confused when costing recipes — is exactly what this engine separates.
Gross profit = Selling price − Product cost
Gross margin % = Gross profit ÷ Selling price × 100
Net profit = Gross profit − Operating expenses
Net margin % = Net profit ÷ Selling price × 100
Markup % = Gross profit ÷ Product cost × 100
Margin is always computed over the selling price; markup, over cost. A 100% markup equals a 50% margin — using one as if it were the other is the most expensive costing mistake in baking.
The model works per piece (or per homogeneous presentation). Business fixed costs — rent, payroll, base utilities — do not belong here: they are covered by the sum of net profits across all pieces, and that question is answered by the break-even calculator.
Hypothetical example for illustration. The numbers reproduce exactly when entered into the calculator on this page.
Worked example: an artisan sweet roll sells for $38. The scaled recipe gives $14 of raw material per piece, and per-piece operating expenses (prorated gas, bag, card fee) add up to $6.
Gross profit: $38 − $14 = $24 per piece.
Gross margin: $24 ÷ $38 × 100 = 63.2%.
Net profit: $24 − $6 = $18 per piece.
Net margin: $18 ÷ $38 × 100 = 47.4%.
Markup: $24 ÷ $14 × 100 = 171.4% — the price is 2.7 times the ingredient cost.
Reading: each roll contributes $18 toward rent and payroll. If your monthly fixed costs are $27,000, you need to sell 1,500 rolls a month (50 a day) to cover them with this product alone.
Gross margin measures the health of your recipe; net margin, the health of your sales channel. If gross is high but net collapses, the problem isn't in the kitchen: it's in fees, packaging or delivery.
Use markup to set prices and margin to judge profitability. If you want a 60% margin, the required markup is 150%, not 60%: markup = margin ÷ (1 − margin).
Compare margins between products, not in the abstract. Sourdough may carry a better percentage margin than custom cakes, but if a cake leaves ten times more net profit per unit of effort, the percentage alone doesn't decide your production mix.
From theory to calculation
The calculator on this page runs with your numbers — no forms, no login. Scroll up and try it.
Try the calculatorFrequently asked questions
Tools from the same topical cluster. Use them together to close the loop on your analysis.
Last updated: July 19, 2026
View methodology