Skip to content
ToolPaxaAll Tools for Everyone, in One Place.All calculators

Macro Calculator

Turn a calorie budget into protein, carbohydrate and fat grams, estimate maintenance energy, or convert macro grams back to calories. Compare daily and per-meal values.

Formula reference

P(g) = E × P% / 400 C(g) = E × C% / 400 F(g) = E × F% / 900

All formulas

E(kcal) = 4P(g) + 4C(g) + 9F(g)

E(kJ) = 4.184 E(kcal)

R = 10W(kg) + 6.25H(cm) − 5Age + s

s = +5 / −161; E = R × activity

E is kcal; P/C/F are protein/carbohydrate/fat percentages. Factors are 4/4/9 kcal per gram. R is resting energy, W kg, H cm and Age years; s=+5 for the published male coefficient or −161 for female. Maintenance is R times the selected activity factor; factors are assumptions, not measured activity. One thermochemical kcal=4.184 kJ.

Custom percentages must total 100. Inputs in grams calculate energy directly. Meals divide totals; no meal schedule is prescribed.

Your result

Turn a calorie budget into protein, carbohydrate and fat grams, estimate maintenance energy, or convert macro grams back to calories. Compare daily and per-meal values.

Your height, weight and results stay in this tab. They are not uploaded for calculation.

Macro Calculator — Methods and assumptions

Methods and assumptions

Choose an energy source. Enter kcal or kJ, or estimate maintenance with the simplified Mifflin–St Jeor equation and an explicit activity factor. Estimation uses shared cm/kg or inch/lb units; re-enter measurements when switching. Select an illustrative protein/carbohydrate/fat split or enter custom shares totaling exactly 100%. Gram conversion instead uses E=4 P+4 C+9 F. Choose 1–12 meals; the output divides the displayed daily grams with rounding adjustments so meals add back to each daily total.

Worked example

At 2,000 kcal and a 20/50/30 split, protein is 2000×20/400=100 g, carbohydrate 2000×50/400=250 g and fat 2000×30/900≈66.7 g. Macro energy is 400+1000+600=2000 kcal. Across three meals the displayed fat grams are 22.3, 22.2 and 22.2, totaling 66.7 g; the extra tenth is a rounding allocation, not meal-timing advice.

Scope and limits

Adult planning arithmetic, not an individual diet prescription. Not for children, pregnancy, breastfeeding, clinical feeding or treatment decisions. Maintenance estimation is limited to ages 19–78, matching the source study, and uses the unchanged shared energy engine. Presets, including lower-carbohydrate and keto examples, are illustrations, not endorsed diets. No automatic calorie deficit, weight-loss timetable or medical-suitability judgment. Alcohol, fibre, sugar alcohols and food-specific energy factors are not modeled separately; actual food-label energy can differ.

FAO — Food energy conversion factors · National Academies — Adult macronutrient reference ranges · Mifflin et al. (1990) — Resting energy equation · BIPM — SI units · NIST — Exact unit conversions

For a fuller explanation of your energy assumption, use the Calorie Calculator.

Common questions

How are macro grams calculated?

E is kcal; P/C/F are protein/carbohydrate/fat percentages. Factors are 4/4/9 kcal per gram. R is resting energy, W kg, H cm and Age years; s=+5 for the published male coefficient or −161 for female. Maintenance is R times the selected activity factor; factors are assumptions, not measured activity. One thermochemical kcal=4.184 kJ.

Are the presets personal diet recommendations?

Adult planning arithmetic, not an individual diet prescription. Not for children, pregnancy, breastfeeding, clinical feeding or treatment decisions. Maintenance estimation is limited to ages 19–78, matching the source study, and uses the unchanged shared energy engine. Presets, including lower-carbohydrate and keto examples, are illustrations, not endorsed diets. No automatic calorie deficit, weight-loss timetable or medical-suitability judgment. Alcohol, fibre, sugar alcohols and food-specific energy factors are not modeled separately; actual food-label energy can differ.

Why do some meals differ by 0.1 g?

At 2,000 kcal and a 20/50/30 split, protein is 2000×20/400=100 g, carbohydrate 2000×50/400=250 g and fat 2000×30/900≈66.7 g. Macro energy is 400+1000+600=2000 kcal. Across three meals the displayed fat grams are 22.3, 22.2 and 22.2, totaling 66.7 g; the extra tenth is a rounding allocation, not meal-timing advice.

The BMR Calculator explains resting energy, which is only one part of daily maintenance.

The Body Fat Calculator offers separate composition estimates; body-fat percentage alone does not establish a macro split.

For body-weight-based protein comparisons, use the Protein Calculator.

The Carbohydrate Calculator compares energy-based grams with the separate adult RDA benchmark.

The Fat Intake Calculator distinguishes energy-share ranges from WHO upper limits.