Conversion

Grams to Calories Calculator

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.


Use as default values for the embed calculator what is currently in input fields of the calculator on the page.


Input border focus color, switchbox checked color, select item hover color etc.


Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is a grams-to-calories calculator?

A grams-to-calories calculator is a free online tool that turns the weight of the macronutrients in your food into the energy they provide, measured in calories (kilocalories, or kcal). You enter how many grams of carbohydrates, protein, fat, and alcohol a food or meal contains, and the calculator returns the calories supplied by each macronutrient plus the total.

This conversion is the backbone of nutrition labels and diet tracking. Every gram of a macronutrient carries a fixed amount of energy, so once you know the grams, the calories follow directly. The tool is handy for reading food packaging, planning meals around a calorie target, or double-checking the numbers an app gives you.

How does the calculator work?

The calculator multiplies the grams of each macronutrient by its energy density — the calories stored in one gram — and adds the results together. These energy densities are often called the Atwater factors, after the nineteenth-century chemist Wilbur Atwater, who measured the average energy the body extracts from food.

The standard factors are:

  • Carbohydrates: 4 kcal per gram.
  • Protein: 4 kcal per gram.
  • Fat: 9 kcal per gram.
  • Alcohol: 7 kcal per gram.

Fat is by far the most energy-dense macronutrient, packing more than twice the calories of carbohydrates or protein. Alcohol sits in between, which is why drinks can add up quickly even when they contain no fat.

Formula

The calories from each macronutrient are:

Carb calories=carbs (g)×4\text{Carb calories} = \text{carbs (g)} \times 4 Protein calories=protein (g)×4\text{Protein calories} = \text{protein (g)} \times 4 Fat calories=fat (g)×9\text{Fat calories} = \text{fat (g)} \times 9 Alcohol calories=alcohol (g)×7\text{Alcohol calories} = \text{alcohol (g)} \times 7

The total energy of the food is the sum of all four:

Total calories=4×carbs+4×protein+9×fat+7×alcohol\text{Total calories} = 4 \times \text{carbs} + 4 \times \text{protein} + 9 \times \text{fat} + 7 \times \text{alcohol}

Examples

Example 1: A balanced meal

Food: 50 g carbohydrates, 30 g protein, 20 g fat.

  • Calories from carbs:
50×4=200 kcal50 \times 4 = 200 \text{ kcal}
  • Calories from protein:
30×4=120 kcal30 \times 4 = 120 \text{ kcal}
  • Calories from fat:
20×9=180 kcal20 \times 9 = 180 \text{ kcal}
  • Total:
200+120+180=500 kcal200 + 120 + 180 = 500 \text{ kcal}

Example 2: A single macronutrient

Food: 25 g of carbohydrates and nothing else.

25×4=100 kcal25 \times 4 = 100 \text{ kcal}

Example 3: One standard alcoholic drink

Drink: about 14 g of pure alcohol.

14×7=98 kcal14 \times 7 = 98 \text{ kcal}

This is the energy from the alcohol alone; sugary mixers or residual carbohydrates would add more on top.

Notes

  • The Atwater factors (4, 4, 9, and 7 kcal/g) are averages. The body absorbs slightly different amounts depending on the specific food, fibre content, and cooking method, so real values vary a little.
  • Dietary fibre is a carbohydrate but yields less energy — roughly 2 kcal/g — because it is only partly digested. Detailed labels sometimes subtract it; this calculator uses the simple 4 kcal/g figure for total carbohydrates.
  • “Calories” on food labels almost always mean kilocalories (kcal). One food kcal equals 1,000 of the smaller scientific calories.
  • To plan toward a daily goal, pair this tool with a calorie calculator or a maintenance calorie calculator, and use a calorie deficit calculator when you are aiming to lose weight.

FAQs

How many calories are in a gram of each macronutrient?

Carbohydrates and protein supply about 4 kcal per gram, fat supplies 9 kcal per gram, and alcohol supplies 7 kcal per gram. These are the standard Atwater factors used on nutrition labels worldwide.

Why does fat have more than twice the calories of carbs or protein?

Fat molecules are highly reduced (rich in carbon-hydrogen bonds), so burning them releases more energy. That extra energy density is why fatty foods are so calorie-dense and why fat is the body’s preferred form of long-term energy storage.

Does alcohol really contain calories?

Yes. Alcohol provides about 7 kcal per gram — nearly as much as fat. These are sometimes called “empty calories” because alcohol carries energy but very few vitamins or minerals, and the body has no way to store it, so it is burned first.

Are these conversions exact?

They are close averages. The body does not extract precisely 4, 4, 9, or 7 kcal from every gram, because digestibility differs between foods. For everyday meal planning the factors are accurate enough, but they are not laboratory-precise for any single food.

Report a bug

This field is required.