Recipe nutrition calculator
This recipe nutrition calculator works out the nutrition facts of a recipe: type the ingredients one per line (“250 g flour”, “2 eggs”, “1 tbsp oil”), enter the number of servings and read calories, fat, carbohydrates, protein, fibre and salt per serving and per 100 g.
Source: USDA FDC SR Legacy, U.S. Department of Agriculture, Agricultural Research Service: FoodData Central – SR Legacy (April 2018). Gemeinfrei, CC0 1.0 Universal. Updated: .
How it is calculated
How to calculate the nutrition of a recipe
The calculator reads your ingredient list line by line, matches each ingredient to a food and adds its nutrients according to the amount. It then divides the total by the number of servings. Example: 250 g flour, 2 eggs, 300 ml milk, 1 tbsp sugar, 2 tbsp butter and 1 pinch of salt weigh about 700 g together and have roughly 1,500 kcal. For 4 servings that is about 374 kcal, 12 g protein, 11 g fat (6 g saturated), 55 g carbohydrate (7 g sugars) and 0.3 g salt per serving.
How to use the recipe nutrition calculator
- Type the ingredients one per line: amount, unit, ingredient.
- Enter the number of servings.
- Read calories and nutrients per serving and per 100 g; the list shows how each line was calculated.
Which units and ingredients are recognised?
Amounts can be in g, kg, mg, ml, cl, dl, l, oz and lb, plus tbsp, tsp, cup, pinch, pieces (eggs, onions, apples …) and cloves (garlic). Spoons and cups are converted to grams using the density of the ingredient: a tablespoon of flour weighs much less than one of honey. The ingredient can also come before the amount (“butter 100 g”). About 80 common ingredients are stored, from flour, rice and pasta through dairy, meat, fish, vegetables and fruit to oils, seasonings and sauces. Lines that are not recognised are shown and left out of the total.
Calculating calories by hand
Labels and calculators use the Atwater factors: 4 kcal per gram of protein and carbohydrate, 9 kcal per gram of fat and 7 kcal per gram of alcohol (FAO, Food energy – methods of analysis and conversion factors). A serving with 12 g protein, 11 g fat and 55 g carbohydrate has about 12 × 4 + 11 × 9 + 55 × 4 = 367 kcal; the calculator’s 374 kcal comes from food-specific USDA energy values, which differ slightly from the rounded factors.
Calories per 100 g of the cooked dish
Weigh the finished dish, then divide: total kcal ÷ cooked weight × 100. If the recipe above has 1,500 kcal and the baked dish weighs 1,200 g, that is 125 kcal per 100 g, and a 300 g portion has 375 kcal. To turn cups and spoons into grams first, use the cups to grams converter.
Where does the data come from?
The nutrients come from USDA FoodData Central (SR Legacy dataset), a public database of the US Department of Agriculture published in the public domain under CC0. The entries are chosen for raw ingredients. Salt is sodium × 2.5 and kilojoules are kilocalories × 4.184.
Limits
- These are reference values for standard ingredients; brands, varieties and preparation differ. For packaged items use the manufacturer’s figures.
- The calculation uses raw weights. Cooking changes weight, so the values per 100 g refer to the ingredients, not the finished dish.
- The calculator does not replace nutrition labelling for food that is sold.
Related: daily needs are in the TDEE calculator, the split into protein, fat and carbs in the macro calculator and protein amounts in the protein intake calculator.
Frequently asked questions
How do I calculate the nutrition of a recipe?
Type all ingredients with amounts, one per line, and enter the servings: the calculator adds up the nutrients of the ingredients and divides them by the servings.
How do I enter the ingredients correctly?
One ingredient per line, ideally amount, unit and name, for example “200 g potatoes”, “2 tbsp olive oil” or “3 eggs”. The ingredient may also come first.
What data does the calculator use?
USDA FoodData Central (SR Legacy), a public-domain database (CC0). For packaged products the manufacturer’s values apply.
Why is an ingredient not recognised?
About 80 common ingredients are stored. A similar ingredient often helps: enter “wheat flour” instead of “spelt flour”. Lines that are not recognised are shown.
Do the values apply to the cooked dish?
No, they apply to the raw ingredients. The total per serving stays correct if you enter the ingredients raw; the values per 100 g refer to the weight of the ingredients.
How do I calculate calories per 100 g of a cooked dish?
Add up the calories of all raw ingredients, weigh the finished dish and divide: total kcal ÷ cooked weight in grams × 100. 1,500 kcal in a dish weighing 1,200 g gives 125 kcal per 100 g.
How many calories are in a gram of protein, carbs and fat?
About 4 kcal per gram of protein or carbohydrate, 9 kcal per gram of fat and 7 per gram of alcohol (Atwater factors).
Sources and legal basis
- USDA FDC SR Legacy: U.S. Department of Agriculture, Agricultural Research Service: FoodData Central – SR Legacy (April 2018). Gemeinfrei, CC0 1.0 Universal
- USDA FoodData Central – Lizenzhinweis (Daten gemeinfrei, CC0 1.0; Quellenangabe erbeten)
- FAO (2003): Food energy – methods of analysis and conversion factors (energy per gram: 4/9/4 kcal; 1 kcal = 4.184 kJ)
As of: · Editorial policy
Related tools
- TDEE calculator – your daily calorie needsTDEE calculator: estimate the calories you burn per day from your basal metabolic rate and activity, plus calorie targets to maintain, lose or gain weight.
- Macro calculator – daily protein, fat and carbsMacro calculator: estimate your daily calories from height, weight and activity, then split them into grams of protein, fat and carbs – with the working shown.
- Protein intake calculator – protein per dayProtein intake calculator: grams of protein per day by official reference values for adults, seniors, pregnancy and breastfeeding, and ranges for athletes.
- Cups to grams converterConvert cups, tablespoons and teaspoons to grams for flour, sugar, butter, milk, rice and more – US cups, metric cups and USDA weights. Grams to cups too.
- Weight loss calculator – your goal dateWeight loss calculator: enter your calorie deficit, body data and goal weight to see how long losing weight takes and the date you could reach your target.
- Pizza Dough CalculatorPizza dough calculator: flour, water, salt and yeast in baker’s percentages for any number of pizzas, with hydration, fresh and dry yeast in grams and ounces.
- BMI calculator (WHO categories)BMI calculator in lb and ft/in or kg and cm: your body mass index with WHO category on a colour scale, healthy weight range for your height and BMI Prime.
- Raw to cooked weight calculatorConvert raw to cooked weight and back for chicken, ground beef, pork and more, using USDA cooking yields with their minimum and maximum range.
- HTML color namesHTML color names: all 148 CSS colors with HEX, RGB, HSL and text contrast, with search and a color-family filter. One click copies the value. Free, no sign-up.