Keto Macro Calculator

Get a ketogenic macro split with a net-carb cap you set, protein based on estimated lean body mass, and fat filling the rest of your calorie target.

Loading tool…

Formula: Calories = Mifflin-St Jeor TDEE ± goal adjustment; protein = 1.8 g × lean mass (kg); net carbs = user-set cap (20–50 g typical); fat = remaining calories ÷ 9

Worked examples

  • 35-year-old man, 178 cm, 85 kg, 20% body fat, moderately active, maintaining, 25 g net carbs

    A standard keto setup with body fat entered so protein is based on lean mass rather than total bodyweight.

  • 29-year-old woman, 165 cm, 65 kg, no body fat entered, lightly active, cutting, 20 g net carbs

    Without a body fat entry, lean mass falls back to total bodyweight — a slightly more conservative protein target, noted in the explainer.

  • 40-year-old man, 183 cm, 95 kg, 28% body fat, active, bulking, 40 g net carbs

    A higher net-carb allowance near the top of the standard keto range, common for very active lifters trying to gain.

What this calculator does

This tool builds a ketogenic macro split from your stats: a daily calorie target from your Mifflin-St Jeor maintenance number adjusted for your goal, protein based on your estimated lean body mass, a net-carb cap you set directly, and fat filling whatever calories remain. Enter your sex, age, height, weight, activity level, goal and preferred net-carb cap (optionally including body fat percentage for a more accurate lean-mass estimate), and it returns your full daily macro breakdown.

The calculation

Calories start from the Mifflin-St Jeor BMR equation — the same formula used by this hub's TDEE and macro calculators — multiplied by an activity factor, then adjusted up or down for a bulking or cutting goal. Protein is set at 1.8 g per kilogram of estimated lean body mass, a target inside the 1.6–2.0 g/kg LBM range described in Volek and Phinney's "The Art and Science of Low Carbohydrate Living," a widely cited reference on ketogenic protein needs. If you provide a body fat percentage, lean mass is calculated as weight × (1 − body fat%); without it, the calculator conservatively falls back to using total bodyweight, which the explainer notes gives a slightly lower protein target for people with higher body fat.

Why protein uses lean mass instead of total weight

Protein needs track muscle tissue, not fat mass, so basing the target on lean body mass rather than total bodyweight gives a more individualized number — this matters most for people with higher body fat percentages, where a bodyweight-based target would meaningfully overshoot what's actually needed to support muscle maintenance.

Net carbs and why fat is the remainder

Most ketogenic guidance targets a net-carb range of roughly 20–50 grams a day to maintain nutritional ketosis, with 20–25 grams being a common strict starting point for people just beginning. "Net carbs" here means total carbohydrate minus fiber (and, by some conventions, certain sugar alcohols) — the portion that meaningfully affects blood glucose and insulin response, which is why keto tracking typically uses net rather than total carb grams.

Unlike a standard macro split, where fat is often set as a fixed percentage of calories, keto deliberately sets protein and net carbs first — for muscle maintenance and staying in ketosis — and lets fat fill whatever calories remain to reach the daily target. This is intentional: fat is the flexible variable in a ketogenic plan, adjusted up or down as needed once the other two are locked in.

Individual variation

Carbohydrate tolerance for maintaining ketosis varies by person — some people stay in ketosis at 50 grams of net carbs, others need to stay below 20. Use your entered cap as a starting point and adjust based on how your body responds.

This tool gives a general estimate from published macro guidance. It is not medical advice — talk with a registered dietitian before starting a ketogenic diet, especially if you have any underlying health condition.

Frequently asked questions

Why is protein based on lean mass instead of total bodyweight?
Protein needs track muscle tissue, not fat mass, so basing the target on estimated lean body mass (bodyweight minus fat mass) gives a more individualized number — especially for people with higher body fat percentages, where a bodyweight-based target would overshoot actual need.
What net-carb range is typical for keto?
Most ketogenic guidance targets 20–50 g of net carbs a day to maintain nutritional ketosis, with 20–25 g being a common strict starting point. Individual carb tolerance for staying in ketosis varies, so this is a starting cap to adjust from, not a universal number.
What does 'net carbs' mean here?
Net carbs are total carbohydrate grams minus fiber grams (and, by some conventions, certain sugar alcohols) — the portion of carbohydrate that meaningfully affects blood glucose and insulin response, which is why keto tracking typically uses net rather than total carbs.
Why does fat make up whatever calories are left over?
On keto, protein and net carbs are set first (for muscle maintenance and staying in ketosis), and fat is deliberately the flexible remainder that fills the rest of your calorie target — this is the opposite order from a standard macro split, where fat is often set first as a fixed percentage.

These calculators give general estimates from published formulas. They are not medical advice and do not account for your individual health; talk to a qualified professional before changing your diet or training.