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 macronutrient carries a fixed energy density: carbs and protein at 4 kcal/g, fat at 9 kcal/g. To turn a percentage into grams, take that share of your total calories and divide by the macro's factor. On a 2,000 kcal day with protein set to 30%, that's 2,000 × 0.30 ÷ 4 = 150 g. The same arithmetic runs for carbs and fat, and the three gram amounts should convert back to roughly your original calorie total.
Reading the common splits
40/30/30 (carbs/protein/fat) is a frequently used balanced starting point, shown as the default above. Lower-carbohydrate approaches shift grams from carbs to fat while holding protein steady; plans built around resistance training tend to raise the protein share instead. None of these is a fixed rule — they're starting patterns that get adjusted to the food someone actually likes eating and can sustain, and the percentages always need to add to 100%, which is what the "percentages add up to" result checks.
What a percentage split does not tell you
A ratio says nothing about food quality. Thirty percent of calories from fat could come from olive oil and fish or from fried food and pastry, and the macro split looks identical either way even though the health picture doesn't. The same is true of the carb share: whole grains, vegetables and fruit sit in the same bucket as refined sugar under this math. This calculator also inherits whatever error sits in the calorie number you enter — if that figure comes from a TDEE estimate, its own uncertainty carries straight through into every gram shown here.
Why there is no single best split
Research comparing different macro ratios at the same total calories and protein intake generally finds body composition outcomes are similar across a fairly wide range of carb-to-fat splits — total calories and adequate protein tend to matter more than the exact ratio between carbs and fat. That's part of why nutrition guidance offers a range rather than one number: a split that a person can actually stick to for months usually outperforms a theoretically ideal one abandoned after two weeks.
When macro composition needs professional input
For most healthy adults, macro splits are a flexible framework, not a medical instruction. That changes for certain conditions: diabetes management often involves carbohydrate counting tied to medication, kidney disease can require protein limits, and other metabolic or digestive conditions may call for a specific ratio for medical reasons. In any of those cases, the split should come from a registered dietitian or physician working from your actual health history, not from a general calculator built for the general population.
Informational and educational result. Not a substitute for professional advice.
Frequently asked questions
Sources
- Atwater factors — energy density of macronutrients
- U.S. Dietary Guidelines for Americans — macronutrient distribution ranges
- National Academies — Dietary Reference Intakes for 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.
CalculateCalorie 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.
CalculateBMR
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.
Calculate1RM
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.
Calculate