How the macro calculator works
Your calorie target decides whether your weight goes up or down; your macros decide what that change is made of. This calculator takes the calorie number you give it (it does not second-guess your goal — the goal selector just annotates the result) and carves it into protein, carbohydrate, and fat using the split you pick. Protein is the anchor: it protects muscle in a deficit and builds it in a surplus, which is why every preset here keeps protein at 30% or higher. Fat is set next — hormones and vitamin absorption want a floor under it — and carbohydrate fills whatever calories remain.
The formula
The divisors are the Atwater factors: protein and carbohydrate each supply about 4 kcal per gram, fat supplies 9 — more than twice the energy density, which is why fat grams always look small next to their calorie share. One bookkeeping detail: after rounding protein and fat to whole grams, this calculator hands every leftover calorie to carbs, so the three calorie columns always sum exactly to your target instead of drifting a few kcal from rounding.
Worked example
A 2,000 kcal target on the Balanced 30P / 40C / 30F split, body weight 165 lbs:
Protein: 2,000 × 0.30 = 600 kcal ÷ 4 = 150 g
Fat: 2,000 × 0.30 = 600 kcal ÷ 9 = 66.7 → 67 g (603 kcal)
Carbs get the remainder: 2,000 − 600 − 603 = 797 kcal ÷ 4 ≈ 199 g
Protein check: 150 g ÷ 165 lbs = 0.91 g per pound — comfortably inside the 0.7–1.0 g/lb evidence range.
Protein anchors the plan
If you remember one number from this page, make it the protein target. Meta-analyses of resistance-training studies converge on roughly 0.7–1.0 g of protein per pound of body weight (1.6–2.2 g/kg) per day as the range where muscle retention and growth are maximized; more than that is mostly expensive urine for healthy people. Enter your body weight above and the calculator grades your split against that range automatically. If the check comes back low, the fix is usually to switch to the high-protein preset or to raise total calories — not to obsess over the carb/fat ratio, which study after study finds barely matters for body composition once calories and protein are matched.
Consistency beats precision (and eat your fiber)
Macro tracking fails in two directions: people who quit because 172 g of carbs felt impossibly fussy, and people who hit 172.0 g daily for six weeks and then burn out spectacularly. Both miss the point — these targets are weekly averages wearing daily clothes. Within 5–10 g of each macro is a bullseye, and one rogue Tuesday changes nothing. While you're tracking, watch one non-macro number: fiber. Aim for about 14 g per 1,000 kcal (roughly 28 g on our example's 2,000), which mostly takes care of itself if your carbs lean toward plants rather than powders. Low-carb and keto dieters have to work hardest at this — at 5% carbs, every gram should probably be a vegetable.