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.
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
| Macronutrient | kcal per gram | kJ per gram | Notes |
|---|---|---|---|
| Carbohydrates | 4 | 16.7 | Standard Atwater factor; applies to sugars and starches |
| Protein | 4 | 16.7 | Includes all 20 amino acids in typical dietary protein |
| Fat | 9 | 37.7 | Highest energy density of all macronutrients |
| Fiber | 2 | 8.4 | Scientific value; US labels often list 0, EU labels use 2 |
| Alcohol (ethanol) | 7 | 29.3 | Not 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
- Atwater WO and Bryant AP. The availability and fuel value of food materials. USDA Office of Experiment Stations Bulletin 21 (1900).
- U.S. Food and Drug Administration. Guidance for Industry: Food Labeling - Calorie Labeling of Standard Menu Items in Restaurants and Similar Retail Food Establishments.