You are currently viewing How to Calculate Keto Macros (Step by Step, with Worked Examples)

Quick summary

  • Keto macros go in order: calories first (Mifflin–St Jeor × activity), then carbs in grams (20–50 g net), then protein by body weight; fat takes what is left.
  • Example: a 30-year-old man, 80 kg (176 lb), 175 cm (5 ft 9 in), sedentary, needs about 2,099 kcal to maintain and 1,679 kcal to lose weight.
  • Protein stays at 128 g either way; only fat shrinks, from 167 g to 121 g.
  • Apps disagree because each picks a different calorie formula, activity multiplier, deficit and protein rule. The number is a starting point, not a measurement.

Educational summary, not medical advice. Sources: in the text and at the end.

Evidence box

Evidence typeEquation study (Mifflin 1990), systematic review of calorie equations (Frankenfield 2005), meta-analysis of 49 protein trials (Morton 2018), official reference values.
How certainModerate. The calorie equation is accurate at group level, less so for one person. The protein ceiling comes from resistance-training trials, not keto trials.
What we knowMifflin–St Jeor predicts resting metabolism within 10% more often than other equations; adult protein minimum 0.8 g/kg/day; no extra muscle beyond about 1.6 g/kg/day.
What we don’t know yetThe ideal protein intake on keto for a given person; accuracy in older adults and under-represented ethnic groups.
Evidence checkedOctober 2026

To calculate keto macros you estimate daily calories with the Mifflin–St Jeor equation times an activity factor, adjust for your goal, fix carbs at 20–50 g net, set protein from body weight, and give fat whatever calories remain. Our keto macro calculator runs that sequence; this page does it by hand.

Any calorie app does the first part. What makes keto different is the order: carbs are pinned in grams before anything else, protein comes next, and fat is calculated last instead of chosen first. Still deciding on keto? Start with the keto diet guide; this page is the arithmetic.

Why two apps give you two different numbers

If one app says 2,100 calories and another says 1,500, neither is lying. They made different choices at four points.

  • The resting-calorie formula. Mifflin–St Jeor, Harris–Benedict and body-fat formulas can differ by a few hundred calories.
  • The activity multiplier. Ours are 1.2, 1.375, 1.55, 1.725 and 1.9; other apps use other ladders, and this choice moves the result more than anything else.
  • The size of the deficit. We subtract 20% to lose and add 10% to gain. An app that subtracts 500 kcal lands somewhere else.
  • The protein rule. Grams per kilogram (ours is 1.6 g/kg) or a percentage of calories. A percentage cuts your protein every time calories drop.

The five steps, worked for one person

Our example throughout: a 30-year-old man, 80 kg (176 lb), 175 cm (5 ft 9 in), desk job, maintaining and then losing weight.

Step 1: resting calories

Basal metabolic rate is what the body burns at rest. The Mifflin–St Jeor equation (1990) estimates it in metric (1 kg = 2.2 lb, 1 in = 2.54 cm):

  • Men: (10 × kg) + (6.25 × cm) − (5 × age) + 5
  • Women: (10 × kg) + (6.25 × cm) − (5 × age) − 161

For our man: 800 + 1,093.75 − 150 + 5 = 1,749 kcal.

Step 2: multiply by an activity factor

These are our calculator’s multipliers: conventional estimates of a normal day, not measurements.

Activity levelMultiplierOur example (1,749 × factor)
Sedentary (desk job, little exercise)1.22,099 kcal
Light (exercise 1–3 days a week)1.3752,405 kcal
Moderate (3–5 days)1.552,711 kcal
Active (6–7 days)1.7253,017 kcal
Very active (hard physical job)1.93,323 kcal

Source: multipliers as used in our keto macro calculator; calories for the 80 kg example.

Top to bottom, that table spans about 1,224 kcal a day for the same body. Most desk workers are “sedentary”; picking “moderate” because you intend to exercise is the most common error.

Step 3: adjust for your goal

To maintain, the Step 2 figure is the target: 2,099 kcal. To lose, the calculator subtracts 20%: 1,679 kcal. Gaining muscle adds 10%. The 20% is our design choice, a moderate deficit, not a promised rate of loss.

Step 4: fix carbs in grams

Carbs are a gram ceiling, not a percentage: 20–50 g net a day. Our calculator offers 20 g (strict), 30 g (moderate) and 50 g (low-carb). The keto food list shows what 20 g looks like on a plate; the 7-day keto meal plan builds a week around it.

Step 5: set protein, then let fat fill the rest

Protein is 1.6 g per kilogram of current weight: 80 × 1.6 = 128 g (why 1.6, below). Fat is the only macro you do not choose. Carbs and protein carry 4 kcal per gram, fat 9, so: 2,099 − (128 × 4) − (20 × 4) = 1,507 kcal, ÷ 9 ≈ 167 g of fat to maintain. The same subtraction on the weight-loss target leaves 121 g.

Fat is a ceiling, not a target. Full at 130 g? Do not add butter to reach 167. Stopping short of the fat number is exactly what makes the deficit.

Three complete examples

WhoCaloriesCarbsProteinFat
Man, 30 y, 80 kg (176 lb), 175 cm (5 ft 9 in), sedentary, maintain2,09920 g (4%)128 g (24%)167 g (72%)
Same man, lose weight (−20%)1,67920 g (5%)128 g (30%)121 g (65%)
Woman, 30 y, 70 kg (154 lb), 165 cm (5 ft 5 in), light activity, lose weight, 30 g carbs1,56230 g (8%)112 g (29%)110 g (63%)

Source: TheKetoLand keto macro calculator, using the five steps above. Percentages are share of calories.

The woman: resting 1,420 kcal, × 1.375, − 20% = 1,562 kcal; protein 70 × 1.6 = 112 g; fat fills the rest.

