Macro Calculator

Health & Fitness

Calculate daily protein, carbs, and fat

Counting calories tells you how much you're eating, but macros — protein, carbohydrates, and fat — tell you what that food is actually doing for your body. Two people eating the same 2,000 calories can have wildly different results depending on whether those calories come mostly from protein and vegetables or mostly from refined carbs and fat, especially for goals like building muscle, preserving lean mass while cutting, or supporting athletic performance.

Our macro calculator converts your total daily calorie target and a chosen macro split (like 40% carbs, 30% protein, 30% fat) into exact gram targets for each macronutrient. It uses the standard conversion factors of 4 calories per gram for both protein and carbohydrates, and 9 calories per gram for fat — the same figures used on nutrition labels and by registered dietitians.

Whether you're following an IIFYM ("if it fits your macros") approach, prepping for a physique goal, or just want a clearer nutritional target than "eat less," this calculator gives you specific numbers you can track with any food-logging app.

Why Macro Calculator Matters

Macro targets translate a calorie goal into an actionable, trackable eating plan, and getting the split right matters for several distinct goals.

Muscle preservation and growth: Protein is the building block for muscle repair and growth, and inadequate intake undermines both muscle-building and fat-loss goals. Higher-protein targets (roughly 0.7-1 gram per pound of bodyweight) are consistently recommended for people strength training, regardless of whether the overall goal is cutting or bulking.

Satiety and diet adherence: Protein and fiber-rich carbs are more satiating per calorie than refined carbs or fat, so macro splits that prioritize protein tend to make calorie deficits easier to sustain without constant hunger.

Performance and energy: Endurance athletes typically need a higher carbohydrate percentage to fuel glycogen stores, while a very low-carb split can hurt performance in longer training sessions. Matching macro splits to activity type, not just body-composition goals, improves both training quality and recovery.

The Macro Calculator Formula, Explained

Protein (g) = (Calories × Protein%) / 4; Carbs (g) = (Calories × Carb%) / 4; Fat (g) = (Calories × Fat%) / 9

Where: Calories = your total daily calorie target (from a calorie or TDEE calculator), Protein%, Carb%, and Fat% = the percentage of total calories allocated to each macronutrient (must sum to 100%). Protein and carbohydrates each provide 4 calories per gram, while fat provides 9 calories per gram — roughly twice as calorie-dense, which is why fat gram targets are always noticeably smaller than protein or carb targets at the same calorie allocation. Common splits include a balanced 40/30/30 (carb/protein/fat) for general fitness, a higher-protein 40/40/20 for cutting phases to preserve muscle in a deficit, and a higher-carb 50/25/25 for endurance athletes needing more glycogen. For muscle-building goals specifically, many coaches recommend setting protein directly from bodyweight (0.7-1 gram per pound) first, then splitting remaining calories between carbs and fat.

How to Use the Macro Calculator: Step by Step

  1. Determine your total daily calories

    Use a calorie or TDEE calculator to find your maintenance calories, then adjust for your goal — a deficit (e.g., 500 calories below maintenance) for weight loss or a surplus for muscle gain.

  2. Choose a macro split

    Select a percentage split appropriate for your goal: balanced (40/30/30 carb/protein/fat) for general health, higher-protein (40/40/20) for cutting, or higher-carb (50/25/25) for endurance training.

  3. Enter your calorie target and percentages

    Input your total daily calories and the three percentages, making sure protein, carb, and fat percentages sum to 100%.

  4. Review your gram targets

    The calculator converts each percentage into daily gram targets for protein, carbohydrates, and fat using the 4/4/9 calorie-per-gram conversion.

  5. Adjust for bodyweight-based protein needs

    If building or preserving muscle, cross-check that your protein gram target meets 0.7-1 gram per pound of bodyweight; increase the protein percentage if it falls short.

Macro Calculator Examples: Real-World Scenarios

1

Balanced Maintenance Split

Elena wants to maintain her current weight and uses a balanced 40% carb / 30% protein / 30% fat split on a 2,000 calorie target.

Total calories:2,000
Split:40% carb / 30% protein / 30% fat

Calculation

Carbs: 2000 × 0.40 / 4 = 200 g. Protein: 2000 × 0.30 / 4 = 150 g. Fat: 2000 × 0.30 / 9 = 66.67 g

Result

Daily targets: 200 g carbs, 150 g protein, 66.7 g fat (totaling 2,000 calories).

2

Higher-Protein Cutting Split

Devon is cutting on a 2,500 calorie target and uses a higher-protein 40% protein / 40% carb / 20% fat split to preserve muscle in a deficit.

Total calories:2,500
Split:40% protein / 40% carb / 20% fat

Calculation

Protein: 2500 × 0.40 / 4 = 250 g. Carbs: 2500 × 0.40 / 4 = 250 g. Fat: 2500 × 0.20 / 9 = 55.56 g

Result

Daily targets: 250 g protein, 250 g carbs, 55.6 g fat (totaling 2,500 calories).

3

Bodyweight-Based Protein for Muscle Building

A 180 lb lifter targets 0.8 g of protein per pound of bodyweight, with the remaining calories from a 2,200 calorie total split evenly between carbs and fat by calories.

Bodyweight:180 lb
Protein target:0.8 g/lb
Total calories:2,200

Calculation

Protein: 0.8 × 180 = 144 g (= 576 cal). Remaining calories: 2200 − 576 = 1624 cal, split 50/50 = 812 cal each. Carbs: 812 / 4 = 203 g. Fat: 812 / 9 = 90.2 g

Result

Daily targets: 144 g protein, 203 g carbs, 90.2 g fat (totaling 2,200 calories).

Common Mistakes to Avoid

  • Forgetting that fat has 9 calories per gram, not 4 — plugging fat into the same conversion as protein and carbs will produce a fat gram target roughly double what it should be, throwing off the total calorie count.
  • Setting protein too low relative to bodyweight — a percentage-based split that looks reasonable (e.g., 25% protein) can still fall short of the 0.7-1 g/lb range for lighter people on lower-calorie diets, undermining muscle retention.
  • Percentages that don't sum to 100% — always check that protein%, carb%, and fat% add up to 100 before calculating, or the resulting gram totals won't match your actual calorie target.
  • Copying a split designed for a different goal — a 50% carb endurance-athlete split isn't ideal for a sedentary person trying to lose fat, and a very low-carb bodybuilding cut split may leave an endurance athlete under-fueled.

Tips & Tricks

  • If your goal is muscle building or preservation, set your protein gram target directly from bodyweight (0.7-1 g/lb) first, then split the remaining calories between carbs and fat based on preference and training type.
  • Recalculate your macros whenever your calorie target changes — for example, when you update your deficit or surplus, or after a significant bodyweight change of 10+ pounds.
  • Higher-carb splits generally support harder or more frequent training sessions, while slightly lower-carb, higher-fat splits are easier to sustain for lower-activity days.

Turning a single calorie number into specific protein, carb, and fat targets gives you a nutrition plan you can actually track and adjust, whether the goal is fat loss, muscle gain, or athletic performance. Use this calculator alongside a calorie calculator to set your total intake first, then dial in the split that matches your training. For strength-focused goals, pair your macro targets with the one rep max calculator to track whether your nutrition is translating into performance gains.

Macro Calculator — Frequently Asked Questions

Related Calculators

Authoritative References

External links open in a new tab. OmniCalc.us is not affiliated with these organisations.

Related Calculators