Calories from Macros Calculator

Quick answer

The calories from macros calculator works out the calories in a food or meal from its protein, carbohydrates, fat, fibre, sugar alcohols and alcohol (using the Atwater factors on nutrition labels), per serving and per package, and the share of calories from each macro.

g
g
g
g
g
g
Calories per serving
356 kcal
Calories per package
356 kcal
Calories from protein
22 %
Calories from carbohydrate
47 %
Calories from fat
30 %
Calories from alcohol
0 %
Net carbs
39 g

The Atwater system gives 4 kcal/g for protein and carbohydrates, 9 kcal/g for fat and 7 kcal/g for alcohol. Fibre provides only about 2 kcal/g because it is partly fermented in the gut, and sugar alcohols about 2.4 kcal/g on average.

How to use the Calories from Macros Calculator

  1. Protein
  2. Total carbohydrate
  3. Of which fibre
  4. Of which sugar alcohols
  5. Fat
  6. Alcohol
  7. Servings per package

Results update as you type, and every field accepts the units shown in its menu.

How it works

Enter the grams of each macronutrient per serving and the number of servings in the package.

Inputs explained

Field What to enter
Protein Units: g
Total carbohydrate Units: g
Of which fibre Units: g
Of which sugar alcohols Units: g
Fat Units: g
Alcohol Units: g
Servings per package A number

What each result means

  • Calories per serving = 4×[Protein] + 4×max([Total carbohydrate] – [Of which fibre] – [Of which sugar alcohols], 0) + 2×[Of which fibre] + 2.4×[Of which sugar alcohols] + 9×[Fat] + 7×[Alcohol]
  • Calories per package = [Calories per serving]×[Servings per package]
  • Calories from protein = 4×[Protein]÷[Calories per serving]×100
  • Calories from carbohydrate = (4×max([Total carbohydrate] – [Of which fibre] – [Of which sugar alcohols], 0) + 2×[Of which fibre] + 2.4×[Of which sugar alcohols])÷[Calories per serving]×100
  • Calories from fat = 9×[Fat]÷[Calories per serving]×100
  • Calories from alcohol = 7×[Alcohol]÷[Calories per serving]×100
  • Net carbs = max([Total carbohydrate] – [Of which fibre] – [Of which sugar alcohols], 0)

Example values

How the main result changes when Protein changes and everything else stays at the example values above:

Protein (g) Calories per serving (kcal)
10 316
15 336
20 356
25 376
30 396
40 436

Formula

Calories = 4 × protein + 4 × (carbs − fibre − sugar alcohols) + 2 × fibre + 2.4 × sugar alcohols + 9 × fat + 7 × alcohol Macro share = calories from macro ÷ total × 100

Worked example

Inputs: Protein: 20 g; Total carbohydrate: 45 g; Of which fibre: 6 g; Of which sugar alcohols: 0 g; Fat: 12 g; Alcohol: 0 g; Servings per package: 1.
Results: Calories per serving = 356 kcal; Calories per package = 356 kcal; Calories from protein = 22 %; Calories from carbohydrate = 47 %; Calories from fat = 30 %; Calories from alcohol = 0 %; Net carbs = 39 g.

Frequently asked questions

How do I calculate calories from macros?

Protein and carbs × 4, fat × 9, alcohol × 7, then add them up.

Do fibre and sugar alcohols have calories?

Yes, but fewer, at about 2 and 2.4 kcal per gram.

Why don't my numbers match the label exactly?

Labels round values and may use slightly different factors.

Sources

  1. U.S. FDA: Nutrition labeling guidance

Cite this calculator

Speedy Calculator. (2026). Calories from Macros Calculator. Speedy Calculator. https://speedycalculator.com/calculators/food/food-calories/