Skip to content
Allin

How to Calculate Keto Macros (Without Starting From the Percentages)

Published 6/25/2026 · 5 min read · Health calculators

Sofia Nunes

Sofia NunesHealth & wellness writer at Allin

Nutrition · Hydration

Checked against 2 sources

View profile
In short

Work in this order: carbohydrate, then protein, then fat. Set carbohydrate at a fixed 20 to 30 g of net carbs a day rather than a percentage, set protein at roughly 1.6 to 2.0 g per kilo of body weight to protect muscle, then give every remaining calorie to fat. For a 165 lb moderately active 35-year-old man of 5 ft 10 in, that is a maintenance target near 2,623 kcal made of 25 g carbohydrate, 135 g protein and 220 g fat — which happens to land at 76 percent fat, 21 percent protein and 4 percent carbohydrate. Put the same person in a 20 percent deficit at 2,099 kcal and the fat share falls to 70 percent on its own, because carbohydrate and protein stay fixed while fat absorbs the whole cut.

Set carbs as a fixed gram figure, protein by body weight, and let fat fill what is left. The famous 75 percent fat is an output of that calculation, not an input — and it drops on its own in a deficit.

Why percentages are the wrong starting point

A percentage is a ratio, and ketosis responds to an absolute amount. Five percent of carbohydrate sounds like a single rule, but on a 1,600 kcal day it means 20 g and on a 3,200 kcal day it means 40 g — one of which will keep most people in ketosis and the other will not. Fixing the grams removes that dependency entirely.

Protein has the same problem in reverse. It is needed in proportion to your body, not to your calories, so expressing it as a percentage makes the target move every time you change your intake — exactly when you least want it to, since a deficit is when muscle is most at risk.

The fat percentage is a residue

Once carbohydrate and protein are fixed in grams, fat is whatever is left, so its share of calories is an output. The table above shows this directly: the same person, same carbohydrate, same protein, moves from 76 percent fat at maintenance to 70 percent in a deficit purely because the total shrank. Nobody changed a target.

This matters because plenty of people in a deficit add fat to hit a published percentage, which cancels the deficit they set out to create. In a fat-loss phase the missing calories are supposed to come from your own stores; adding butter to reach 75 percent replaces body fat with dietary fat and the scale stops moving.

Net carbs, and where the count goes wrong

Net carbs are total carbohydrate minus fibre, on the reasoning that fibre is not absorbed as glucose. Sugar alcohols are usually subtracted too, though only partly, and erythritol behaves differently from maltitol — which is why two products with the same declared net carbs can affect you differently. Labels in Europe already exclude fibre from the carbohydrate figure, so subtracting it again double-counts.

Keto is also not neutral for everyone. It interacts with several medications, particularly insulin and the SGLT2 class, and is not appropriate in some conditions. If you take anything for diabetes or blood pressure, the dose may need changing before you start rather than after something goes wrong.

The same person at maintenance and in a 20 percent deficit
TargetCaloriesCarbsProteinFatResulting split
Maintenance2,623 kcal25 g135 g220 g76 / 21 / 4
20 percent deficit2,099 kcal25 g135 g162 g70 / 26 / 5
Keto CalculatorCompute your keto macros (fat, protein, net carbs) from BMR/TDEE and your keto diet type.Try the tool

Frequently asked questions

Can I eat too much protein on keto?
The old warning that protein converts to glucose and breaks ketosis is overstated. Gluconeogenesis is driven by demand rather than supply, and intakes in the 1.6 to 2.0 g per kilo range are well tolerated. Eating far more than that mostly displaces the fat calories that were meant to fuel you.
Should I use total body weight or lean mass for protein?
Lean mass is the better basis if you have a reliable body-fat measurement, because muscle drives the requirement and fat does not. Without one, use total body weight and stay at the lower end of the range — it will overshoot slightly, which is far less costly than undershooting.
Do the macros change once I am in ketosis?
The method does not change, but the inputs do. Weight loss lowers your energy need, so recalculate every few kilos or the target you set at the start quietly becomes a maintenance figure. Some people also find they can move carbohydrate up towards 40 or 50 g once adapted without leaving ketosis, which only testing on yourself can settle.

Articles you may find interesting

All guides
Comparison16/8, 5:2 or Alternate Day: The Fasting Protocols ComparedFive protocols side by side, what each demands, and the uncomfortable finding from the controlled trials: matched for calories, fasting loses about the same weight as simply eating less.GuideWhat a Meal Plan Generator Can and Cannot KnowA generator solves a constrained arithmetic problem — hit an energy target, hit the macro splits, stay inside a food list — and it does that well. Here is the arithmetic that makes a plan work, and the honest list of what no generator can see.ExplainerHow Much Carbohydrate Do You Actually Need?There is a small hard answer — the brain's glucose demand, published as 130 g a day — and a very large soft one. Above the minimum, carbohydrate need scales with training volume in grams per kilogram, not with a percentage.ExplainerNet Carbs: What the Subtraction AssumesNet carbs is total carbohydrate minus fibre minus sugar alcohols. Every term in that line is a modelling choice, the first one is defined differently on each side of the Atlantic, and no regulator anywhere defines the result.ExplainerWhat Breastfeeding Actually Costs in Energy — and Why the Published Number Is Smaller Than the MilkMilk production has a computable cost: volume times energy density divided by the efficiency of conversion. Do the sum and you get about 675 kcal a day, not the 500 that gets quoted. Here is the derivation, why the published increment is deliberately lower, how much the real spread is between mothers, what the water requirement actually rests on, and why cutting calories while feeding is a clinical question.ExplainerEating for Two Is About Three Hundred Calories — and Almost None of Them in the First TrimesterThe extra energy a pregnancy costs is far smaller than the phrase suggests, and it arrives on a schedule: near zero in the first trimester, modest in the second, real in the third. Here are the published increments from EFSA, FAO/WHO/UNU and the 2023 US reference intakes, what they look like as food, and why protein and folate rise proportionally faster than calories do.

Related tools

This article is general information, not medical or dietary advice. Do not change your diet, your medication or your insulin doses on the basis of a web page — talk to your doctor, dietitian or diabetes team, who can see your own results and history.

Sources

Spotted a mistake in this article?