Macro Calculator
Once you know your daily calories, the next step is splitting them across the three macronutrients — carbs, protein and fat. Enter your calories and a ratio to see the grams of each.
Your numbers
Result
- Carbsgrams/day
- 200
- Fatgrams/day
- 67
- Percentages add up toshould be 100%
- 100%
| Macronutrient | % of calories | Grams/day |
|---|---|---|
| Carbs (4 kcal/g) | 40% | 200 |
| Protein (4 kcal/g) | 30% | 150 |
| Fat (9 kcal/g) | 30% | 67 |
How calories become grams
Each macro has an energy density: carbs and protein have 4 kcal/g and fat has 9 kcal/g. Take each macro's share of the calories and divide by its value: on a 2,000 kcal diet with 30% protein, that is 2,000 × 0.30 ÷ 4 = 150 g of protein.
Common splits
A balanced default is 40/30/30 (carbs/protein/fat). Low-carb diets cut carbs and raise fat; muscle-gain plans push protein (1.6–2.2 g/kg of body weight) and carbs. The three should always add to 100% — the result flags it if they do not.
What to prioritize
Protein is usually the macro to anchor first: it protects muscle while losing fat and supports gaining it. Carbs fuel training; fat is essential for hormones. Beyond hitting protein, the exact carb/fat split is mostly preference — the ratio you can stick to beats the "perfect" one.
Informational and educational result. Not a substitute for professional advice.
Frequently asked questions
Sources
- Atwater factors — energy density of macronutrients
Embed this calculator
Copy the code and paste it into your site or blog. Credit with a link back to Contania is included, and the height adjusts itself.
<iframe src="https://contania.app/embed/health/macros" title="Macro Calculator — carbs, protein and fat in grams" width="100%" height="720" loading="lazy" style="border:1px solid #e5e0d8;border-radius:12px;max-width:640px"></iframe>
<script>window.addEventListener("message",function(e){if(e.data&&e.data.type==="contania:embed-height"){var f=document.querySelector('iframe[src="https://contania.app/embed/health/macros"]');if(f){f.style.height=e.data.height+"px"}}});</script>Related calculators
TDEE
Calculate your TDEE (total daily energy expenditure) from your BMR and activity level, and get the daily calorie target to lose, maintain or gain weight.
CalculateHealth & FitnessCalorie Deficit
Find the daily calories to lose weight at the rate you choose. The calculator works out your maintenance (TDEE) and the deficit for 0.25 to 1 kg a week.
CalculateHealth & FitnessBMR
Calculate your BMR (basal metabolic rate) with the Mifflin-St Jeor equation — the calories your body burns at rest — and see your daily burn at each activity level.
CalculateHealth & Fitness1RM
Estimate your one-rep max (1RM) from a weight and the reps you did, using the Epley formula — plus the training loads at each percentage of your 1RM.
CalculateHealth & FitnessRunning Pace
Find your running pace per mile and per kilometer from a distance and a finish time, plus your speed — and predicted times for the 5K, 10K, half and full marathon.
CalculateHealth & FitnessSleep
Find the best time to go to bed for your wake-up time. Works backwards in 90-minute sleep cycles so your alarm lands between cycles, not in the middle of deep sleep.
Calculate