Calories From Macros
Calculator

Inputs

Calories (kcal)
540

Results

Calories (kcal)
540
Calories from protein (kcal)
120
Calories from carbohydrate (kcal)
240
Calories from fat (kcal)
180
Energy (kJ)
2,259.36

Nutrition results

Calories (kcal)540
Calories from protein (kcal)120
Calories from carbohydrate (kcal)240
Calories from fat (kcal)180
Energy (kJ)2,259.36

formula-map diagram

Calories (kcal)
540
Calories from protein (kcal)
120
Calories from carbohydrate (kcal)
240
Calories from fat (kcal)
180
Energy (kJ)
2,259.36

Nutrition formula map

Formula

kcal = (protein g × 4) + (carbohydrate g × 4) + (fat g × 9)

= 540

Note

Simplified nutrition model using standard reference constants (protein and carbohydrate 4 kcal/g, fat 9 kcal/g, alcohol 7 kcal/g, 1 kg of body fat about 7700 kcal, salt to sodium factor 0.393). Real energy needs and body composition changes vary between individuals. This is not medical, dietetic or nutritional advice; consult a qualified health professional before changing your diet.

More in Nutrition and diet

See all →

Frequently asked questions

How are calories calculated from grams of macronutrients?+

The calculator multiplies grams of protein by 4, grams of carbohydrates by 4, and grams of fat by 9 (the standard Atwater factors), then sums the three to get total calories — these per-gram values reflect each macronutrient's average energy density.

Why does fat have more than double the calories of protein or carbs per gram?+

Fat is a more energy-dense molecule with more carbon-hydrogen bonds per gram than protein or carbohydrate, so oxidizing it in the body releases substantially more energy — this is a fixed chemical property, not something that varies by food source.

Does alcohol factor into this calculation?+

Not by default — alcohol contributes about 7 calories per gram and isn't one of the three primary macronutrients, so if your diet includes alcoholic beverages, add those calories separately since they won't appear in a protein/carb/fat breakdown.

Why might the calculated total differ slightly from a food label's listed calories?+

Labels sometimes round macro grams and may use slightly different conversion factors for fiber (which has fewer usable calories than other carbs) or specific fat types, so small discrepancies of 5-10% between a label and the Atwater calculation are normal and not a sign of an error.

Can I use this to check if my tracked macros match my calorie goal?+

Yes — this is one of its most useful applications: if your logged protein, carb, and fat grams don't add up to your target daily calories, you know your macro targets need adjusting rather than assuming your tracking app made an error.