Keto macros & carbs
Keto Calculator
Calculate personalized ketogenic macros for nutritional ketosis.
Ketogenic macro model, educational; runs locally.
Profile & rigor
Drives protein from lean mass.
Macros
Daily target about 2,426 kilocalories modeled. Fat 206 grams, 76 percent of calories. Protein 113 grams, 19 percent. Net carbohydrates 30 grams, 5 percent.
Baseline
Electrolytes (rough targets)
Transition tips
Early ketosis adaptation varies, hydration and electrolytes help many people.
- Adequate sodium with clinician-aware targets
- Bone broth or mineral-rich fluids if they fit your plan
- Magnesium (often discussed in 300โ500 mg/day ranges, ask your provider)
- Drink to thirst
How to read this
Prioritize 113g protein. Use fat for satiety, you may not need the full 206g daily. Keep net carbs under 30g for the rigor you selected.
Keto Calculator: The Metabolic GPS for Nutritional Ketosis
Ketosis isn't just about cutting carbs; it's a metabolic state with precise requirements. These insights reveal WHY the macro ratios matter and how to optimize your ketogenic journey.
Ketogenic Intelligence
The Electrolyte Imperative
The Gluconeogenesis Myth
The 20g Starting Line
Keto Calculator: Complete Guide to Ketogenic Macros & Nutritional Ketosis
Calculate your personalized keto macros for fat, protein, and net carbs. This calculator uses your lean body mass to set optimal protein targets while ensuring you stay in nutritional ketosis.
What This Calculator Does & Who It's For
Calculator Purpose & Ideal Users
- What You'll Get:Net carb limit: Your ketosis guardrail (20-50g based on rigor level). Protein target: Your muscle-preservation goal (based on LBM ร activity multiplier). Fat allowance: Your satiety lever (remaining calories after protein and carbs). Electrolyte baseline: Sodium, potassium, and magnesium targets to prevent keto flu.
- Ideal Users:Keto beginners: Get precise starting macros instead of guessing. Weight loss seekers: Use the deficit slider to create sustainable fat loss. Athletes on keto: Use the athletic bonus for carb-timing around workouts. Therapeutic keto users: Rigorous mode for epilepsy management or metabolic conditions.
- Who Should Use Caution:Type 1 diabetics: Risk of ketoacidosis; requires medical supervision. Pregnant/nursing women: Carb restriction not recommended. Those with kidney disease: High protein may be contraindicated. Eating disorder history: Restrictive diets can trigger relapse. Always consult a healthcare provider.
- Accuracy Expectations:Calorie estimates use Mifflin-St Jeor (ยฑ10% individual variation). Body fat estimation from BMI is rough; for best protein targeting, use actual body fat measurements from DEXA, calipers, or Navy method. Ketosis response varies; some people can eat 50g carbs and stay in ketosis, others need <20g.
How the Math Works
- BMR (Mifflin-St Jeor):Male: 10 ร W(kg) + 6.25 ร H(cm) โ 5 ร Age + 5
Female: 10 ร W(kg) + 6.25 ร H(cm) โ 5 ร Age โ 161If body fat % is provided, the Katch-McArdle variant may be used: BMR = 370 + 21.6 ร LBM(kg).
- TDEE:TDEE = BMR ร Activity Multiplier
Sedentary 1.2, Light 1.375, Moderate 1.55, Active 1.725, Athletic 1.9.
- Calorie Target:Target = TDEE ร (1 โ Deficit%/100)
Example: TDEE of 2,200 with 20% deficit โ 2,200 ร 0.80 = 1,760 kcal.
- Macro Partition:Net carbs are fixed by rigor level (20โ50 g). Protein = LBM ร activity multiplier (0.6โ1.2 g/lb). Fat fills the remaining calories: Fat(g) = (Target kcal โ Protein ร 4 โ Carbs ร 4) รท 9.
How to Use This Calculator
- Body Stats:Enter sex, age, height, and weight. If you know your body fat percentage (e.g. from DEXA or calipers), enter it for more accurate protein targeting based on Lean Body Mass rather than total weight.
- Activity Level:Choose from Sedentary to Athletic. This sets your TDEE multiplier and adjusts the protein-per-pound-of-LBM target to preserve muscle at your training intensity.
- Keto Rigor:Rigorous (<20 g net carbs) for fastest ketosis induction, Moderate (25โ35 g) for sustainable weight loss, or Relaxed (up to 50 g) for athletes and long-term maintenance.
- Deficit Slider:Set 0% for maintenance or slide up to 40% for aggressive fat loss. Protein and carbs stay fixed; only fat allowance decreases to create the calorie deficit.
Understanding the Keto Macro Hierarchy
The Three Pillars of Ketogenic Nutrition
- 1. Net Carbs = The Guardrail:This is your hard limit: stay under it to maintain ketosis. Net carbs = Total carbs - Fiber - Sugar alcohols. At <20g, virtually everyone enters ketosis. At 35-50g, it's individual. The calculator sets this based on your rigor preference. This is non-negotiable.
- 2. Protein = The Goal:Hit your protein target daily to preserve lean muscle mass during weight loss. Calculated as 0.6-1.2g per pound of Lean Body Mass based on activity. Undereating protein causes muscle loss. Overeating it does NOT kick you out of ketosis. This is the most undertargeted macro on keto.
- 3. Fat = The Lever:After hitting protein and staying under carbs, eat fat to satiety. You don't need to hit 75% fat if you're not hungry. For weight loss, eat less fat to create a deficit. For maintenance or gain, eat more. Fat is the variable that adjusts based on your goals.
- Why Percentages Are Misleading:The "70/25/5" ratio is a rough guide, not a rule. A 200 lb person and 130 lb person have very different gram needs at the same percentages. This calculator uses grams based on your body composition, the method that actually works.
The Net Carb Equation: What Actually Counts
Calculating Net Carbs Correctly
- The Formula:Net Carbs = Total Carbs - Fiber - Sugar Alcohols
Example: A food label shows 20g carbs, 8g fiber, 4g erythritol โ Net carbs = 20 - 8 - 4 = 8g
- Fiber (Always Subtract):Both soluble and insoluble fiber pass through undigested. They don't raise blood glucose. Always subtract 100% of fiber from total carbs. High-fiber vegetables (broccoli, cauliflower, leafy greens) are keto-friendly despite higher total carbs.
- Sugar Alcohols (Partial Subtract):Erythritol: Subtract 100% (essentially zero glycemic impact). Xylitol: Subtract ~60% (some glucose response). Maltitol: Subtract only ~50% (significant glucose response; avoid on strict keto). Allulose: Technically not a sugar alcohol but subtract 100% (zero glycemic impact).
- Watch Out For:"Net carbs" on labels can be misleading; some brands subtract IMO (isomalto-oligosaccharides) which DOES impact blood sugar. When in doubt, use total carbs minus fiber only. Track your individual response with a glucose meter if uncertain about a product.
Protein Targeting: The LBM Advantage
Why Lean Body Mass Matters
- The LBM Protein Formula:Protein (g) = LBM (lbs) ร Activity Multiplier
Activity multipliers: Sedentary (0.6-0.7g), Moderate (0.8g), Active (0.9g), Athletic (1.0-1.2g)
- Why This Matters:A 250 lb person at 35% body fat has ~162 lbs LBM. Using total weight at 0.8g = 200g protein (excessive). Using LBM at 0.8g = 130g protein (appropriate). The LBM method prevents overfeeding protein while ensuring adequate intake for muscle preservation.
- Protein Minimum:Never go below 0.6g per lb LBM, even for sedentary individuals. Protein is essential for: muscle preservation during weight loss, immune function, hormone production, satiety, and tissue repair. Undereating protein is one of the most common keto mistakes.
- The Gluconeogenesis Reality:Fear of "too much protein" is overblown. Gluconeogenesis is demand-driven; your body makes exactly as much glucose as needed for brain function and red blood cells. Eating extra protein doesn't force excess glucose production. Prioritize hitting your protein target; it won't kick you out of ketosis.
Electrolyte Protocol: Preventing Keto Flu
The Non-Negotiable Supplement Strategy
- Sodium (3,000-5,000mg daily):The most important electrolyte on keto. Add salt generously to all meals. Drink bone broth (1-2 cups provides ~1,000mg). Consider lite salt (50% sodium, 50% potassium). If you feel fatigued or headachy, try drinking salted water first; it often resolves symptoms within 30 minutes.
- Potassium (3,500-4,700mg daily):Critical for heart and muscle function. Food sources: avocado (1,000mg each), spinach (840mg/cup cooked), salmon (800mg/fillet), mushrooms (400mg/cup). Lite salt is an easy supplement. Don't mega-dose potassium supplements; they're limited to 99mg per pill for safety.
- Magnesium (300-500mg daily):Helps with muscle cramps, sleep quality, and constipation. Forms that absorb well: glycinate (best for sleep), citrate (helps with constipation), malate (best for energy). Avoid oxide (poor absorption). Take at bedtime for best effect.
- Keto Flu Timeline:Symptoms typically appear days 2-5 of carb restriction as glycogen depletes. With proper electrolytes, most people feel normal or better within 24-48 hours. Full keto-adaptation (efficient fat burning) takes 2-4 weeks. If symptoms persist beyond week 2 despite electrolytes, consult a healthcare provider.
Using the Deficit Slider for Weight Loss
Strategic Calorie Reduction on Keto
- Deficit Ranges:0% (Maintenance): Eat at TDEE; no weight loss, good for transition or maintenance. 10-20% (Moderate): Sustainable long-term, ~0.5-1 lb/week loss. 25-30% (Aggressive): Faster loss, may increase hunger; best for shorter periods. 35-40% (Very Aggressive): Only for very overweight individuals under supervision.
- How the Math Works:Target Calories = TDEE ร (1 - Deficit %)
Example: TDEE of 2,200 with 20% deficit โ 2,200 ร 0.80 = 1,760 target calories
- What Gets Cut:Protein stays the same (muscle preservation). Net carbs stay the same (ketosis maintenance). Fat is reduced to create the deficit. This is why fat is the "lever": you adjust it based on weight goals while keeping protein and carbs stable.
- When to Adjust:Start at 20% deficit. If weight loss stalls for 2+ weeks, increase to 25%. If you're consistently hungry, irritable, or losing strength, reduce to 15%. Track weekly averages, not daily fluctuations. Keto causes significant water weight changes that mask fat loss.
Keto Calculator FAQ
What are net carbs and how do I calculate them?
How long does it take to enter ketosis?
Can I eat too much protein on keto?
What is the keto flu and how do I prevent it?
How much fat should I eat on keto?
What's the difference between keto rigor levels?
Do I need to track calories on keto?
What foods should I eat and avoid on keto?
Fitness Reference Note
Informational Use: These calculations (BMI, Calories, etc.) are based on standard statistical formulas and are intended for general reference and goal-setting purposes only.
Consult Experts: This tool does not provide medical advice, diagnosis, or treatment. Results may not be accurate for athletes, pregnant individuals, or those with underlying health conditions.
Health Safety: Always consult with a healthcare professional or qualified trainer before beginning any new diet or intensive exercise program.
Privacy First: All calculations are performed locally in your browser. No health data is stored or transmitted to any server.