Costory Install free

Shopify app for bakeries, chocolatiers, coffee roasters and food brands

Recipe costing for food and beverage brands on Shopify

Costory works out what each cake, box of chocolates, bag of coffee or jar of sauce costs from its recipe, writes it to Shopify’s Cost per item and prices it by margin. On Growth it also keeps ingredient stock from purchases to orders, and on Pro it tracks lots with expiry dates.

Install free on Shopify

Free for up to 10 products · 14-day trial on paid plans

Updated

Cost per item, from the recipe Written to Shopify
Four food products and what each one costs to make
Brownie box5 lines · price by rule $13.99, margin 56% $6.12
Salted caramel, 1 jarbatch of 20 jars, labor included $3.25
Coffee, 340 g bag15% roast loss on green coffee $3.90
Chocolate cake, 8-inch45 min decorating · price by rule $63.99, margin 60% $25.50
Example recipes. Every number is worked out further down this page.
Short answer

Recipe costing for a food business adds up what goes into one item: for each ingredient, quantity × price per unit ÷ (1 − waste), plus packaging and labor, divided by how many items the batch makes, plus overhead per item. Costory does this inside the Shopify admin, writes the result to each variant’s Cost per item, and turns it into a price with a rule such as ending(margin(cost, 55%), 0.99). A Brownie box with $6.12 of ingredients and packaging gets a price of $13.99, a 56% margin.

How much does a brownie box cost to make? A worked example

A box of brownies made with 200 g of dark chocolate, 150 g of butter, 180 g of sugar and 3 eggs, packed in a gift box, costs $6.12 to make at the ingredient prices below.

Brownie box: one box, line by line
Line In the recipe Price Calculation Cost
Dark chocolate200 g$14.00 / kg0.200 kg × $14.00$2.80
Butter150 g$9.00 / kg0.150 kg × $9.00$1.35
Sugar180 g$1.50 / kg0.180 kg × $1.50$0.27
Eggs3 pcs$0.30 / pcs3 pcs × $0.30$0.90
Gift box1 pcs$0.80 / pcs1 pcs × $0.80$0.80
Cost per item, written to Shopify$6.12

The price list says $14.00 per kg and the recipe says 200 g, so Costory converts the grams to kilograms before it multiplies. The $6.12 goes to the variant’s Cost per item in Shopify, so Shopify’s own profit reports use it too.

A margin-based price rule then turns the cost into a price. With ending(margin(cost, 55%), 0.99), a 55% margin rounded up to a price ending in .99:

price = $6.12 ÷ (1 − 0.55) = $13.60 → $13.99
margin = ($13.99 − $6.12) ÷ $13.99 = $7.87 ÷ $13.99 = 56%

Chocolate goes up to $16 per kg

The chocolate line becomes 0.200 kg × $16.00 = $3.20, so the box costs $6.52. Costory recalculates every product that uses the chocolate and updates its Cost per item in Shopify. At the current $13.99, the margin falls to 53%: ($13.99 − $6.52) ÷ $13.99.

The rule proposes $14.99

$6.52 ÷ 0.45 ≈ $14.49, rounded up to $14.99, a margin of ($14.99 − $6.52) ÷ $14.99 = $8.47 ÷ $14.99 = 57%. From Starter, the proposal shows the margin before and after and you apply it in one click; on Free you apply the rule price on the product page. Every change is kept in History with a rollback.

Want to try your own recipe first? The free recipe cost calculator uses the same line formula, with no sign-up.

Bakery, chocolate, coffee and sauce costing: what each business tracks

Bakeries, chocolatiers, coffee roasters and sauce makers cost their products the same way, by recipe, but each one has a different detail that decides the number: a yield, a roast loss, a cake size or an expiry date.

