Macro Split Calculator Formula

Understand the math behind the macro split calculator. Each variable explained with a worked example.

Formulas Used

Protein

protein_g = round(daily_calories * protein_pct / 100 / 4)

Fat

fat_g = round(daily_calories * fat_pct / 100 / 9)

Carbohydrates

carb_g = round(daily_calories * carb_pct / 100 / 4)

Macro Total %

total_check = protein_pct + fat_pct + carb_pct

Variables

VariableDescriptionDefault
daily_caloriesDaily Calories(kcal)2500
protein_pctProtein %(%)30
fat_pctFat %(%)30
carb_pctCarb %(%)40

How It Works

How Macro Splits Are Calculated

Formula

  • Protein (g) = Calories x Protein% / 4 (4 cal per gram)
  • Fat (g) = Calories x Fat% / 9 (9 cal per gram)
  • Carbs (g) = Calories x Carb% / 4 (4 cal per gram)
  • Common Splits

  • Balanced: 30/30/40 (protein/fat/carbs)
  • High protein: 40/25/35
  • Low carb: 35/40/25
  • High carb (endurance): 25/20/55
  • Ensure percentages sum to 100%.

    Worked Example

    2500 kcal with a 30/30/40 split.

    daily_calories = 2500protein_pct = 30fat_pct = 30carb_pct = 40
    1. 01Protein = 2500 * 0.30 / 4 = 188 g
    2. 02Fat = 2500 * 0.30 / 9 = 83 g
    3. 03Carbs = 2500 * 0.40 / 4 = 250 g
    4. 04Check: 30 + 30 + 40 = 100%

    Frequently Asked Questions

    What is the best macro ratio?

    There is no single best ratio. For most active people, 25-35% protein, 25-35% fat, and 35-50% carbs works well. Adjust based on goals and preferences.

    Do macros matter more than total calories?

    Total calories determine weight change. Macros influence body composition, performance, and satiety. Both matter, but calories come first.

    What if my percentages do not add to 100?

    The total should equal 100%. If not, your calorie targets will be off. Adjust one macro to make the total correct.

    Ready to run the numbers?

    Open Macro Split Calculator