Health calculators

Keto Calculator

Updated Dec 3, 2026 By Infinity Calculator Formulas Sources Medical disclaimer
Rate
Personal Details
ft in
Please enter a valid height.
Please enter a valid weight.
Please enter a valid goal weight.
Please enter an age from 19 to 120.
Body Fat Percentage
Select the body image that most closely matches your physique:
If you don't know your body fat %, the visual estimate is a great starting point. You can also have it measured with a DXA scan.
Activity Level
Goal & Macro Settings
⬇️ Lose Weight
Caloric deficit to shed fat
⚖️ Maintain Weight
Stay at current weight
⬆️ Gain Muscle
Caloric surplus for mass
20%
A deficit of 500 to 1,000 calories a day below your TDEE loses about 1 to 2 lb a week.
20g
Keto plans usually keep carbs between 20g and 50g a day.
0.80g/lb
Your Daily Target
1,962 kcal
Personalized keto macros
Your Macro Breakdown
Fat
158g
72%
Protein
115g
23%
Net Carbs
20g
5%
Fat
Protein
Carbs
BMR
1,783
TDEE
2,451
Body Fat %
20%
Lean Mass
144 lbs
Calorie Distribution
Macro Detail Table
MacroGramsCalories% of Total
Fat158g1,422 kcal72%
Protein115g460 kcal23%
Net Carbs20g80 kcal5%
Total—1,962 kcal100%
Per-Meal Breakdown (3 Meals/Day)
Calories per meal654 kcal
Fat per meal53g
Protein per meal38g
Net Carbs per meal7g
Tip: These are estimates. Adjust based on how your body responds. Track your progress and tweak as needed.

Introduction

The Keto Calculator helps you figure out exactly how much fat, protein, and carbs you should eat each day on a ketogenic diet. A keto diet is a way of eating where you cut way back on carbs and eat more fat instead. This pushes your body into a state called ketosis, where it burns fat for energy rather than sugar. Getting your numbers right matters because eating too many carbs or too much protein can stop ketosis, and too little protein can cost you muscle.5 This tool uses your personal details, like your age, weight, height, and activity level, and gives you a clear daily breakdown of macros tailored to your goals, whether you want to lose weight, maintain, or gain muscle.

How to Use Our Keto Calculator

Enter your body details and activity level in the calculator above to find out how many grams of fat, protein, and carbs you should eat each day on a keto diet.

Gender: Select whether you are male or female. This matters because men and women burn calories at different rates.

Age: Enter your age in years. Your body needs different amounts of energy as you get older.

Weight: Enter your current weight in pounds or kilograms. This helps figure out how many calories your body uses each day.

Height: Enter your height in feet and inches or centimeters. Along with your weight, this is used to calculate your base metabolic rate.

Activity Level: Pick the option that best matches how active you are during the week. Someone who sits most of the day will need fewer calories than someone who exercises often.

Body Fat Percentage: Pick the body image closest to yours, or enter your body fat percentage if you know it. The calculator uses it to set your protein target from your lean body mass.

Net Carbs (grams/day): Choose how many grams of net carbs you want to eat per day. Keto plans usually keep carbs between 20 and 50 grams a day.5 Cutting carbs is the main thing that brings on ketosis.6

Your Goal: Select whether you want to lose weight, maintain weight, or gain muscle. If you pick weight loss, you can also set how big of a calorie deficit you want, such as 10%, 15%, or 20% below your maintenance calories.

What Is a Keto Calculator?

A keto calculator is a tool that figures out exactly how many grams of fat, protein, and net carbs you should eat each day while following a ketogenic diet. The ketogenic (keto) diet is a high-fat, moderate-protein, very low-carb eating plan designed to shift your body into a metabolic state called ketosis.6 In ketosis, your body burns fat for fuel instead of carbohydrates. In some people this leads to weight loss and less hunger in the short term.5

How the Keto Diet Works

Normally, your body runs on glucose, which comes from carbohydrates like bread, rice, and sugar. When you eat very few carbs, usually under 50 grams a day, your body uses up its stored glucose.5 Your liver then makes molecules called ketones from fat, which your body, including your brain, can use for energy.5 It is not settled why keto diets lead to weight loss, and after one year the results are not much different from other weight-loss diets.5

