Skip to content
OverCalculator
  1. Home
  2. Conversion
  3. Grams To Calories Calculator
Conversion

Grams To Calories Calculator

Convert grams of protein, carbohydrate, and fat to food Calories using 4, 4, and 9 kcal per gram, or use a custom kcal per gram value.

Published

Food energy
Total calories
500 kcal
Protein calories
120 kcal
Carbohydrate calories
200 kcal
Fat calories
180 kcal

Using 4 kcal/g for protein, 4 kcal/g for carbohydrates, and 9 kcal/g for fat.

Calculation mode
g
g
g

Results update as you type.

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:

kcal=4×protein g+4×carbohydrate g+9×fat g\text{kcal} = 4 \times \text{protein g} + 4 \times \text{carbohydrate g} + 9 \times \text{fat g}

Custom mode uses:

kcal=grams×kcal per gram\text{kcal} = \text{grams} \times \text{kcal per gram}

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:

30 g×4 kcalg=120 kcal30\ \text{g} \times 4\ \frac{\text{kcal}}{\text{g}} = 120\ \text{kcal}

Then carbohydrate energy:

50 g×4 kcalg=200 kcal50\ \text{g} \times 4\ \frac{\text{kcal}}{\text{g}} = 200\ \text{kcal}

Then fat energy:

20 g×9 kcalg=180 kcal20\ \text{g} \times 9\ \frac{\text{kcal}}{\text{g}} = 180\ \text{kcal}

The total is:

120 kcal+200 kcal+180 kcal=500 kcal120\ \text{kcal} + 200\ \text{kcal} + 180\ \text{kcal} = 500\ \text{kcal}

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:

100 g×4 kcalg=400 kcal100\ \text{g} \times 4\ \frac{\text{kcal}}{\text{g}} = 400\ \text{kcal}

Reference table

InputFactor used by the formEnergy
1 g protein4 kcal/g4 kcal
25 g protein4 kcal/g100 kcal
1 g carbohydrate4 kcal/g4 kcal
25 g carbohydrate4 kcal/g100 kcal
1 g fat9 kcal/g9 kcal
10 g fat9 kcal/g90 kcal
Alcoholnot supported in macro modeuse a complete supplied energy value
100 g food at 2.5 kcal/gcustom mode250 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

Frequently asked questions

How many calories are in a gram of protein?
The calculator uses 4 kcal per gram of protein in macro mode. That is the common rounded Atwater factor used for nutrition-label style estimates and meal planning. Actual foods can vary because protein type, digestibility, serving rounding, and laboratory methods are not all captured by one rounded factor.
How many calories are in a gram of carbohydrate?
The form uses 4 kcal per gram of carbohydrate. This matches the practical nutrition-label convention for total carbohydrate estimates. Fiber, sugar alcohols, and specific carbohydrate types can have different metabolizable energy, so detailed labels or databases may not always match a simple 4 kcal per gram calculation.
How many calories are in a gram of fat?
Fat is calculated at 9 kcal per gram in the macro mode. That makes fat more energy-dense than protein or carbohydrate in this calculator. The result is rounded to whole kcal for display, which mirrors how many nutrition labels present food energy.

Related calculators

Grams To Calories Calculator updated at