Skip to content
Other

Grams to Calories Calculator

Enter the grams of each macronutrient you ate or plan to eat and this calculator converts them to kilocalories using the standard Atwater energy factors: 4 kcal per gram of carbohydrate, 4 kcal per gram of protein, 9 kcal per gram of fat, 2 kcal per gram of fiber, and 7 kcal per gram of alcohol. You also get a live donut chart showing how the calories split between macros, a step-by-step breakdown of the math, and a reverse mode that lets you start from a calorie target and find the grams you need.

Your details

Forward mode converts grams into kilocalories. Reverse mode starts from a calorie target and tells you how many grams of one chosen macronutrient that equals.
Total carbohydrate grams, including sugars but NOT fiber (enter fiber separately).
g
Grams of dietary protein.
g
Grams of total fat (saturated + unsaturated).
g
Grams of dietary fiber. Fiber contributes roughly 2 kcal/g in most scientific models (some US labels use 0).
g
Grams of pure ethanol. Multiply a drink's volume (mL) by ABV (%) by 0.789 to get grams.
g
Total Calories
465kcal

Sum of all macronutrient calories

Calories from Carbs200kcal
Calories from Protein120kcal
Calories from Fat135kcal
Calories from Fiber10kcal
Calories from Alcohol0kcal
0100200024
Macronutrient
Calories (kcal)
MacronutrientCarbsProteinFatFiber
00000
120012013510
  • Carbs
  • Protein
  • Fat
  • Fiber

These macros add up to 465 kcal.

  • Carbohydrates contribute 43% (200 kcal).
  • Protein contributes 26% (120 kcal).
  • Fat contributes 29% (135 kcal) - fat is calorie-dense at 9 kcal/g.
  • Fiber adds 10 kcal at the scientific 2 kcal/g rate (US food labels often show 0 for fiber).

Next stepCompare these numbers against your daily calorie target to see how this meal or food fits your goals.

How grams convert to calories: the Atwater system

The relationship between food mass and food energy is governed by a set of constants called the Atwater general factors, named for the American chemist Wilbur Olin Atwater who determined them in the late 1800s through careful bomb-calorimetry experiments on hundreds of foods. The four values that have been used on nutrition labels ever since are: carbohydrates at 4 kcal per gram, protein at 4 kcal per gram, fat at 9 kcal per gram, and alcohol at 7 kcal per gram. These are physiological values, meaning they account for the energy the human body can actually absorb and use, not the total chemical energy released by complete combustion. Fat has more than twice the energy density of carbohydrates or protein because fat molecules contain far more carbon-hydrogen bonds and far less oxygen, giving them more potential chemical energy per gram.

Fiber and alcohol: the two tricky macros

Fiber sits in a special category because most of it is not digested by human enzymes. Soluble fiber is partially fermented by gut bacteria, which releases short-chain fatty acids that the body absorbs for energy, while insoluble fiber passes through largely intact. The scientific consensus is roughly 2 kcal per gram for fiber as a whole, and this is the value used by Health Canada and the European Food Safety Authority. However, the United States FDA permits manufacturers to assign 0 kcal per gram to most insoluble fibers, which is why the same product can show different calorie counts on US and EU labels. Alcohol is not a traditional macronutrient but at 7 kcal per gram it supplies more energy than protein or carbohydrate, and those calories are metabolized differently from food energy: the liver prioritizes burning alcohol, which can suppress fat oxidation for hours after a drink. If you want to convert a drink's volume to grams of ethanol, multiply the volume in mL by the alcohol-by-volume percentage (as a decimal) by 0.789, which is ethanol's density in g/mL.

Reverse calculation: from calories to grams

Switch the calculator to reverse mode to answer questions like "how many grams of carbohydrate equal 200 kcal?" The math is a simple division: divide the calorie target by the Atwater factor for the chosen macronutrient. For carbohydrates and protein that is 200 / 4 = 50 g; for fat it is 200 / 9 = about 22 g; for alcohol 200 / 7 = about 29 g. This is useful when you are planning a meal from a calorie budget and need to know how much physical food it represents, or when you are reading a label and want to sense-check the declared calorie count against the listed macros.

