Calculating Your Keto Macros: An Evidence-Based Guide
In this article
- There is no evidence-based keto ratio that suits every person.
- The Mifflin–St Jeor equation estimates resting energy. It does not measure total daily energy and can be meaningfully wrong for an individual.
- “Net carbs” is an informal calculation. Decide whether you are tracking total or net carbohydrate and use the same convention throughout.
- Carbohydrate and protein targets need individual context. Fat is usually the arithmetic remainder, not a quota to force.
- A calculator cannot adjust diabetes medicine, prescribe a therapeutic ketogenic diet, or turn a ketone value into a health score.
A macro calculation converts a food plan into daily grams of carbohydrate, protein, and fat. It can make meal planning more consistent, but it cannot determine whether a ketogenic diet is appropriate, nutritionally adequate, or effective for a medical condition.
This guide is based on the original energy-equation research, validation studies, current clinical guidance, and official food-label rules rather than fixed ratios copied from commercial keto plans.

Medication safety: Do not use a macro calculator to change insulin or another diabetes medicine. Carbohydrate restriction can increase hypoglycemia risk with insulin and some glucose-lowering drugs. The 2026 American Diabetes Association (ADA) Standards also advise avoiding very-low-carbohydrate plans with SGLT2 inhibitors because of ketoacidosis risk.38 Review keto side effects and urgent warning signs before making a major change.
Start with the purpose, not a ratio
A self-directed weight-loss plan, a sports nutrition plan, diabetes medical nutrition therapy, and a prescribed epilepsy diet do not use the same targets. Clinical ketogenic diets can specify a fat-to-carbohydrate-plus-protein ratio and laboratory follow-up. Those treatment protocols should not be reverse-engineered from a lifestyle calculator.
For diabetes care, the ADA does not endorse one ideal percentage of calories from carbohydrate, protein, or fat. Its 2026 guidance calls for an individualized eating plan based on metabolic goals, preferences, access to food, treatment, and the person's ability to sustain the plan.3 The same caution applies to generic keto percentages. A chart showing 75% fat, 20% protein, and 5% carbohydrate describes one formulation; it does not establish a personal requirement.
Before doing arithmetic, define:
- the reason for changing the diet;
- whether a clinician has set any carbohydrate, protein, fluid, mineral, or energy limits;
- medicines that may be affected;
- whether you will count total or net carbohydrate;
- the outcomes that will determine whether the plan is helping.
Use Is Keto Right for You? for the safety screen and Keto Diet 101 for evidence on common goals.
Estimate resting energy, with the error visible
What the Mifflin–St Jeor equation estimates
M. D. Mifflin, S. T. St Jeor, and colleagues developed their resting energy expenditure equation from indirect-calorimetry measurements in 498 adults aged 19 to 78. The simplified equations are:1
- Equation labeled for men in the original study:
10 × weight in kg + 6.25 × height in cm − 5 × age in years + 5 - Equation labeled for women in the original study:
10 × weight in kg + 6.25 × height in cm − 5 × age in years − 161
The result estimates energy used at rest. It is not a direct measurement of basal metabolism, exercise expenditure, digestion, or a full day's energy requirement.
The original model has two sex-specific constants. It does not model the effects of hormone therapy, intersex variation, or individual differences in body composition. A calculator asks for one of the source categories because the equation requires it, not because the result defines gender or precisely captures physiology.
How large can the error be?
In a systematic review led by clinical nutrition researcher David Frankenfield, Mifflin–St Jeor was more likely than several common equations to predict resting metabolic rate within 10% of a measured value. It still produced noteworthy individual errors, and older adults and U.S. ethnic-minority groups were underrepresented in the validation evidence.2
An activity multiplier adds another layer of uncertainty. “Light,” “moderate,” and “very active” are broad categories, and watches also estimate rather than directly measure energy expenditure. There is no defensible universal “professional athlete” multiplier: training volume, sport, season, body-composition goals, and recovery demands differ too much.
After you have chosen carbohydrate, protein and fat amounts, the macro arithmetic worksheet converts those entered grams into calories and percentages using the general 4/4/9 factors. Its optional energy-reference field compares two numbers you supply. It does not estimate energy needs, select macro amounts or withhold and recalculate a fat target.
Why a fixed calorie deficit is a poor default
Automatically subtracting the same number of calories from every estimate compounds two uncertainties: the starting estimate may be wrong, and the appropriate rate of weight change differs by person. A larger theoretical deficit is not automatically safer or more effective.
If weight change is the goal, treat the estimate as a starting hypothesis. Compare it with actual intake, a trend measured over several weeks, hunger, training, sleep, symptoms, and clinical context. A dietitian or clinician can help set and reassess energy intake when there is diabetes, pregnancy, adolescence, kidney disease, substantial weight loss, high training load, or eating-disorder risk.
Choose total carbohydrate or an explicit net-carb method
Total carbohydrate on a U.S. label
The U.S. Nutrition Facts panel provides a regulated Total Carbohydrate value. Dietary fiber appears beneath it, and sugar alcohol may be declared when relevant. The FDA's label materials explain that Total Carbohydrate includes dietary fiber and sugar alcohols.4
Tracking total carbohydrate uses the printed value without further subtraction. It is the clearest convention when products use different fibers, sweeteners, or front-of-package “net” claims.
Net carbohydrate is an informal estimate
The FDA does not require a “net carbs” nutrient line. In common U.S. use, an estimate begins with Total Carbohydrate and subtracts selected components. The choices must be explicit:
- dietary fiber may be subtracted when using a U.S. label;
- sugar alcohols differ in absorption and metabolism, so there is no reliable blanket “subtract half” rule;
- allulose needs its own identified amount; FDA guidance keeps it in Total Carbohydrate while allowing it to be excluded from Total Sugars and Added Sugars.5
Do not guess an unlisted component or subtract every sugar alcohol automatically. The net carb calculator keeps the label value visible and subtracts only adjustments the user selects.
Label systems also differ. Under European Union rules, carbohydrate and fibre are separate entries in the nutrition declaration.6 Subtracting fibre again from an EU-style carbohydrate value counts the same difference twice. Choose the label region before calculating, and use values from the same serving or 100-gram column.
A net-carb estimate does not predict a specific glucose or ketone response. Product formulation, portion size, label rounding, and individual physiology still matter.
Set carbohydrate from context
There is no carbohydrate number that guarantees ketosis for every person. Food intake, energy balance, activity, recent diet, physiology, and medicine influence ketone production. Research papers also use different definitions of “low carbohydrate” and “ketogenic.”
A starting carbohydrate target should therefore record:
- total or net counting;
- grams per day, rather than only a calorie percentage;
- the reason for the target;
- fiber and food-quality constraints;
- the date and outcome for reassessment.
For diabetes, carbohydrate targets must be coordinated with medication and glucose monitoring. For a prescribed ketogenic therapy, the clinical team sets the protocol. For a self-directed plan, do not keep cutting carbohydrate simply to chase a higher ketone reading.
Read how many carbs on keto for the range used in research and the reasons people respond differently.
Set protein without a universal table
Protein needs vary with body size, age, energy intake, training, injury or illness, pregnancy, and kidney function. A table that assigns one grams-per-pound target to every “sedentary,” “fat loss,” or “muscle gain” category hides those differences.
Set protein before calculating the fat remainder, but use an individualized source for the number. A registered dietitian can account for the goal and any clinical restrictions. Someone with kidney disease should not copy a high-protein target from a fitness plan; an athlete should not rely on a generic activity multiplier to provide a sport-specific protein strategy.
Protein does not have one universal cutoff at which it “kicks you out” of ketosis. Do not lower an adequate protein plan only because a home ketone value changed.
Calculate fat as the remainder
After energy, carbohydrate, and protein have been selected, the arithmetic remainder can be expressed as fat:
Estimated fat grams = [daily energy − (carbohydrate grams × 4) − (protein grams × 4)] ÷ 9
The 4, 4, and 9 values are standard energy-conversion factors for carbohydrate, protein, and fat. They simplify planning; food labels and databases still involve rounding.
If the expression is negative, the inputs conflict. Do not replace the negative result with zero or pretend the plan balances. Reconsider the estimated energy, carbohydrate, and protein inputs with the person who set them.
The fat result is not a minimum that must be reached with butter, oil, or “fat bombs.” It is the portion of the selected energy estimate left after the other inputs. Appetite, actual progress, food quality, and medical needs may justify a different plan. When choosing fats, emphasize sources such as olive oil, nuts, seeds, avocado, and fish rather than allowing a low-carb target to drive saturated-fat intake upward.
Adjust from observations, not ketone chasing
A useful review compares the plan with what happened:
- Was the selected total-or-net convention used consistently?
- Were serving sizes and raw-versus-cooked entries consistent?
- Did the plan provide varied foods, fiber, and adequate protein?
- Did hunger, gastrointestinal symptoms, sleep, or training change?
- If relevant, what happened to glucose, blood pressure, kidney markers, LDL cholesterol, and apoB?
- Is the restriction practical enough to sustain without distressed or rigid eating?
Initial body-weight changes can be noisy, and a single day does not calibrate an energy equation. Review a stable trend rather than changing macros after every fluctuation. Recalculate after a meaningful, sustained change in body weight, activity, treatment, or goal.
For athletes, the International Society of Sports Nutrition position stand led by Alex Leaf found that ketogenic diets had largely neutral or detrimental effects on athletic performance compared with higher-carbohydrate diets, with context varying by activity and study duration.7 A generic calculator cannot plan training fuel, competition, recovery, or periodization; a sports dietitian can.
Ketone measurements can answer a defined clinical or adherence question, but they do not grade food quality, fat loss, cardiovascular risk, or overall safety. The ketone level interpreter explains the limits of blood, breath, and urine readings.
Frequently Asked Questions
What is the standard keto macro ratio?
Does Mifflin–St Jeor give my exact calorie need?
Should I count total carbs or net carbs?
Should I always subtract all sugar alcohols?
Do I have to hit the calculated fat number?
Should I lower carbs or protein to raise my ketones?
Works cited
Article history
- Updated
- First published
Your learning guide