Skip to content
FiftyCalc Free calculators for all 50 states

Grams to Calories Calculator

Test cases replayed : 3 of 3 match · Methodology · Sources

Enter the grams of each macronutrient, for example from a nutrition label.

Result

Sample figures

Total calories—kcal

Share from carbohydrate (%) —

  • Share from protein (%)—
  • Share from fat (%)—
  • Total energy (kJ)—

Estimate for planning only, not tax, legal, financial or medical advice. Check important figures with the official source listed on this page.

Grams to Calories Calculator

Carbohydrate, in g: enter 0 or more. Prefilled example: 30.

Protein, in g: enter 0 or more. Prefilled example: 20.

Fat, in g: enter 0 or more. Prefilled example: 10.

Alcohol, in g: enter 0 or more. Prefilled example: 0.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Carbohydrate, in g: enter 0 or more.
  2. Protein, in g: enter 0 or more.
  3. Fat, in g: enter 0 or more.
  4. Alcohol, in g: enter 0 or more.
  5. Read the result: Total calories; the panel also shows Share from carbohydrate (%), Share from protein (%), Share from fat (%) and Total energy (kJ).

Sources

How this calculator works

Calories = 4 × carbohydrate g + 4 × protein g + 9 × fat g + 7 × alcohol g. These are the general Atwater factors that the FDA allows for nutrition labels (21 CFR 101.9).

kJ = kcal × 4.184. A label's total may differ slightly because of rounding and fiber, which supplies less energy than other carbohydrate.

The formula

  1. K=c×4+p×4+fat×9+alc×7
Symbols used in the formula
SymbolMeaningUnit
cCarbohydrateg
pProteing
fatFatg
alcAlcoholg
KTotal calorieskcal

Worked example

Carbohydrate30 g
Protein20 g
Fat10 g
Alcohol0 g
Share from carbohydrate (%)41.4
Share from protein (%)27.6
Share from fat (%)31.0
Total energy (kJ)1,213.36
  1. K=30×4+20×4+10×9+0×7=290

Total calories 290 kcal

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

How many calories are in 1 gram of fat?

9 kcal, against 4 kcal for a gram of carbohydrate or protein and 7 kcal for a gram of alcohol.

How many calories are 30 g carbs, 20 g protein and 10 g fat?

290 kcal.

Questions answered

Related calculators