Calculating Macros: Protein, Fat, and Carbs
Learn how to calculate macros from calorie targets, body weight, and common macro splits for maintenance, fat loss, and muscle gain.
Reviewed against our editorial policy and updated when formulas, thresholds, or guidance materially change. Learn more about AYCalculator.
Searching calculating macros usually means you want daily targets for protein, fat, and carbohydrates. Macronutrients are the three energy-providing nutrients in food. Getting the right balance can support fat loss, muscle gain, athletic performance, or simply eating more intentionally. The math is straightforward once you have a calorie target.
Calories Per Gram
Each macronutrient provides a fixed number of calories:
| Macro | Calories per gram |
|---|---|
| Protein | 4 |
| Carbohydrates | 4 |
| Fat | 9 |
Fat has more than twice the calories per gram compared to protein or carbs. This is why high-fat foods are calorie-dense even in small portions.
Step 1: Set Your Total Calorie Target
Your macro calculation starts with a calorie number. The most common starting point is your TDEE (total daily energy expenditure) โ the estimated number of calories you burn per day.
- To maintain weight: eat near TDEE
- To lose fat: eat 300โ500 calories below TDEE
- To gain muscle: eat 200โ400 calories above TDEE
Use the TDEE Calculator to estimate your maintenance calories based on age, sex, weight, height, and activity level.
Step 2: Set Protein
Protein is usually set first because it protects muscle during fat loss and supports recovery during training.
Common protein targets:
| Goal | Grams per kg body weight |
|---|---|
| General maintenance | 0.8โ1.0 g/kg |
| Fat loss / muscle preservation | 1.6โ2.2 g/kg |
| Muscle gain | 1.6โ2.0 g/kg |
| Athletes in heavy training | Up to 2.4 g/kg |
Example: A 75 kg person at 2.0 g/kg needs:
75 ร 2.0 = 150 g protein
Calories from protein: 150 ร 4 = 600 calories
Step 3: Set Fat
Fat supports hormone production, vitamin absorption, and satiety. A minimum fat intake is generally around 0.5โ1.0 g per kg body weight, though many people prefer more.
Example: Same 75 kg person at 0.8 g/kg:
75 ร 0.8 = 60 g fat
Calories from fat: 60 ร 9 = 540 calories
Step 4: Fill Remaining Calories with Carbs
After setting protein and fat calories, use what remains for carbohydrates.
Example:
Total calorie target: 2,400 calories
- Protein: 600 calories (150 g)
- Fat: 540 calories (60 g)
- Remaining for carbs: 2,400 โ 600 โ 540 = 1,260 calories
Carbs: 1,260 / 4 = 315 g carbs
Full Macro Profile for 2,400 Calories
| Macro | Grams | Calories | % of Diet |
|---|---|---|---|
| Protein | 150 | 600 | 25% |
| Fat | 60 | 540 | 22.5% |
| Carbs | 315 | 1,260 | 52.5% |
| Total | โ | 2,400 | 100% |
Common Macro Splits
If you prefer a preset percentage split, here are popular approaches:
| Approach | Protein | Fat | Carbs |
|---|---|---|---|
| Moderate (general) | 25% | 30% | 45% |
| High protein (fat loss) | 35% | 30% | 35% |
| Low carb / keto | 25% | 65% | 10% |
| High carb (endurance) | 20% | 20% | 60% |
Using percentage splits:
If you eat 2,200 calories at 30% protein:
2,200 ร 0.30 = 660 calories from protein
660 / 4 = 165 g protein
Adjusting Macros Over Time
Macros are a starting point, not a permanent prescription. Adjust if:
- You are not losing or gaining weight after 2โ4 weeks
- Your energy is too low (often a carb or calorie issue)
- You are not recovering well from workouts (often a protein or total calorie issue)
- You consistently struggle to hit a specific macro (adjust the split slightly)
Small adjustments (10โ20 g at a time) are easier to manage than large changes.
Tracking Macros Practically
Macro tracking works best when you:
- Weigh or measure food portions at home
- Use a food diary or app to log meals
- Batch cook proteins and starches to simplify daily hitting
You do not need to hit every number exactly. Most nutritionists suggest staying within ยฑ5 g protein, ยฑ10 g carbs, and ยฑ5 g fat of your targets.
Common Macro Mistakes
Skipping fat too aggressively โ very low-fat diets (under 20% of calories) can disrupt hormone production and make the diet harder to sustain.
Underestimating protein needs during a cut โ protein needs tend to increase when you are in a calorie deficit, not decrease.
Treating macros as fixed forever โ maintenance calories and optimal macro splits change as body weight, activity level, and goals change.
Adding exercise calories without accounting for them โ if you burn significantly more on training days, some approaches suggest adjusting carbs up on those days.
The Bottom Line
To calculate macros, start with your calorie target, assign protein (based on body weight), set fat at a minimum functional level, and use remaining calories for carbs. Track for 2โ4 weeks and adjust based on results.
Use the TDEE Calculator to estimate the calorie starting point, then apply the macro formula above to build your daily targets.
Informational note: Macro recommendations can vary based on medical conditions, medications, pregnancy, and individual metabolism. For personalized nutrition guidance, consult a registered dietitian.
How to Calculate: Step-by-Step Guide
Set calorie target
Start with your maintenance, fat-loss, or muscle-gain calories.
Choose protein and fat targets
Set protein and fat first, often using body weight and a minimum fat intake.
Fill the rest with carbs
Use the remaining calories for carbohydrate grams.