Bakery pricing guide for Shopify sellers
How to price baked goods: a cake and cookie pricing formula with worked examples
To price a baked good, add up its full cost for one item (ingredients, packaging, your labor and a share of overhead) and divide it by one minus the margin you want to keep. An 8-inch cake that costs $40.96 to make sells for $40.96 ÷ (1 − 0.40) = $68.27 at a 40% margin, and a dozen cookies that cost $15.48 sell for $25.80.
Free for up to 10 products · 14-day trial on paid plans
Updated
- Ingredients
- $14.16
- Board and box
- $1.80
- Labor, 75 min at $18/h
- $22.50
- Overhead share
- $2.50
- Cost per cake
- $40.96
- Price at a 40% margin
- $68.27
Price = full cost per item ÷ (1 − target margin). Full cost is the ingredients (each pack price converted to a price per gram and multiplied by the grams used), divided by the recipe’s yield, plus packaging, labor at an hourly rate and an overhead share. At a 40% margin, a $40.96 cake sells for $68.27, or $68.99 rounded to a .99 ending; check the result against what bakeries near you charge.
What is the formula for pricing baked goods?
A baked good’s price is its full cost per item divided by (1 − target margin), where the full cost covers ingredients, packaging, labor and overhead for that one item. Pricing from ingredients alone, or multiplying them by a fixed number, leaves out the part of the cost that usually weighs most in a bakery: your time.
- Convert each pack price to a price per gram or per milliliter. A 5 lb bag of flour for $4.29 is $4.29 ÷ 2.268 kg = $1.89 per kg.
- Cost the whole batch. Grams used × price per gram for every ingredient, then add up the lines.
- Divide by the yield. A batch of 24 cookies sold by the dozen has a yield of 2 boxes.
- Add packaging per item. Boxes, boards, liners, labels and ribbon.
- Add labor. Minutes of hands-on work × hourly rate ÷ 60, including decorating and packing.
- Add an overhead share. Monthly costs no recipe lists ÷ the items you plan to sell in a month.
- Divide by (1 − margin) and round the price to an ending you like.
cost = (ingredients ÷ yield) + packaging + labor + overhead
price = cost ÷ (1 − margin)
Margin, not markup
A 40% margin means 40% of the price is left after the cost, which is a 66.7% markup on the cost. Multiplying the cost by 1.40 gives only a 28.6% margin. The difference is explained in markup vs margin.
How do you work out ingredient cost per gram from pounds, ounces and gallons?
Divide what you paid for a pack by its weight or volume in grams or milliliters: 1 lb is 453.59237 g, 1 oz is 28.3495 g, 1 US fl oz is 29.5735 ml and 1 US gallon is 3.785 liters. Do it once per pack size and write the result down; recipes in grams then cost themselves line by line.
| Ingredient | Pack | Pack price | In metric | Price per kg or l |
|---|---|---|---|---|
| All-purpose flour | 5 lb bag | $4.29 | 2.268 kg | $1.89 / kg |
| Granulated sugar | 4 lb bag | $3.99 | 1.814 kg | $2.20 / kg |
| Brown sugar | 2 lb bag | $3.49 | 0.907 kg | $3.85 / kg |
| Powdered sugar | 2 lb bag | $2.99 | 0.907 kg | $3.30 / kg |
| Unsalted butter | 1 lb | $4.99 | 0.454 kg | $11.00 / kg |
| Cocoa powder | 8 oz | $5.49 | 0.227 kg | $24.21 / kg |
| Chocolate chips | 12 oz | $4.49 | 0.340 kg | $13.20 / kg |
| Baking powder | 10 oz | $2.49 | 0.283 kg | $8.78 / kg |
| Whole milk | 1 gal | $4.19 | 3.785 l | $1.11 / l |
| Vanilla extract | 4 fl oz | $11.99 | 0.118 l | $101.36 / l |
| Eggs | 1 dozen | $4.20 | 12 pcs | $0.35 each |
Prices per kg are rounded to cents from the exact pack weight: $4.99 ÷ 0.45359237 kg = $11.0011, so butter is $11.00 per kg, or 1.1 cents per gram. A price per kg reads more easily than a price per gram, and grams × price per kg ÷ 1,000 gives the same cost: 570 g × $11.00 ÷ 1,000 = $6.27.
Weigh rather than measure by cups. How much a cup of flour weighs depends on how it is scooped and leveled, so a recipe in cups costs differently each time; weigh each cup measure once and keep the grams.
Try it with your own packs
The free recipe cost calculator takes pack prices in g, oz, lb, ml, fl oz or gallons, converts them for you and gives the batch cost, the cost per item and a price from your margin.
How much does it cost to make an 8-inch cake?
A two-layer 8-inch vanilla cake with chocolate buttercream costs about $40.96 to make at these example prices: $14.16 of ingredients, $1.80 of board and box, $22.50 of labor and $2.50 of overhead. Cut into 12 slices, that is $3.41 of cost per slice.
| Line | Amount | Calculation | Cost |
|---|---|---|---|
| All-purpose flour | 360 g | 0.360 kg × $1.89 | $0.68 |
| Granulated sugar | 400 g | 0.400 kg × $2.20 | $0.88 |
| Powdered sugar (buttercream) | 460 g | 0.460 kg × $3.30 | $1.52 |
| Butter (230 g cake, 340 g buttercream) | 570 g | 0.570 kg × $11.00 | $6.27 |
| Eggs | 4 pcs | 4 × $0.35 | $1.40 |
| Whole milk | 300 ml | 0.300 l × $1.11 | $0.33 |
| Vanilla extract | 15 ml | 0.015 l × $101.36 | $1.52 |
| Cocoa powder (buttercream) | 60 g | 0.060 kg × $24.21 | $1.45 |
| Baking powder | 12 g | 0.012 kg × $8.78 | $0.11 |
| Ingredients | $14.16 | ||
| Cake board and 10-inch box | 1 + 1 | $0.45 + $1.35 | $1.80 |
| Baking, filling and decorating (labor) | 75 min | 75 × $18.00 / h ÷ 60 | $22.50 |
| Overhead share | 1 cake | $500 a month ÷ 200 items | $2.50 |
| Cost per cake | $40.96 | ||
| Cost per slice: $40.96 ÷ 12 slices | $3.41 | ||
Where the $40.96 goes
Labor is more than half the cost of a decorated cake: $22.50 ÷ $40.96 = 54.9%. Ingredients are 34.6%, overhead 6.1% and the board and box 4.4%. That is why a price built on ingredients alone falls short for cakes: the ingredients are only about a third of what the cake costs you.
The overhead share is the month’s costs that no recipe lists (a share of rent, utilities, insurance, equipment and software) divided by the cakes and boxes you expect to sell: $500 ÷ 200 = $2.50 for each one.
Bigger and smaller cakes
For a 6-inch or a 10-inch cake of the same height, scale the ingredients by the pan area, (6 ÷ 8)² = 0.5625 and (10 ÷ 8)² = 1.5625, and keep most of the decorating time. The full table for three sizes is in cake pricing by size for food brands.
How do you price cookies by the dozen?
Cost the whole batch, divide it by the number of boxes it fills, then add the overhead share per box: a batch of 24 chocolate chip cookies costs $25.96, which is $12.98 per dozen, or $15.48 per dozen with $2.50 of overhead.
| Line | In the batch | Calculation | Cost |
|---|---|---|---|
| All-purpose flour | 280 g | 0.280 kg × $1.89 | $0.53 |
| Butter | 230 g | 0.230 kg × $11.00 | $2.53 |
| Granulated sugar | 150 g | 0.150 kg × $2.20 | $0.33 |
| Brown sugar | 200 g | 0.200 kg × $3.85 | $0.77 |
| Eggs | 2 pcs | 2 × $0.35 | $0.70 |
| Vanilla extract | 10 ml | 0.010 l × $101.36 | $1.01 |
| Chocolate chips | 340 g | 0.340 kg × $13.20 | $4.49 |
| Dough for 24 cookies | $10.36 | ||
| Bakery boxes | 2 pcs | 2 × $0.95 | $1.90 |
| Labels | 2 pcs | 2 × $0.10 | $0.20 |
| Mixing, scooping, baking, packing (labor) | 45 min | 45 × $18.00 / h ÷ 60 | $13.50 |
| Batch cost | $25.96 | ||
| Per dozen: $25.96 ÷ 2 boxes | $12.98 | ||
| Per dozen with overhead: $12.98 + $2.50 | $15.48 | ||
| Per cookie: $15.48 ÷ 12 | $1.29 | ||
Yield is what you sell
Set the yield to the units you sell, not the cookies you bake: the product is a box of 12, so 24 cookies are a yield of 2. A batch sold as single cookies has a yield of 24, and each cookie then carries its own bag.
Packaging for the whole batch
Lines inside the batch are divided by the yield too, so the batch holds two boxes and two labels. Overhead comes after the yield, once for each box: $2.50, not $2.50 ÷ 2.
Broken and test cookies
If two cookies of every 24 crack, the batch fills 22 good ones, not 24. Bake the loss into the yield (22 ÷ 12 = 1.83 boxes) or add a waste percentage to the dough, and the cost per box rises to match.
What profit margin should a bakery use for cakes and cookies?
There is no single right margin, but once labor and overhead are already in the cost, a margin of 30% to 50% is a common working range for baked goods sold online, and the final check is what customers near you pay for something comparable. The table shows what each margin does to the two examples.
| Margin | 8-inch cake | Per slice (12) | Dozen cookies | Per cookie |
|---|---|---|---|---|
| 30% | $58.51 | $4.88 | $22.11 | $1.84 |
| 40% | $68.27 | $5.69 | $25.80 | $2.15 |
| 50% | $81.92 | $6.83 | $30.96 | $2.58 |
| 60% | $102.40 | $8.53 | $38.70 | $3.23 |
Why “ingredients × 3” is not enough
A popular rule prices a bake at three times its ingredients. For the cake that is $14.16 × 3 = $42.48, only $1.52 above its $40.96 cost, a 3.6% margin. For the cookies it is $5.18 × 3 = $15.54 per dozen, $0.06 above cost. The rule works for quick, simple bakes; for decorated or labor-heavy ones it pays for little more than your hourly rate.
What the margin has to cover
The margin here is gross margin: it still has to pay for payment fees, advertising, discounts and the hours you spend answering messages and taking photos. If those take 15% of every sale, a 40% margin leaves about 25% of the price as profit. A discount comes straight out of it: 20% off the $68.27 cake is $54.62, a 25.0% margin.
What costs do home bakers forget to include in their prices?
The costs bakers most often leave out are the small, repeating ones: packaging beyond the box, frosting left in the bowl, test bakes, and the time spent on everything except baking. Each one is small on its own and adds up over a month of orders.
- Cake boards, liners, cupcake inserts, ribbon, stickers and the bag the box goes in
- Frosting and batter left in bowls and piping bags, and trimmed cake tops
- Test bakes for a new flavor and the cookies that break
- Time for washing up, shopping for ingredients, packing and talking to customers
- A share of rent or the kitchen you use, electricity and gas for the oven
- Equipment that wears out: mixers, pans, turntables
- Licenses, insurance and your Shopify subscription
- Payment fees and discounts, which the margin has to absorb
Waste is easiest to price as a percentage on the line it comes from: line cost = quantity × price per unit ÷ (1 − waste). If a tenth of the buttercream’s powdered sugar stays in the bowl, the line becomes 0.460 kg × $3.30 ÷ (1 − 0.10) = $1.518 ÷ 0.90 = $1.69 instead of $1.52. For the rest of the cost side, see how to calculate COGS for products you make.
How do I keep cake and cookie prices up to date on Shopify?
Costory is a Shopify app that keeps the recipe of every product, recalculates its cost when an ingredient price changes and writes the result to Shopify’s Cost per item, so a price rule can move the price with it. The two examples above are set up as products in it, with the rule ending(margin(cost, 40%), 0.99).
| Product | Cost | Price by rule | Margin | New cost | New price | New margin |
|---|---|---|---|---|---|---|
| 8-inch cake | $40.96 | $68.99 | 40.6% | $42.22 | $70.99 | 40.5% |
| Dozen cookies | $15.48 | $25.99 | 40.4% | $15.73 | $26.99 | 41.7% |
Recipes in grams, prices per kg
Ingredients are kept in g, kg, ml, l or pieces with a price per kg, liter or piece; pounds, ounces and cups are not built in, so convert a pack once and save it on the ingredient as a pack, such as a 5 lb bag of 2,268 g. Labor lines take minutes and a role’s hourly rate, and an overhead rule adds monthly costs ÷ planned quantity, a percentage or a fixed amount, for all products or a collection, tag or product type.
Cost per item in Shopify
The cake’s $40.96 goes to Cost per item on its Shopify variant, so Shopify’s own profit reports use the real cost. When butter goes up, the cake becomes $42.22 and the cookies $15.73 per dozen, and both Cost per item values change with it.
Prices that follow the cost
The rule rounds up to .99, so the margin stays at or above 40%. On Free you apply a rule’s price by hand on the product page; from Starter, new prices wait as proposals with the margin before and after, or go out on their own in automatic mode, with a rollback in History.
Labor and overhead are on every plan, including Free for up to 10 products. Starter ($12.99/mo) adds semi-finished goods, so one buttercream recipe can feed every cake and cupcake, and option modifiers for cake sizes. Growth ($39/mo) deducts ingredient stock by Shopify orders and records production runs for cookies baked ahead. Paid plans start with a 14-day trial; see the pricing page and Costory for food and beverage brands.
Limits: Costory prices the products in your Shopify catalog; a one-off custom cake quoted by message is still worked out by hand or in the recipe cost calculator. It does not know what other bakeries charge, and it does not make nutrition or allergen labels.
Or cost one recipe first in the recipe cost calculator.
Questions about pricing baked goods
How much should I charge per slice of cake?
Divide the cake’s price by the slices it is cut into, and check the cost per slice the same way. The 8-inch cake in this guide costs $40.96 and sells for $68.99, so 12 slices cost $3.41 each and sell for $5.75 each. The same cake cut into more, thinner party slices has a lower price per slice but the same price per cake.
Should I pay myself for baking time if I bake from home?
Yes. Put your hours into the cost at an hourly rate, or the money that should pay you shows up as profit and the price ends up too low. Without its 75 minutes of work at $18 an hour, the 8-inch cake costs $18.46, and a 40% margin prices it at $18.46 ÷ 0.60 = $30.77 instead of $68.27.
How do I price custom decorations, toppers and lettering?
Add the extra minutes and materials to the cake’s cost and let the margin carry them into the price. Thirty more minutes of piping at $18 an hour adds $9.00 to the cost; at a 40% margin that is $9.00 ÷ 0.60 = $15.00 on the price. A bought topper is a line at what you paid for it, priced the same way.
How do I price a gluten-free version of a cake?
Cost it as its own recipe, because the special ingredients change the cost line by line. Replacing 360 g of flour at $1.89 per kg ($0.68) with a gluten-free blend at $6.61 per kg ($8.99 for 3 lb, example price) costs $2.38, $1.70 more; at a 40% margin the price goes up by $1.70 ÷ 0.60 = $2.83.
What food cost percentage should a bakery aim for?
Food cost percentage is ingredient cost divided by the selling price. A common rule of thumb is a quarter to a third of the price when labor is not costed separately; when labor and overhead are already in the cost, as here, it comes out lower: the $14.16 of ingredients in a $68.27 cake is 20.7%.
Should delivery be part of the cake price?
Usually not. Price the cake from what it costs to make and pack, and charge delivery as its own shipping or local delivery rate in Shopify, so a customer who picks up does not pay for a drive. Costory costs the product itself; delivery charges stay in your Shopify shipping settings.
Related
Food and beverage
Recipe costs, margin-based prices and ingredient stock for bakeries, chocolatiers, coffee roasters and other food brands.
Learn more →Recipe cost calculator
Cost a recipe from pack prices in g, oz, lb or ml: batch cost, cost per item or serving, and a price from your margin, with cake, cookie, candle and soap examples.
Open the calculator →Markup vs margin
The difference between markup and margin, how to convert one into the other, a 10–90% conversion table and the pricing mistakes it prevents.
Read the guide →Price every bake from its real cost.
Free for up to 10 products. Paid plans start with a 14-day trial.
Install free on Shopify