Keto Basics · 14 min read

How to Calculate Your Keto Macros: A Complete Step-by-Step Guide

Learn exactly how to calculate your personal keto macros—calories, fat, protein, and carbs—with a clear, step-by-step method you can do in minutes, plus how to adjust as your body changes.

How to Calculate Your Keto Macros: A Complete Step-by-Step Guide
Written by Elena Marsh · Certified Nutrition Coach (NASM-CNC)
Published January 12, 2026

Medically reviewed by Dr. Julian Reyes, RD · PhD Nutritional Sciences, Registered Dietitian

Every article on Keto Kitchen Hub is fact-checked against peer-reviewed research and reviewed by a registered dietitian before publication. This content is for educational purposes and is not medical advice.

If you have spent any time researching the ketogenic diet, you have probably run into the phrase "calculate your macros" more times than you can count. It sounds technical, maybe even intimidating, but the truth is that figuring out your personal keto macronutrient targets is one of the most empowering things you can do at the start of this way of eating. Instead of guessing whether a meal is "keto enough," you will have real numbers to work with—numbers based on your body, your goals, and your activity level, not a generic chart pulled from the internet.

This guide walks through the entire process from start to finish. We will cover what macros actually are, why the ketogenic diet relies on a very specific macronutrient ratio, how to calculate your calorie needs, how to translate that into grams of fat, protein, and carbohydrates, and how to adjust your numbers over time as your body adapts. By the end, you will be able to sit down with a pen, a calculator, or a spreadsheet and build a macro plan that is genuinely yours.

What Are Macros, Exactly?

"Macros" is short for macronutrients, the three categories of nutrients that provide the body with energy: fat, protein, and carbohydrates. Each gram of fat provides approximately 9 calories, while each gram of protein or carbohydrate provides approximately 4 calories. Alcohol, sometimes considered a fourth macro, provides about 7 calories per gram, but it is not part of standard keto macro planning.

Every food you eat is made up of some combination of these three macronutrients, along with micronutrients like vitamins and minerals, and in many cases fiber and water. When people talk about "tracking macros," they mean paying attention not just to total calories, but to how those calories are distributed among fat, protein, and carbs. This distribution matters enormously on a ketogenic diet because the entire premise of keto is built on manipulating that ratio to shift your body's primary fuel source from glucose to fat and ketones.

Why the Ketogenic Diet Depends on Precise Macro Ratios

A standard ketogenic diet typically aims for roughly 70 to 75 percent of calories from fat, 20 to 25 percent from protein, and only 5 to 10 percent from carbohydrates. This is dramatically different from the typical Western diet, which often derives 45 to 65 percent of calories from carbohydrates. The reason keto uses this unusual ratio is rooted in basic human metabolism: when carbohydrate intake is low enough, and glycogen stores in the liver begin to deplete, the body starts breaking down fat into molecules called ketone bodies, which can be used as an alternative fuel source for the brain and muscles. This metabolic state is called nutritional ketosis.

Getting into ketosis and staying there is not simply a matter of "eating low carb." If protein intake is too high, some of that protein can be converted into glucose through a process called gluconeogenesis, which can slow or prevent ketosis in sensitive individuals. If fat intake is too low, you will not have enough calories to sustain energy needs without turning to carbohydrate or protein for fuel. This is exactly why precise macro calculation matters so much more on keto than on many other diets—you are not just cutting calories, you are engineering a specific metabolic environment.

Step 1: Determine Your Total Daily Energy Expenditure

Before you can figure out how many grams of fat, protein, and carbs you need, you first need to know roughly how many total calories your body burns in a day. This number is called your Total Daily Energy Expenditure, or TDEE. Your TDEE includes your basal metabolic rate (the energy your body needs simply to keep you alive at rest), plus the energy you burn through digestion, daily movement, and exercise.

The most common way to estimate TDEE without expensive lab equipment is the Mifflin-St Jeor equation, which is widely regarded by dietitians as one of the more accurate formulas available for estimating basal metabolic rate (BMR) in healthy adults.

  • For men: BMR = 10 x weight (kg) + 6.25 x height (cm) − 5 x age (years) + 5
  • For women: BMR = 10 x weight (kg) + 6.25 x height (cm) − 5 x age (years) − 161

