Grams to Calories Calculator

Grams to Calories Calculator

Popular AI Skill PRO

Enter Calculation

Formula

Calories=4×Carbs (g)+4×Protein (g)+9×Fat (g)\text{Calories} = 4 \times \text{Carbs (g)} + 4 \times \text{Protein (g)} + 9 \times \text{Fat (g)}

Example

Calories=4×50+4×30+9×10=410\text{Calories} = 4 \times 50 + 4 \times 30 + 9 \times 10 = 410
Usage stats

Advertisement

Results

Total Energy
410
kcal (calories)
Source Calories
Carbohydrates (4 kcal/g) 200 kcal
Protein (4 kcal/g) 120 kcal
Fat (9 kcal/g) 90 kcal

Report an error on this page

What is the Grams to Calories Calculator?

This tool converts the weight (in grams) of the three energy-providing macronutrients — carbohydrates, protein and fat — into total food energy measured in calories (kilocalories, kcal). It uses the widely accepted Atwater general factors: each gram of carbohydrate and protein supplies about 4 calories, while each gram of fat supplies about 9 calories. These are the same factors used on nutrition labels around the world.

How to use it

Enter the grams of carbohydrate, protein and fat for a single food or for a whole meal. The calculator multiplies each amount by its factor and adds them together, then shows the total energy plus a breakdown of how many calories come from each macronutrient. Leave a field at 0 if a nutrient is not present.

The formula explained

The equation is simply $$\text{Calories} = (\text{Carbs} \times 4) + (\text{Protein} \times 4) + (\text{Fat} \times 9)$$ Fat is the most energy-dense macronutrient, packing more than double the calories per gram of carbs or protein, which is why high-fat foods feel calorie-heavy. Alcohol (7 kcal/g) and fiber are not included in this simplified version.

Advertisement
Three macronutrient icons with their calorie-per-gram factors
Each macronutrient supplies a fixed number of calories per gram: carbs 4, protein 4, fat 9.

Worked example

Suppose a snack contains 50 g of carbs, 30 g of protein and 10 g of fat. Carbs give \(50 \times 4 = 200\) kcal, protein gives \(30 \times 4 = 120\) kcal, and fat gives \(10 \times 9 = 90\) kcal. The total is $$200 + 120 + 90 = 410 \text{ calories}$$

Stacked bar showing carbs, protein and fat calories adding to a total
Multiply each macro's grams by its factor, then add them for total calories.

Calorie Factors for Macronutrients and Other Energy Sources

A gram of food is not a gram of energy. Each energy-yielding component of food has its own energy factor — the kilocalories (kcal) it releases per gram. The familiar 4-4-9 rule is the short version of a longer table, because carbohydrate, protein and fat are not the only things in food that carry energy: alcohol, fibre, sugar alcohols and organic acids do too, at lower and quite different rates.

Energy factors per gram (Atwater general factors and the specific factors used in food labelling)
Component kcal per gram kJ per gram Notes
Carbohydrate (available) 4 17 The "4" in 4-4-9; applies to starch and sugars
Protein 4 17 Same factor as carbohydrate
Fat (all types) 9 37 Just over twice the energy density of carbs or protein
Alcohol (ethanol) 7 29 Why drinks add calories with no carbs, protein or fat
Dietary fibre ~2 8 Partially fermented, not fully absorbed as glucose
Sugar alcohols (polyols, as a group) ~2.4 10 Sorbitol, maltitol, xylitol and similar
Erythritol ~0.2 ~1 Treated as 0 kcal/g under EU labelling rules
Organic acids ~3 13 E.g. citric, lactic, acetic acid
Glycerol (glycerine) ~4.3 18 EU-listed factor; used in bars and syrups

These are the Atwater general factors plus the specific factors permitted for labelling. In the United States they appear in FDA regulation 21 CFR 101.9(c)(1); in the European Union and UK the list is Regulation (EU) No 1169/2011, Annex XIV. The two systems agree on 4-4-9-7 but differ in detail — most visibly for erythritol (about 0.2 kcal/g in the US, 0 kcal/g in the EU) and for fibre, which the FDA's general approach may count within carbohydrate rather than at a separate 2 kcal/g factor. This calculator applies the plain 4-4-9 rule to the carbohydrate, protein and fat grams you enter.

The kJ column matters because nutrition labels outside the US are usually in kilojoules, often with kcal alongside. The conversion is \(1\ \text{kcal} = 4.184\ \text{kJ}\), which is why 4 kcal/g is rounded to 17 kJ/g and 9 kcal/g to 37 kJ/g on labels.

Advertisement

Calorie Totals for Common Macro Splits

The same number of grams can mean wildly different calorie totals depending on how those grams are divided. The two extreme rows below make the point: 100 g of pure carbohydrate and 100 g of pure fat are identical on the scale and differ by 500 kcal on the plate. Every total is \(4C + 4P + 9F\).

Worked calorie totals for representative foods, meals and daily splits
Scenario Carbs (g) Protein (g) Fat (g) Total grams Total kcal % kcal carbs % kcal protein % kcal fat
Pure carbohydrate (e.g. sugar) 100 0 0 100 400 100% 0% 0%
Pure fat (e.g. oil) 0 0 100 100 900 0% 0% 100%
Chicken breast, 200 g cooked 0 46 5 51 229 0% 80% 20%
Oats with milk 60 15 8 83 372 65% 16% 19%
Avocado toast 30 7 20 57 328 37% 9% 55%
A 50/30/20 %-kcal day (~2000 kcal) 250 150 44 444 1996 50% 30% 20%

Two patterns are worth noticing. First, total grams are a poor predictor of calories: the 51 g of chicken breast macros deliver 229 kcal while the 57 g in avocado toast deliver 328 kcal, because fat dominates the second. Second, a target expressed in percentages converts to awkward gram numbers — the last row is the gram translation of a 50% carb / 30% protein / 20% fat day, and it lands on 1996 kcal rather than exactly 2000 because 44 g of fat is the nearest whole gram to 400 ÷ 9 = 44.4 g.

FAQ

Are these calories exact? No — they are estimates based on average Atwater factors. Actual digestible energy varies slightly by food.

What about fiber and alcohol? This calculator counts only carbs, protein and fat. Fiber contributes roughly 2 kcal/g and alcohol about 7 kcal/g if you want a more detailed estimate.

Are calories and kilocalories the same? In everyday nutrition, the "calories" on a food label are kilocalories (kcal). This tool reports kcal.

Sources & References

  • 21 CFR 101.9 Nutrition labeling of food — U.S. Food and Drug Administration, Code of Federal Regulations Title 21 (2025 edition), govinfo.gov. Food-label general factors: 4 kcal per gram of protein and carbohydrate, 9 kcal per gram of fat. · Verified 2026-11-07

Checked against these sources on . Not reviewed by a clinician. For general information only, not medical advice or a diagnosis. Talk to a doctor about any health concern.

Last updated:

Most popular in Health and Fitness

View all Health and Fitness calculators