How to Calculate Keto Macros: The Complete Guide

Everything you need to set accurate protein, fat and carb targets for a ketogenic diet — including the equations, the reasoning behind each number and the mistakes that stall progress.

Last updated:

🧮
Skip the math
Try our free Keto Macro Calculator

Enter your body details once and get protein, fat, carbs and calories in seconds.

Open calculator →

What are keto macros?

Macros — short for macronutrients — are the three main nutrient groups your body uses for energy: protein, fat and carbohydrates. Every calorie you eat comes from one of these three, plus alcohol. The ketogenic diet is defined by a specific ratio of them: very low carbohydrate, moderate protein and high fat.

Calculating your keto macros means working out exactly how many grams of each you should eat per day to hit your goals — whether that is fat loss, maintenance, athletic performance or managing a medical condition. Get the numbers right and keto works smoothly. Get them wrong and you either fail to enter ketosis, lose muscle, or feel terrible for weeks.

The good news: it is simple arithmetic. The bad news: most people never do the arithmetic, which is why so many people "try keto" and give up. This guide fixes that.

The three macros explained

Protein

Protein is the body's structural nutrient. It supplies amino acids used to build and repair muscle, skin, organs, enzymes and hormones. On keto, protein is kept moderate — not high. The goal is to eat enough to protect muscle mass, but not so much that it crowds out the fat that fuels ketosis.

Protein contains 4 calories per gram. That number matters when you start calculating your totals.

Fat

Fat is keto's primary fuel source. When you cut carbs, your body shifts to burning fat for energy — both dietary fat and stored body fat. Fat is also essential for absorbing fat-soluble vitamins (A, D, E, K), producing hormones and insulating the nervous system.

Fat contains 9 calories per gram — more than double protein or carbs. This is why a keto plate looks smaller in volume than a standard plate with the same calories.

Carbohydrates

Carbohydrates are the body's fastest energy source — and the one keto restricts. Cutting carbs below roughly 50 grams of net carbs per day triggers the liver to produce ketones, which replace glucose as the brain's primary fuel.

Carbs contain 4 calories per gram. On keto, they are the smallest slice of the pie, usually 5 to 10 percent of total calories.

How to calculate your keto macros — step by step

The calculation happens in six steps. Do them in order; each one uses the output of the previous step.

Step 1 — Calculate your basal metabolic rate (BMR)

Your BMR is the number of calories your body burns at complete rest — just to keep your heart beating, lungs breathing and cells functioning. The most accurate general formula for healthy adults is the Mifflin-St Jeor equation, published in 1990 and still the standard in clinical nutrition.

Mifflin-St Jeor equation Men: BMR = (10 × weight in kg) + (6.25 × height in cm) − (5 × age) + 5
Women: BMR = (10 × weight in kg) + (6.25 × height in cm) − (5 × age) − 161

For a 35-year-old woman weighing 70 kg and 165 cm tall, the calculation is:

BMR = (10 × 70) + (6.25 × 165) − (5 × 35) − 161 = 700 + 1031 − 175 − 161 = 1,395 kcal

Note the formula uses weight in kilograms and height in centimetres. If you think in pounds and feet, convert first: pounds ÷ 2.205 = kilograms; inches × 2.54 = centimetres.

Step 2 — Multiply by your activity factor

BMR assumes you are lying still all day. To account for movement, multiply it by an activity factor:

Activity levelMultiplierExample
Sedentary1.2Desk job, little or no exercise
Light1.375Light exercise 1–3 days per week
Moderate1.55Moderate exercise 3–5 days per week
Very active1.725Hard exercise 6–7 days per week
Athlete1.9Twice-daily training or physical job

The result is your maintenance calories — the amount you would eat to stay the same weight. For the woman in Step 1, at moderate activity:

Maintenance = 1,395 × 1.55 = 2,162 kcal

Step 3 — Adjust for your goal

Maintenance is your baseline. Adjust it depending on what you want to happen:

GoalAdjustmentCalories
Aggressive weight loss−25%1,622 kcal
Moderate weight loss−15%1,838 kcal
Maintenance0%2,162 kcal
Moderate muscle gain+10%2,378 kcal
Aggressive muscle gain+20%2,594 kcal

This is your target calories — the number the next three steps fill in with macros.

Step 4 — Set your carbs

Carbs come first because they are the fixed constraint on keto. Most people stay in ketosis at 20 to 50 grams of net carbs per day. For the example, we'll use 25 grams:

Carbs: 25 g × 4 kcal/g = 100 kcal

Step 5 — Set your protein

Protein is calculated per kilogram of body weight rather than as a percentage of calories. This is deliberate — percentage-based protein targets produce dangerously low intakes for heavier people and excessive intakes for lighter people.

The evidence-based range:

For our example, at 1.6 g/kg:

Protein: 70 kg × 1.6 g/kg = 112 g
112 g × 4 kcal/g = 448 kcal