Once you have your BMR, you multiply it by an activity factor to estimate your TDEE:

  • Sedentary (little or no exercise): BMR x 1.2
  • Lightly active (light exercise 1–3 days/week): BMR x 1.375
  • Moderately active (moderate exercise 3–5 days/week): BMR x 1.55
  • Very active (hard exercise 6–7 days/week): BMR x 1.725
  • Extremely active (physical job plus training): BMR x 1.9

For example, a 35-year-old woman who weighs 75 kg (about 165 lb), is 165 cm tall, and is lightly active would calculate a BMR of roughly 1,431 calories, then multiply by 1.375 for a TDEE of about 1,968 calories per day. This is the number of calories she would need to eat to maintain her current weight.

Step 2: Set Your Calorie Goal Based on Your Objective

Once you know your maintenance calories, the next step is to decide whether your goal is weight loss, weight maintenance, or muscle gain, because this determines your target calorie intake.

For Weight Loss

A common and generally sustainable approach is to create a deficit of 15 to 25 percent below your TDEE. Using the example above, a 20 percent deficit from 1,968 calories would put the target around 1,574 calories per day. Very aggressive deficits (more than 25 percent) can lead to muscle loss, fatigue, and difficulty sticking with the plan long term, so moderation tends to work better for most people.

For Weight Maintenance

If your goal is simply to maintain your current weight while adopting a ketogenic way of eating, you would eat at or very close to your calculated TDEE.

For Muscle Gain

Building muscle on keto is possible but typically requires a modest calorie surplus of around 5 to 15 percent above TDEE, combined with resistance training and adequate protein intake. Because ketogenic diets are already satiating, many people find it more challenging to eat in a surplus, which is worth planning around with calorie-dense, nutrient-rich keto foods like nuts, cheese, and fatty cuts of meat.

Step 3: Set Your Protein Target First

Many keto macro calculators default to setting fat first and protein second, but a more physiologically sound approach—one favored by many registered dietitians and used in our own recommendations—is to set protein first, because protein needs are tied to lean body mass and activity level rather than total calories alone.

A reasonable general target for most adults on keto is 1.2 to 2.0 grams of protein per kilogram of body weight (or roughly 0.6 to 1.0 grams per pound), with more active individuals and those trying to preserve or build muscle sitting toward the higher end of that range. Older adults, in particular, often benefit from slightly higher protein intakes to help counteract age-related muscle loss, a topic worth discussing with a healthcare provider or registered dietitian if you fall into this category.

Using our example of a 75 kg woman, a moderate protein target might be 1.6 grams per kilogram, which comes out to 120 grams of protein per day. At 4 calories per gram, that is 480 calories from protein.

Step 4: Set Your Carbohydrate Target

Carbohydrates are set next, and on a standard ketogenic diet this is usually the most restricted macro. Most people aiming for nutritional ketosis keep net carbs (total carbohydrates minus fiber) between 20 and 50 grams per day. Beginners, or people who are especially insulin resistant, often do better starting closer to 20 grams per day to reliably reach ketosis, while those who have been keto for a while and are metabolically flexible may be able to tolerate up to 50 grams and remain in ketosis.

For our example, let us set a target of 25 grams of net carbs per day. At 4 calories per gram, that is 100 calories from carbohydrates.

Step 5: Fill the Remainder With Fat

Fat is the macro that fills in the rest of your calorie budget once protein and carbohydrates are accounted for. This is one of the most important mental shifts for people new to keto: fat is not something to fear or minimize, it is the primary energy source of the entire diet.

Continuing our example: total daily calories of 1,574, minus 480 calories from protein, minus 100 calories from carbs, leaves 994 calories that should come from fat. Divide that by 9 calories per gram, and you get approximately 110 grams of fat per day.

So the final macro targets for our example person would be approximately 120 grams protein, 25 grams net carbs, and 110 grams fat, totaling roughly 1,574 calories per day. Expressed as percentages, that works out to about 30 percent protein, 6 percent carbohydrate, and 64 percent fat—a fairly standard, moderate-protein ketogenic ratio.

Understanding Net Carbs vs. Total Carbs

