LumivexaStore
GUIDE

How to Calculate Recipe Cost Per Cupcake, Cookie or Slice

Updated November 27, 2026 · LumivexaStore

Knowing the cost of one cupcake, one cookie or one slice is the foundation of every good price. Once you know it, you can price boxes of 6, 12 or 24 in seconds, and spot which products earn you the most.

Step 1: Find the cost per unit of each ingredient

Take the price you paid and divide it by the package size. For example, a 2 kg bag of flour that cost $3.40 costs $0.0017 per gram. A dozen eggs for $4.20 costs $0.35 per egg. Use the same unit the recipe uses: grams, cups, spoons or pieces.

Step 2: Cost the whole batch

Multiply each ingredient's unit cost by the amount in the recipe and add everything together. Do not skip the small things. Vanilla, baking powder, salt and colouring are each tiny, but together they often add 5–10% to a batch.

IngredientAmountUnit costCost
Flour250 g$0.0017 / g$0.43
Sugar200 g$0.0020 / g$0.40
Butter225 g$0.0110 / g$2.48
Eggs4$0.35 each$1.40
Milk, vanilla, baking powder——$0.60
Frosting1 batch—$3.20
Batch total$8.51

Example figures only. Use your own receipts.

Cake Pricing Calculator

Real cost, suggested price with true profit margin, deposit, profit per hour and a printable customer quote, ready in Google Sheets and Excel.

See it on Etsy →

Step 3: Divide by the real yield

If the recipe makes 24 cupcakes but one always sticks to the tin and one is a tester, your real yield is 22, not 24. $8.51 ÷ 22 = $0.39 per cupcake in ingredients.

Step 4: Add packaging per piece

Liners, boxes, inserts and labels belong in the cost too. A 12-cupcake box with an insert might cost $1.80, which adds $0.15 per cupcake.

Step 5: Turn cost into a price

Ingredients and packaging are only part of the cost. Add your time and a share of overhead, then apply your profit margin. Our guide on how to price a cake walks through that formula step by step.

Update when prices change

Butter, eggs and chocolate prices move often. Recheck your unit costs every couple of months, or whenever you buy a new package at a different price. When your ingredient list is in a spreadsheet, you update one cell and every recipe updates with it.

Cake Pricing Calculator

Real cost, suggested price with true profit margin, deposit, profit per hour and a printable customer quote, ready in Google Sheets and Excel.

See it on Etsy →

More guides

How to Price a Cake: A Simple Formula for Home BakersHow Much Deposit Should a Home Baker Take for Cake Orders?