Convert calories to grams of fat, carbs, protein or alcohol using standard kcal-per-gram factors, or grams to calories, or enter a custom kcal/g.

Standard factors give grams of that nutrient, not total food weight. Food Calories are kcal.

For a whole food: Calories per serving ÷ grams per serving from its label.

Display precision

Calculator Functions

FunctionWhat it doesWhat it requires
Grams from caloriesConverts food Calories (kcal) into grams of fat, carbohydrate, protein or alcohol, or into grams of a food with a known energy densityRequires the Calories and the nutrient, or a custom energy density in kcal per gram
Calories from gramsConverts grams of a nutrient or food into food Calories (kcal)Requires the grams and the nutrient, or a custom energy density in kcal per gram

Both functions use the same nutrient list: fat at 9 kcal/g, carbohydrate at 4 kcal/g, protein at 4 kcal/g, alcohol at about 7 kcal/g, or a custom energy density. The result can be shown with 0 to 3 decimal places. Calories here are food Calories, which are kilocalories (kcal).

Calories to Grams Formulas

g = kcal ÷ F [1]
gMass of the nutrient or food (grams)
kcalEnergy in food Calories (kilocalories)
FEnergy factor (kcal per gram): 9 for fat, 4 for carbohydrate, 4 for protein [1] and about 7 for alcohol [2]

U.S. food labeling rules allow Calories to be worked out with the general factors of 4, 4 and 9 Calories per gram for protein, total carbohydrate and total fat [1]. The Food and Agriculture Organization lists the same general factors and adds 7 kcal per gram for alcohol, 6.9 before rounding [2]. The regulation is cited as printed in the April 1, 2024 edition of the Code of Federal Regulations.

Grams from calories

The formula above applies directly. A number of Calories has no single weight in grams, because the answer depends on what supplies the energy: 500 Calories is 500 ÷ 9 = 55.56 g of fat, 500 ÷ 4 = 125 g of carbohydrate or protein, or 500 ÷ 7 = 71.43 g of alcohol.

These are grams of the nutrient, not the weight of a food. For a whole food, choose Custom energy density and enter the Calories per serving divided by the grams per serving from its label. A food with 257 kcal per 100 g has 2.57 kcal/g, so a 180 Calorie portion weighs 180 ÷ 2.57 = 70.04 g.

Calories (kcal)Carbohydrate or protein (g)Fat (g)Alcohol (g)
10025.011.114.3
15037.516.721.4
20050.022.228.6
25062.527.835.7
30075.033.342.9
35087.538.950.0
400100.044.457.1
500125.055.671.4
600150.066.785.7
800200.088.9114.3
1,000250.0111.1142.9
1,200300.0133.3171.4
1,800450.0200.0257.1
2,000500.0222.2285.7

Calories from grams

kcal = g × F

Fifty grams of fat supplies 50 × 9 = 450 kcal, and 30 g of protein supplies 30 × 4 = 120 kcal. With a custom energy density, 45 g of a food labeled 518 kcal per 100 g supplies 45 × 5.18 = 233.1 kcal.

Limits of This Estimate

  • The 4, 4 and 9 factors are rounded averages. Factors measured for individual foods range from 2.44 to 4.36 kcal/g for protein, 8.37 to 9.02 for fat and 2.70 to 4.16 for carbohydrate [2].
  • Fiber and sugar alcohols supply less energy than other carbohydrate. Labeling rules use 2 Calories per gram for soluble non-digestible carbohydrate and 0 to 3 for sugar alcohols [1], so label Calories can be lower than 4 × the total carbohydrate grams.
  • Label Calories are rounded to the nearest 5 or 10 [1], so an energy density worked out from a label is approximate.
  • This calculator is for educational purposes only and does not provide medical advice. For personalized nutrition guidance or medical conditions, consult a registered dietitian or clinician.

Sources

  1. U.S. Food and Drug Administration, 21 CFR 101.9, Nutrition labeling of food, paragraph (c)(1): general factors of 4, 4 and 9 Calories per gram, factors for non-digestible carbohydrate and sugar alcohols, and rounding of label Calories
  2. Food and Agriculture Organization of the United Nations, Food and Nutrition Paper 77, Chapter 3, Calculation of the energy content of foods: Atwater general factors including alcohol, and the range of food-specific factors