One of the most common points of confusion for keto beginners is the difference between total carbohydrates and net carbs. Net carbs are calculated by subtracting grams of fiber (and, in some approaches, certain sugar alcohols) from total carbohydrate grams, because fiber is not digested and absorbed the same way as other carbohydrates and has minimal impact on blood glucose and ketosis for most people.

For example, if a serving of food contains 10 grams of total carbohydrates and 6 grams of fiber, the net carb count would be 4 grams. Most keto tracking apps and our own keto grocery list use net carbs as the standard measurement, but it is worth reading labels carefully, since not every country or manufacturer calculates this the same way, and sugar alcohols like maltitol can behave differently in the body than others like erythritol.

Tools That Make Macro Calculation Easier

While it is entirely possible to calculate your macros by hand using the steps above, most people find it faster and more sustainable to use a tool. Options include:

  • Dedicated keto macro calculators found on many keto-focused websites, which automate the Mifflin-St Jeor and macro-splitting calculations described above
  • General nutrition tracking apps that allow you to set custom macro targets and log food throughout the day
  • A simple spreadsheet where you input your weight, height, age, and activity level, and set formulas to calculate BMR, TDEE, and macro splits automatically
  • Working directly with a registered dietitian, especially useful if you have a medical condition, are pregnant or breastfeeding, or have a complicated health history

Common Mistakes When Calculating Keto Macros

Underestimating Portion Sizes

It is remarkably easy to underestimate how much cheese, oil, or nut butter you are actually consuming. A tablespoon of olive oil, for instance, is about 120 calories and 14 grams of fat, and many people pour considerably more than a tablespoon without realizing it. Using a kitchen scale for at least the first few weeks can dramatically improve the accuracy of your tracking.

Forgetting to Recalculate as Weight Changes

As you lose weight, your BMR and TDEE naturally decrease because a smaller body requires less energy to maintain. Many people set their macros once at the start of their keto journey and never revisit them, which can lead to a weight-loss plateau months later. A reasonable rule of thumb is to recalculate your macros every 10 to 15 pounds lost, or every 8 to 12 weeks, whichever comes first.

Setting Protein Too Low

Some very old-school keto guidance suggested extremely low protein intake to maximize ketone production, but more current understanding recognizes that adequate protein is important for preserving lean muscle mass, supporting satiety, and maintaining metabolic health, especially during weight loss. Being in mild-to-moderate ketosis while eating sufficient protein is generally more sustainable than chasing very high ketone readings at the expense of muscle.

Ignoring Hidden Carbs

Sauces, dressings, processed "low-carb" products, and even certain vegetables can carry more carbohydrates than people expect. Reading nutrition labels and being cautious with pre-made sauces is an important habit, and pairing your macro plan with our 7-day keto meal plan can help remove much of this guesswork during the first couple of weeks.

Adjusting Your Macros Over Time

Your macro targets are not meant to be permanent, static numbers carved in stone. They are a starting hypothesis that you refine based on how your body actually responds. If you are not losing weight after three to four weeks of consistent tracking, consider whether you are truly hitting your calorie target (many trackers underestimate hidden calories), whether stress or sleep issues might be affecting your progress, or whether a modest reduction in calories is warranted. If you find yourself constantly fatigued or losing weight too quickly, you may need to increase your calorie or protein target rather than restrict further.

It is also completely normal for your carbohydrate tolerance to shift as you become more metabolically flexible. Many long-term keto dieters find they can comfortably eat 40 to 50 grams of net carbs and remain in ketosis, whereas they needed to stay closer to 20 grams when they started.

Do You Have to Track Macros Forever?

No. Tracking macros with a scale and an app is an excellent learning tool, especially in the first one to three months, because it trains your eye to recognize appropriate portion sizes and helps you internalize which foods fit within your targets. Many experienced keto eaters eventually transition to a more intuitive approach, where they no longer need to weigh every ingredient because they have a strong internal sense of what a keto-appropriate plate looks like. That said, periodically returning to tracking—say, for a week every few months—can be a useful check-in, particularly if weight loss stalls or if you suspect carb creep has crept back into your routine.

Special Considerations

Athletes and Highly Active Individuals

