Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Macronutrient calories calculator

Enter grams of protein, carbohydrate, fat and alcohol to see the calories each provides, the total, and what share of the calories comes from each.

Private: calculated on your device. Nothing you type is sent anywhere.

A general estimate from a published formula, not medical advice.

Next: Want targets, not just totals? The macro calculator splits a calorie goal into grams, and the saturated fat calculator sets a fat-quality limit.

Calories per gram of protein, carbs, fat and alcohol

Food energy comes from four sources. Each gram supplies a fixed, rounded number of calories, known as the Atwater general factors:

NutrientCalories per gramKilojoules per gram
Protein417
Carbohydrate417
Fat937
Alcohol729

So 1 gram of protein has 4 calories, and 1 gram of fat has 9 calories, more than twice as much. Water, vitamins and minerals provide no calories.

How it's calculated

Calories = protein g × 4 + carbohydrate g × 4 + fat g × 9 + alcohol g × 7
Share from each = its calories ÷ total calories × 100

Worked example

A day with 150 g of protein, 200 g of carbohydrate and 60 g of fat:

150 × 4 = 600 · 200 × 4 = 800 · 60 × 9 = 540
Total = 600 + 800 + 540 = 1,940 calories

Protein supplies 600 ÷ 1,940 = 30.9% of the calories, carbs 41.2% and fat 27.8%. A US standard drink contains about 14 grams of pure alcohol, which adds about 14 × 7 = 98 calories before any mixer.

Limitations

  • 4, 4, 9 and 7 are rounded averages. The exact energy varies a little between foods, so a food company's total can differ slightly from this calculation.
  • Nutrition labels round both calories and grams, so adding up a label's grams may not match its calories exactly.
  • This adds up calories. It doesn't say how much of each nutrient you need. For targets, use the macro calculator or the protein calculator.

New to macros? Read what are macros.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • 150 g protein, 200 g carbs, 60 g fat = 1,940 calories ✓
  • Protein is 30.9% of those calories ✓
  • 1 g of fat = 9 calories ✓
  • 14 g of alcohol (one US standard drink) = 98 calories ✓
  • All zeros asks for grams ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

How many calories are in a gram of protein?

4 calories. 30 grams of protein is 120 calories.

How many calories are in 1 gram of fat?

9 calories, more than twice as many as protein or carbohydrate.

How many calories are in a gram of carbohydrate?

4 calories, the same as protein.

How many calories are in a gram of alcohol?

About 7 calories.

How do I convert macros to calories?

Multiply protein and carb grams by 4, fat grams by 9 and alcohol grams by 7, then add them up.

Related calculators