Food Calorie Calculator
Calories in a food, meal or recipe from grams of carbohydrate, protein, fat and alcohol using the Atwater factors, with the share each nutrient contributes.
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:
| Nutrient | Energy factor | Accepted range |
|---|---|---|
| Carbohydrate | 4 kcal per gram | Up to 500 g |
| Protein | 4 kcal per gram | Up to 500 g |
| Fat | 9 kcal per gram | Up to 300 g |
| Alcohol | 7 kcal per gram | Optional, 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
Is this a calorie counter app, and does it 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. Use it to find the calories in a food from its nutrition label: enter the protein, carbohydrate, fat and alcohol per serving and the number of servings, and it gives the total calories.
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.
Can I use this as a recipe calorie calculator?
Yes, if you have the macronutrient grams. Add up the carbohydrate, protein, fat and alcohol across all the ingredients from their labels, enter the totals, and the page returns the calories for the whole recipe; divide by the number of servings for the per-portion figure. A recipe calorie calculator that works from ingredient names needs a food database and makes assumptions about portions; this one asks for grams instead, which is slower to set up but exact for the ingredients you actually used.
Can this work as a meal calorie calculator or a food calories chart?
As a meal calorie calculator, yes: add the grams across everything on the plate and enter the totals. As a food calories chart, no, because the page holds no food database; it converts grams of the four energy nutrients into calories and nothing else. If you want typical values for common foods, use the nutrition label or a national food composition table, then bring the grams here for the arithmetic.