People engaged in intense or frequent exercise, particularly high-intensity or glycogen-dependent sports, may benefit from a targeted or cyclical ketogenic approach that allows for higher carbohydrate intake around workouts. This is a more advanced strategy and is generally not necessary for people doing moderate exercise like walking, light cardio, or general strength training.

People With Diabetes or Other Medical Conditions

If you have type 1 or type 2 diabetes, kidney disease, are on blood pressure or blood sugar medications, or have any other significant medical condition, it is essential to work with your doctor or a registered dietitian before starting keto and calculating macros, since medication dosages often need to be adjusted as carbohydrate intake drops substantially.

Pregnancy and Breastfeeding

Nutritional needs during pregnancy and lactation are unique and calorie or macro restriction should not be undertaken without direct medical supervision.

How Macros Shift Across Different Keto Approaches

Standard Ketogenic Diet (SKD)

The calculations walked through above describe the standard ketogenic diet, or SKD, which is the default and most heavily researched version of keto: consistent daily macros with no planned carbohydrate refeeds or timing around exercise. For the vast majority of people starting out, SKD is the right place to begin, since it is the simplest to track and the easiest to troubleshoot when something is not working.

High-Protein Keto

Some people, particularly those focused on preserving muscle during a longer fat-loss phase or who are simply more satiated by protein, use a high-protein variation that pushes protein up toward 30 to 35 percent of calories while fat drops to compensate, usually landing around 55 to 60 percent of calories. Carbohydrate intake stays the same. Research on very high protein ketogenic intakes is more limited than on standard keto, but many people tolerate this pattern well and still maintain ketosis, since the body's capacity to convert protein into glucose through gluconeogenesis is more limited than early keto folklore suggested.

Targeted Keto (TKD)

Targeted keto allows for a small amount of fast-digesting carbohydrate, often 15 to 30 grams, consumed shortly before intense training. The idea is to provide fuel for a demanding workout without meaningfully disrupting ketosis afterward, since the carbohydrate is used up quickly by working muscle rather than lingering in the bloodstream. This approach only makes sense for people doing genuinely intense, glycogen-dependent training on a regular basis; for moderate walkers or casual gym-goers, it adds complexity without a clear benefit.

Cyclical Keto (CKD)

Cyclical keto involves planned higher-carbohydrate days, commonly once every one to two weeks, interspersed with standard low-carb days. This is an advanced strategy generally reserved for competitive athletes or bodybuilders who need to periodically restore muscle glycogen for performance. It comes with a real cost: each high-carb day briefly halts ketosis, and returning to it can take a day or two, so it is not a good fit for anyone whose main goal is steady, uninterrupted fat adaptation.

Setting Macro Targets by Body Composition Goal

Cutting for Fat Loss

When the primary goal is losing body fat while holding onto as much muscle as possible, protein should sit at the higher end of the recommended range, closer to 1.8 to 2.0 grams per kilogram of body weight, since protein needs actually increase somewhat during a calorie deficit to protect lean tissue. Fat then absorbs whatever calories remain after protein and carbohydrate are set, which often means a lower percentage of calories from fat than a maintenance-phase keto diet, even though the absolute grams of fat are still substantial.

Body Recomposition

Body recomposition, or losing fat and gaining muscle at roughly the same time, is easiest to pursue at or very close to maintenance calories, with protein again set high (1.8 to 2.2 grams per kilogram) and resistance training as a non-negotiable part of the plan. Recomposition tends to be slower than a dedicated cut or a dedicated bulk, so patience and consistent tracking over several months matter more here than in almost any other approach.

Endurance and Aerobic Athletes

People training for longer aerobic events sometimes find that a slightly higher carbohydrate allowance, in the 30 to 50 gram range rather than 20, helps preserve training quality once they are fat-adapted, since fat adaptation typically takes several weeks to a few months of consistent low-carb eating before performance normalizes. Protein needs for endurance athletes are similar to or slightly above the general recommendation, since prolonged training also increases muscle protein turnover.

Reading Nutrition Labels Through a Macro Lens