Food and drink businesses on Shopify: what you track → how Costory handles it
Business What you track How Costory handles it Plan
Bakery: bread, cookies, brownies Flour, butter and sugar by the kg, eggs by the piece, a tray that makes 24, boxes and bags Ingredients bought by the pack (a 25 kg sack of flour) and used by the gram; the recipe yield divides the batch cost by the number of items; a box or bag is one more recipe line Free
Cakes made to order Sizes (6, 8 and 10 inch), decorating time, the delivery or pickup date of each order Option modifiers scale one recipe by size; labor lines at an hourly rate; demand by date lists what each day’s orders need Starter; demand by date on Pro
Chocolate and confectionery Ganache and pralines made in batches, tempering and trimming loss, boxes of 9 or 16 Semi-finished goods with their own recipe and yield; a waste percentage per ingredient or per recipe line; option modifiers per box size Starter
Coffee roasters Green coffee by the kg, roast loss, valve bags and labels, 250 g, 340 g and 1 kg bags Waste on the green coffee line covers the roast loss; option modifiers cost each bag size from one recipe; green coffee bought in another currency converts at daily rates on Pro Free; sizes on Starter
Sauces, jams and syrups A cooked batch that fills 20 jars, jars, lids and labels, shelf life A batch recipe with a yield of 20; the sauce base as a semi-finished good used in several products; lots with expiry dates, used first expired, first out Free; semi-finished on Starter; lots on Pro
Snacks, granola and candy Bulk ingredients, bags made days before they sell Batch production: a production run deducts the ingredients and adds the finished bags to Shopify inventory, which Shopify then deducts as they sell Growth
Drinks: cold brew, juices, syrups Litres and millilitres, bottles and caps Units in l and ml; a 20 l batch with a yield of 80 fills 80 bottles of 250 ml, so the batch cost is split 80 ways Free
Meal kits and gift boxes Your own products inside a kit, portioned ingredients, packaging Another product as a recipe component, so the kit’s cost includes that product’s cost (bundle costing); on Growth, selling the kit lowers the Shopify stock of the products inside Free; component stock on Growth
Pet treats Biscuits and chews baked in batches, bags, expiry dates Recipes with a yield, batch production of bags made in advance, lots with expiry dates Free; batch production on Growth; lots on Pro

Free covers recipes for up to 10 products, Starter up to 150, Growth and Pro have no limit. See pricing for every plan.

How do you cost a batch recipe that makes 20 jars or 24 cookies?

Cost the whole batch, then divide by its yield: a batch of salted caramel that costs $65.00 to make and fills 20 jars costs $65.00 ÷ 20 = $3.25 a jar.

Salted caramel sauce: one batch, yield 20 jars
Line In the batch Calculation Cost
Sugar2 kg2 kg × $1.50 / kg$3.00
Cream2 l2 l × $4.20 / l$8.40
Butter400 g0.400 kg × $9.00 / kg$3.60
Sea salt50 g0.050 kg × $20.00 / kg$1.00
Jars with lids20 pcs20 × $0.55$11.00
Labels20 pcs20 × $0.10$2.00
Cooking and filling (labor)120 min120 min × $18.00 / h ÷ 60$36.00
Batch cost$65.00
Cost per jar: $65.00 ÷ 20 jars$3.25

One caramel, several products

Make the caramel a semi-finished good: its own recipe of sugar, cream, butter and salt ($16.00) with a yield of 4 kg comes to $4.00 per kg. A jar takes 200 g of it ($0.80) plus the jar, the label and 6 minutes of work, still $3.25; a salted caramel brownie takes 30 g ($0.12). When cream goes up, both follow. Semi-finished goods are on Starter and up.

Roast loss, trimming and breakage

A waste percentage raises a line’s cost by what is lost: quantity × price per unit ÷ (1 − waste). A 340 g bag of coffee roasted from green coffee at $8.00 per kg with a 15% roast loss needs 0.340 kg × $8.00 ÷ (1 − 0.15) = $2.72 ÷ 0.85 = $3.20 of green coffee. With a $0.60 valve bag and a $0.10 label, the bag costs $3.90.

