Food Calorie Calculator

Estimate calories from grams of carbohydrate, protein, fat and alcohol using the Atwater general factors.

Enter grams of carbohydrate, protein, fat, optional alcohol, and servings to estimate calories from those nutrients.

Nutrients per serving or batch

Grams from the nutrition label or recipe. This page converts grams to calories; it does not look a food up for you.

Servings

Enter the grams for the whole batch and how many servings it makes, or the grams for one serving and leave this at 1.

Results

Food calorie calculator: grams to calories

This is a calculator for calories in food, working from the macronutrient grams you enter rather than from a product name. Give it carbohydrate, protein and fat in grams, optionally alcohol, and a serving count, and it reports calories per serving and for the batch as a whole.

Used as a calorie calculator food side of a nutrition label, it answers the question a label already half-answers: you have the grams, and you want the energy they represent. To calculate calories of food this way needs no database, because the arithmetic is fixed.

It also works as a kcal calculator for food in either direction: enter one serving to check a single portion, or a whole recipe with its serving count to get both figures at once.

How this food-calorie calculator works

The route multiplies carbohydrate and protein grams by 4 kcal each, fat grams by 9 kcal each, and optional alcohol grams by 7 kcal each. It then reports both the per-serving and total calories using the serving count you enter.

These are the Atwater general factors, and the accepted ranges are:

Energy factor and accepted gram range for each nutrient
NutrientEnergy factorAccepted range
Carbohydrate4 kcal per gramUp to 500 g
Protein4 kcal per gramUp to 500 g
Fat9 kcal per gramUp to 300 g
Alcohol7 kcal per gramOptional, up to 300 g

Worked through: 30 g carbohydrate, 25 g protein and 12 g fat is 120 plus 100 plus 108, which is 328 kcal. Split across two servings, that is 164 kcal each.

What this estimate leaves out

This page does not look up a branded food, ingredient database, fiber adjustment, sugar alcohol method, or cooking-loss change on its own. It only converts the nutrient grams you provide.

That also makes it a different tool from a calorie counter: to calculate calories food by food across a day, you would need the grams for each item first. This page is the conversion step, not the tracking one.

Sources and limitations

Sources reviewed 27 August 2026. This is a standard nutrient-to-energy conversion tool and not a substitute for a food-label or lab analysis.

If what you want is a daily intake target rather than the energy in one food, the calorie calculator estimates that from your body and activity, and the macro calculator divides a target into grams.

Frequently asked questions

Does this know the calories in a whole food by itself?

No. It only totals calories from the grams of carbohydrate, protein, fat, and optional alcohol you enter, using standard energy factors.

How do I calculate calories in food?

Multiply the grams of each macronutrient by its energy factor and add them up: carbohydrate and protein at 4 kcal per gram, fat at 9, alcohol at 7. A food with 20 g carbohydrate, 10 g protein and 5 g fat is 80 plus 40 plus 45, which is 165 kcal. That is exactly what this calculator for calories in food does.

Where do I find the grams to enter?

From the nutrition label, a recipe breakdown, or a food database entry. This page converts grams to calories; it does not look the grams up for you, which is the one thing that separates it from a calorie counter app.

Why does my total differ from the label?

Labels may use specific Atwater factors for particular foods rather than the general 4/4/9 values, and they may treat fibre and sugar alcohols differently. Rounding on the label adds more. A small gap between this estimate and a printed figure is expected and does not mean either is wrong.

How does the serving count work?

Enter the grams for the whole batch and the number of servings it makes, and the page reports both the total and the per-serving figure. Enter the grams for a single serving and set servings to one to get that serving alone.

Does this handle fibre?

No. It applies the general factors to the carbohydrate grams you enter, without subtracting fibre or applying a separate factor to it. If your source reports net carbohydrate, enter the figure you actually want counted.

Related calculators