Once you have calculated your targets, the nutrition label becomes your primary day-to-day tool for staying on track, and it pays to read it with a specific eye rather than glancing at the calorie count alone.

  • Check the serving size first. A package that looks like a single portion may legally list nutrition for half or a third of the container, quietly doubling or tripling the carbs you think you are eating.
  • Subtract fiber from total carbohydrates to get net carbs, but treat sugar alcohols on a case-by-case basis; erythritol has minimal impact on blood sugar for most people, while maltitol behaves much more like regular sugar.
  • Compare the fat and protein grams against your remaining daily targets before eating, not after, especially for calorie-dense packaged foods like nut butters, cheese, and keto bars.
  • Watch for "net carbs" claims printed directly on the front of a package; these are marketing calculations, not always regulated the same way, so it is worth doing your own math from the official nutrition panel.
  • Ingredient lists matter as much as the numbers. A short list of recognizable whole foods is generally a better sign than a long list of gums, starches, and artificial fillers, even when the macro numbers look similar.

A Sample Full Day of Eating at 1,574 Calories

To make the numbers from earlier in this guide feel concrete, here is what a full day might look like for our example person targeting roughly 120 grams protein, 25 grams net carbs, and 110 grams fat.

  • Breakfast: three eggs scrambled in butter with spinach and cheddar, plus black coffee with a splash of heavy cream — about 27g protein, 3g net carbs, 34g fat.
  • Lunch: a large salad with grilled chicken thigh, olive oil and vinegar dressing, avocado, and a sprinkle of feta — about 38g protein, 8g net carbs, 40g fat.
  • Dinner: baked salmon with a side of roasted broccoli tossed in olive oil and parmesan — about 42g protein, 7g net carbs, 32g fat.
  • Snack: a small handful of macadamia nuts — about 2g protein, 2g net carbs, 4g fat.

Totaled up, this day lands close to the target on all three macros, which is exactly the point of doing the calculation in the first place: it turns an abstract percentage into a concrete, repeatable eating pattern you can build a week around.

Putting It All Together: A Simple Worksheet

To calculate your own keto macros right now, follow this condensed worksheet:

  1. Calculate your BMR using the Mifflin-St Jeor equation with your current weight, height, and age.
  2. Multiply your BMR by your activity factor to get your TDEE.
  3. Decide your goal (loss, maintenance, gain) and adjust your calorie target accordingly.
  4. Set your protein target using 1.2 to 2.0 grams per kilogram of body weight.
  5. Set your carbohydrate target between 20 and 50 grams of net carbs.
  6. Fill the remaining calories with fat, then divide by 9 to get grams.
  7. Track for two to four weeks, then reassess and adjust as needed.

Once you have these numbers in hand, the day-to-day experience of eating keto becomes far less stressful. Instead of wondering whether a dish "counts" as keto, you can check it against your own targets and make an informed decision. Combine this framework with our keto grocery list and our 7-day keto meal plan, and you will have both the numbers and the practical roadmap you need to start with confidence.

Frequently asked questions

Do I need to hit my macros exactly every single day?

No. Aim to stay close to your targets most days, particularly the carbohydrate limit, which is the most important for reaching and maintaining ketosis. Small day-to-day variations in fat or protein are normal and generally do not disrupt progress.

What if I am not losing weight even though I am hitting my macros?

Double-check portion sizes with a food scale, review whether "hidden" calories from sauces or drinks are being logged, and consider whether stress, sleep, or medications might be affecting progress. It may also be time to recalculate your TDEE if you have already lost some weight.

Should I use net carbs or total carbs when tracking?

Most people on keto track net carbs (total carbohydrates minus fiber), since fiber has minimal impact on blood sugar and ketosis for most individuals. People with diabetes should discuss the best approach with their healthcare provider.

Is it better to set fat or protein first when calculating macros?

Setting protein first, based on body weight, tends to produce more consistent results than setting fat first, since protein needs are tied to lean mass and activity rather than total calories. Fat is then used to fill whatever calories remain after protein and carbs are accounted for.

Do I need different macros on rest days versus training days?

Most people on a standard ketogenic diet keep the same macros every day for simplicity, since keto is not built around glycogen replenishment the way higher-carb diets are. Only those using a targeted or cyclical keto approach typically vary carbohydrate intake around training.

References

About the author

Elena Marsh

Founding Editor · Certified Nutrition Coach (NASM-CNC)

Elena has spent a decade developing low-carb recipes and translating peer-reviewed nutrition research into plain-English guides for home cooks.

More from Elena

Keep reading