Keto Macros: How to Calculate Your Optimal Ketogenic Macronutrients

Following a keto diet means paying attention to your macros so you stay in ketosis. While you can find a few online calculators for this, it’s more than possible to calculate your optimal ketogenic macronutrients without one.

This article will break down, step by step, how you can determine your own personal needs regarding calories and macros on a ketogenic diet. Here are the things we’ll calculate:

#1 Your Basal Metabolic Rate (BMR)

This is the number of calories your body needs just to support its vital functions (without taking into account extra energy needed for things like exercise). This is important because the more of you there is, the more energy (calories) you need to support daily processes.

While it’s tough to get an EXACT calculation of basal metabolic rate, we can get really close by using the Harris-Benedict equation below. (If you’re in an area that uses metric, the Mifflin-St. Jeor equation will be easiest for you.)

  • BMR for men = 66 + (6.2 x Weight in pounds) + (12.7 x Height in inches) – (6.76 x Age)
  • BMR for women = 655.1 + (4.35 x Weight in pounds) + (4.7 x Height in inches) – (4.7 x Age)

Let’s break each of these down a little more.

Calculating Height and Weight

Measure your weight in pounds. This step is easy.

Calculate your height in inches. Multiple the feet by 12, then add the additional inches. For example, someone 5’ 8” would be a total of 68 inches tall.

Your Age

Since muscle mass gradually declines as we go past age 30, BMR decreases over time as well. That’s why age is factored into this equation.

Your Gender

Since body composition is typically a little different between men and women, gender factors into the equation.

So, again, use these equations to get your basal metabolic rate:

  • BMR for men = 66 + (6.2 x Weight) + (12.7 x Height) – (6.76 x Age)
  • BMR for women = 655.1 + (4.35 x Weight) + (4.7 x Height) – (4.7 x Age)

Now, move on to #2 below to get your total caloric expenditure.

#2 Your Total Daily Energy Expenditure (TDEE)

Along with BMR, we also have to account for daily activity you do and add that to your BMR. This will let us know your total daily energy expenditure (TDEE), which matters for calculating calories and macros.

Use these numbers as a guide:

  • 1.2: Little to no exercise
  • 1.375: Light exercise 1-3 days per week
  • 1.55: Moderate exercise 3-5 days per week
  • 1.725: Hard exercise 6-7 days per week
  • 1.9: Very intense exercise

Remember: exercise can include what you do for your career, such as a job that’s very physically demanding

Using the number that best matches you, multiple that number by the BMR number you calculated above. For example, a woman with a BMR of 1500 who does moderate exercise would multiply 1500 by 1.55 to get their total daily calorie expenditure, 2,325.

#3 Your Body Fat Percentage and Lean Mass

Measuring your body fat percentage is important for calculating how much lean body mass you have and how much protein you’ll need to maintain muscles.

You can measure body fat in a few different ways:

  • DEXA scan: This is the most accurate method but takes the most time and money. It’s a type of x-ray that measures your bone mineral density and can give you a good reading of your body fat percentage.
  • Skinfold calipers: This is probably the most recommended method. Most gyms and doctor offices will have these, or you can purchase them yourself.
  • Body measurements: This involves using a measuring tape to get the width of your neck, hips, and waist to estimate body fat composition. While not the most accurate, it can give you a good idea.
  • Visual estimates: If not able to do the above methods,you can estimate body fat percentage visually. You can use a guide like this to do so.

Once you know your body fat percentage, you can also determine your lean body mass. For example, someone who weighs 150 pounds and is 25% body fat, we can figure out their body fat in pounds:

150 pounds x .25 = 37.5 pounds of body fat.

To get lean body mass, we would do this:

150 pounds – 37.5 pounds of fat = 112.5 pounds of lean body mass.

Whatever your number is, we’ll be using it below when calculating protein needs.

#4 Your Goals

If you’re not looking to change your weight, you can skip this step.

If you want to lose weight, you’ll need to be in a deficit each day. A reduction of 10-20% of calories is usually a good range to start with for weight loss. To reduce by 10%, multiple your total calorie expenditure by 0.10, then subtract that amount from your total calories. This is the max amount of calories you’ll want to want to consume each day.

If you feel like you can go lower than that, feel free to increase the percentage—but it’s not recommended to go above a deficit of 30% each day long-term.

If you want to build lean muscle, you’ll need to have a surplus of calories each day. 5-10% of total calories is a good range for putting on muscle. Start by multiplying your total calorie expenditure by 0.05, then add that number to your total calorie burn. This is your daily calorie count.

#5 Your Carb Count

On the ketogenic diet, carbohydrates usually only make up 5-10% of total calories. For most people, that’s around 20-50 grams per day.

Take your total calories from #2 (or #1 if you are maintaining your weight) and times it by 0.05 to get your 5% of calories number, then divide that by 4.

Then, take your total calories times 0.10 to see what 10% of calories is, and divide that by 4 to get grams. You’ll want to keep your carb count within that range.

So, the formula is (TDEE x % of calories) / 4 = Grams of carbs per day.

For example, someone with a total caloric intake of 2,000 per day who wants to stay within 5-10% carbs from total calories (2000 x 0.05 or 0.10) would calculate between 100-200 calories from carbs, which is 25-50 grams of carbs per day.

