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
g
g
g
Sum of calories from protein, carbohydrates, fat and alcohol
- 1
Protein calories
30 × 4 = 120 - 2
Carbohydrate calories
50 × 4 = 200 - 3
Fat calories
20 × 9 = 180Fat delivers 9 kcal/g — more than twice protein or carbs. - 4
Total calories
120 + 200 + 180 = 500
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
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
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
TG we-Calculate Editorial Team. "Grams to Calories Calculator — Macronutrients." TG we-Calculate. 2026. https://we-calculate.com/calculator/grams-to-calories-calculator.
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
@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?
