Keto macros & carbs
Keto Calculator
This calculator sets daily net carbs, protein, and fat grams for nutritional ketosis using Mifflin-St Jeor total daily energy expenditure (TDEE) and lean body mass (LBM) for protein. It fixes net carbs by rigor level, targets protein from LBM times your slider, and fills remaining calories with fat. It does not measure blood ketones or replace advice from a registered dietitian.
By Jeff Beem
Updated
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.
Reading your keto macro targets
Section 02 is the readout: daily kcal, macro grams, BMR/TDEE/LBM baseline, electrolytes, and the How to read this note. Prioritize the protein line; fat is the calorie lever you may not need to eat in full.
Protein slider and the dark panel
Deficit slider and fat grams
Electrolytes card and transition tips
Keto calculator: net carbs, protein, and fat from TDEE
Sets daily net carbs, protein, and fat using Mifflin-St Jeor TDEE and lean body mass (LBM) for protein. Does not measure ketones or replace medical nutrition therapy.
What this calculator does
- Net carbs (guardrail):Fixed daily cap from rigor: 20 g, 30 g, or 50 g, plus optional athletic bonus.
- Protein (goal):
- Fat (lever):
How the math works
Limits of the model
Keto Calculator FAQ
How many net carbs does this calculator set for ketosis?
How is protein calculated on this page?
What happens when I move the calorie deficit slider?
What is the difference between Rigorous, Moderate, and Relaxed?
What is the athletic carb bonus checkbox?
How does body fat percentage affect my macros?
What do the electrolyte numbers on the results panel mean?
Will extra protein on the slider kick me out of ketosis?
Sources & citations
References used for the calculation method and definitions. Links open in a new tab when available.
Source for the Mifflin-St Jeor basal metabolic rate equation used for TDEE in this widget.
Protein intake context for active adults; informs the 0.6–1.2 g/lb LBM slider range.
Macronutrient energy values (4 kcal/g protein and carbohydrate, 9 kcal/g fat) used in calorie partitioning.
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.