Keto Calculator
Free Keto Calculator with medically-sourced formulas. Enter your measurements for personalized, accurate health insights.
Calculator
Adjust values & calculatePer Meal (3 meals/day)
Electrolyte Targets (Daily)
Formula
Uses the Katch-McArdle formula which accounts for body composition. Lean Body Mass = Weight x (1 - Body Fat %). TDEE = BMR x Activity Factor. Target calories are adjusted for goals (-500 for fat loss, +300 for muscle gain). Keto macros are set as: Net Carbs = 20-50g fixed, Protein = 1.6-2.6g per kg lean mass, Fat = remaining calories divided by 9.
Last reviewed: January 2026
Worked Examples
Example 1: Keto Macros for Fat Loss
Example 2: Keto Macros for Maintenance
Background & Theory
The Keto Calculator applies the following established principles and formulas. Health and medicine calculators are grounded in validated physiological measurement methods established through decades of clinical research. Body Mass Index, or BMI, is calculated by dividing weight in kilograms by height in meters squared (kg/m²), a formula originating from Adolphe Quetelet's 19th-century statistical work and later codified by the WHO into standard classifications: underweight below 18.5, normal weight 18.5 to 24.9, overweight 25 to 29.9, and obese at 30 and above. Basal Metabolic Rate quantifies the minimum energy required to sustain life at rest. The Mifflin-St Jeor equation, published in 1990 and widely regarded as the most accurate for most adults, calculates BMR as (10 × weight in kg) + (6.25 × height in cm) − (5 × age) ± sex adjustment. The older Harris-Benedict equations, revised in 1984 by Roza and Shizgal, remain in common use. Total Daily Energy Expenditure is derived by multiplying BMR by a physical activity factor ranging from 1.2 for sedentary individuals to 1.9 for extremely active ones, following the methodology validated by doubly labeled water studies. Body fat percentage can be estimated without laboratory equipment using the U.S. Navy circumference method, which uses neck, waist, and hip measurements, or via BMI-derived equations adjusted for age and sex. The Jackson-Pollock skinfold method offers higher precision with calipers. Blood pressure classification, according to the American College of Cardiology and the 2017 ACC/AHA guidelines, defines normal as below 120/80 mmHg, elevated as 120 to 129 systolic, and hypertension stage 1 as 130 to 139 systolic or 80 to 89 diastolic. Target heart rate zones for aerobic exercise are derived from maximum heart rate estimates, most commonly using the formula 220 minus age in years, with moderate-intensity training typically defined as 50 to 70 percent of maximum heart rate and vigorous intensity at 70 to 85 percent, consistent with CDC and American Heart Association guidelines. These thresholds guide safe and effective cardiovascular conditioning.
History
The history behind the Keto Calculator traces back through the following developments. The history of health measurement stretches back to ancient Greece, where Hippocrates around 400 BCE laid the foundation for observational medicine by systematically recording patient symptoms, diet, and environment. His humoral theory, though scientifically superseded, established the principle that the body operates as an interconnected system subject to measurable imbalance. The transformation toward modern medicine accelerated in the 19th century. Louis Pasteur and Robert Koch developed germ theory in the 1860s and 1870s, identifying microorganisms as disease agents and enabling targeted interventions. Florence Nightingale, working during the Crimean War in the 1850s, introduced statistical analysis to nursing practice, demonstrating through data visualization that sanitation reduced mortality. Her work is foundational to evidence-based health measurement. The discovery of vitamins in the early 20th century, beginning with Casimir Funk's coinage of the term in 1912 and culminating in the isolation of vitamins A through K, created the field of nutritional science and gave rise to dietary reference intake frameworks. The World Health Organization, founded in 1948, subsequently established global standards for health metrics, disease classification through the International Classification of Diseases, and recommended daily allowances. The BMI as a clinical screening tool gained traction in the 1970s through Ancel Keys' large-scale epidemiological work, which validated Quetelet's index as a population-level obesity indicator. Through the 1980s and 1990s, the Framingham Heart Study produced landmark data linking cholesterol, blood pressure, and lifestyle factors to cardiovascular disease risk, directly shaping the numeric thresholds still used in health calculators. The evidence-based medicine movement, formalized by Gordon Guyatt and colleagues at McMaster University in the early 1990s, demanded that all health recommendations derive from systematically graded clinical evidence. The digital health era beginning in the 2000s brought these formulas to consumer devices, wearable sensors, and smartphone applications, expanding access to health self-monitoring on a global scale and enabling population-level data collection that continues to refine clinical reference ranges.
Frequently Asked Questions
Formula
BMR = 370 + (21.6 x Lean Body Mass in kg)
Uses the Katch-McArdle formula which accounts for body composition. Lean Body Mass = Weight x (1 - Body Fat %). TDEE = BMR x Activity Factor. Target calories are adjusted for goals (-500 for fat loss, +300 for muscle gain). Keto macros are set as: Net Carbs = 20-50g fixed, Protein = 1.6-2.6g per kg lean mass, Fat = remaining calories divided by 9.
Worked Examples
Example 1: Keto Macros for Fat Loss
Problem: A 30-year-old male, 85 kg, 178 cm, 25% body fat, moderately active, wants to lose fat on keto with 20g net carbs.
Solution: Lean mass: 85 x (1 - 0.25) = 63.75 kg\nBMR (Katch-McArdle): 370 + (21.6 x 63.75) = 1,747 kcal\nTDEE: 1,747 x 1.55 = 2,708 kcal\nFat loss target (-500): 2,208 kcal\nNet carbs: 20g = 80 kcal (4%)\nProtein (2.0g/kg lean): 63.75 x 2.0 = 128g = 512 kcal (23%)\nFat (remainder): (2,208 - 80 - 512) / 9 = 180g = 1,616 kcal (73%)\nWeekly loss: 500 x 7 / 7,700 = 0.45 kg/week
Result: Target: 2,208 kcal | Fat: 180g (73%) | Protein: 128g (23%) | Net Carbs: 20g (4%)
Example 2: Keto Macros for Maintenance
Problem: A 35-year-old female, 65 kg, 165 cm, 28% body fat, lightly active, wants to maintain weight on keto with 25g net carbs.
Solution: Lean mass: 65 x (1 - 0.28) = 46.8 kg\nBMR (Katch-McArdle): 370 + (21.6 x 46.8) = 1,381 kcal\nTDEE: 1,381 x 1.375 = 1,899 kcal\nMaintenance target: 1,899 kcal\nNet carbs: 25g = 100 kcal (5%)\nProtein (2.0g/kg lean): 46.8 x 2.0 = 94g = 376 kcal (20%)\nFat (remainder): (1,899 - 100 - 376) / 9 = 158g = 1,423 kcal (75%)
Result: Target: 1,899 kcal | Fat: 158g (75%) | Protein: 94g (20%) | Net Carbs: 25g (5%)
Frequently Asked Questions
What is the keto flu and how can you prevent or minimize it?
The keto flu refers to a collection of symptoms that commonly occur during the first 1-2 weeks of starting a ketogenic diet as the body transitions from glucose to fat metabolism. Symptoms include headaches, fatigue, brain fog, irritability, nausea, difficulty sleeping, muscle cramps, and constipation. These symptoms primarily result from electrolyte imbalances caused by the diuretic effect of carbohydrate restriction, as lower insulin levels cause the kidneys to excrete more sodium and water. Prevention strategies include supplementing with 3,000-5,000 mg of sodium (from broth, salt, or electrolyte supplements), 3,500-4,700 mg of potassium, and 300-500 mg of magnesium daily. Staying well-hydrated (drinking at least 2.5 liters of water daily), getting adequate sleep, and reducing exercise intensity during the adaptation period also help minimize symptoms.
How do you calculate net carbs for keto and which carbs count?
Net carbs represent the carbohydrates that significantly impact blood sugar and insulin levels, and calculating them correctly is essential for maintaining ketosis. The basic formula is: Net Carbs = Total Carbohydrates - Dietary Fiber - Sugar Alcohols (with adjustments). Dietary fiber is fully subtracted because humans lack the enzymes to digest it into glucose. Sugar alcohols require nuanced treatment: erythritol has a glycemic index of zero and is fully subtracted, while maltitol and sorbitol have moderate glycemic impacts and should only be half-subtracted. When reading nutrition labels in the United States, fiber is included in total carbohydrates, so subtraction is necessary. European labels typically show net carbs already. Whole food carb sources like vegetables (spinach, broccoli, cauliflower, zucchini), berries (in small portions), and nuts are preferred because their fiber content reduces net carb impact significantly.
Does Keto Calculator work offline?
Once the page is loaded, the calculation logic runs entirely in your browser. If you have already opened the page, most calculators will continue to work even if your internet connection is lost, since no server requests are needed for computation.
Can I use Keto Calculator on a mobile device?
Yes. All calculators on NovaCalculator are fully responsive and work on smartphones, tablets, and desktops. The layout adapts automatically to your screen size.
What inputs do I need to use Keto Calculator accurately?
Each field is labelled with the required unit (metric or imperial). Gather your source values before starting — for example, a weight measurement in kilograms, a distance in metres, or a dollar amount — and enter them exactly as measured. The formula section on this page lists every variable and explains what each represents.
How do I verify Keto Calculator's result independently?
The Formula section on this page shows the equation used. You can reproduce the calculation manually or in a spreadsheet using those steps. Compare your answer against the worked examples in the Examples section, which use known reference values so you can confirm the calculator is behaving as expected.
References
Reviewed by Rahul Singh, Health & Wellness Specialist · Editorial policy