DDMRS Health
Free tools · Clear methods

Macro calorie calculator

Add up estimated energy from protein, carbohydrate, and fat amounts you enter.

Enter your amounts

Example values are prefilled. Replace them to calculate.

Uses the simplified 4–4–9 kcal/g convention. Not a recommended macro split or a complete food-label calculation. Read the method.

Illustrative example

Energy from entered macros

—
Calculations run in your browserFormula shownNo account required by the calculator
DMRS Health · Original, AI-assisted educational content · 16 September 2026

Understand the macro energy total

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.

The calculation

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.

Using the result

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.

Make all three inputs describe the same quantity

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.

Follow the 4–4–9 calculation

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.

Fictional portion: 8 g protein, 22 g carbohydrate, 6 g fat
ComponentGramsFactorEstimated energy
Protein84 kcal/g32 kcal
Carbohydrate224 kcal/g88 kcal
Fat69 kcal/g54 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.

When a label total does not match

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.

Understand a percentage without treating it as a target

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.

A short practice exercise

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.

Frequently asked questions

Can this tool create a personal macro plan?

No. It totals energy from gram amounts you supply. It does not calculate recommended grams or percentages.

Why does my food label show a different total?

The label may account for other energy-yielding components, use more specific factors, or round inputs. Check serving sizes before comparing.

Can I enter percentages?

No. The fields expect grams. A percentage describes a proportion and is not interchangeable with a gram amount.

Do nutrient grams need to add up to the weight of the food?

No. Food can contain water and other components. Do not add invented nutrient amounts to balance the portion weight.

Is a component’s share of grams the same as its share of calories?

Not necessarily. The simplified energy factor for fat differs from the factors for protein and carbohydrate.

Go beyond the result

Understand the numbers.

Browse all ten guides →