Grams To Calories Calculator
Food energy is not a plain mass conversion. A gram of protein, a gram of carbohydrate, a gram of fat, and a gram of water do not provide the same energy. This grams to calories calculator has two modes. Macro mode applies the common nutrition factors of 4 kcal/g for protein, 4 kcal/g for carbohydrate, and 9 kcal/g for fat. Custom mode multiplies a food mass by a known energy density in kcal/g.
The result is shown in kcal. On nutrition labels, a capital-C Calorie means the same thing as a kilocalorie. One food Calorie is 1 kcal, which is 1,000 small scientific calories. This page uses kcal in the formulas so the unit is clear. For other energy units, use the energy converter. For diet planning context, compare with the calorie calculator or calorie deficit calculator. For mass units only, use the weight converter.
What the form assumes
In macro mode, the form has inputs for protein, carbohydrate, and fat. It does not have an alcohol input, and it does not separately adjust for fiber, sugar alcohols, digestibility, or label rounding rules. The calculation is: protein times 4, carbohydrate times 4, fat times 9, then add the three results. Each component is displayed as an item, and total food energy is rounded to whole kcal.
In custom mode, the form has two inputs: food mass in grams and energy density in kcal/g. It multiplies those values directly. This is the right mode when a label, lab result, recipe database, or product specification already gives a single energy density. The default custom example is 100 g at 4 kcal/g, which returns 400 kcal.
Atwater factors and nutrition labels
The 4, 4, and 9 values are rounded Atwater-style factors. They estimate metabolizable food energy rather than simply measuring how much heat a food could release in a device. The factors are intentionally practical. They are used because labels, recipes, and meal plans need repeatable numbers that are simple enough to apply across many foods.
This form is only a general-factor estimate. FDA rules permit other specified methods and factors, and a product’s declared nutrient values may not provide enough detail to reproduce its Calories from this form. Use the package label or a food-specific database when that value is required.
Formula
Macro mode uses:
Custom mode uses:
The macro form has no alcohol input. Custom mode calculates total food mass times one supplied energy density; it does not add alcohol to a macro total. Use a source that already accounts for all energy contributors when alcohol is material.
Conversion example using the stated method
The default macro inputs are 30 g protein, 50 g carbohydrate, and 20 g fat. Protein energy is calculated first:
Then carbohydrate energy:
Then fat energy:
The total is:
The primary result therefore displays 500 kcal. The item list shows 120 kcal from protein, 200 kcal from carbohydrate, and 180 kcal from fat. The note says the form is using 4 kcal/g for protein, 4 kcal/g for carbohydrates, and 9 kcal/g for fat.
In custom mode, 100 g at 4 kcal/g returns:
Reference table
| Input | Factor used by the form | Energy |
|---|---|---|
| 1 g protein | 4 kcal/g | 4 kcal |
| 25 g protein | 4 kcal/g | 100 kcal |
| 1 g carbohydrate | 4 kcal/g | 4 kcal |
| 25 g carbohydrate | 4 kcal/g | 100 kcal |
| 1 g fat | 9 kcal/g | 9 kcal |
| 10 g fat | 9 kcal/g | 90 kcal |
| Alcohol | not supported in macro mode | use a complete supplied energy value |
| 100 g food at 2.5 kcal/g | custom mode | 250 kcal |
The alcohol row is included as a caution, not as a built-in macro input. If a drink or recipe contains alcohol, do not hide those grams inside protein, carbohydrate, or fat.
Common use cases
Use macro mode to check a meal plan, estimate a recipe from its protein, carbohydrate, and fat totals, or understand why two foods with the same gram weight can have very different Calories. A 100 g food that is mostly water may have very little energy. A 100 g food rich in fat can be much higher because fat contributes 9 kcal/g in this calculation.
Use custom mode when a food database gives energy per 100 g and you want a different serving size. Convert the database value to kcal/g by dividing by 100, then multiply by the grams you plan to eat. For example, a food listed at 250 kcal per 100 g has an energy density of 2.5 kcal/g. A 60 g serving would be about 150 kcal.
Pitfalls
Do not multiply total food grams by 4 unless you already know the food behaves like a 4 kcal/g food. Total mass includes water and non-energy components. Do not confuse kcal with lowercase calories. Do not add alcohol to carbohydrate unless a label or database has already done that accounting. Do not expect a perfect match to packaged-food Calories when the label rounds grams and Calories separately.
Sources
- FDA, Calories on the Nutrition Facts Label — official explanation of Calories in label context.
- eCFR, 21 CFR 101.9(c)(1), “Calories” — general 4/4/9 factors and permitted calorie-calculation methods.
- FDA, How to Understand and Use the Nutrition Facts Label — label-reading guidance for nutrients and calories.
- USDA ARS, Composition of Foods: Raw, Processed, Prepared — classic USDA food composition reference connected to Atwater-style food energy data.
- USDA, FoodData Central — current food composition database for checking food-specific energy and macronutrient values.