Keto Calculator — Free Ketogenic Diet Macro Calculator 2026 | AllInOneTools
🥑 Free Health Tool

Keto Calculator

Calculate your personalized ketogenic macros. Get exact fat, protein, and net carb targets based on your body, goals, and activity level. Compare standard, targeted, and high-protein keto approaches.

years
kg
cm
%
🥑
Your Daily Keto Calories
--
--
net carbs/day
Fat
Protein
Net Carbs
🥑 Fat
--
🥩 Protein
--
🌾 Net Carbs
--
🔥 TDEE
--
🎯 Target
--
✅ Eat Freely
Avocados, olive oil, butter, cheese, fatty fish (salmon, sardines), eggs, nuts (macadamia, pecans, almonds), coconut oil, heavy cream, bacon, dark chocolate (85%+)
✅ Low-Carb Veggies
Spinach, kale, broccoli, cauliflower, zucchini, asparagus, mushrooms, bell peppers, green beans, celery, cucumber, lettuce
✅ Protein Sources
Beef, chicken thighs, pork, lamb, turkey, organ meats, shrimp, tuna, cottage cheese, Greek yogurt (full-fat), protein powder
❌ Avoid
Bread, pasta, rice, potatoes, sugar, candy, soda, fruit juice, beans, corn, most fruit (except berries), beer, low-fat products
Daily Macro Targets by Meal
MealCaloriesFat (g)Protein (g)Net Carbs (g)
💡 Keto Insight

Keto Calculator: The Complete Guide to Ketogenic Diet Macros, Ketosis, and Metabolic Health

The ketogenic diet is a high-fat, moderate-protein, very-low-carbohydrate nutritional approach that shifts the body’s primary fuel source from glucose to fat-derived ketone bodies. Originally developed in the 1920s as a medical treatment for epilepsy, the ketogenic diet has gained enormous popularity for weight loss, metabolic health, mental clarity, and sustained energy. However, the specific macro ratios required for ketosis are precise — generic "low carb" is not enough. This calculator provides personalized macro targets that account for your unique body composition, activity level, and goals to ensure you achieve and maintain nutritional ketosis.

How Ketosis Works

When carbohydrate intake drops below approximately 20-50 grams per day, the body’s glycogen (stored glucose) depletes within 24-72 hours. The liver then begins converting fatty acids into ketone bodies — beta-hydroxybutyrate (BHB), acetoacetate, and acetone — which serve as an alternative fuel for the brain, heart, and muscles. This metabolic state is called nutritional ketosis, characterized by blood BHB levels of 0.5-3.0 mmol/L. The transition typically takes 2-7 days, during which many people experience the "keto flu" — fatigue, headache, and irritability caused by electrolyte shifts and the body’s adaptation to fat metabolism.

Standard Keto Macros:
Fat: 70-75% of calories | Protein: 20-25% | Net Carbs: 5-10%

Net Carbs = Total Carbs − Fiber − Sugar Alcohols

Protein Target: 0.6-1.0 g per lb lean mass (1.3-2.2 g/kg)
Carb Limit: 20-50g net carbs/day
Fat: fills remaining calories after protein and carbs

Calculating Your Keto Macros

The keto macro calculation follows a specific priority: First, set protein. Adequate protein prevents muscle loss and supports satiety. Target 0.7-1.0g per pound of lean body mass (or 1.5-2.2g per kg). If you know your body fat percentage, lean mass = weight × (1 − BF%). If not, estimate at 75-80% of total weight for males, 68-75% for females. Second, set net carbs at 20-25g for strict keto or up to 50g for more moderate approaches. Third, fat fills the remaining calories. Since fat has 9 calories per gram (vs 4 for protein and carbs), it represents the majority of calories even if the gram amount seems modest compared to protein.

Types of Ketogenic Diets

Standard Ketogenic Diet (SKD): 70-75% fat, 20-25% protein, 5-10% carbs. The most common and well-researched approach. Best for weight loss and general health. High-Protein Keto: 60-65% fat, 30-35% protein, 5% carbs. Better for preserving muscle mass during weight loss and for active individuals. Still maintains ketosis for most people. Targeted Keto (TKD): Standard keto plus 25-50g extra carbs around workouts. For athletes and highly active individuals who need glucose for explosive performance. Cyclical Keto (CKD): 5-6 days strict keto followed by 1-2 high-carb refeed days. Used by bodybuilders and athletes but not recommended for beginners.

Common Keto Mistakes

