Evidence-based calculations

Keto Calculator

Calculate your ideal macros for a ketogenic diet — fat, protein, and carbs based on your weight, height, age, sex, activity level, and keto goal.

2,000 Avg. Daily Calories
24.9 Healthy BMI Upper
150 min Weekly Exercise Goal
7-9 hrs Recommended Sleep

Calculator

Your Results

Enter your values and click Calculate to see results

How the Keto Calculator Works

This keto macro calculator uses the Mifflin-St Jeor equation — the most accurate BMR formula for the general population — to estimate your daily calorie needs, then applies your chosen keto macro ratios to produce precise fat, protein, and carb targets.

The calculation follows three steps:

  1. BMR (Basal Metabolic Rate): The calories your body burns at complete rest. Male: 10 × weight(kg) + 6.25 × height(cm) − 5 × age + 5. Female: same formula minus 166.
  2. TDEE (Total Daily Energy Expenditure): BMR multiplied by your activity factor — from 1.2 (sedentary) to 1.9 (very active athlete).
  3. Macro split: TDEE calories divided into fat, protein, and carbs according to your selected keto protocol. Fat = 9 cal/gram; protein and carbs = 4 cal/gram each.

What Is Ketosis — and How Long Does It Take?

Ketosis is a metabolic state in which your body burns fat as its primary fuel instead of glucose. When carbohydrate intake drops below roughly 20–50 grams per day, liver glycogen depletes within 12–36 hours. The liver then converts fatty acids into ketone bodies (beta-hydroxybutyrate, acetoacetate, acetone), which the brain and muscles use for energy.

Most people enter nutritional ketosis within 2–4 days of strict carb restriction, though this varies considerably based on:

  • Your metabolic rate and insulin sensitivity
  • How much glycogen you had stored (athletes store more)
  • Whether you exercise (depletes glycogen faster)
  • Your exact carb intake (under 20g is faster than 50g)

You can verify ketosis with urine strips, blood ketone meters (most accurate), or breath analyzers. Blood ketone levels of 0.5–3.0 mmol/L indicate nutritional ketosis.

Keto Macro Ratios Explained

The ketogenic diet is defined by its macro ratios, not by a specific calorie target. Here's what the numbers mean in practice:

  • Fat (70–75%): Your primary fuel source. High fat intake provides the substrates for ketone production. Sources: avocado, olive oil, butter, fatty fish, nuts, cheese, full-fat dairy.
  • Protein (20–25%): Essential for muscle preservation. Critical caveat: protein in excess gets converted to glucose via gluconeogenesis, which can kick you out of ketosis. This is one of the most common keto mistakes.
  • Carbohydrates (5–10%): The hard limit. Most keto protocols target 20–50g net carbs per day. Net carbs = total carbs minus fiber (and some protocols subtract sugar alcohols).

Strict vs. Moderate vs. Targeted Keto

Not all ketogenic diets are identical. The three most common protocols differ in carb tolerance and fitness application:

Strict Keto (SKD — Standard Ketogenic Diet): 75% fat, 20% protein, 5% carbs. Maximum ~20g net carbs daily. Best for: weight loss, epilepsy management, type 2 diabetes reversal. Most research-backed protocol.

Moderate Keto: 65% fat, 25% protein, 10% carbs. Allows 30–50g net carbs. A sustainable middle ground for people who want the metabolic benefits of keto with slightly more dietary flexibility. Good for maintenance after reaching goal weight.

Targeted Keto (TKD): 60% fat, 25% protein, 15% carbs. Allows strategic carb intake around workouts — typically 25–50g fast-digesting carbs before training. Designed for moderate-to-high intensity exercise where glucose is advantageous for performance. Returns to ketosis within a few hours post-workout.

There's also Cyclical Keto (CKD) — 5–6 days strict keto followed by 1–2 high-carb "refeed" days — popular with bodybuilders and endurance athletes but not covered by this calculator.

Keto for Weight Loss vs. Athletic Performance

The keto diet produces different outcomes depending on your primary goal:

