Macro Calculator
This macro calculator converts a daily calorie budget and chosen carbohydrate, protein and fat percentages into grams. It uses 4 kcal per gram for carbohydrate and protein and 9 kcal per gram for fat, with all three percentages required to total 100%.
By Dr. Hassan Khames EliwaLast updated
Result
- Protein
- 100.0 g/day
- Fat
- 66.7 g/day
- Carbohydrate: 1,000 (50.0%)
- Protein: 400 (20.0%)
- Fat: 600 (30.0%)
How it works
Energy percentages are not gram percentages
Start with a calorie budget you already have a reason to use. For each nutrient, multiply total calories by its percentage divided by 100. Divide carbohydrate calories by 4, protein calories by 4 and fat calories by 9. The resulting gram amounts describe an approximate energy allocation, not a complete menu or an assessment of diet quality.
The 4–4–9 factors are conventional general energy factors reflected in nutrition-labelling rules. Actual metabolizable energy can differ with food composition and digestibility. Fibre, sugar alcohols, alcohol and label rounding can make a food diary disagree with a simple three-nutrient calculation. Alcohol supplies energy but is not represented in this tool’s three-way split, so an alcohol-containing diet cannot be reconstructed perfectly with these inputs alone.
Put the split in context
The National Academies’ adult acceptable macronutrient distribution ranges are 45–65% of energy from carbohydrate, 10–35% from protein and 20–35% from fat. These are population reference ranges, not a personalized prescription or a requirement to pick the midpoint. The calculator deliberately accepts other mathematically valid splits so it can illustrate the arithmetic; acceptance does not mean a split is nutritionally appropriate.
A 20% protein share at a low calorie intake can supply fewer grams than a person expects. Compare the resulting protein amount with body weight, training and clinical needs rather than assuming one percentage works for everyone. The same percentage can imply very different food quantities at different energy intakes.
What the chart represents
The pie chart shows calories, not grams. Fat occupies its energy share even though its gram quantity is smaller because each gram carries more than twice the energy of carbohydrate or protein. No metric/imperial selector is needed: grams and kilocalories are the standard units used here regardless of how body weight is measured.
The form accepts 500–10,000 kcal as a broad arithmetic boundary. Those endpoints are not recommended intakes. Percentages must each be between zero and 100 and sum to 100, allowing only a tiny numerical tolerance. A zero share is permitted for demonstration, not endorsed as a safe long-term eating pattern.
Worked example
Example 1: a 50/20/30 allocation
At 2,000 kcal/day, carbohydrate receives 1,000 kcal, protein 400 kcal and fat 600 kcal. Dividing by the respective factors produces 250.0 g/day carbohydrate, 100.0 g/day protein and 66.7 g/day fat. The pie slices contain 1,000, 400 and 600 kcal. The unrounded fat value is 66.666… g, so multiplying the displayed value by nine introduces a small rounding difference.
Example 2: a higher-energy split
At 2,400 kcal/day with 45% carbohydrate, 25% protein and 30% fat, the energy allocations are 1,080, 600 and 720 kcal. The output is 270.0 g/day carbohydrate, 150.0 g/day protein and 80.0 g/day fat. These are calculation examples, not meal recommendations for a particular person.
Expert tips
Common mistakes
- Typing 50, 30 and 30 and expecting automatic normalization. The calculator rejects a 110% total rather than silently changing your intended choices.
- Comparing a fat gram directly with a carbohydrate gram as though they carry the same energy. Their different conversion factors are the point of the calculation.
- Using the result to manage diabetes, kidney disease or an eating disorder without clinical advice. Medical nutrition decisions require more context than percentages alone.
Not medical advice — talk to a clinician. These are screening estimates from published equations. They don't account for your medical history, medication or body composition. Use them to start a conversation with a doctor or dietitian.
Frequently asked questions
Does this determine my calorie needs?
No. Calories are an input. A maintenance estimate can provide context, but health history and the purpose of the eating plan still matter.
Why must the shares total 100%?
The tool assigns the full calorie budget to three nutrients. A lower total leaves energy unallocated; a higher total allocates more energy than the budget contains.
Are these the best macro percentages?
There is no universal best split. Dietary reference ranges provide context, while preferences, activity and medical needs influence an appropriate individual plan.
Why do labels not add up exactly?
Rounding, fibre, sugar alcohols and food-specific energy factors can cause differences. This calculator uses the general 4–4–9 convention rather than reproducing every label rule.
Can I use this during pregnancy?
The arithmetic still works, but choosing energy and nutrient targets during pregnancy or breastfeeding needs individualized professional guidance. This tool does not assess adequacy for those circumstances.
Related calculators
Related guides
Fitness & HealthTDEE and macros: build an adjustable nutrition planEstimate daily energy needs, translate calories into protein, fat and carbohydrate, and adjust from real trends rather than false precision.14 November 2026 · 8 min read
Fitness & HealthHow many calories do you need? BMR vs TDEEBMR describes baseline energy use. TDEE includes daily life. Confusing them can turn a reasonable calorie estimate into an unsuitable target.14 November 2026 · 7 min read
Fitness & HealthBMI: what it tells you and where it misleadsBMI is a useful screening measurement, but it cannot identify body fat, explain weight changes, or diagnose an individual's health.14 November 2026 · 7 min readSources and standards
About the author
Dr. Hassan Khames Eliwa holds a PhD in Construction & Built Environment and has more than 20 years of international project controls experience. He is Director of Eliwa Project Controls Limited in Auckland and founder of PMMilestone.org and PMMilestone.com.
Buy me a coffee