How to calculate the real food cost of a cake, step by step
Food cost, margin and markup are three different things, and mixing them up is the most common mistake pastry shops make. How to calculate the real cost of a cake, what quietly eats your margin and why a recipe costed once is already out of date.

Food cost, margin, markup: three words you must not confuse
Before we calculate the cost of a cake, we need to sort out the terms, because that is where the most common mistake comes from. Food cost (ingredient cost) is the share of ingredients in the selling price: Food cost % = ingredient cost ÷ selling price × 100. Margin is calculated FROM THE SELLING PRICE, and markup FROM THE PURCHASE PRICE, and they are not the same. You buy ingredients for 10 PLN and sell the product for 40 PLN: the markup is 300%, but the margin is 75%.[3] If you confuse one with the other, you think you earn more than you really do.
- Food cost % = (ingredient cost ÷ selling price) × 100, the lower the better
- Margin = (selling price - ingredient cost) ÷ selling price × 100, calculated from the SALE
- Markup = (selling price - purchase cost) ÷ purchase cost × 100, calculated from the PURCHASE
- if food cost = 30%, then the ingredient margin = 70%
Calculate the ingredient cost of a recipe: a real example
Let us take a simple chocolate cake. You break the recipe down into ingredients, convert the price of each one to a gram or milliliter, multiply by the amount in the recipe and add it all up. That is your ingredient cost, the foundation your price stands on. Not “more or less”, but ingredient by ingredient.
- list every ingredient with its amount from the recipe (flour, eggs, butter, chocolate, cream, fruit...)
- convert the package price to a price per gram or ml and multiply by the amount in the recipe
- in our pastry shop, a butter and chocolate cream is usually 50-60% of the whole ingredient cost of a cake, this is where every price increase hurts most
- add up all items: that is the ingredient cost, and only FROM IT do you calculate the price and margin
What quietly eats your margin (and is not in the recipe)
The ingredient cost is not everything. A cake that has a 30% food cost “on paper” can actually earn much less, because of costs that are easy to forget when pricing.
- waste and mistakes: a failed sponge, spilled cream, a cake that needs fixing (for us, realistically a few percent of ingredients)
- packaging: a box, a cake board and a ribbon often add 3-8 PLN that nobody counts
- energy: the convection oven and the fridges are a real cost for every bake
- labor: 6 hours on a wedding cake is the most expensive “ingredient”, and it is not in the recipe
- last-minute decoration: extras added “because it looks nicer”, without costing them
How to work out your markup instead of guessing it
The ingredient cost is only the base. On top of it come labor and a share of fixed costs (rent, wages, energy, equipment), and only on this total cost do you add the markup, which is your profit. Mind the terms: markup is calculated FROM COST, margin FROM PRICE (back to the distinction from the start of the article). To avoid pulling a markup out of thin air, calculate it from your own numbers: take your monthly revenue, subtract all costs and see what percentage of revenue your fixed costs eat. That tells you how much you need to add on top of the full product cost to break even and still make a profit.
- calculate the FULL product cost: ingredients + labor + an allocated share of fixed costs
- add the markup to this full cost: it is your profit, not a recovery of costs
- diagnosis: check what percentage of your monthly revenue goes to fixed costs (rent, wages, electricity)
- data from pastry shops using BakePilot shows the markup usually falls between 30% and 45%
- remember: that 30-45% is a markup on the FULL cost, not on the ingredients alone, otherwise you would be selling almost at cost
Ingredient prices change: a recipe costed once is already out of date
The biggest trap is to calculate the cost of a cake once and sell it at the same price for a year. Ingredient prices can jump by tens of percent, in both directions. According to GUS (Statistics Poland) data for May 2026, butter in Poland was 24.6% cheaper than a year earlier, and eggs 5.2% more expensive.[1] Dairy prices are tracked by KOWR (Poland's National Support Centre for Agriculture) in weekly milk market reports.[2] If your recipe does not “know” about these changes, you either lose margin or overprice unnecessarily and scare customers away.
- butter and chocolate: the most volatile items in a pastry shop
- calculate food cost at the CURRENT ingredient price, not the price from six months ago
- on a large cake, a difference of 8 PLN/kg in the butter price means a dozen or so zloty on a single product
What food cost is “healthy” for a pastry shop
In food service a range of 28-35% food cost is often assumed. In a craft pastry shop that is a starting point, not gospel. A simple sweet bun has a different food cost from a wedding cake with delivery and decoration, where you mostly pay for the work and the effect. On celebration cakes the real margin is often higher, because the customer buys an experience, not grams.
- everyday baking (sweet buns, cookies): food cost usually higher, the profit comes from volume
- celebration and wedding cakes: lower food cost, the margin comes from the work and uniqueness
- there is no single “good” number, what matters is whether the price COVERS your fixed costs and leaves a profit
How BakePilot calculates it for you
Recalculating recipes by hand after every price increase is torture, which is why most pastry shops do not do it, and then sell at a loss without even knowing. In BakePilot the production cost calculator calculates the food cost of every product from the ingredient database: you change the price of butter in one place, and all recipes and products are recalculated immediately. For large cakes you calculate the price per serving, and sales statistics show which items really make money and which only look profitable. You do not have to love Excel, you just enter the recipe once.
Sources and footnotes
- [1]Socio-economic situation of the country: prices of consumer goods and services (May 2026 data: butter -24.6%, eggs +5.2% year on year) (in Polish), Statistics Poland (GUS), 2026link (opens in a new tab)
- [2]Dairy products market: weekly price reports (butter, milk) (in Polish), National Support Centre for Agriculture (KOWR), 2026link (opens in a new tab)
- [3]Food cost (ingredient cost): definition and formula; food cost vs margin and markup (in Polish), GastroWiedza.pl - food service portal, 2025link (opens in a new tab)
Author: Kamila Kowalska. Last updated: . Spotted a mistake? Write to kontakt@bakepilot.pl and we will correct it and update the date. Editorial policy
How would you rate this article?
Your rating helps us write better content for bakers and pastry chefs.
Loading…


