How to Calculate Food Cost for Your Home Bakery
If you sell sourdough loaves at your local farmers market, ship cookies through Instagram, or take Saturday cake orders for friends-of-friends, you've probably wondered: am I actually making money on this? The real answer for most home bakers is "I think so?" — and that uncertainty is exactly the gap this guide is going to close.
Costing recipes is not hard math. It's two divisions and one subtraction. What makes it feel hard is the bookkeeping and the unit conversions: a 5-pound bag of flour, a $4.99 pound of butter, a $14 jar of vanilla — translating those into "cost per cookie" feels like a chore. So bakers either skip it (and underprice), or build a 12-tab spreadsheet they then dread updating. Neither is sustainable.
The whole formula in one paragraph
For every ingredient you use, multiply unit cost × quantity used. Sum those numbers — that's your total recipe cost. Divide by how many things the batch makes — that's your cost per unit. To get a profitable retail price, divide cost-per-unit by (1 − target_margin). At a 65% target food-cost margin, you divide by 0.35 — meaning a $1 ingredient cost becomes a $2.86 retail price. That's it. The whole job.
Step 1 — figure out your real unit cost
This is where most bakers slip. The price on the bag is not the unit cost — it's the pack cost. You need to divide by the pack size in the unit you actually measure. A few examples:
- King Arthur bread flour, 5 lb = 2,268 g, $5.49 → $0.0024 per gram.
- Land O'Lakes butter, 1 lb (4 sticks) = 16 oz, $4.99 → $0.31 per ounce.
- Madagascar vanilla extract, 4 fl oz = 118 ml, $14.99 → $0.13 per ml.
Stick with the unit you actually weigh or measure with. If your scale shows grams, do everything in grams. If you measure butter in tablespoons, do tablespoons. Mixing units is where rounding errors creep in.
Step 2 — write down the recipe in the same units
Pull out the recipe. Convert any "1 cup" or "2 sticks" into the same unit you used for unit cost. Two sticks of butter = 8 oz. One cup of flour ≈ 120 g. The internet has converters; weigh once and write it down.
Step 3 — multiply, then sum
For each ingredient: line_cost = unit_cost × quantity_used. Sum the line costs. That's the total recipe cost — the cash you spent on ingredients to bake one batch.
Step 4 — divide by yield
How many cookies, loaves, slices, or jars does the batch make? That's your yield. cost_per_unit = total_recipe_cost ÷ yield. If your sourdough loaf cost $1.32 in ingredients and the batch makes one loaf, your cost per loaf is $1.32. If the cookie batch cost $4.20 and yields 24 cookies, your cost per cookie is $0.18.
Step 5 — set your food-cost margin and price
"Food cost margin" is the most misused phrase in this whole conversation. The way pros use it: food cost as a percentage of the retail price. A 30% food cost means ingredients are 30% of what you charge — i.e. you keep 70% to cover labor, packaging, fuel, market fees, depreciation, and profit. For home bakers selling baked goods, a target of 25–35% food cost (which is a 65–75% margin in the way most software phrases it) is the standard recommendation.
The formula: price = cost_per_unit ÷ (1 − margin). So at a 65% margin (target food-cost = 35%), $0.18 cost becomes $0.51. At 70% margin, it's $0.60. At 75% margin, it's $0.72.
Common mistakes that drain your margin
- Forgetting "minor" ingredients. Salt, vanilla, baking soda, eggshells worth of waste. They add up to 5–8% of total recipe cost. Track them.
- Pricing in your head, not on paper. "I'll charge $4 a loaf because that feels right" usually leaves margin on the table — or worse, eats your labor.
- Ignoring batch failures. If 1 out of 10 batches fails, your real cost per unit is 11% higher than your formula says.
- Using "wholesale" margins for retail. If you're selling direct, you can (and should) target a higher margin than a bakery selling to a grocery chain.
- Not re-running the numbers when ingredient prices change. Butter went from $3.99 to $5.49 in the last 18 months. Your cookie price probably should have, too.
How often should you re-cost?
Quarterly is fine for staples. Monthly if you're selling at a market. Anytime a key ingredient (flour, sugar, butter, eggs) changes price by more than ~10%. Saving recipes in BakeCostCalc's Unlimited plan means re-costing is one click — change the unit cost, hit Calculate, see the new suggested price.
Read next
- What to charge for baked goods — a market-by-market breakdownHow farmers market, Instagram, and wholesale prices stack up.
- Food cost percentage explained (without the jargon)The one number that decides whether you're profitable or not.
- How to price custom cakes (and not undersell yourself)The 3-line formula for pricing per slice, per tier, and per consult hour.
- The real cost of a sourdough loaf — itemizedFrom flour to fuel to packaging — every line.
- Cottage food laws by state — what you can and can't sellA plain-English roundup so you don't get a cease-and-desist.
- Free vs paid food cost apps — what you actually getSide-by-side comparison: spreadsheets, BakeCostCalc, and the big POS players.
- The bakery pricing spreadsheet that actually worksIf you must use Excel: here's the template (and why an app is faster).
- A no-fluff guide to ingredient cost calculatorsWhat features matter, what's marketing fluff.
- Home bakery startup costs — what nobody tells youEquipment, permits, packaging, and the hidden category that eats $200/mo.