Rent, utilities and other overhead

An overhead rule adds costs that no recipe lists. $1,200 a month of kitchen rent ÷ 2,400 items planned = $0.50 per item, added after the yield, so the caramel jar comes to $3.25 + $0.50 = $3.75. A rule can also be a percentage or a fixed amount per item, for all products, a collection, a tag or a product type.

On Growth, a semi-finished good kept in stock can be made in a production run: the run deducts the sugar, cream and butter and adds the caramel to stock.

How should I price cakes in different sizes?

Scale the ingredients by the area of the pan and keep the decorating time fixed: for cakes of the same height, a 6-inch pan holds (6 ÷ 8)² = 0.5625 of an 8-inch cake and a 10-inch pan (10 ÷ 8)² = 1.5625.

Chocolate cake in three sizes, priced with ending(margin(cost, 60%), 0.99)
Size Ingredients Decorating, 45 min Cost per item Price by rule Margin
6-inch (×0.5625)$6.75$13.50$20.25$50.9960%
8-inch (recipe)$12.00$13.50$25.50$63.9960%
10-inch (×1.5625)$18.75$13.50$32.25$80.9960%

The 8-inch recipe has $12.00 of ingredients (300 g of dark chocolate $4.20, 250 g of butter $2.25, 300 g of sugar $0.45, 250 g of flour $0.30, 5 eggs $1.50, 500 ml of cream $2.10 and 100 g of cocoa $1.20) and 45 minutes of decorating at $18.00 an hour: 45 × $18.00 ÷ 60 = $13.50. The 6-inch cake takes $12.00 × 0.5625 = $6.75 of ingredients, the 10-inch $12.00 × 1.5625 = $18.75, and the decorating time stays the same.

The rule asks for a 60% margin and rounds up to .99: $20.25 ÷ (1 − 0.60) = $50.625 → $50.99, $25.50 ÷ 0.40 = $63.75 → $63.99 and $32.25 ÷ 0.40 = $80.625 → $80.99.

In Costory, an option modifier on the Size option multiplies every recipe line marked “Scale by option”; labor lines stay as they are unless you mark them. A modifier can also add a line, such as a bigger cake box for the 10-inch size. Option modifiers are on Starter and up.

Each variant gets its own Cost per item in Shopify. From Starter, a price rule proposes all three prices at once with the margin before and after.

Does Costory track ingredient stock, batches and expiry dates?

Yes: ingredient stock is on Growth and Pro, and lots with expiry dates are on Pro. Costory keeps stock of every ingredient and deducts it by recipe when a Shopify order is placed, paid or fulfilled, as you choose.

Growth and Pro

Ingredient stock and purchases

Purchases from suppliers bring stock in, with delivery and other costs split across the lines (landed cost). Stock counts and write-offs with reasons keep the numbers true, and reorder points show what to buy. More on inventory and purchasing.

Growth and Pro

Batch production for goods made ahead

Cookies, granola or truffles made before they sell: a production run deducts the ingredients and adds the finished products to their Shopify inventory, and Shopify deducts them as they sell. Cakes made to order deduct their ingredients with each sale instead.

Pro

Lots with expiry dates, used FEFO

Every delivery of butter or cream becomes a lot with its own expiry date. Orders, production and write-offs take the lot that expires first, and lots that expire within 3 days (you choose 0 to 60) are flagged on the Overview and in the daily digest. See lots and expiry dates.

Pro

Demand by delivery date

For cakes and boxes ordered for a date: Costory reads the date from an order attribute (as delivery date apps save it), an order metafield, a tag such as delivery:2026-12-24 or the order date. For today and the next 13 days it shows what the orders need, what is in stock and what is missing, turns the shortage into draft purchases and prints an assembly sheet for the day.

Who Costory suits, and what it does not do

