Short answer: for every ingredient on the recipe card, multiply its grams by the kcal per 100 g of that food and divide by 100. Add up the lines and you have the calories of a portion. On the menu, round to the nearest 10 kcal and label it "approximate".
The maths is school level. The catch is elsewhere: the first calculation usually comes out too low, because the oil never made it onto the recipe card. Below we take one dish apart to the gram and show where the numbers tend to "lose weight".
What you need, and the one formula#
- The recipe card with the net weight of each ingredient per portion: what actually lands on the plate, with no peel, bones or trim.
- A food composition table per 100 g: calories, protein, fat, carbohydrates. A free, open source is USDA FoodData Central from the US Department of Agriculture.
- The cooked weight of a portion as served, if you want kcal per 100 g.
The formula:
Ingredient kcal = net grams × kcal per 100 g ÷ 100
Dish kcal is the sum of those lines. Kcal per 100 g = dish kcal ÷ cooked weight in grams × 100.
Caprese: a "light salad" at 482 kcal#
Caprese looks light: tomatoes, cheese, a few basil leaves. Let's check a 250 g portion. Kcal per 100 g come from our ingredient database, which is built on USDA.
| Ingredient | Net grams | kcal per 100 g | kcal per portion |
|---|---|---|---|
| Mozzarella | 120 | 299 | 359 |
| Tomatoes | 100 | 18 | 18 |
| Basil | 5 | 23 | 1 |
| Olive oil | 10 | 884 | 88 |
| Balsamic glaze | 15 | 88 | 13 |
| House spice mix | 1 | 265 | 3 |
| Total | 251 g | 482 kcal |
Three quarters of the calories come from the mozzarella. Another 88 kcal come from 10 g of oil, which is not even a full tablespoon. Tomatoes and basil together barely reach 20 kcal.
On the menu, write ≈ 480 kcal per portion. Anything more precise is false precision: cheese and tomatoes vary more from batch to batch than those few calories. Per 100 g that is 482 ÷ 251 × 100 ≈ 192 kcal.
The numbers are approximate. Balsamic glaze is not in the database, so we used balsamic vinegar, and dried oregano stands in for the house spice mix. That is the right habit: take the closest food and never skip a line.
Where calories go missing: the oil#
Frying oil, a dressing, a sauce, a knob of butter in the pan. Kitchens rarely weigh them, so they often never reach the recipe card: "it's not really an ingredient".
Yet one tablespoon of oil is about 120 kcal. For a 480 kcal salad that is a quarter. If a dish is cooked in oil, put the oil on the card, even as an estimate.
The same goes for any dish where fat or starch is added in the kitchen. In a pasta carbonara, a burger with fries, a curry with rice or a plov, the oil, butter, cream and the cooked rice or pasta carry most of the calories. Give them their own lines with their own grams.
Boiling, baking and frying change the weight, not the calories#
Cooking hardly removes calories. What changes is the weight: meat and fish lose water, rice and pasta absorb it, deep-fried food soaks up oil.
Take pasta. 80 g of dry pasta is ≈ 297 kcal. After boiling the portion weighs ≈ 176 g and holds the same calories. But per 100 g of cooked pasta that is now ≈ 169 kcal, not the 371 kcal printed on the packet.
Hence the rule: calculate calories from raw weights, and divide by the cooked weight for "per 100 g".
| Food | What happens | Typical yield vs raw weight |
|---|---|---|
| Baked fish | loses water | ≈ 80 % |
| Boiled rice | absorbs water | ≈ 250 % |
| Boiled pasta | absorbs water | ≈ 220 % |
| Deep-fried food | absorbs oil | + the calories of the oil absorbed |
Protein, fat and carbs work the same way#
Ingredient grams × protein (fat, carbs) per 100 g ÷ 100, then add up for the dish. Our caprese comes to 28 g protein, 37 g fat and 10 g carbs.
There is a quick check: protein × 4 + fat × 9 + carbs × 4 should land close to the dish calories. For the caprese that is 28 × 4 + 37 × 9 + 10 × 4 = 485 kcal against 482. It adds up.
If the gap is large, an ingredient is almost certainly missing from the card, or grams got mixed up with kilograms somewhere.
How to show calories to guests#
One line under the dish description, rounded and honest:
≈ 480 kcal · P 28 g · F 37 g · C 10 g · approximate, based on the venue's recipe
- Show the portion weight next to it: calories without a weight mean little.
- Round calories to 10, macros to 1 g.
- If the recipe card is incomplete, show no calories rather than numbers that are too low.
- Changed the recipe or the cheese supplier? Recalculate.
A recipe-based calculation is not a laboratory analysis. For exact values on a packaged product label you need an accredited laboratory.
How Stravopys does it#
You build the recipe card right in the dish card: pick a food from the database, type the grams, and calories and macros per portion and per 100 g update as you type. No calculator, no spreadsheet.
- 2,459 foods from the USDA database, with names in 15 languages. Find a packaged product in the open Open Food Facts database by name or barcode, or add your own ingredient with the values from its label.
- Cooking method (raw, boiled, fried, baked, grilled) recalculates the yield for you. If the recipe weight differs from the menu weight by more than 5 %, you get a hint.
- Fill with AI for 1 credit: AI suggests ingredients with typical grams as a draft. Calories are still calculated from the food database, and guests see nothing until you accept the lines.
- Your recipe stays yours. Guests never see the grams or the cooking method. A hidden ingredient is shown as "spices", but its allergens are always shown.
- Allergens from the recipe. Add mozzarella and you get a "Milk" hint if the dish does not have it yet.
- Recipe cards from Poster sync every hour where Poster can be connected (Ukraine, Kazakhstan, Mexico). For any other POS or a spreadsheet, there is CSV import.
Included in Pro and Business. Step by step: Ingredients and calories. For allergens see Allergens on a restaurant menu.
FAQ#
How do I calculate calories per 100 g of a dish?#
Add up the calories of all ingredients on the recipe card, divide by the cooked weight of the dish in grams and multiply by 100. For example, 482 kcal in 251 g is ≈ 192 kcal per 100 g.
Should I use gross or net weight?#
Net: the weight of what actually goes into the dish. Gross weight is for purchasing, not for calories.
Does boiling reduce calories?#
Hardly. The weight changes as food absorbs or loses water, so calculate from raw ingredients and convert per 100 g using the cooked yield. Frying in oil adds calories.
Where do I find the calories of each ingredient?#
In open food composition tables such as USDA FoodData Central, or on the supplier's label for bought-in and semi-finished products. Many countries also publish their own national tables; look for the one from your health or agriculture authority.
Do restaurants have to show calories on the menu?#
It depends on the country and the size of the business. In the EU, the nutrition declaration is required for most prepacked food, while for non-prepacked food, including restaurants and cafes, allergen information is mandatory (European Commission). In England, businesses with 250 or more employees that sell non-prepacked food must show calories on menus since 6 April 2022; smaller businesses are encouraged to do it voluntarily (GOV.UK). In the US, the FDA requires calorie information from restaurant chains with 20 or more locations (FDA). This is not legal advice.
How much does showing calories cost with Stravopys?#
Recipe cards and calories are included in Pro (€19 a month) and Business. Try everything for 14 days free, no card: pricing.
Try Stravopys: build the recipe card in the dish card, calories and macros are calculated for you, and guests see one clear line. Try 14 days free, no card
