How to calculate nutrition for recipes, batches and portions
A practical explanation of per-100g data, recipe quantities, finished yield and modifiers, with a worked calorie example and checks for incomplete information.
By HarloPrepared and reviewed 6 min read
Choose the right source before doing the maths
A recipe nutrition calculation starts with the food you actually use. Prefer a current specification for the purchased product. Reference data can help when an exact supplier source is unavailable, but check preparation state, ingredients and units before choosing a match.
CoFID is a UK food-composition reference dataset. Open Food Facts contains product information contributed to an open database. Neither name guarantees that an individual entry matches your delivery or is complete. A supplier-sheet extraction also needs a person to check the result.
Keep nutrition and allergen evidence distinct. A matching calorie value does not establish a product's allergen declaration.
Scale each value to the quantity in the recipe
For a value expressed per 100 g, multiply the value by the grams used and divide by 100. Use the same approach independently for calories, protein, fat and the other available nutrients.
For this illustrative example, ingredient A has 180 kcal per 100 g and the recipe uses 200 g: 180 × 200 ÷ 100 = 360 kcal. Ingredient B has 20 kcal per 100 g and the recipe uses 600 g: 20 × 600 ÷ 100 = 120 kcal. The recorded batch total is 480 kcal.
These are invented ingredient profiles to make the arithmetic easy to inspect, not nutrition values for a real dish. A complete recipe must include oil, garnishes and other additions too.
Allocate the total using the finished yield
Suppose that example batch has a measured finished yield of 900 g after added water and preparation. At 150 g per serving, it provides six portions. Each portion receives 480 × 150 ÷ 900 = 80 kcal.
Water gain or loss changes concentration per 100 g. It does not, by itself, tell you how much fat was discarded or which nutrients were lost during cooking. Use a suitable cooked-food source and explicit preparation assumptions rather than expecting a yield field to model every physical change.
Harlo can calculate batch yield from compatible recipe quantities and configured cooking loss, or use a manual yield. Check that the result reflects your kitchen's finished batch. For menu items, confirm whether the source is per portion or a weight-based calculation.
Include the choices a guest makes
Start with the base portion, then add the recorded contribution of the selected modifiers. An illustrative dressing portion providing 50 kcal would take the 80 kcal base to 130 kcal. Check whether a choice adds something or replaces a component; do not subtract an assumed value without a matching recipe change.
Amounts, units and preparation matter here too. Grams and millilitres are not automatically interchangeable. An ingredient portion conversion must describe a real amount.
Treat missing values as a review task
An unknown nutrient is not a known zero. Harlo reports incomplete source information and recipe issues; inspect those details before presenting a calculated total as complete. Check salt and sodium units carefully: sodium in milligrams needs conversion before using the usual salt-equivalent factor of 2.5.
For example, 400 mg sodium is 0.4 g sodium, equivalent to 1 g salt. Do not add sodium and its salt equivalent as though they were two separate contributions.
Keep calculation precision through the working and review the rounded guest display at the end. Calculated nutrition is an estimate from source data and assumptions, not laboratory measurement or individual medical advice.
Check the rules for your business
England's out-of-home calorie-labelling rules generally cover qualifying businesses with 250 or more employees, with specific rules and exemptions. Franchise arrangements can affect the scope. This is not a blanket requirement for every UK restaurant.
Check the current implementation guidance for your operation and jurisdiction, including how information must be presented. Other nutrition claims and prepacked-food labelling have their own requirements. A calculated number alone does not establish compliance.
Sources and scope
Reviewed on 5 November 2026. Examples explain the working rather than promising a result for your business. Check current official guidance for your location and circumstances.
- CoFID dataset and user guide
- Open Food Facts: data and reuse
- DHSC: calorie-labelling implementation guidance for England
- NHS: salt and sodium
Spotted something that needs correcting? Email support@harlo.app. Read how we prepare our guidance.
