About the Calories from Macros Calculator
This calculator converts macronutrient grams into calories using the standard Atwater factors: 4 calories per gram of protein, 4 per gram of carbohydrate, 9 per gram of fat and 7 per gram of alcohol. Enter the grams from a food label, a meal log or your daily macro targets and you get the total energy plus the share of calories that comes from each macro.
It is useful for checking whether a nutrition label adds up, turning a macro plan (for example 180 g protein, 250 g carbs, 70 g fat) into a calorie target, or seeing what percentage of your diet is protein, carbs and fat. Bodybuilders, keto dieters and anyone tracking with an app use this split to compare against targets such as 30/40/30.
Label calories can differ slightly from this sum because manufacturers may use food-specific factors, subtract insoluble fiber, and are allowed to round. Treat small differences of a few percent as normal.
With the default inputs, the total calories is 1,940 kcal. Change any value above to recalculate instantly.
How to use the calories from macros calculator
- 1Enter grams of protein, carbohydrate and fat from a label, meal log or macro plan.
- 2Add grams of alcohol if you are counting drinks.
- 3Read total calories and the calories each macro contributes.
- 4Use the percentage split to compare against your target ratio.
Formula and method
Each macronutrient is multiplied by its general Atwater energy factor: protein and carbohydrate supply about 4 kcal per gram, fat about 9 kcal per gram and alcohol about 7 kcal per gram. Adding the four products gives total energy.
The percentage breakdown divides the calories from each macro by the total. These general factors are what US and EU nutrition labels are built on, although some foods use specific factors and fiber may be counted at about 2 kcal per gram, so results can differ from a label by a few percent.
- P
- Protein in grams
- C
- Carbohydrate in grams
- F
- Fat in grams
- A
- Alcohol (ethanol) in grams
Worked examples
150 g protein, 200 g carbs, 60 g fat
Protein gives 150 × 4 = 600 kcal, carbs 200 × 4 = 800 kcal and fat 60 × 9 = 540 kcal, for 1,940 kcal. That is roughly a 31/41/28 protein/carb/fat split.
Keto day: 120 g protein, 25 g carbs, 150 g fat
Fat supplies 150 × 9 = 1,350 of the 1,930 kcal (about 70%), while 25 g of carbs is only 100 kcal or about 5% — a typical ketogenic ratio.
Night out with 4 drinks
Four standard US drinks contain about 56 g of alcohol, adding 56 × 7 = 392 kcal. Together with 400 kcal protein, 1,000 kcal carbs and 630 kcal fat, the day totals 2,422 kcal, with 16% from alcohol.
Frequently asked questions
How many calories are in a gram of protein, carbs and fat?+
Protein and carbohydrate each provide about 4 calories per gram, fat about 9 calories per gram, and alcohol about 7 calories per gram. These are the general Atwater factors used for food labels.
Why does my label total not match the macro calculation?+
Manufacturers may use food-specific energy factors, count fiber at about 2 kcal/g or exclude it, and round each value. US rules also allow reasonable variation, so a gap of a few percent is normal.
Do fiber grams count toward calories?+
Fiber is included in total carbohydrates but supplies fewer calories than sugar and starch — roughly 2 kcal per gram for fermentable fiber and close to zero for insoluble fiber. This calculator counts all carbs at 4 kcal/g, which slightly overestimates high-fiber foods.
What is a good macro ratio?+
The National Academies’ Acceptable Macronutrient Distribution Ranges (used by the US Dietary Guidelines) are 10–35% of calories from protein, 45–65% from carbohydrate and 20–35% from fat for adults. Diets for fat loss or muscle gain often use more protein, and ketogenic diets use far fewer carbs.
How do I convert my calorie target into macros?+
Work backwards: choose a percentage for each macro, multiply your calories by it, then divide by 4 for protein and carbs or by 9 for fat. The macro calculator does this automatically.
This tool gives general estimates and is not medical advice. Talk to a doctor or qualified professional about your health, diet or training.