A common keto macro split is roughly 70% of calories from fat, 25% from protein, and 5% from carbs.6 These percentages can be adjusted based on your goals and activity level, but keeping carbs very low is the key to staying in ketosis.6

Key Terms You Should Know

  • BMR (Basal Metabolic Rate): The number of calories your body burns at rest just to keep you alive, things like breathing, pumping blood, and maintaining body temperature.7 This calculator uses the Mifflin-St Jeor formula, which was derived in 1990 from 498 healthy adults aged 19 to 78.1 A systematic review found it the most reliable of the common equations.4 Your body fat percentage does not change your BMR here. It is used to work out your lean body mass for the protein target.
  • TDEE (Total Daily Energy Expenditure): Your BMR multiplied by an activity factor.7 This is the total number of calories you burn in a full day, including exercise and daily movement. Your macro targets are based on this number.
  • Net Carbs: Total carbohydrates minus fiber, and on some labels sugar alcohols too.5 Many keto plans count net carbs, because fiber is not broken down into sugar the way other carbs are.
  • Macros (Macronutrients): Fat, protein, and carbohydrates. Each one provides a specific number of calories per gram: fat has 9 calories per gram, while protein and carbs each have 4 calories per gram.3

Why Body Fat Percentage Matters

Your body fat percentage tells the calculator how much of your weight is lean body mass. Your protein target is set from your lean body mass, so it is based on your lean mass rather than your total weight. Your BMR still comes from the Mifflin-St Jeor formula. If you are unsure of your body fat percentage, pick the body image in the calculator that looks most like you.

Choosing Your Goal

Your calorie target depends on what you are trying to achieve. If your goal is to lose weight, the calculator subtracts a percentage from your TDEE to create a calorie deficit. A deficit of 500 to 1,000 calories a day produces a loss of about 1 to 2 pounds a week.8 The calculator sets the deficit as a percentage of your TDEE, so at a TDEE of 2,500 calories a 20% deficit is 500 calories a day. If your goal is to gain muscle, it adds a calorie surplus instead. For maintenance, your target calories simply match your TDEE.

Tips for Success on Keto

  • Focus on whole foods. Build your meals around fatty fish, eggs, avocados, nuts, olive oil, meat, leafy greens, and non-starchy vegetables.
  • Track your macros closely for at least the first few weeks. It is easy to underestimate carbs or overeat protein, both of which can slow your results.
  • Be patient with the adjustment period. Some people get temporary symptoms like fatigue, headaches, or irritability when they first cut carbs, which can last from days to weeks.5 This is often called the "keto flu." Getting enough quality sleep can also help your body adapt more smoothly.
  • Protein matters. Eating enough protein helps protect your muscle mass.5 The calculator starts at 0.8 grams of protein per pound of lean body mass, and you can change it with the protein slider.
  • Watch your caffeine. Many keto dieters rely on coffee and tea.

Use the results from this calculator as a daily guide. Weigh and measure your food when possible, check in with your progress every few weeks, and adjust your calorie deficit or surplus as your weight changes. Tracking metrics like your VO2 max or heart rate zones can also help you monitor fitness improvements alongside your dietary changes. If you have any medical conditions or take medications, talk to your doctor before starting a keto diet.


Formulas used

BMR – Mifflin-St Jeor (Male) 1
\text{BMR} = 10 \times W_{kg} + 6.25 \times H_{cm} - 5 \times A + 5
BMR – Mifflin-St Jeor (Female) 1
\text{BMR} = 10 \times W_{kg} + 6.25 \times H_{cm} - 5 \times A - 161
Total Daily Energy Expenditure (TDEE) 7
\text{TDEE} = \text{BMR} \times \text{Activity Multiplier}
Target Calories (Lose / Gain)
\text{Target} = \text{TDEE} \times \left(1 \mp \frac{\text{Deficit/Surplus \%}}{100}\right)
Lean Body Mass
\text{LBM}_{lbs} = W_{lbs} \times \left(1 - \frac{\text{BF\%}}{100}\right)
Protein (grams)
P_g = \text{LBM}_{lbs} \times R_{protein}
Fat (grams) 3
F_g = \frac{\text{Target Calories} - (C_g \times 4) - (P_g \times 4)}{9}

Frequently asked questions

How many carbs should I eat per day on keto?

Keto plans usually keep carbs between 20 and 50 grams a day.5 The common keto split gets about 5% of your total calories from carbs.6 How quickly ketosis starts varies from person to person.5