Step 6 — Fat fills the rest

Fat is the balancing macro. Whatever calories remain after carbs and protein come from fat:

Fat kcal = Target calories − Carb kcal − Protein kcal

For the example at a moderate deficit of 1,838 kcal:

1,838 − 100 − 448 = 1,290 kcal from fat
1,290 ÷ 9 kcal/g = 143 g of fat

Final result 35-year-old woman · 70 kg · 165 cm · moderate activity · moderate weight loss · standard keto

Calories: 1,838 kcal
Protein: 112 g (448 kcal, 24%)
Fat: 143 g (1,290 kcal, 70%)
Net carbs: 25 g (100 kcal, 5%)
⚡
Do it in 20 seconds
Free Keto Macro Calculator

Skip the manual arithmetic — enter your details and get the same result instantly.

Open calculator →

Choosing your carb limit for keto

Twenty to fifty grams of net carbs is the standard keto range, but the ideal number depends on your body and goals. A few rules of thumb:

Remember that net carbs — total carbs minus fiber — are the relevant number. Fiber does not raise blood glucose meaningfully, so a food with 20 g of total carbs and 15 g of fiber contributes only 5 g to your keto count.

Protein on keto: how much is enough?

Keto has an unfortunate reputation for being "moderate protein" — which many people interpret as "low protein." That is a mistake. Protein protects muscle, keeps you full and has a high thermic effect (your body burns 20 to 30 percent of protein calories during digestion).

The evidence-based targets are:

The concern that "too much protein kicks you out of ketosis" is overstated. Gluconeogenesis — the process of making glucose from protein — is demand-driven, not supply-driven. Eating 2 g/kg of protein does not meaningfully raise blood glucose unless you are eating substantially more than your body needs. If you feel fine and your ketones are in range, your protein target is not too high.

Fat: the lever, not the target

Fat is the most misunderstood macro on keto. It is not a goal you have to hit. It is a lever you pull up or down to control hunger and calories.

The reason: your body can burn dietary fat or stored fat for fuel. When you eat less dietary fat, it burns more stored fat. When you eat more dietary fat, it burns less. This is why "high fat" on keto does not mean "eat all the fat you can" — it means "eat enough fat to feel good, and no more than you need."

Common keto macro mistakes

How to track your macros

Once you have your targets, you need to actually track against them — at least for the first month. Three options, from most to least effort:

For most people starting keto, full tracking for the first two weeks is the fastest way to build an intuitive sense of portion sizes. After that, most people relax into rough tracking.

When to recalculate

Your macros are not static. Recalculate in these situations:

Recalculation takes 30 seconds with our calculator. Do not guess.

Frequently asked questions

How many carbs should I eat on keto?

Most people aim for 20 to 50 grams of net carbs per day to stay in ketosis. Beginners usually start at 25 to 30 grams. Anyone very insulin-resistant, exercising heavily, or in the first two weeks of keto often benefits from 20 grams or fewer.

How much protein should I eat on keto?

Most adults do well on 1.2 to 2.2 grams of protein per kilogram of body weight. Sedentary adults can use the lower end. People training with weights, on a calorie deficit, or over 50 should use 1.6 to 2.2 grams per kilogram.

Is keto a high-protein diet?

No. Keto is a high-fat, moderate-protein, very-low-carb diet. Protein is kept moderate because excess protein can be converted to glucose, though in practice gluconeogenesis is demand-driven and rarely kicks keto out of ketosis on its own.

What is the Mifflin-St Jeor equation?

It estimates basal metabolic rate from weight, height, age and sex. For men: BMR = 10 × weight(kg) + 6.25 × height(cm) − 5 × age + 5. For women: BMR = 10 × weight(kg) + 6.25 × height(cm) − 5 × age − 161. It is the most accurate general formula for healthy adults.

How many calories should I eat on keto to lose weight?

A moderate deficit of 15 to 20 percent below maintenance is a sustainable starting point. Aggressive deficits of 25 percent or more can be used short-term, but they increase the risk of muscle loss, fatigue and metabolic adaptation.

How do I count net carbs vs total carbs?

Net carbs = total carbs − fiber. On some plans, half of the sugar alcohols are also subtracted. Keto plans almost always count net carbs because fiber does not raise blood glucose significantly.

What are the signs I am in ketosis?

Common signs include reduced appetite, improved mental clarity, increased energy after adaptation, and a metallic taste in the mouth. More reliable indicators are blood ketone meters (BHB above 0.5 mmol/L) and urine strips.

Should I recalculate my macros as I lose weight?

Yes. Your BMR is proportional to body weight, so as you lose weight, your maintenance calories drop. Recalculate every 4 to 6 kilograms (10 to 15 pounds) of weight loss, or whenever your weight loss stalls for more than two weeks.

Related tools

This guide is general information only and is not medical advice. Speak to a doctor or registered dietitian before starting a ketogenic diet, especially if you have a medical condition or take prescription medication.