Keto macros in grams: maintain versus lose weightTwo stacked bars for the 80 kg example. Maintain: 20 g carbs, 128 g protein, 167 g fat. Lose weight: 20 g carbs, 128 g protein, 121 g fat. Carbs and protein are identical; only the fat segment is shorter.Carbs and protein stay put; only fat shrinksgrams per day, 80 kg (176 lb) man, sedentaryMaintain2,099 kcal20 g128 g167 gLose1,679 kcal20 g128 g121 gCarbs (4 kcal/g)Protein (4 kcal/g)Fat (9 kcal/g)

The carb and protein segments match; the dashed line marks where fat begins, and the only difference is the green segment: 167 g versus 121 g.

How much protein on keto?

The adult minimum set by the US Institute of Medicine in 2005 is 0.8 g per kilogram per day: enough to prevent deficiency, not an optimum for someone losing weight.

At the other end, a 2018 meta-analysis in the British Journal of Sports Medicine pooled 49 trials with 1,863 adults doing resistance training. Extra protein helped muscle gain, but the benefit flattened at about 1.6 g/kg/day. Our calculator uses 1.6 because it tops the useful range, and in a deficit adequate protein protects muscle.

The 1.6 g/kg is applied to your current weight. Body fat does not need protein the way muscle does, so at a high body weight the figure can run well above what you need. If you weigh far more than your healthy range, or have any kidney disease, get a protein figure from your doctor or a registered dietitian instead: some people with chronic kidney disease are advised to moderate protein, people on dialysis may need more, and too little causes harm too.

Between 0.8 and 1.6 g/kg is where almost everyone belongs. We found no source for the claim that protein “kicks you out of ketosis”, so it is not here.

How many carbs on keto, and total or net?

Most ketogenic plans keep carbohydrate at 20–50 g a day (StatPearls). Beginners usually start at 20 g net; 30 g suits active people; 50 g is low-carb and may or may not keep you in ketosis.

The counting trap is the label. A US label lists total carbohydrate with fiber inside it, so net carbs = total carbs − fiber. UK, EU and Australian labels already exclude fibre, so do not subtract twice; an app set to the wrong region gets this silently wrong. Our macro calculator and the food list both work in net grams.

Cutting board with cheese, cucumbers and tomato beside eggs and olives

What does the evidence actually say?

On calories: a 2005 systematic review in the Journal of the American Dietetic Association compared resting-metabolism equations with measured values in healthy non-obese and obese adults. Mifflin–St Jeor landed within 10% of the measured figure more often than Harris–Benedict and the others, but the review flagged notable errors for individuals and noted that older adults and several ethnic groups were under-represented.

The calculator gives you a good group average that may be off by a few hundred calories for you. The fix is not a better formula; it is tracking weight for two to four weeks and nudging the target. The first two weeks on keto also include water weight that says nothing about fat.

On protein: Morton 2018 is the strongest evidence for the 1.6 g/kg ceiling, but its 49 trials studied resistance training, not ketogenic dieting. No trial has found the ideal protein intake on keto, so 1.6 is a borrowed number, not a keto-specific one.

If you take medication

Cutting carbs to 20–50 g changes how some medicines behave within days. With insulin or sulfonylureas, blood sugar can fall too low; the prescriber reviews the dose before you start, not after. SGLT2 inhibitors plus a ketogenic diet carry a risk of ketoacidosis at near-normal blood sugar, and the StatPearls review lists that combination among the reasons to avoid the diet.

With kidney disease, your doctor sets your protein figure, not a calculator. Keto is also not advised in pregnancy, pancreatitis, liver failure, disorders of fat metabolism or a history of disordered eating; see the keto diet guide. Never change a dose or stop a medicine on your own.

Common mistakes when calculating keto macros

  • Picking an activity level you aspire to. It swings the result by over a thousand calories. Choose the level you lived last month.
  • Mixing total and net carbs. Check which your app and your labels use before subtracting fiber.
  • Eating up to the fat number. Fat is the remainder, not a quota.
  • Forgetting oils and sauces. A tablespoon of olive oil is roughly 120 kcal (USDA FoodData Central), and it hits the pan more often than the log.
  • Never recalculating. Every few kilograms lost, the resting figure shifts. Re-run the numbers when a target stops working.

Frequently asked questions

How much protein should I eat on keto?

Our calculator uses 1.6 g per kilogram of current weight; the adult minimum is 0.8 g/kg. Most people land between the two: 128 g for the 80 kg example, 112 g for the 70 kg one. With kidney disease or a very high body weight, ask a clinician.

Why does a keto macro calculator give a different number from MyFitnessPal?

Different resting-calorie formula, activity multipliers and deficit size, and often protein as a percentage rather than grams per kilogram. A few hundred calories between tools is normal. Pick one, follow it for a few weeks, and adjust from the scale.

Should I track macros in grams or percentages?

Grams. On keto the carb limit is a gram ceiling and protein is a per-kilogram figure. Percentages shift whenever calories change: the same 128 g of protein is 24% of 2,099 kcal and 30% of 1,679 kcal.

Do I have to count calories on keto?

Not always at first; many people count only carbs early on because appetite tends to fall. If weight has not moved for several weeks, recheck your activity level, weigh the foods that are easiest to under-log (oils, nuts, cheese), and recalculate with your current weight.

Medical disclaimer

This article is for education only and is not a substitute for advice from your doctor or a registered dietitian. The figures here are equation estimates, not measurements of you. If you take medication for diabetes or blood pressure, are pregnant or breastfeeding, have kidney, liver or pancreatic disease, or a history of disordered eating, talk to your doctor before changing how you eat. Never change a dose or stop a medicine on your own.

Sources

Last reviewed: 17 October 2026 · TheKetoLand Editorial · How we make our content