Skip to main content

Ketogenic Calculator

Daily keto macros from Mifflin-St Jeor BMR, scaled by an activity multiplier to TDEE and adjusted by a calorie deficit or surplus percentage. Net carbs are fixed first (default 20 g for ketosis), protein is set from lean body mass times grams per pound (default 0.7), and fat fills the remaining calories at 9 kcal per gram. Lean body mass is derived from weight and body fat percentage.

Runs entirely in your browser

This tool sends nothing over the network. Everything you enter is processed on your device and never reaches our servers.

Keto Diet
Low-Carb Nutrition
Lean Body Mass
Weight Management
Loading the tool
Reference

Documentation

Ketogenic diet targets hold net carbs low for ketosis, scale protein to lean body mass, and let fat fill the remaining calorie budget. Body metrics, activity level, and weight goal feed the Mifflin-St Jeor equation for Basal Metabolic Rate (BMR) and an activity multiplier for Total Daily Energy Expenditure (TDEE). Once a calorie deficit or surplus is applied, protein grams are set from lean mass, net carbs are subtracted as a fixed amount, and the remaining energy goes to fat. This keto-specific approach differs from general macro tools, which distribute protein, carbs, and fat through percentage presets instead.

  • Sex adjusts the BMR formula by +5 for males and -161 for females.
  • Height and weight accept decimals or fractions, such as 5.5 or 5 1/2.
  • Age lowers BMR over time.
  • Body fat percentage, estimated visually or measured with calipers when the exact figure is unknown, drives the lean body mass figure that sets the protein target.
  • Activity level ranges from Sedentary (1.2) to Very Active (1.725), with a Custom option for entering a specific multiplier.
  • A goal of Lose, Maintain, or Gain applies a deficit or surplus percentage to the calorie target.
  • Net carbs per day defaults to the standard keto recommendation of 20g or fewer for steady ketosis.
  • Protein ratio, in grams per pound of lean body mass, scales with activity level.

Settings holds a step-by-step view showing BMR, TDEE, and macro derivations with the entered values substituted in.

Mifflin-St Jeor BMR for males: BMR = 10 x weight(kg) + 6.25 x height(cm) - 5 x age + 5. For females: subtract 161 instead of adding 5. TDEE = BMR x activity multiplier. Protein (g) = lean body mass (lbs) x protein ratio. Fat (g) = (target calories - protein calories - carb calories) / 9.

A ketogenic calculator adapts protein, fat, and net carb targets to body composition and weight goal, whether for a first entry into ketosis or for tuning macros around training, while keeping net carbs anchored at a ketosis-friendly level throughout.

  • Weight Loss: A calorie deficit of 10 to 20 percent creates a sustainable keto plan; the entered body fat percentage helps protect lean mass while maximizing fat burn.
  • Muscle Building: A 5 to 10 percent calorie surplus with a protein ratio of 1.0 to 1.2 g per pound of lean mass supports hypertrophy while staying in ketosis.
  • Athletic Performance: The Moderately Active or Very Active setting matches training volume, and net carbs can rise toward the upper keto limit under a targeted or cyclical protocol.
  • Health Management: The Maintain Weight goal establishes a steady nutritional framework anchored to lean body mass.
  • Meal Planning: Daily fat, protein, and net carb outputs divide across meals to build keto-friendly grocery lists and weekly portion guides.
  • Progress Tracking: Targets recalculate as weight and body fat shift, keeping them aligned with the current physique.
  • Education: The step-by-step view shows exactly how BMR, TDEE, and macro allocation derive from the entered inputs.

This tool is intended for informational and educational purposes only. It does not provide medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider for any health-related concerns or decisions.

Inputs, outputs, and what the Ketogenic Calculator computes

What the Ketogenic Calculator asks for and what it returns, as a plain list. Defaults, units, and ranges are the ones the form loads with.

Inputs

  • Imperial / Metric
  • Male / Female
  • Feet (text input) · default: 5
  • Inches (text input) · default: 7
  • Centimeters (text input) · default: 170
  • Pounds (text input) · default: 154
  • Kilograms (text input) · default: 70
  • Age (years) (text input) · default: 30
  • Body Fat Percentage (%) (text input) · default: 20
  • Sedentary (desk job, little to no exercise) / Lightly Active (light walking, less than 20 minutes exercise per day) / Moderately Active (physical labor or regular exercise a few times per week) / Very Active (intense daily exercise or physically demanding job) / Custom
  • Custom Activity Multiplier (text input) · default: 1.2
  • Lose Weight / Maintain Weight / Gain Muscle
  • Calorie Deficit (%) (text input) · default: 20
  • Net Carbs per Day (g) (text input) · default: 20
  • Protein Ratio (g per pound of lean body mass) (text input) · default: 0.7
  • Default Protein Ratio (g per lb lean mass) (text input) · default: 0.7
  • Show step-by-step calculation · default: off

Controls

Calculate · Reset