Macro Calculator
Turn estimated maintenance calories into daily grams of protein, fat and carbohydrate from your age, sex, height, weight, activity and chosen percentages.
Macro Calculator
Background.
Counting macros means tracking where your calories come from, not just how many there are: grams of protein, fat and carbohydrate each day. A target takes two steps, and both happen on this page. First you need an estimate of the energy you burn in a day; then that total is shared out among the three macronutrients in proportions you pick.
The energy estimate starts with the Mifflin-St Jeor equation, published in 1990, which predicts resting energy expenditure from weight, height, age and sex. Multiplying it by an activity factor gives maintenance calories, roughly what you would eat to hold your weight steady. The factor is 1.2 for a mostly seated day, and 1.55 is the figure conventionally used for moderate exercise three to five days a week.
Sharing out is where units start to matter. Protein and carbohydrate supply about 4 kcal per gram and fat about 9, so the same 30% of calories buys fewer than half as many grams of fat as of protein. You set the protein and fat percentages; carbohydrate takes whatever is left.
Because percentages scale with total calories, they can hide big numbers. A 30% protein share sounds moderate, yet for a moderately active 80 kg man it comes to about 204 g a day, 2.55 g for every kilogram of body weight and more than three times the 0.8 g/kg recommended dietary allowance for adults. If you think about protein per kilogram, check the gram figure, not the percentage.
The targets are for maintenance. No deficit for weight loss or surplus for gaining is applied, alcohol is not counted, and fibre is treated like any other carbohydrate even though it yields less energy. Conditions such as kidney disease or diabetes change what a sensible split looks like, and that is a conversation for a doctor or dietitian.
What is macro calculator?
Macronutrients are the three nutrients that supply most of the energy in food: protein, fat and carbohydrate. A macro target expresses a daily calorie budget as grams of each, using the standard energy values of 4 kcal per gram for protein and carbohydrate and 9 kcal per gram for fat. Here the budget is maintenance energy, the Mifflin-St Jeor resting estimate multiplied by an activity factor, and the carbohydrate target is whatever is left once the protein and fat shares are taken out.
How to use this calculator.
- Choose the male or female constant, then enter your age (18 to 100), height in centimetres and weight in kilograms. The sex setting changes only one constant in the resting-energy equation: +5 for male, −161 for female.
- Enter an activity factor: 1.2 if you mostly sit, 1.375 for light exercise one to three days a week, 1.55 for moderate exercise three to five days, 1.725 for hard exercise six or seven days. If in doubt, take the lower value, because the factor multiplies everything else.
- Enter the share of calories you want from protein and from fat. Together they cannot exceed 100%; carbohydrate receives the remainder automatically.
- Read maintenance calories and the three gram targets. Divide the protein grams by your weight to see what the percentage means per kilogram, and adjust the split if that looks too high or too low.
The formula.
Resting energy (kcal/day) = 10 × weight (kg) + 6.25 × height (cm) − 5 × age (years) + s, where s is +5 with the male constant and −161 with the female one. Maintenance calories = resting energy × activity factor. Protein grams = maintenance × protein% ÷ 4; fat grams = maintenance × fat% ÷ 9; carbohydrate grams = (maintenance − protein calories − fat calories) ÷ 4. Weight carries the largest coefficient: each extra kilogram adds 10 kcal of resting energy, or 15.5 kcal of maintenance at a 1.55 factor, and each extra year takes 5 away. The activity factor scales the whole answer, so moving from 1.55 to 1.725 raises maintenance by about 11%, typically a bigger shift than any likely error in height or age. The divisors 4, 9 and 4 are the Atwater energy factors.
A worked example.
Take a 35-year-old man, 180 cm tall, weighing 80 kg, who exercises moderately (activity factor 1.55) and wants 30% of calories from protein and 30% from fat. Resting energy is 10 × 80 + 6.25 × 180 − 5 × 35 + 5 = 800 + 1,125 − 175 + 5 = 1,755 kcal. Maintenance is 1,755 × 1.55 = 2,720.25 kcal a day. Protein gets 30% of that, 816.075 kcal, which at 4 kcal per gram is 204.02 g. Fat gets the same 816.075 kcal, but at 9 kcal per gram that is only 90.68 g. The remaining 40%, 1,088.1 kcal, becomes 272.03 g of carbohydrate. Drop protein to 20% and the target falls to 136.01 g, about 1.7 g per kilogram, with the extra 10% moving to carbohydrate.
Frequently asked questions.
Why is my protein target so high?
How do I get macros for losing weight rather than maintaining it?
What split between protein, fat and carbohydrate is reasonable?
How much does choosing the female constant change the result?
How close will Mifflin-St Jeor be to my real calorie needs?
Do alcohol and fibre count toward the macros?
References& sources.
- [1]Mifflin et al.. American Journal of Clinical Nutrition 1990. Resting energy expenditure prediction equation. Retrieved 2026-08-06.
- [2]U.S. National Institutes of Health. Health information current 2026. Evidence-based health measurement context. Retrieved 2026-08-06.
- [3]U.S. National Library of Medicine. PubMed record current 2026-08-06. Indexed derivation and validation literature. Retrieved 2026-08-06.
How this page was produced
- Published by
- Quanta Calculator
- Overseen by
- Daniel, Quanta Calculator Researcher
- Primary sources
- 3 cited below
- Method
- Mifflin-St Jeor maintenance calories split at 4 kcal/g protein, 9 kcal/g fat and 4 kcal/g carbohydrate
- Published
- Last verified
Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 1560 calculators remain free
- No billing is enabled