Skip to content

Grams to Calories Converter for Protein, Carbs and Fat

Convert grams of protein, carbs, fat, fibre or alcohol into kcal and kJ, and calories back into grams.

Your details

Unit system
What do you want to convert?

EU labels list fibre separately. On a US label, subtract the dietary fibre from total carbohydrate.

Leave blank if the amounts above are for what you actually eat.

Results update as you type

Energy in kilocalories

378 kcal

Energy in kilojoules (EU label factors)
1,589 kJ
Share of energy from protein
26.5%
Share from carbohydrate
42.3%
Share from fat
28.6%
Share from fibre, alcohol, polyols
2.6%

Step-by-step solution
  1. Carbohydrate: 40 g × 4 = 160 kcal
  2. Protein: 25 g × 4 = 100 kcal
  3. Fat: 12 g × 9 = 108 kcal
  4. Fibre: 5 g × 2 = 10 kcal
  5. Σ = 378 kcal

This calculator gives estimates for information only and is not medical advice. Talk to a doctor or registered dietitian before making health decisions.

Nutrition labels list grams of protein, carbohydrate and fat, but diets and fitness apps think in calories. The link between the two is a small set of energy conversion factors: about 4 kcal per gram of protein or carbohydrate, 9 kcal per gram of fat and 7 kcal per gram of alcohol. This grams to calories converter applies them for you.

In food mode, enter the grams of each macronutrient — from a label, a recipe or your own log — and get the total energy in kilocalories and kilojoules, plus the share of energy coming from protein, carbohydrate and fat. If the label gives values per 100 g, add the portion you eat to scale the result.

The one-nutrient mode converts a single amount, such as 10 g of fat, and covers the less common components from the EU list: fibre, polyols, organic acids, salatrims and erythritol. The kcal → grams mode works backwards, telling you how many grams of protein or fat supply a given number of calories. To plan whole days, pair it with the macro calculator.

How to use this calculator

  1. Choose a mode: Food (all macros), One nutrient → kcal or kcal → grams.
  2. In food mode, type the grams of protein, carbohydrate (without fibre), fat and fibre; alcohol and polyols are optional.
  3. If those amounts are per 100 g, enter the portion you actually eat.
  4. In the other modes, pick the nutrient and enter grams or an energy in kcal or kJ.
  5. Read the energy in kcal and kJ, the percentage split and, in reverse mode, the grams needed.

The formula

Energy is the sum of each nutrient’s mass times its factor:

Ekcal=4 P+4 C+9 F+7 A+2 Fib+2.4 Pol+3 OA+6 SalE_{\text{kcal}} = 4\,P + 4\,C + 9\,F + 7\,A + 2\,\text{Fib} + 2.4\,\text{Pol} + 3\,\text{OA} + 6\,\text{Sal}

with every amount in grams. The kilojoule value uses the EU factors 17 (protein, carbohydrate), 37 (fat), 29 (alcohol), 8 (fibre), 10 (polyols), 13 (organic acids) and 25 (salatrims) kJ/g; erythritol counts as 0. These are rounded, so the kJ figure is not exactly 4.184×4.184 \times kcal: for 1 g of protein, 4×4.184=16.74 \times 4.184 = 16.7 kJ, while the label factor is 17.

The share of energy from a nutrient is share=100×kcal from the nutrientEkcal\text{share} = 100 \times \dfrac{\text{kcal from the nutrient}}{E_{\text{kcal}}}, and the reverse conversion is simply grams=E/factor\text{grams} = E / \text{factor}.

Worked example

A serving contains 25 g protein, 40 g carbohydrate, 12 g fat and 5 g fibre.

  • 25×4+40×4+12×9+5×2=100+160+108+10=25 \times 4 + 40 \times 4 + 12 \times 9 + 5 \times 2 = 100 + 160 + 108 + 10 = 378 kcal
  • In kilojoules: 25×17+40×17+12×37+5×8=25 \times 17 + 40 \times 17 + 12 \times 37 + 5 \times 8 = 1,589 kJ
  • Energy split: protein 26.5%, carbohydrate 42.3%, fat 28.6%; fibre supplies the rest.

If those figures were per 100 g and you eat 30 g, you get 113.4 kcal. A single 10 g of fat is 90 kcal (370 kJ), 10 g of alcohol 70 kcal, and 100 kcal of protein means 25 g of protein — but only 11.11 g of fat.

Energy factors per gram

Component kcal/g kJ/g (EU)
Protein 4 17
Carbohydrate (excluding polyols) 4 17
Fat 9 37
Alcohol (ethanol) 7 29
Salatrims 6 25
Organic acids 3 13
Polyols 2.4 10
Fibre 2 8
Erythritol 0 0

The 4-4-9 values are the Atwater general factors, derived from feeding studies at the end of the 19th century and still used worldwide. They are averages: protein from beans or wholegrains yields slightly less usable energy than the factor suggests, which is why specific factors exist for scientific food tables.

Single-nutrient mode (the classic converter)

Earlier grams-to-calories converters handled only one nutrient at a time: type grams of fat, get calories. That classic conversion is kept here as the One nutrient → kcal mode, with the same factors, plus the kJ value and the less common components. Use it to check one line of a label, or to answer questions like “how many calories in a tablespoon of oil (about 14 g of fat)?” — about 126 kcal.

Frequently asked questions

How many calories are in 1 gram of fat, protein and carbs?

Fat provides 9 kcal per gram, protein 4 kcal and digestible carbohydrate 4 kcal. Alcohol provides 7 kcal per gram and fibre about 2 kcal.

Is a food Calorie the same as a kilocalorie?

Yes. The “Calorie” with a capital C on US labels is one kilocalorie (kcal), equal to 4.184 kilojoules. A small calorie is a thousandth of that.

Why doesn’t my total match the label exactly?

Labels round each nutrient and the energy value, manufacturers may use specific factors, and US labels may count insoluble fibre as zero. Differences of a few percent are normal.

How do I convert calories back to grams?

Divide the calories by the factor: 200 kcal of fat ÷ 9 = 22.2 g; 200 kcal of protein ÷ 4 = 50 g. The kcal → grams mode does this for any nutrient.

Should fibre be included in carbohydrates?

In the EU, carbohydrate on the label excludes fibre, which is counted separately at 2 kcal/g. US labels show total carbohydrate including fibre; subtract the fibre before entering it here, then enter fibre on its own line.

Sources

Last updated:

More Conversion calculators

People also use