Grams to Calories Calculator

Convert grams of protein, carbohydrates, fat, alcohol, or a custom nutrient into food calories.

Calculate calories from grams
Choose a nutrient and apply its energy value per gram.

About grams and calories

A grams to calories calculator estimates the energy supplied by a known mass of a macronutrient. Grams measure mass, while nutritional calories measure energy, so there is no universal conversion for every food. The correct multiplier depends on what the measured grams contain. Under the commonly used Atwater system, protein provides about 4 kilocalories per gram, digestible carbohydrates provide about 4, fat provides about 9, and alcohol provides about 7. Food labels usually call one kilocalorie a Calorie with a capital C, so the result shown here matches the familiar unit on nutrition panels. This distinction matters because 20 grams of fat and 20 grams of protein have very different energy values. Twenty grams of fat provide about 180 calories, whereas 20 grams of protein provide about 80 calories. The calculator applies the selected nutrient factor directly: calories equal grams multiplied by calories per gram. It is useful for checking a macro plan, estimating a recipe from its nutrient totals, or understanding how a nutrition label arrives at its stated energy value. The custom option also supports ingredients or formulations that use a different documented energy factor. Real foods are mixtures rather than pure nutrients. To estimate the calories in a serving from a full macro breakdown, calculate protein, carbohydrate, fat, and alcohol separately, then add the results. Fiber and sugar alcohols may use different factors depending on the labeling rules and the specific compound. Organic acids can also contribute energy. That is why multiplying the total physical weight of a sandwich, fruit, or prepared meal by one factor is not reliable. Water, minerals, and many other components add weight without adding usable calories. The output is best treated as a transparent nutritional estimate. Manufacturers may use approved database values, ingredient-specific Atwater factors, serving-size rounding, and jurisdiction-specific labeling rules, so a package total can differ slightly from a simple macro calculation. For meal planning, fitness tracking, classroom exercises, and recipe development, the standard factors are usually appropriate and easy to audit. For clinical nutrition or a regulated product label, use verified composition data and the rules required by the relevant authority. This tool performs the arithmetic consistently while leaving the choice of nutrient and factor visible.

Grams to calories examples

Standard Atwater factors produce these common nutrition calculations.

InputCaloriesCalculation
25 g protein100 calories25 multiplied by 4
30 g carbohydrates120 calories30 multiplied by 4
10 g fat90 calories10 multiplied by 9
5 g alcohol35 calories5 multiplied by 7

How to convert grams to calories

  1. Enter the number of grams for one nutrient.
  2. Select protein, carbohydrates, fat, alcohol, or the custom option.
  3. If using a custom nutrient, enter its documented calories-per-gram factor.
  4. Select Calculate calories and read the result and applied factor.

Frequently asked questions

How many calories are in one gram of protein?

One gram of protein is commonly estimated at 4 calories. Ingredient-specific factors can vary slightly, but four is the standard food-label estimate.

How many calories are in one gram of fat?

One gram of fat provides about 9 calories. This higher energy density is why small amounts of fat can contribute substantially to a meal total.

Can I convert the total weight of food directly to calories?

Not accurately unless the food consists of a single known nutrient. Whole foods include water, minerals, fiber, and mixed macronutrients with different energy factors.

Why does a food label differ from my calculation?

Labels can use unrounded nutrient values, specific Atwater factors, and permitted serving-size rounding. Fiber, sugar alcohols, and organic acids may also be handled differently.

Are Calories and kilocalories the same on food labels?

Yes, the capitalized Calorie used in nutrition is one kilocalorie, or 1,000 small calories. This calculator reports the food-label meaning of calories.