Why your food label may show different numbers

Food manufacturers do not always use the same rounding rules or the same Atwater factors. The US FDA allows the use of modified specific Atwater factors that are derived from the individual components of a food rather than the general factors, and it permits rounding calories to the nearest 5 kcal (for values above 50) or 1 kcal (for values below 50). Sugar alcohols such as xylitol and sorbitol are assigned values ranging from 0.2 to 3.0 kcal/g depending on the compound. As a result, the calorie total you calculate by multiplying the listed macros by standard Atwater factors will sometimes differ by a few percent from the number on the label. This is normal and not an error in the label or in this calculator. For most practical purposes the difference is small and does not affect calorie tracking.

Atwater energy factors by macronutrient

Macronutrientkcal per gramkJ per gramNotes
Carbohydrates416.7Standard Atwater factor; applies to sugars and starches
Protein416.7Includes all 20 amino acids in typical dietary protein
Fat937.7Highest energy density of all macronutrients
Fiber28.4Scientific value; US labels often list 0, EU labels use 2
Alcohol (ethanol)729.3Not a macronutrient in the traditional sense but calorie-dense

Standard energy conversion values used on nutrition labels worldwide. Fiber and alcohol have special values that differ from simple carbohydrate and protein.

Frequently asked questions

How many calories are in 1 gram of carbohydrates?

One gram of carbohydrate provides 4 kilocalories (kcal) of energy, using the standard Atwater factor. This applies to sugars (glucose, fructose, sucrose) and starches alike. Fiber is sometimes counted as a carbohydrate on labels but has a lower energy value of about 2 kcal/g because much of it resists digestion.

How many calories are in 1 gram of fat?

One gram of fat provides 9 kcal, more than twice the energy density of protein or carbohydrates. This is why reducing fat intake has a large caloric effect: cutting 10 g of fat saves 90 kcal, while cutting 10 g of carbohydrate or protein saves only 40 kcal.

How many calories are in 1 gram of protein?

Protein provides 4 kcal per gram, the same as carbohydrates. Protein is important not just for energy but for building and repairing tissues. Because the body can convert protein to glucose through gluconeogenesis, it can serve as a fuel source when carbohydrate intake is low.

Does fiber count as calories?

It depends on the labeling rules in your country. In the US, most dietary fiber is listed as 0 kcal/g on food labels because insoluble fiber is not digested. In Canada and the European Union, fiber is assigned about 2 kcal/g to account for the energy produced when gut bacteria ferment soluble fiber. This calculator uses the 2 kcal/g scientific value, which may result in a slightly higher total than a US food label for high-fiber foods.

How many calories does alcohol have per gram?

Ethanol contains 7 kcal per gram, making it more calorie-dense than carbohydrates or protein. To find the grams of alcohol in a drink, multiply the volume in mL by the ABV fraction (e.g., 0.05 for 5%) by 0.789 (ethanol's density in g/mL). A 355 mL (12 fl oz) beer at 5% ABV contains about 14 g of ethanol, contributing roughly 98 kcal from alcohol alone, before any carbohydrates in the beer are counted.

What is the formula to calculate calories from grams?

Total calories = (carbohydrate grams x 4) + (protein grams x 4) + (fat grams x 9) + (fiber grams x 2) + (alcohol grams x 7). For example, a meal with 30 g carbs, 25 g protein, and 10 g fat contains (30 x 4) + (25 x 4) + (10 x 9) = 120 + 100 + 90 = 310 kcal.

Why does fat have more calories than carbs or protein per gram?

Fat molecules are mostly carbon and hydrogen with very little oxygen. This means the carbon-hydrogen bonds in fat are highly reduced and hold more potential chemical energy. Carbohydrates and proteins, by contrast, already contain substantial oxygen, so less additional energy is released when they are oxidized. This is a fundamental principle of organic chemistry, not a nutritional convention.

Sources

Written by Grace Mbeki, MSc Data Scientist & Educator · Nairobi, Kenya

Turning everyday numbers into clear, actionable answers for the decisions that matter most.

Search 3,500+ calculators

Loading search…