Free download for bakers, food brands and makers selling on Shopify
Free recipe costing template for Excel and Google Sheets
Download a free recipe costing template for Excel, Google Sheets and Numbers. Enter what you pay for each pack and how much the recipe uses, and the spreadsheet converts the units and works out the cost per item and a price from your target margin.
Free, no sign-up, no macros. Rather not download? Use the online recipe cost calculator.
Updated
XLSX, 19 KB · Excel, Google Sheets, Numbers
- How to use
- Ingredients
- Recipe
- Units
- Batch cost, 24 cookies
- $27.01
- Cost per cookie
- $1.28
- Price at 60% margin
- $3.20
A recipe costing template is a spreadsheet that turns pack prices into a cost per item: price per gram = pack price ÷ pack size, line cost = amount used × price per gram, and cost per item = (ingredients + labor) ÷ items per batch + packaging. This free one does it in Excel, Google Sheets or Numbers, and its example, 24 chocolate chip cookies, costs $1.28 a cookie and sells for $3.20 at a 60% margin, the same result as our online calculator.
What’s in the free recipe costing template?
The template is one .xlsx file with four sheets: you list ingredients once as you buy them, cost each recipe from that list, and read the cost per item and price. Yellow cells are inputs, grey cells are formulas, and blue cells are the result.
| Sheet | You enter | It calculates |
|---|---|---|
| Ingredients | Each ingredient or packaging item: pack price, pack size and unit (room for 50) | Pack size in grams, milliliters or pieces, and the price per gram, milliliter or piece |
| Recipe | The ingredient (picked from a list), the amount and unit, waste %, items per batch, packaging, labor hours and rate, overhead per item, target margin (room for 30 lines) | Line costs, batch cost, cost per item, price, profit, markup, food cost %, and the margin of a price you already charge |
| Units | Optional: your own units, such as a cup of flour in grams | Conversions for g, kg, oz, lb, ml, l, fl oz, gal and pcs, by exact definitions |
| How to use | Nothing | Short instructions, the formulas and links back to this page |
XLSX, 19 KB. Opens in Excel, Google Sheets (upload it to Drive) and Numbers. No macros, no sign-up.
Recipe sheet preview: 24 chocolate chip cookies
This is the Recipe sheet as it opens, with the example filled in. Each line looks up its ingredient’s price per gram, milliliter or piece on the Ingredients sheet and multiplies it by the amount used, converted to the same unit.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 4 | Ingredient | Amount | Unit | Waste % | Amount in base unit | Price per base unit | Line cost | Check |
| 5 | All-purpose flour | 280 | g | 280 g | $0.00176 | $0.49 | OK | |
| 6 | Butter | 226 | g | 226 g | $0.00990 | $2.24 | OK | |
| 7 | Granulated sugar | 150 | g | 150 g | $0.00220 | $0.33 | OK | |
| 8 | Brown sugar | 165 | g | 165 g | $0.00330 | $0.54 | OK | |
| 9 | Eggs | 2 | pcs | 2 pcs | $0.29083 | $0.58 | OK | |
| 10 | Chocolate chips | 12 | oz | 340.19 g | $0.01173 | $3.99 | OK | |
| 11 | Vanilla extract | 5 | ml | 5 ml | $0.16890 | $0.84 | OK | |
| 35 | Ingredients for the batch | $9.01 | ||||||
| Items per batch (yield) | 24 |
|---|---|
| Packaging per item | $0.15 |
| Labor hours per batch | 1 |
| Labor rate per hour | $18.00 |
| Overhead per item | $0.00 |
| Target margin | 60% |
| Ingredients for the batch | $9.01 |
|---|---|
| Labor for the batch | $18.00 |
| Batch cost | $27.01 |
| Cost per item | $1.28 |
| Price at target margin | $3.20 |
| Profit per item | $1.92 |
| Markup | 150% |
| Food cost % | 11.7% |
Example US prices, November 2026: flour $3.99 for 5 lb, butter $4.49 for 1 lb, a dozen eggs $3.49, chocolate chips $3.99 for 12 oz, vanilla $9.99 for 2 fl oz. Replace them with what you pay.
How do you fill in a recipe cost spreadsheet?
You fill in a recipe cost spreadsheet in five passes: ingredients as you buy them, the recipe’s amounts, any waste, the batch with labor and packaging, then the margin you want. Overwrite the cookie example as you go.
- List every ingredient and packaging item on the Ingredients sheet, as you buy it. Type the pack price and what the pack holds, and pick its unit: a 5 lb bag of flour for $3.99 is 2,267.96 g, so the sheet shows $0.00176 per gram. Include delivery in the pack price if you pay it per order.
- Build the recipe on the Recipe sheet. Pick each ingredient from the list in column A and enter how much one batch uses, in any unit of the same kind: grams of a flour bought in pounds, milliliters of a vanilla bought in fluid ounces. If the Check column says “Unit kind differs”, a weight is being compared with a volume.
- Add waste where you lose some of an ingredient. Trimmings, batter left in the bowl and broken pieces are paid for too. Type it with the % sign; a waste % divides the line cost by (1 − waste): 5% on the chocolate chips turns $3.99 into $4.20.
- Describe the batch. How many items it makes, packaging per item (the $0.15 cookie bag), the hours one batch takes and the hourly rate you would pay someone to do it, and overhead per item for rent, energy and fees. At $0.10 of overhead a cookie, the cost goes from $1.28 to $1.38.
- Set the target margin and read the price. At 60%, the cookie sells for $3.20. Already have a price? Type it under “Your price” to see the margin it really leaves.
For your next recipe, duplicate the Recipe sheet. Every copy reads the same Ingredients sheet, so a new pack price flows into all of them.
Which formulas does the recipe costing template use?
The template uses the same five formulas as the recipe cost calculator, and rounds the same way (each line, labor, the batch, the cost per item and the price to cents), so the cookie example gives $1.28 and $3.20 in both. The cell formulas below leave out the checks for empty cells that the file adds.
| What | Cell formula | Cookie example |
|---|---|---|
| Pack in base unit (Ingredients sheet) | =C5*INDEX(Units!$C$2:$C$20, MATCH(D5, Units!$A$2:$A$20, 0)) | 5 lb × 453.59237 = 2,267.96185 g |
| Price per base unit (Ingredients sheet) | =B5/F5 | $3.99 ÷ 2,267.96 g = $0.00176 per g |
| Line cost (Recipe sheet) | =ROUND(E5*F5/(1-D5), 2) | 280 g × $0.00176 = $0.49; all 7 lines = $9.01 |
| Batch cost (Recipe sheet, column K) | =ROUND(K13+K14, 2), labor =ROUND(K7*K8, 2) | $9.01 + 1 h × $18.00 = $27.01 |
| Cost per item | =ROUND(K15/K5+K6+K9, 2) | $27.01 ÷ 24 + $0.15 + $0.00 = $1.28 |
| Price at target margin | =ROUND(K16/(1-K10), 2) | $1.28 ÷ (1 − 0.60) = $3.20 |
| Markup | =K18/K16 | $1.92 profit ÷ $1.28 = 150% |
| Food cost % | =K13/K5/K17 | $9.01 ÷ 24 ÷ $3.20 = 11.7% |
Margin, not markup
A 60% margin means 60% of the price is profit: $1.92 of $3.20. The same price is a 150% markup on cost. The difference is explained in markup vs margin.
Food cost % is a check, not a price
11.7% looks low next to the 28–35% food cost restaurants commonly aim for (ChowNow), because the cookie also carries $18.00 of labor per batch and a bag. Price from the full cost per item and watch food cost % for creeping ingredient prices.
Exact unit conversions
1 lb = 453.59237 g, 1 oz = 28.349523125 g, 1 US fl oz = 29.5735295625 ml, 1 US gal = 3,785.411784 ml. An ounce is a weight and a fluid ounce a volume, so the sheet never converts one into the other.
Does the template work in Excel, Google Sheets and Numbers?
The template is a plain .xlsx file whose formulas use only IF, IFERROR, ISERROR, ISNUMBER, AND, OR, INDEX, MATCH, ROUND and SUM, functions that Excel, Google Sheets and Numbers all have. It has no macros, no XLOOKUP, LET or LAMBDA, no protected sheets and no links to other files.
- Excel (Windows, Mac, Excel for the web): open the file. The ingredient and unit lists in the Recipe sheet are dropdowns.
- Google Sheets: upload the file to Google Drive and open it with Google Sheets, then File → Save as Google Sheets for a native copy.
- Numbers on a Mac or iPad: open the .xlsx file and Numbers converts it. If a dropdown doesn’t come across, type the ingredient’s name exactly as it is on the Ingredients sheet.
We check every formula of the file by recalculating it in LibreOffice and comparing the results with the online calculator.
When does a recipe costing spreadsheet stop being enough?
A recipe costing spreadsheet stops being enough when keeping it current takes longer than the costing itself: many products and sizes, ingredient prices that change every order, and Shopify’s Cost per item and prices updated by hand after each change. Until then, the template does the job.
| Job | In the template | In Costory, a Shopify app |
|---|---|---|
| Cost a recipe | Ingredients, waste, labor, packaging, overhead per item | The same, plus labor roles with hourly rates and overhead rules (a %, a fixed amount per item, or monthly expenses ÷ planned quantity). Free plan |
| An ingredient price changes | Change the pack price; every recipe sheet in the file updates | Every product that uses the ingredient is recalculated, with prices following your purchases on Growth |
| Cost per item in Shopify | Copied into each variant by hand | Written to each variant’s Cost per item from its recipe |
| Prices | A price per recipe; Shopify prices changed by hand | Price rules such as ending(margin(cost, 60%), 0.99): one applied by hand on Free, proposals and automatic mode from Starter |
| Sizes and variants | One sheet per size | Option modifiers scale one recipe per size. Starter |
| Doughs, fillings, blends | Costed on a separate sheet and typed in as an ingredient | Semi-finished goods with their own recipe. Starter |
| Ingredient stock | Not covered | Deducted by Shopify orders, with purchases and write-offs. Growth |
| Units | g, kg, oz, lb, ml, l, fl oz, gal, pcs and your own | Metric units and pieces (g, kg, mg, ml, l, pcs, lengths and areas): pounds and ounces are entered as grams |
| Price | Free | Free for up to 10 products; Starter $12.99 a month for up to 150; Growth $39 a month for unlimited products |
Keep the spreadsheet if
- You sell a handful of products and your ingredient prices rarely change.
- You cost recipes before you sell them, or outside a Shopify store.
- You want to work in pounds and ounces without converting.
Move to an app when
- A new butter price means re-checking dozens of products and their sizes.
- You copy costs into Shopify’s Cost per item field one variant at a time.
- You want to know which prices fell below your margin as soon as a cost rises; see how to update prices when costs change.
Costory imports ingredients and recipes from CSV files, so the list you keep in the template doesn’t have to be retyped: the Ingredient, Base unit and Price per base unit columns of the Ingredients sheet fill the Ingredient, Unit and Price columns of Costory’s ingredient import. Read the full comparison of Costory and costing spreadsheets, how Costory keeps Shopify COGS on real costs, or how to calculate cost of goods sold.
Questions about the recipe costing template
Is the recipe costing template free to use?
Yes. The .xlsx file downloads without a sign-up or an email address, and you can use it for your business, change it and share it. It has no macros, add-ins or hidden sheets: every number comes from a formula you can read in the cell.
How do I open the template in Google Sheets?
Upload the file to Google Drive and open it with Google Sheets, or use File → Open → Upload inside Sheets. If the title shows an “.XLSX” badge, choose File → Save as Google Sheets to get a native copy you can share and edit like any other sheet. The formulas use only functions Google Sheets has.
How do I account for waste or trim loss in a recipe cost?
Enter the share you lose as Waste % on the recipe line; the line cost is divided by (1 − waste). If 5% of the chocolate chips stay in the bowl, their $3.99 line becomes $3.99 ÷ 0.95 = $4.20 and the batch costs $27.22 instead of $27.01. The cookie still rounds to $1.28, because 21 cents spread over 24 cookies is less than a cent each: waste matters most on expensive ingredients and small batches.
Can I cost several recipes in one spreadsheet?
Yes. Duplicate the Recipe sheet once per recipe: right-click its tab and choose Duplicate in Google Sheets, or Move or Copy → Create a copy in Excel. Every copy reads the same Ingredients sheet, so when butter goes up you change one pack price and every recipe sheet shows its new cost.
My recipe uses cups and spoons. Can the template handle that?
Add the cup as a unit of your own on the Units sheet: a name, the kind “weight” and what it weighs in grams, for example “cup flour”, weight, 120. Weigh your own cup once, because a cup of flour and a cup of sugar weigh different amounts. The new unit then appears in the unit list of the Recipe sheet.
How do I change the currency of the template?
The formulas do not depend on a currency, so enter your prices and change the number format of the money cells: Format Cells → Currency in Excel, Format → Number → Custom currency in Google Sheets. The example prices are US prices from November 2026; replace them with what you pay.
Does the template update my Shopify prices or Cost per item?
No. A spreadsheet has no connection to your store: you copy each cost per item into the variant’s Cost per item field in the Shopify admin and change prices by hand. Costory, a Shopify app, writes Cost per item for every variant from its recipe and can propose new prices when an ingredient price changes.
Related
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 →How to calculate COGS
The cost of goods sold formula for a month and COGS per unit for pricing, with worked numbers and what belongs in COGS.
Read the guide →Costory vs spreadsheets
A costing spreadsheet next to Costory: setup, formulas, price changes, Cost per item, prices, stock, history, and when a sheet is still the better tool.
Learn more →Outgrown the spreadsheet? Keep every recipe cost current in Shopify.
Free for up to 10 products. Paid plans start with a 14-day trial.
Install free on Shopify