Turn a calorie target and macro percentages into grams of protein, carbs, and fat. Each macro’s calories (target × percent) divided by its calories-per-gram gives the grams to eat.
The example
2,000 kcal, 30% protein.
| A | B | |
|---|---|---|
| 1 | Macro | Grams |
| 2 | Protein 30% | 150 g |
| 3 | Fat 25% | 56 g |
The formula
The formula:
How it works
How it works:
- Calories per gram: protein and carbs = 4, fat = 9.
- Each macro’s grams =
calories × macro_percent / cal_per_gram. - The percentages should sum to 100% — check with SUM.
- Verify the grams convert back to the calorie target as a sanity check.
Educational use only. These are general Excel formulas for learning spreadsheet techniques — estimates only, not training, medical, or nutrition advice. Individual results vary; consult a qualified professional before acting on them.
Try it: interactive demo
Calories and macro percents.
Variations
Carbs grams
÷ 4:
Fat grams
÷ 9:
Protein per kg
By body weight:
Pitfalls & errors
4 vs 9. Protein/carbs are 4 kcal/g; fat is 9 — don’t use the same divisor.
Percents sum to 100%. Check before trusting the split.
Estimate only. Targets are a starting point, not nutrition advice.
Practice workbook
Frequently asked questions
How do I split calories into macros in Excel?
How many calories per gram?
How do I set protein by body weight?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class