Guide · 8 min read

How to Calculate Calories in Food and Recipes

Add up the calories of every ingredient, then divide by the number of servings. That is the whole method. The calculator below does it for you, and shows which ingredient quietly cost the most.

Last updated · Editorial guidelines

How do you calculate the calories in food?

Two steps. First, work out each ingredient's calories: multiply its grams of protein by 4, carbohydrate by 4, and fat by 9, then add them. Second, add every ingredient together and divide by the number of servings.

Those numbers are the Atwater factors: protein 4 kcal/g, carbohydrate 4 kcal/g, fat 9 kcal/g, alcohol 7 kcal/g. Every calorie count on every label traces back to them.

Your recipe

Add every ingredient with the weight you actually used. Weigh things raw, before cooking.

Calories per serving

456

1,826 kcal total, divided by 4 servings

  • Protein23%
  • Carbs56%
  • Fat21%
Protein
26 g · 104 kcal
Carbs
63 g · 254 kcal
Fat
10 g · 93 kcal

Per serving.

What each ingredient contributed, biggest first.
IngredientAmountkcalShare
Rice, white, raw300 g109560%
Chicken breast, skinless, raw400 g43224%
Olive oil27 g23913%
Onion, raw150 g603%

All 202 ingredients and their unit weights come from USDA FoodData Central. Values are per 100 g, raw unless the name says otherwise.

The Atwater factors: the numbers behind every calorie count

Nobody measures the calories in your dinner. They calculate them, from four numbers worked out by Wilbur Atwater in the late 1800s.

Fat9Alcohol7Protein4Carbohydrate4Fiber~2calories per gram
The Atwater factors. Multiply the grams of each macronutrient by these to get calories.
MacronutrientCalories per gram
Protein4 kcal/g
Carbohydrate4 kcal/g
Fat9 kcal/g
Alcohol7 kcal/g
Fibre~2 kcal/g

Every calorie figure on every package in your kitchen came out of that table. The manufacturer measured the protein, carbohydrate, and fat in the product, multiplied by these factors, and printed the sum.

Fat is the number that matters in cooking. At 9 calories a gram it carries more than double protein or carbohydrate, which is why a splash of oil moves a dish more than a whole vegetable does. If you want the history, and how food used to be burned in a steel chamber to find this out, how calories are calculated covers it.

How to calculate the calories in any food

Take raw chicken breast. USDA lists it at 20.32 g of protein, 0 g of carbohydrate, and 3 g of fat per 100 g.

Calculating the calories in 100 g of raw chicken breast from its macros. USDA FoodData Central id 171509.
MacronutrientGrams× kcal/gCalories
Protein20.32 g× 481.3
Fat3 g× 927.0
Carbohydrate0 g× 40.0
Total per 100 g108 kcal

USDA lists this cut at 108 calories per 100 g, and the sum lands within a rounding error of it. That is the whole trick.

Now scale it to what you actually ate. Everything is quoted per 100 g, so divide by 100 and multiply by your grams. A 180 g breast is 108 ÷ 100 × 180 = 194 calories.

That one operation, calories per 100 g ÷ 100 × grams used, is every calculation on this page. The rest is bookkeeping.

How to calculate calories in a recipe, step by step

Four steps, and the third one is where people go wrong.

1List ingredientsRaw weight, in grams2Look up per 100 gUSDA FoodData Central3Scale to what you usedkcal ÷ 100 × grams4Total, then divide÷ number of servingsCalories per serving = total recipe calories ÷ servings

Step 1. List every ingredient by raw weight. In grams, before cooking. Include the oil in the pan and the cheese on top. These are the ingredients people leave off, and they are usually the expensive ones.

Step 2. Look up calories per 100 g. The calculator above has 202 ingredients built in, so you can skip this.

Step 3. Scale to the amount used. Calories per 100 g ÷ 100 × grams.

Step 4. Total, then divide by servings.

A worked example: bolognese for four

Every figure below is read from USDA FoodData Central, and the table is generated from the same data the calculator runs on.

Bolognese for four. Calories per 100 g from USDA FoodData Central, scaled to the amount used, sorted by contribution.
IngredientAmountPer 100 gCaloriesShare
Beef mince, raw500 g254 kcal127043%
Pasta, dry300 g371 kcal111338%
Olive oil27 g884 kcal2398%
Parmesan, grated40 g420 kcal1686%
Tomatoes, tinned400 g16 kcal642%
Onion, raw150 g40 kcal602%
Tomato purée (paste)30 g82 kcal251%
Garlic, raw9 g149 kcal130%
Total2,952100%
Per serving (÷ 4)738

738 calories a serving. Now look at the order of that table, because it is the reason to do this at all.

The two tablespoons of olive oil cost 239 calories. The entire 400 g tin of tomatoes cost 64. The oil you poured in without thinking is worth nearly four tins of tomatoes, and it is 27 g of a dish weighing well over a kilo.

Nobody guesses that. It is why the calculator above sorts ingredients by what they contributed rather than by the order you added them.

How to calculate calories from fat

Multiply the grams of fat by 9. That is it.