Not eating enough fat. Many beginners eat low-carb AND low-fat, resulting in excessive caloric deficit, fatigue, and failure. Fat is your primary fuel source on keto. Fear of protein. The myth that protein "kicks you out of ketosis" through gluconeogenesis has been debunked. Gluconeogenesis is demand-driven, not supply-driven. Eat adequate protein. Ignoring electrolytes. Ketosis increases sodium, potassium, and magnesium excretion. Supplement with 3,000-5,000mg sodium, 3,000-4,700mg potassium, and 300-500mg magnesium daily to prevent keto flu. Not tracking net carbs. Hidden carbs in sauces, condiments, and "keto" products can prevent ketosis. Read labels meticulously during the first month. Insufficient water. Keto is diuretic — drink at least 3 liters daily.

How to Use This Calculator

Enter your sex, age, weight, height, activity level, and goal (lose/maintain/gain). Optionally enter body fat percentage for more accurate lean mass calculation. The calculator computes your TDEE, applies your goal adjustment, and distributes macros using the ketogenic ratio: protein is set at 1.8g/kg lean mass, net carbs at 25g, and fat fills the remainder. Results show a macro donut chart, gram and calorie targets for each macro, three keto approach comparisons (standard, high-protein, targeted), a keto food guide, and a meal-by-meal breakdown for practical daily planning.

Pro Tip — The 2-Week Keto Adaptation
Give your body a full 2-4 weeks to fat-adapt before judging results. The first week often involves water weight loss (3-7 lbs) and possible keto flu. By week 2-3, energy stabilizes and cravings diminish. Full fat-adaptation for exercise performance takes 4-12 weeks. Track ketones (urine strips or blood meter) during the first month to confirm you’re in ketosis, then transition to tracking how you feel.

Keto and Exercise Performance

The relationship between keto and exercise is complex. For low-to-moderate intensity endurance exercise (walking, easy running, cycling below threshold), fat-adapted athletes perform comparably to carb-fueled athletes because fat oxidation can sustain these intensities. However, high-intensity performance (sprinting, heavy lifting, HIIT) relies heavily on glycolysis (glucose metabolism), and strict keto can impair peak power output by 5-15% during the adaptation period. Full athletic fat-adaptation takes 4-12 weeks, and some athletes never fully recover peak anaerobic performance on strict keto. The targeted ketogenic diet (TKD) addresses this by adding 25-50g of fast-digesting carbs 30 minutes before intense training, providing glucose for high-intensity work while maintaining ketosis during the rest of the day. Recreational exercisers generally adapt well to standard keto within 3-4 weeks.

Electrolyte Management on Keto

Electrolyte imbalance is the primary cause of "keto flu" and the most common reason people quit keto prematurely. When carbohydrate intake drops, insulin levels fall, causing the kidneys to excrete more sodium and water. This sodium loss triggers downstream losses of potassium and magnesium. Daily targets for keto practitioners: sodium 3,000-5,000mg (add salt liberally, drink bone broth), potassium 3,500-4,700mg (avocados, spinach, mushrooms, or supplement), magnesium 300-500mg (dark chocolate, nuts, or magnesium glycinate supplement). Most keto flu symptoms — headache, fatigue, muscle cramps, dizziness, irritability — resolve within 24-48 hours of adequate electrolyte supplementation. This is so important that it deserves emphasis: if you feel bad on keto, supplement electrolytes before blaming the diet itself.

Medical Considerations
Consult your doctor before starting keto if you have diabetes (especially type 1), kidney disease, liver disease, gallbladder issues, or are pregnant/breastfeeding. People on blood pressure or diabetes medication may need dosage adjustments as keto can rapidly lower blood sugar and blood pressure. Keto is not recommended for children without medical supervision.

Frequently Asked Questions

What are keto macros?
~70-75% fat, 20-25% protein, 5-10% carbs (under 20-50g net carbs). Forces body into ketosis — burning fat instead of glucose for fuel.
How many carbs on keto?
20-50g net carbs/day. Strict: 20g. Moderate: up to 50g. Net carbs = total carbs − fiber − sugar alcohols. More active people tolerate slightly more.
How much protein?
0.6-1.0g per lb lean mass. Too little = muscle loss. Moderate protein does NOT kick you out of ketosis. Prioritize adequate protein.
What is ketosis?
Metabolic state where body burns fat and produces ketones for fuel. Achieved 2-7 days after carb restriction. Blood BHB 0.5-3.0 mmol/L.
Keto foods?
Eat: meats, fatty fish, eggs, butter, cheese, nuts, avocados, olive oil, low-carb veggies. Avoid: grains, sugar, most fruit, potatoes, beans, beer.