Costory suits Shopify brands that make food or drink from ingredients they buy and sell it online: small teams that cost recipes in a spreadsheet today.

A good fit

  • Bakeries and cake makers that sell boxes, cakes to order and gift sets on Shopify
  • Chocolatiers and confectioners with ganache, pralines and seasonal boxes
  • Coffee roasters with several bag sizes
  • Sauce, jam, syrup and drink makers that cook in batches
  • Snack, granola and pet treat brands that make stock ahead
  • Meal kit and gift box shops that pack their own products together

Limits to know

  • It costs the products in your Shopify catalog, not restaurant menus or plates.
  • No nutrition facts, allergen labels or food safety (HACCP) records.
  • Lots and expiry dates cover ingredients and semi-finished goods in Costory’s stock; finished products keep their inventory in Shopify.
  • Costs are in your store’s currency; ingredients bought in other currencies need purchase currencies on Pro.
  • Built for small makers, not for MRP-scale manufacturing.

Install free on Shopify Start with up to 10 products on Free; paid plans have a 14-day trial.

Questions food and beverage brands ask

How do I calculate the cost of a baked good I sell on Shopify?

Multiply the quantity of each ingredient by its price per unit, add packaging and labor, and divide by how many items the recipe makes. A Brownie box with 200 g of chocolate at $14 per kg, 150 g of butter at $9 per kg, 180 g of sugar at $1.50 per kg, 3 eggs at $0.30 and a $0.80 gift box costs $6.12. Costory does this for every product and writes the result to Shopify’s Cost per item.

What happens to my costs when an ingredient costs more with each delivery?

On any plan you can enter the new price per unit, and Costory recalculates every product that uses the ingredient and updates its Cost per item in Shopify. On Growth and Pro, each received purchase sets the price for you, with its share of the delivery cost: by weighted average (the default) or by the last purchase, and on Pro also by lot (FIFO). Prices can follow a different basis than stock value, for example the last purchase while stock is valued at the weighted average.

Will Costory change my Shopify prices without asking?

Only if you set it to. On Free you apply a rule’s price yourself on the product page; from Starter ($12.99 a month) a rule can propose new prices for you to confirm, with the margin before and after, or apply them automatically or on a schedule. A change bigger than your maximum change (15% by default) always waits for confirmation, a price under your minimum margin is raised to it or blocked, and every change is kept in History with one-click rollback.

Can I bring my recipes over from a spreadsheet?

Yes. Ingredients with their units and prices, and the ingredient lines of recipes, import from CSV on every plan and export back in the same columns, so you can edit them in a spreadsheet and upload again. Labor lines and products used inside other products are added in the app. On Growth and Pro, purchases and stock count quantities import from CSV too.

Does Costory see my customers’ names or addresses?

No. Costory reads Shopify orders only to deduct ingredients and calculate profit, and its order requests ask for no customer name, email, phone or address. For demand by date (Pro) it reads only the field you name, such as a delivery date attribute or a tag, and keeps just the date found in it.

Is Costory a food cost calculator for restaurants?

No. Costory costs the products in a Shopify catalog, such as cakes, boxes of chocolates, bags of coffee and jars of sauce, and writes the cost to Shopify. It does not cost restaurant menus or plates, and it does not produce nutrition or allergen labels.

Which Costory plan does a small bakery need?

It depends on how you work. Free covers recipes for up to 10 products with one price rule applied by hand; if you sell cakes in sizes or use doughs and fillings in several products, Starter ($12.99 a month, up to 150 products) adds option modifiers, semi-finished goods and price proposals. Growth ($39) adds unlimited products and ingredient stock deducted by orders, and Pro ($99) adds lots with expiry dates and demand by delivery date. Paid plans have a 14-day trial and are billed by Shopify in USD.

Know what every cake, jar and bag costs to make.

Free for up to 10 products. Paid plans start with a 14-day trial.

Install free on Shopify