#6 Your Protein Count

It’s important to keep protein count moderate on the ketogenic diet, so we want to make sure you get enough to maintain muscle, but not too much to affect ketosis. The percentage of total calories is usually between 20-25%.

If you’re someone who’s sedentary, a good rule of thumb is 0.6-0.8 grams of protein per pound of lean body mass (which we calculated in #2).

If you’re moderately or lightly active, stick with 0.8-1.0 grams per pound of lean body mass

If you lift weights, you’ll probably need to be in the 1.0-1.2 grams per pound of lean body mass range.

Use these ranges to determine your protein range, and start with the lower grams number. For example, a moderately active female who weighs 150 pounds and has 112.5 pounds of lean body mass will need 90-112.5 grams of protein per day. We then multiply that by 4 to calculate 360-450 calories from protein per day.

Multiply your total calorie expenditure by 0.20 and then 0.25 to make sure you calorie amounts from protein fit within that percentage.

#7 Your Fat Count

Fat on the keto diet should make up at least 70-80% of total calories. You can take the percentage of carbs and protein you fall into above, add them, then subtract from 100 to get a percentage from fat.

And there you go! You’ve just become your own keto calculator. This is all you need to estimate your macros on the ketogenic diet (as well as get an overview of your body mass and goals).

Take Home Message

Although these formulas can be helpful, there’s no guarantee they are 100% accurate. However, what’s most important here is that you have ranges to work with and can adjust as needed over time. If you’re new to keto, you’ll start to learn as time goes on what percentages and calorie amounts work best for your body on the ketogenic diet.

Dr. Anthony Gustin is a board-certified sports chiropractor, functional medicine practitioner, entrepreneur, podcast host, and founder of Perfect Keto.

Over the last few years, he has treated thousands of patients with movement rehab, internal diagnostics, and natural interventions, including NFL, MLB and NBA champions. After growing his sports rehab and functional medicine clinics to six locations in San Francisco, he shifted his mission to help as many people as possible achieve optimal health and well-being.

Ketosis is now easy

Lose weight and obtain optimal overall health — in an easy and natural way.

Shop Ketones

What to read next:

Easy keto recipes

Responses (22)

  1. Just wondering, I’ve got all my macros calculated but should I also be vigilant of calories? when doing the calculation it says I have 2600 but I find that way too many. 5’4, 237lbs.

  2. How do you go about calculating or converting # of calories to grams of fat? For example, I’m 5’9 297 lbs (I seriously need Keto to lose weight!), my total daily expenditure is 2041 so based on the above my calories should be about 75% from fat or 1530 kcal. What does that convert into in sheer grams of fat? And yes I’ve used the calculator, I just want to know how to do the math myself.

  3. Rudy, 1 gram of fat = 9 kcal. 1 gram of carb = 4 kcal. 1 gram of protein = 4 kcal. So you would just divide the number of fat calories by 9 to get the grams of fat. Hope that helps!

  4. Are there issues with the calculator? I can input data up to Activity Level, but there is no field for the Calorie Intake Goal?


  5. Hi everyone, I’m Crystal and I’m in the first week of my new Keto life. I’m feeling good. Very excited. I’m 54 years, 260 lbs and diabetic. I’ve tried everything to get this weight off. I think keto is for me I’m not having any trouble cutting out the carbs, sugar or dairy. I am going for it! LOL The keto calculator says to reach my goal I need 1310 calories, and 82g protein, 16g carbs and 102g fat daily.

  6. The last part of the calculator doesn’t seem to work on my iPad. I am unable to enter my calorie goal and it won’t calculate for me

  7. The macros calculator gives me a total daily calorie intake of a bit over 1200 kcals for 4kg weight loss per month, while the calculation above gives me a suggested kcal intake of 1440 kcals. I followed the equations to a ‘T’, so not sure which one to follow. Im already on a 1200 kcal/day meal plan with intermittent fasting and not losing much, 3k in 6 weeks, what am I doing wrong?? Thanks for the awesome equations though, it’s very insightful to look at the whole breakdown of all the elements that go into weight loss, awesome!

  8. sorry i just figured that one out. i guess i miss read it. Now im stuck on calculating the fat percentage.

  9. By ‘bad’ I really mean, like labelled as too many carbs even though it’s a really healthy food 🙂

  10. that’s allot of stuff to calculate….a turn off…i have 3 lbs remaining to lose and want to maintain that weight…I’ve been doing the Ideal Protein diet successfully until the last 6 weeks and I’m stuck. My body fat is 26% at this time.
    I’m also working out 2-3 times per week.

  11. I am in the starting phase of Keto. How do I figure out my macros to begin the journey and then increase my fat and lower my carbs. I know it’s not a diet/lifestyle you can just jump into. I want to start and transition in a healthy way.

    Thanks of your help.

  12. I am having trouble with the calculator. It does not allow me to change the protein and carb intake. What I have figured out manually seems like too little calories, even for weight loss. It has me consuming less than 1,000 calories per day. I am a 5’4″ tall female who is 61 years old. I am fairly active and feel I’m setting myself up to fail with only 1,000 calories per day.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.