Keto Calculator
A ketogenic diet restructures where your calories come from. Instead of running on glucose from carbohydrates, you restrict carbs low enough that your liver starts producing ketones from fat, which your brain and muscles then use as fuel. This metabolic state is called nutritional ketosis.
Getting into ketosis requires hitting specific macro ratios, not just eating less. Most people need to keep net carbs below 20-50g per day, get 70-75% of calories from fat, and 20-25% from protein. This calculator uses your Total Daily Energy Expenditure (TDEE) to generate personalized targets across all three macronutrients.
How the Keto Calculator Works
The calculator starts with your TDEE, derived from the Mifflin-St Jeor equation applied to your age, gender, height, weight, and activity level. From that calorie baseline, it applies the standard ketogenic macro split: 70-75% fat, 20-25% protein, and 5-10% carbohydrates, with net carbs capped at the level most people need to sustain ketosis.
Protein is calculated first because it’s the most critical variable. The International Society of Sports Nutrition recommends 1.4-2.0g of protein per kilogram of body weight during any restrictive diet to preserve lean mass. Undereating protein on keto accelerates muscle loss. Fat fills the remaining calories after protein and carbs are set.
The net carb threshold matters more than total carbs. Net carbs are total carbohydrates minus fiber, since fiber doesn’t raise blood glucose or disrupt ketosis. Most people achieve nutritional ketosis, defined as blood ketone levels of 0.5-3.0 mmol/L, somewhere between 20-50g net carbs per day, though individual thresholds vary based on metabolic health, activity level, and body composition (PMID: 18500949).
Understanding Your Results
Your results show four numbers: total daily calories, grams of fat, grams of protein, and grams of net carbs. Each reflects your specific TDEE rather than a generic template.
Multiple meta-analyses show ketogenic diets produce modestly greater weight loss than low-fat diets over 6-12 months. A 2013 meta-analysis of 13 randomized controlled trials found VLCKD produced an additional 0.91 kg of weight loss compared to low-fat diets, along with lower triglycerides and higher HDL cholesterol (PMID: 23651522). A 2023 umbrella review of 17 meta-analyses covering 68 RCTs confirmed convincing evidence for weight loss and HbA1c reduction, with suggestive evidence for improvements in triglycerides and blood pressure (PMID: 37231411).
Research consistently shows improvements in triglycerides, HDL, and blood sugar markers on ketogenic diets. A meta-analysis of 14 RCTs found significant reductions in body weight, BMI, HbA1c, and total cholesterol in overweight and obese patients, including those with type 2 diabetes (PMID: 32640608). A consistent finding, however, is that LDL cholesterol tends to increase on ketogenic diets, which warrants monitoring, particularly for people with existing cardiovascular risk factors (PMID: 23651522, PMID: 37231411).
Your first week will produce faster weight loss than the macro targets suggest. Carbohydrate restriction depletes glycogen stores, and glycogen binds water roughly 3:1 by weight. That initial drop on the scale is largely water, not fat. Actual fat loss follows at the pace your calorie deficit allows.
When to Use This Calculator
Starting a ketogenic diet. The calculator gives you precise gram targets rather than rough percentages, which matters because small deviations in carb intake can knock you out of ketosis entirely.
Adjusting after a plateau. If weight loss stalls after several weeks, recalculating with your current weight recalibrates your TDEE. As you lose weight, your calorie needs decrease.
Tracking macros on an app. Having explicit gram targets makes logging in apps like Cronometer or Carb Manager straightforward. You’re matching numbers, not estimating percentages.
Managing type 2 diabetes or prediabetes. The American Diabetes Association’s 2025 Standards of Care acknowledge low-carb and very-low-carb diets as legitimate options for glycemic management. People in this situation should use these results as a starting point for a conversation with their healthcare provider, not as a standalone prescription.
Limitations
The calculator cannot predict your individual ketosis threshold. The 20-50g net carb range reflects population averages from clinical research. Active people with high muscle mass often tolerate more carbs and still maintain ketosis. Sedentary or insulin-resistant individuals may need to go lower.
Initial TDEE estimates carry inherent error. Activity level multipliers are averages, and individual metabolic rates vary by up to 15% from predicted values. Treat your calculated targets as a starting point and adjust based on actual results over 2-3 weeks.
Long-term studies on ketogenic diets beyond two years are limited. Most RCTs showing benefits run 6-24 months, and many show convergence between diet types at 12+ months as adherence drops in both groups. People with diabetes, kidney disease, or cardiovascular conditions should consult a healthcare provider before starting a ketogenic diet.
The calculator does not account for the keto adaptation period. The first 2-4 weeks often involve fatigue, headaches, and reduced performance, sometimes called “keto flu,” as the body shifts fuel sources. Electrolyte supplementation (sodium, potassium, magnesium) typically reduces these symptoms.
Tips for Accuracy
Weigh yourself in the morning, unfed. Daily weight fluctuates by 1-3 kg based on water retention, meal timing, and digestive contents. Morning weigh-ins give the most consistent baseline for recalculating your TDEE.
Track net carbs, not total carbs. Fiber is non-negotiable to subtract. Sugar alcohols vary: erythritol has negligible impact on blood sugar, while maltitol behaves closer to regular sugar. Check individual sources.
Don’t underestimate cooking fats. Oil poured into a pan is easy to forget, but 1 tablespoon of olive oil adds 14g of fat and 120 calories. Use a food scale for the first few weeks until estimating by eye becomes reliable.
Hit your protein target before worrying about fat. Fat is flexible because it’s a lever for calories. Protein is a floor. Dropping below your protein target to hit a fat percentage leads to muscle loss, which lowers your TDEE over time and makes future weight management harder.
Recalculate every 10 pounds. Your TDEE drops as you lose weight. Running the same numbers from six months ago overstates your calorie needs and can stall progress.
Frequently Asked Questions
How many carbs do I need to eat to enter ketosis? Most people enter ketosis at below 20-50g net carbs per day, though individual thresholds vary based on activity level, metabolic health, and body composition. The clinical definition of nutritional ketosis is blood ketone levels of 0.5-3.0 mmol/L, which is a normal physiological state entirely distinct from diabetic ketoacidosis (PMID: 18500949).
Will keto raise my LDL cholesterol? A consistent finding across meta-analyses is that LDL cholesterol tends to increase on ketogenic diets (PMID: 23651522, PMID: 37231411). The degree varies by individual and by diet composition, particularly the types of fat consumed. If you have existing cardiovascular risk factors, baseline and follow-up lipid panels with a physician are advisable.
How much protein should I eat on keto? Aim for 1.2-2.0g of protein per kilogram of body weight. The ISSN recommends 1.4-2.0g/kg during any restrictive diet to preserve lean mass. Eating too little protein on keto is a common mistake that accelerates muscle loss, which in turn reduces your metabolic rate.
Is keto effective for type 2 diabetes? Research consistently shows ketogenic diets reduce HbA1c and fasting glucose in type 2 diabetes patients. A meta-analysis of 14 RCTs found significant reductions in HbA1c and body weight in overweight and obese patients with T2D (PMID: 32640608). The ADA’s 2025 Standards of Care recognize low-carb diets as a legitimate option, but medication adjustments are often necessary when carb intake drops sharply, so medical supervision is essential.
Why did I lose so much weight in the first week? The rapid initial loss is mostly water. Glycogen, your body’s stored glucose, holds roughly three grams of water per gram. Depleting glycogen stores in the first few days releases that water. Actual fat loss proceeds at a slower pace determined by your calorie deficit. Expect the rate of loss to stabilize after the first 1-2 weeks.
References
-
Bueno, N.B., de Melo, I.S., de Oliveira, S.L., & da Rocha Ataide, T. (2013). Very-low-carbohydrate ketogenic diet v. low-fat diet for long-term weight loss: a meta-analysis of randomised controlled trials. British Journal of Nutrition, 110(7), 1178-1187. PMID: 23651522
-
Yancy, W.S. Jr., Olsen, M.K., Guyton, J.R., Bakst, R.P., & Westman, E.C. (2004). A low-carbohydrate, ketogenic diet versus a low-fat diet to treat obesity and hyperlipidemia: a randomized, controlled trial. Annals of Internal Medicine, 140(10), 769-777. PMID: 15148063
-
Choi, Y.J., Jeon, S.M., & Shin, S. (2020). Impact of a Ketogenic Diet on Metabolic Parameters in Patients with Obesity or Overweight and with or without Type 2 Diabetes: A Meta-Analysis. Nutrients, 12(7), 2005. PMID: 32640608
-
Patikorn, C., Phisalprapa, P., Saokaew, S., Pengjam, Y., & Chaiyakunapruk, N. (2023). Effects of ketogenic diet on health outcomes: an umbrella review of meta-analyses of randomized clinical trials. BMC Medicine, 21(1), 196. PMID: 37231411
-
Manninen, A.H. (2004). Metabolic effects of the very-low-carbohydrate diets: misunderstood “villains” of human metabolism. Journal of the International Society of Sports Nutrition, 1(2), 7-11. PMID: 18500949