A food with 12 g of fat has 108 calories from fat. If the label says the whole portion is 250 calories, then fat is 108 of them, which is 43 percent of the food's energy.

Here is the part that confuses people: "Calories from fat" was removed from the US nutrition label in 2016. It is not missing because of an oversight. When the FDA redesigned the label, it concluded that the type of fat matters more for health than the total amount, and that the line was encouraging people to avoid fat rather than to choose better fat.

So the number is no longer printed, and if you want it you have to do the multiplication yourself. Take the fat grams, times 9.

The mistakes that wreck recipe calorie counts

  1. Weighing cooked instead of raw. Rice and pasta roughly triple in weight as they take on water. Dry pasta is 371 calories per 100 g and cooked pasta is 157, so weighing your cooked portion and using the dry figure will more than double your count. Weigh raw, always.
  2. Forgetting the cooking oil. Often the single biggest calorie source in a dish, and the one nobody writes down. Two tablespoons is 239 calories before a single ingredient has been added.
  3. Guessing the servings. "It serves four" is a guess about how hungry people are. Weigh the finished dish and divide by weight, or portion it onto scales.
  4. Ignoring what goes on at the table. Marinades, dressings, sauces, the drizzle of oil over the top, the grated cheese. These land after the recipe is written and never make it into the count.
  5. Measuring by volume instead of weight. A cup of flour varies by around 20 percent depending on whether you scooped it or spooned it. A cup of olive oil weighs 216 g and a cup of flour weighs 125 g. Scales cost very little and remove the biggest source of error in the whole process.

Why your number is an estimate

You will get a number to the calorie. Do not trust it to the calorie.

The ingredient values are averages. USDA lists what a typical chicken breast contains, not what your chicken breast contains. Fat content in meat varies with the animal, the cut, and the butcher.

Labels carry a tolerance. Regulators require the printed figure to be close, not exact, because demanding exactness from a natural product would be impossible to meet.

You do not absorb everything you count. Fat locked inside intact nut cell walls passes through you rather than into you, and USDA research has found whole almonds deliver fewer calories than the Atwater sum predicts.

Cooking losses are not captured. Fat left in the pan, water boiled off, marinade poured away. The calculation counts what went into the pan, not what came out of it.

Here is the reassuring part, and it is the reason this is still worth doing. Your error is mostly consistent in the same direction. If your bolognese is really 780 calories rather than 738, it will be wrong by roughly the same amount every time you cook it. A number that is reliably a little high still tells you exactly what happens when you eat more or less of it, which is the whole point of tracking.

Faster ways to do this

Use the calculator at the top. It has 202 ingredients and the unit weights built in, so a recipe takes about a minute.

Weigh the finished dish, then weigh your plate. Total the recipe once, weigh what comes out of the pan, and you have calories per gram. Now any portion size is one multiplication, and you never have to argue about what a serving is.

Batch cook. Calculate once, eat five times. This is the single biggest time saver, and it is why people who track successfully tend to cook the same handful of dishes.

Do not recalculate a recipe you have made before. Write the per-serving figure on the recipe and move on.

Now you know what is in the dish. The other half of the question is how much of it you should eat. The calorie calculator gives you a daily target in about thirty seconds, the maintenance calorie calculator tells you the intake that holds your weight steady, and if you are aiming to lose, calculating a calorie deficit walks through how far below that to go. To split the target into protein, carbs, and fat, use the macro calculator.

Frequently asked questions

Before. Weigh ingredients raw and look up the raw figures, because cooking changes weight without changing calories. Rice and pasta roughly triple in weight as they absorb water, so 100 g of dry pasta at 371 calories becomes about 300 g of cooked pasta with exactly the same 371 calories in it. Weighing it cooked and using the raw figure would triple your count.

List every ingredient with its raw weight in grams, look up the calories per 100 grams for each, scale that figure to the amount you used, add them all together, then divide by the number of servings. The calculator on this page does all four steps and shows what each ingredient contributed.

Close enough to be useful, and not exact. The ingredient values are averages rather than measurements of the specific food in your kitchen, labels carry a tolerance band, and your body does not absorb every calorie counted. The error is usually consistent in the same direction, which is what makes tracking work even when the absolute number is a little off.

Yes, and often far more than people expect. Food absorbs some of the oil it is cooked in, and at 9 calories a gram oil is the densest thing in most kitchens. Two tablespoons of olive oil is about 239 calories, which is more than an entire 400 g tin of tomatoes. Count the oil that goes in the pan, not the oil left in it.

Multiply the grams of fat by 9. A food with 12 g of fat has 108 calories from fat. The figure was removed from the US nutrition label in 2016, when the FDA concluded that the type of fat matters more for health than the total amount, so you now have to work it out yourself from the fat grams.

Weigh the finished dish, then weigh your plate. If the whole dish comes to 1,200 g and holds 2,952 calories, that is 2.46 calories per gram, so a 400 g plate is about 984 calories. This is more accurate than guessing servings, and it is the only honest way to handle a dish where people help themselves.

These figures are estimates for general educational purposes only and are not medical or nutritional advice. Individual needs vary. Consult a qualified healthcare professional or registered dietitian before making significant changes to your diet.