Beginner

Grams to Calories Calculator — Macronutrients

Enter the grams of protein, carbohydrates, fat and alcohol in a food or meal to get the total kilocalories and the breakdown by macronutrient.

g

4 kcal per gram

g

4 kcal per gram

g

9 kcal per gram

g

7 kcal per gram (leave at 0 if not applicable)
Total calories
500kcal

Sum of calories from protein, carbohydrates, fat and alcohol

From protein
120 kcal
From carbohydrates
200 kcal
From fat
180 kcal
From alcohol
0 kcal
Total macros
100 g
Average kcal/g
5 kcal/g
24%
40%
36%
Protein (120 kcal)
Carbs (200 kcal)
Fat (180 kcal)
Calorie contribution by macronutrient
Step by step
  1. 1

    Protein calories

    30 × 4 = 120
  2. 2

    Carbohydrate calories

    50 × 4 = 200
  3. 3

    Fat calories

    20 × 9 = 180
    Fat delivers 9 kcal/g — more than twice protein or carbs.
  4. 4

    Total calories

    120 + 200 + 180 = 500
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Multiply grams of each macronutrient by its Atwater factor (protein × 4, carbs × 4, fat × 9, alcohol × 7) and sum the results. Example: 30 g protein + 50 g carbs + 20 g fat = 120 + 200 + 180 = 500 kcal total.

Formula
Calories = (Protein g × 4) + (Carbs g × 4) + (Fat g × 9) + (Alcohol g × 7)
How this is calculated

Food energy is calculated using the Atwater general factors, the system adopted by most food labelling authorities worldwide. Each macronutrient class delivers a fixed number of kilocalories per gram: protein 4 kcal/g, carbohydrates 4 kcal/g, dietary fat 9 kcal/g and pure ethanol 7 kcal/g. Total energy is the sum across all macronutrients you enter.

Fat has more than twice the energy density of protein or carbohydrate because fat molecules are almost entirely carbon and hydrogen, while protein and carbohydrate molecules also contain oxygen, which does not combust to release energy. Alcohol sits between the two — more energy-dense than protein and carbs, but less than fat.

Note that dietary fibre (a carbohydrate) is only partially fermented by gut bacteria, so it delivers fewer calories in practice (roughly 2 kcal/g); food labels often subtract fibre from total carbohydrates before applying the × 4 factor. This calculator uses the simple, published macronutrient totals. The Atwater factors are averages — actual absorption efficiency varies slightly by food matrix, individual and processing.

Frequently asked questions

4 kilocalories (kcal) per gram. The same applies to carbohydrates. Fat provides 9 kcal/g and alcohol 7 kcal/g.

Fat molecules are nearly pure carbon and hydrogen — both highly reduced. Protein and carbohydrate molecules also contain oxygen atoms (already partially oxidized), so less chemical energy is released when they are metabolized.

Yes. Nutritional "Calories" (capital C) are kilocalories (kcal) — 1 dietary Calorie = 1000 small calories (cal) = 1 kcal. This calculator uses kcal throughout.

Also known as

grams to calories macros
protein carbs fat calories calculator
macro to calorie converter
kcal per gram calculator
atwater factor nutrition
calories from macronutrients
nutrition calorie breakdown

APA

TG we-Calculate Editorial Team. (2026). Grams to Calories Calculator — Macronutrients [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/grams-to-calories-calculator

Chicago

TG we-Calculate Editorial Team. "Grams to Calories Calculator — Macronutrients." TG we-Calculate. 2026. https://we-calculate.com/calculator/grams-to-calories-calculator.

IEEE

TG we-Calculate Editorial Team, "Grams to Calories Calculator — Macronutrients," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/grams-to-calories-calculator

BibTeX

@misc{wecalculate_grams_to_calories_calculator, title = {Grams to Calories Calculator — Macronutrients}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/grams-to-calories-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?