Calculate energy from protein, carbohydrate, and fat
Use the 4–4–9 convention and understand why a label may not match the simplified total.
Read the guide →Add up estimated energy from protein, carbohydrate, and fat amounts you enter.
Example values are prefilled. Replace them to calculate.
The calculator multiplies protein and carbohydrate grams by 4, fat grams by 9, and adds the three products. It uses the simplified energy factors described in the FAO reference on food-energy factors.
For example, 20 g protein contributes 80 kcal, 30 g carbohydrate contributes 120 kcal, and 10 g fat contributes 90 kcal. The combined total is 290 kcal. These inputs are fictional examples, not recommended amounts or ratios.
Enter all three gram amounts for the same serving. This simplified total may differ from a real food label because of fibre, polyols, alcohol, rounding, or more specific factors. It is an arithmetic aid, not a method for deciding what you should eat.
Protein, carbohydrate, and fat values must refer to the same portion for their energy contributions to be added coherently. If protein is listed per 100 g and fat is listed per serving, convert them to a common basis first. The calculator cannot detect that mismatch from three plausible-looking numbers.
For a fictional 50 g portion with 8 g protein, 22 g carbohydrate, and 6 g fat, the energy terms are 32, 88, and 54 kcal. The simplified total is 174 kcal. If you analyse twice that amount of the same product, enter 16, 44, and 12 grams; the total becomes 348 kcal.
Doubling every input is a useful arithmetic check. It should double the result. Changing only one nutrient should change only its corresponding contribution in the breakdown. This makes the result table more useful than a single unexplained calorie total.
The general convention used here assigns 4 kcal per gram of protein, 4 per gram of carbohydrate, and 9 per gram of fat. The FAO discussion of food-energy factors explains that general factors are a simplification and that more detailed systems also exist.
| Component | Grams | Factor | Estimated energy |
|---|---|---|---|
| Protein | 8 | 4 kcal/g | 32 kcal |
| Carbohydrate | 22 | 4 kcal/g | 88 kcal |
| Fat | 6 | 9 kcal/g | 54 kcal |
| Total | — | — | 174 kcal |
The total grams of the three nutrients do not need to equal the total weight of a food. A food can contain water and other components. Do not invent missing nutrient grams merely to make the numbers add to the portion’s weight.
First compare the serving basis. Then check the entered units: grams of fat are not the same as calories from fat, and nutrient percentages are not gram amounts. Check whether you copied a per-package column or a per-serving column. These bookkeeping issues can explain a discrepancy before considering more detailed food-energy conventions.
The simplified tool does not separately model alcohol, fibre, sugar alcohols, or food-specific energy factors. Labels may also round nutrient amounts and energy values. As a result, multiplying three displayed gram values by 4, 4, and 9 will not always reproduce the stated energy exactly. A mismatch is not enough to conclude that a label is inaccurate.
Use the food’s actual labelling information for a product-specific decision. This page is helpful for learning the general arithmetic and checking that inputs were handled consistently. It is not a laboratory analysis of a food and does not replace the manufacturer’s complete nutrition information.
If you want to understand the composition of an illustrative total, divide one component’s calories by the combined calories and multiply by 100. In the 174 kcal example, the fat contribution is 54 ÷ 174 × 100, approximately 31.03%. That is a description of the example, not a recommended percentage for a person.
A gram share and an energy share are different. Fat has a different factor from protein and carbohydrate in this simplified convention, so its share of grams does not equal its share of energy. Keep the word “grams” or “calories” in any percentage label to make clear what was divided.
The calculator intentionally asks for gram amounts rather than a desired macro split. It does not infer a personal eating plan from age, weight, an activity label, or a chosen goal. For personalised nutrition, especially in a clinical setting, use advice from an appropriately qualified professional.
Enter 15 g protein, 40 g carbohydrate, and 5 g fat. Before calculating, work out the three contributions: 60, 160, and 45 kcal. The total is 265 kcal. Now increase only fat to 7 g. The additional 2 g adds 18 kcal, making the total 283.
Reset the example and check that the displayed label changes back to an illustrative result. This avoids treating the defaults as personal recommendations. You can repeat the exercise using other invented inputs without entering any information about your own body or diet.
For a written explanation, include the common serving basis, the three gram amounts, the energy factors, and the final total. Someone else can then reproduce the arithmetic and identify exactly where a disagreement begins. That is the practical value of a transparent macro calculator.
No. It totals energy from gram amounts you supply. It does not calculate recommended grams or percentages.
The label may account for other energy-yielding components, use more specific factors, or round inputs. Check serving sizes before comparing.
No. The fields expect grams. A percentage describes a proportion and is not interchangeable with a gram amount.
No. Food can contain water and other components. Do not add invented nutrient amounts to balance the portion weight.
Not necessarily. The simplified energy factor for fat differs from the factors for protein and carbohydrate.
Use the 4–4–9 convention and understand why a label may not match the simplified total.
Read the guide →Follow a complete Mifflin–St Jeor example and see exactly what the calculator can—and cannot—tell you.
Read the guide →Separate resting-energy estimates from activity scenarios before comparing calorie numbers.
Read the guide →