Weight loss: Keto is effective for fat loss, largely due to appetite suppression (ketones reduce ghrelin, the hunger hormone), reduced insulin levels (enabling fat mobilization), and automatic calorie reduction from eliminating carb-heavy processed foods. Multiple meta-analyses show keto produces superior short-term weight loss vs. low-fat diets, though differences narrow at 12+ months.

Athletic performance: The picture is more complex. Keto impairs high-intensity performance (sprinting, heavy lifting, HIIT) because these activities require fast-acting glucose. Studies consistently show reduced performance at intensities above 70% VO2max in keto-adapted athletes. However, keto can enhance endurance performance (long-duration, low-intensity activities like ultra-marathons) by maximizing fat oxidation — fat stores provide far more energy than glycogen (100,000+ calories vs. ~2,000 calories).

The adaptation window matters: athletic performance typically drops for 3–6 weeks as your body transitions to fat-burning, then recovers. Many athletes never fully recover high-intensity capacity on strict keto, which is why targeted or cyclical keto protocols were developed.

Common Keto Mistakes (and How to Avoid Them)

  • Eating too much protein: The #1 keto mistake. Excess protein is converted to glucose via gluconeogenesis, raising blood sugar and insulin, preventing ketosis. Keep protein at 20–25% of calories — not unlimited.
  • Not tracking net carbs: Hidden carbs in sauces, dressings, nuts, and dairy add up quickly. Use a tracking app for the first 2–4 weeks until you have intuitive portion control.
  • Not eating enough fat: Fear of fat causes many people to under-eat on keto, leading to fatigue and hunger. Fat is your fuel — eat enough of it.
  • Ignoring fiber: Many keto dieters become constipated because they eliminate fiber-rich foods. Prioritize non-starchy vegetables, chia seeds, and flaxseed for digestive health.
  • Quitting during keto flu: The transition to ketosis causes temporary fatigue, headaches, and brain fog as your body adapts. Most people experience this days 2–5. It's not dangerous — just uncomfortable. Staying hydrated and replenishing electrolytes dramatically reduces symptoms.

Electrolytes on Keto: Why They Matter

Electrolyte management is non-negotiable on keto. When insulin drops, the kidneys excrete more sodium — and with sodium go potassium and magnesium. This electrolyte depletion causes the "keto flu" and can persist throughout your time on keto if not actively managed.

  • Sodium: 2,000–4,000mg/day. Salt your food liberally or drink broth. Most people eating keto consume far less sodium than standard dietary guidelines warn about, because processed foods (the main sodium source) are eliminated.
  • Potassium: 3,500–4,700mg/day. Sources: avocado (~900mg each), leafy greens, salmon, mushrooms. Consider a supplement if you're cramping.
  • Magnesium: 300–500mg/day. Sources: nuts, seeds, dark chocolate (in moderation), spinach. Magnesium glycinate is the best-tolerated supplement form.

A simple keto electrolyte drink: 2 cups broth + ¼ tsp salt + ¼ tsp "No Salt" (potassium chloride). Drink this daily, especially during the first 2 weeks.

What Is Keto Flu — and How Long Does It Last?

Keto flu is the collection of symptoms that occur as your body transitions from glucose to ketone fuel. Symptoms typically peak at days 2–4 and resolve by day 7–10 for most people. Common symptoms include:

  • Headache and brain fog
  • Fatigue and low energy
  • Muscle cramps (especially legs)
  • Irritability and mood changes
  • Nausea and digestive upset
  • Difficulty sleeping

These symptoms are caused by electrolyte depletion (especially sodium and magnesium), dehydration, and the brain adapting to ketone metabolism. They are not harmful. Aggressive hydration, liberal salt intake, and magnesium supplementation typically reduce keto flu symptoms by 70–80%.

People with a history of high-carbohydrate diets or who are transitioning from a high-sugar diet tend to experience worse keto flu. Athletes with large glycogen stores also take longer to deplete glucose and may experience symptoms for a full week.