What is the difference between Mifflin-St Jeor and Katch-McArdle formulas?

The Mifflin-St Jeor formula uses your weight, height, age, and gender to estimate your BMR. The Katch-McArdle formula uses your lean body mass instead, which requires knowing your body fat percentage. Its published form is Cunningham's 1991 equation, 370 + 21.6 × lean mass.2 This calculator uses Mifflin-St Jeor for your BMR and uses your body fat percentage only to set your protein target.

What calorie deficit should I use to lose weight on keto?

A deficit of 500 to 1,000 calories a day produces a loss of about 1 to 2 pounds a week.8 Faster loss does not give better long-term results.8 The calculator sets the deficit as a percentage of your TDEE, so at a TDEE of 2,500 calories a 20% deficit is 500 calories a day. You can adjust the slider between 0% and 40%.

Why is fat so high on a keto diet?

Fat replaces carbs as your main energy source on keto.5 Since fat has 9 calories per gram compared to 4 for carbs and protein, it provides the energy your body needs while keeping carbs very low.3 Keeping carbs very low is what keeps your body in ketosis.6

Can I eat too much protein on keto?

Eating too much protein can prevent ketosis, because your body can turn the amino acids in protein into glucose.5 Making glucose this way is called gluconeogenesis. However, eating enough protein is important to protect your muscles.5 This calculator sets your protein from your lean body mass rather than as a share of calories.

What is BMR and why does it matter?

BMR stands for Basal Metabolic Rate. It is the number of calories your body burns at rest just to stay alive: breathing, pumping blood, and keeping your organs running.7 Your BMR is the starting point for figuring out how many total calories you burn each day.

How often should I recalculate my keto macros?

Recalculate whenever your weight changes. Your weight is part of the BMR formula, so as you lose or gain weight, your calorie needs change too.1 Updating your numbers keeps your results on track.

What are net carbs?

Net carbs equal total carbohydrates minus fiber, and some labels also subtract sugar alcohols.5 Fiber is not broken down into sugar the way other carbs are, so it is subtracted. Net carbs are not a regulated label term, and some sugar alcohols can still raise blood sugar.5 This calculator counts net carbs toward your daily limit.


Sources

  1. Mifflin MD, St Jeor ST, Hill LA, Scott BJ, Daugherty SA, Koh YO. A new predictive equation for resting energy expenditure in healthy individuals. American Journal of Clinical Nutrition. 1990;51(2):241-247. doi:10.1093/ajcn/51.2.241. Accessed September 4, 2026.
  2. Cunningham JJ. Body composition as a determinant of energy expenditure: a synthetic review and a proposed general prediction equation. American Journal of Clinical Nutrition. 1991;54(6):963-969. doi:10.1093/ajcn/54.6.963. Accessed September 4, 2026.
  3. 21 CFR 101.9 — Nutrition labeling of food. Electronic Code of Federal Regulations (eCFR), U.S. Food and Drug Administration. 101.9(c)(1)(i). Accessed September 4, 2026.
  4. Frankenfield D, Roth-Yousey L, Compher C. Comparison of predictive equations for resting metabolic rate in healthy nonobese and obese adults: a systematic review. Journal of the American Dietetic Association. 2005;105(5):775-789. doi:10.1016/j.jada.2005.02.005. Accessed September 4, 2026.
  5. Diet Review: Ketogenic Diet for Weight Loss. Harvard T.H. Chan School of Public Health, The Nutrition Source. How It Works; The Diet; Potential Pitfalls; Bottom Line. Accessed November 11, 2026.
  6. Daley SF, Masood W, Annamaraju P, Khan Suheb MZ. The Ketogenic Diet: Clinical Applications, Evidence-based Indications, and Implementation. StatPearls. StatPearls Publishing. 2025;PMID 29763005 (abstract). Accessed November 11, 2026.
  7. Human energy requirements: report of a joint FAO/WHO/UNU expert consultation. Food and Agriculture Organization of the United Nations. 2004;2.3 Components of energy requirements (p. 7) and Glossary (p. 9). Accessed November 11, 2026.
  8. The Practical Guide: Identification, Evaluation, and Treatment of Overweight and Obesity in Adults. National Heart, Lung, and Blood Institute. 2000;NIH Publication No. 00-4084, Dietary Therapy. Accessed November 11, 2026.