Formula Guide

    How to Calculate Your Macros

    Macronutrients — protein, carbohydrates, and fat — are the three nutrients that provide calories. Calculating your macros means determining how many grams of each to eat daily based on your Total Daily Energy Expenditure (TDEE) and your specific goal (muscle gain, fat loss, or maintenance). Getting the ratio right makes the difference between a diet that works and one that leaves you tired and plateaued.

    Last updated: March 31, 2026

    The Formula

    Protein calories = Protein (g) × 4
    Carbohydrate calories = Carbs (g) × 4
    Fat calories = Fat (g) × 9
    Total calories = Protein cal + Carb cal + Fat cal
    Common macro splits: Fat loss — 40% protein, 35% carbs, 25% fat. Muscle gain — 30% protein, 50% carbs, 20% fat. Keto — 5% carbs, 25% protein, 70% fat.

    Variable Definitions

    SymbolNameDescription
    TDEETotal Daily Energy ExpenditureThe total calories your body burns in a day including activity — your calorie maintenance level
    gGramsThe unit for measuring macronutrients
    calCalories per gramProtein = 4 cal/g, Carbohydrates = 4 cal/g, Fat = 9 cal/g

    Step-by-Step Example

    A 30-year-old woman has a TDEE of 2,000 kcal and wants to lose fat. She uses a 40/35/25 split (protein/carbs/fat).

    Given

    Daily target calories:1,700 kcal (deficit of 300)Protein split:40%Carbs split:35%Fat split:25%

    Solution

    1. 1
      Protein calories: 1,700 × 0.40 = 680 kcal
    2. 2
      Protein in grams: 680 / 4 = 170 g protein
    3. 3
      Carb calories: 1,700 × 0.35 = 595 kcal
    4. 4
      Carbs in grams: 595 / 4 = 149 g carbs
    5. 5
      Fat calories: 1,700 × 0.25 = 425 kcal
    6. 6
      Fat in grams: 425 / 9 = 47 g fat

    Daily macros: 170 g protein, 149 g carbs, 47 g fat = 1,700 kcal total.

    Ready to calculate?

    Use the free Macro Calculator — instant results, no sign-up.

    Open Calculator

    Common Mistakes to Avoid

    Using TDEE instead of your calorie target — if you are in a deficit, calculate macros from your target calories, not TDEE.

    Forgetting that fat has 9 cal/g not 4 — underestimating fat calories is a common tracking error.

    Setting protein too low on a deficit — low protein during fat loss causes muscle loss; aim for at least 0.7–1 g per pound of bodyweight.

    Tracking macros without tracking calories — the ratio matters, but total calories in vs. out still governs weight change.

    Frequently Asked Questions

    Related Guides