Recipe costing tool template: make it your own with one prompt
A recipe costing tool multiplies, divides and shouts when a dish loses money. Here is how to build one around your own ingredients, your own yields and your own prices, without renting software.
The cheapest way to get a recipe costing tool is to build one around the three things it actually does: keep a price list of ingredients, work out what each recipe costs from that list, and compare the answer to your selling price. Swarmz can build that from a description, with a database underneath it, so when the butter goes up every recipe using butter updates itself.
Built from one prompt
A recipe costing tool with portion cost and margin
Free plan, no card neededNames, prices and reviews in the example are placeholders
You will finish with an ingredient list, a recipe page that shows cost per portion, food cost percentage and margin, and a warning when a dish drifts above your target. I founded Swarmz, so I'm biased, but I'm also a person who has watched a spreadsheet cell reference break halfway down a menu, and that is the thing we are replacing.
What a recipe costing tool actually needs
Costing a dish is arithmetic, but the arithmetic has traps. These are the pieces your tool should have so it does not lie to you.
An ingredient price list with pack sizes. You buy a 5 kg bag at 11.00, but you use 40 g. The tool should store pack size and pack price, and work out the cost per gram itself.
Yield after trimming. One kilo of carrots does not give you a kilo of carrots on the plate. If you lose 20 percent to peel and tops, the usable cost per kilo is higher. Give each ingredient a yield percentage.
Recipes that use ingredients, and other recipes. A burger uses a house sauce, and the sauce has its own recipe. Sub-recipes save you retyping and keep the cost honest.
Portions. The recipe makes 12 portions. Cost per portion is total cost divided by portions. Add the garnish and the packaging if you do takeaway.
Selling price and margin. Food cost percentage is cost divided by selling price. Margin is what is left. Show both, because people think in one or the other.
A target and a flag. If your target is 30 percent, anything above it should turn red, so you find the problem dishes without reading every row.
History. When prices change you want to know what the dish cost last month. Keep price changes dated.
Build it with one prompt
Here's one I generated from a single prompt. Change the brackets to fit your business and build your own copy to keep editing.
Step by step
1. Pick one menu section and gather the real invoices
Start with ten dishes, not the whole menu. Pull your last supplier invoices and note pack size and price for each ingredient. Use what you actually paid, not what the supplier's website says.
2. Sign up and paste the prompt
Create a free account at swarmz.net. The free plan gives you 5 credits a day with no card. New accounts can also try Pro free for 3 days with 25 credits (a card is needed, and it becomes Pro unless you cancel). Paste the prompt and replace the brackets with your business details.
3. Load ingredients first
Enter your ingredient list with supplier, pack size, pack price and yield. If you already have a spreadsheet, you can paste the rows into the chat and ask Swarmz to load them. Check three prices against invoices before going further.
4. Build your first three recipes
Choose a cheap dish, a mid-range one and a dish you think is your best seller. Enter quantities in grams or units, the number of portions and the selling price. Compare the tool's answer with your own sums. If they differ, find out why now, because that disagreement will happen again later.
5. Set your target and the red flag
Tell it your target food cost: say 30 percent for mains and 25 percent for drinks. Ask it to colour any dish above its target and to sort the list worst first. That list is the reason to build the tool.
6. Share it with the people who order
Give your head chef an editor login and the people who only look a viewer login. Swarmz apps have built-in sign-in, so you decide who sees margins. Not everyone on the team needs to see what you make on each plate.
7. Publish, then update prices monthly
Publish to a swarmz.cloud address with SSL. It is an internal tool, so a custom domain is optional and needs Pro at $25 a month. Put a monthly reminder in your calendar to update prices from invoices: the tool is only as current as your last update.
Follow-up prompts
Add a price history for each ingredient and show the change since last month.Add a "what if" box: change an ingredient price by a percentage and show every recipe that would be affected.Add labour and packaging costs per portion as optional extras on each recipe.Add a sub-recipe type so a sauce can be costed once and used in other recipes.Show a dashboard of my 10 lowest margin dishes and my 10 highest food cost percentages.What it costs
Swarmz is free to start, and a costing tool is a light database job. Pro is $25 a month, and you only need it for a custom domain, which you also pay a registrar for. Nothing here takes payments, so no Stripe fees are involved.
A freelancer usually quotes for the whole project, and costing software charges monthly whether you cost one dish or a thousand. If your needs are a price list and a handful of sums, building your own means you pay for exactly that.
The sums behind the screen
It helps to know what the tool is doing, so you can spot when it has been given nonsense. Here is a worked example with made-up numbers, for a pot of tomato soup.
Ingredients for a batch: 2 kg tomatoes at 2.20 a kg is 4.40. A kilo of onions at 1.00 gives 1.00 (but 10 percent is lost to peel, so the usable cost is about 1.11). Stock, oil and herbs come to 1.50. Batch cost: about 7.01. The batch makes 10 portions, so each costs about 0.70. You sell it at 6.00, so food cost is about 11.7 percent and the margin is 5.30.
That looks lovely until you add the bread, the butter and the garnish. Add 0.60 of those and the portion cost is 1.30, which is 21.7 percent. Same dish, very different answer. This is why the tool should let you add the little things, and why I would cost the plate, not the pot.
Three habits make the numbers honest:
Cost in the unit you use. If you measure in grams, store prices per gram. Mixing kilos and millilitres is where spreadsheets go to die.
Round at the end, not in the middle. Keep the full figure while calculating and only round the displayed result.
Re-cost after a price rise. A 15 percent rise in a main ingredient can swallow a margin you thought was safe. The tool should show you which dishes moved.
One caution: food cost percentage is a guide, not a verdict. A dish with a high percentage can still make good money in pounds or dollars, and a cheap dish can be a loss leader on purpose. Use the flag to start a conversation, not end one.
For a related build, the stock take app guide feeds real counts into the same idea, and there is a wider look at AI app builders with a database.
More guides like this
FAQ
What's the cheapest way to get a recipe costing tool?
Build a small one around your own ingredient list. A database of prices and a recipe page that does the sums is a simple app, and Swarmz is free to start. You only pay for Pro, $25 a month, if you want a custom domain.
Can I build a recipe costing tool with AI and no coding?
Yes. Describe your ingredients, how you measure them and what you want to see, and Swarmz builds the app with a database and staff logins. Check the first three recipes against your own calculations before trusting it.
Is there a free recipe costing tool?
You can build one on the Swarmz free plan, which gives you 5 credits a day and needs no card. It is a light job for the free plan, though you should still keep an eye on the credits as you build.
Is there a recipe costing tool template?
The example on this page is a template you can edit. Build it, swap the sample ingredients for yours and change the food cost target.
Can it handle yield loss and sub-recipes?
Yes, if you ask for them. Put a yield percentage on each ingredient and tell Swarmz you want recipes that can use other recipes, such as a house sauce.
Try it
Open swarmz.net, paste the prompt with your ten most-ordered dishes, and see which one turns red first. It is usually not the one you expected.
How did this land?
About the author

Founder of swarmz.net
Jordan founded Swarmz, the AI app builder at swarmz.net.


