🥑
✓ Editorially reviewed by Derek Giordano, Founder & Editor · BA Business Marketing

Keto Calculator

Daily Macros for the Ketogenic Diet

Last reviewed: April 2026

🧮
500 calculators, no signup required
Finance · Health · Math · Science · Business
nnng.com

What Is a Keto Calculator — Daily Macros for the Ketogenic Diet?

Calculate your ideal keto macros — fat, protein, and net carbs based on your body, activity level, and goals. Stay in ketosis with precise daily targets. This calculator runs entirely in your browser — your data stays private, and no account is required.

How the Keto Diet Works

The ketogenic diet drastically reduces carbohydrate intake (typically to 20–30g net carbs/day) and replaces it with fat, forcing your body to switch from glucose to ketones as its primary fuel source — a metabolic state called ketosis. Getting the macronutrient ratios right is critical: too many carbs kicks you out of ketosis, too little protein causes muscle loss, and the fat fills the caloric gap. This calculator uses the Mifflin-St Jeor equation for BMR and adjusts for your activity level and goals. For broader nutrition tracking, see our Macro Calculator and Calorie Deficit Calculator.

Setting Your Keto Macros

The standard keto macro split is approximately 70–75% fat, 20–25% protein, and 5% carbohydrates. Protein should be set based on lean body mass (0.7–1.0g per pound of body weight), net carbs capped at 20–30g, and fat fills the remaining calories. If your goal is weight loss, the fat grams decrease (you're burning body fat instead). If maintaining or gaining, fat increases. Tracking macros precisely for the first few weeks is essential until you develop an intuitive sense for portions.

Common Keto Mistakes

The biggest mistakes are not eating enough fat (leading to hunger and low energy), eating too much protein (excess protein can convert to glucose via gluconeogenesis), and not tracking net carbs (total carbs minus fiber). Hidden carbs in sauces, dressings, and "sugar-free" foods can easily push you over 30g. Stay hydrated and supplement electrolytes (sodium, potassium, magnesium) to avoid "keto flu" during the adaptation phase. For hydration needs, try our Water Intake Calculator.

Standard Keto Macronutrient Ranges

Macro% of CaloriesGrams (2,000 cal)Purpose
Fat70–75%156–167gPrimary fuel source
Protein20–25%100–125gMuscle maintenance
Net Carbs5–10%20–50gKept low for ketosis

Understanding the Ketogenic Diet Macros

The ketogenic diet shifts your body's primary fuel source from carbohydrates to fats by dramatically restricting carb intake. A standard keto macro split is approximately 70–75% of calories from fat, 20–25% from protein, and 5–10% from carbohydrates — typically limiting net carbs to 20–50 grams per day. This carbohydrate restriction depletes glycogen stores within 2–4 days, forcing the liver to convert fatty acids into ketone bodies (beta-hydroxybutyrate, acetoacetate, acetone) that fuel the brain and muscles. The transition period (often called "keto flu") lasts 3–7 days and can include fatigue, headaches, and irritability as your body adapts to burning fat instead of glucose.

Keto Macros by Calorie Level

Daily CaloriesFat (75%)Protein (20%)Net Carbs (5%)
1,500125g (1,125 cal)75g (300 cal)19g (75 cal)
1,800150g (1,350 cal)90g (360 cal)23g (90 cal)
2,000167g (1,500 cal)100g (400 cal)25g (100 cal)
2,500208g (1,875 cal)125g (500 cal)31g (125 cal)

Protein Requirements on Keto

Protein is often the most misunderstood keto macro. Too little protein causes muscle loss; too much can theoretically reduce ketosis through gluconeogenesis (though this concern is overstated in current research). A good target is 0.7–1.0 grams per pound of lean body mass for sedentary individuals and 1.0–1.2 grams per pound for those who exercise regularly. For a 180-pound person with 25% body fat (135 pounds lean mass), this translates to 95–162 grams of protein daily. Prioritize protein from whole food sources — meat, fish, eggs, dairy — over protein supplements when possible. Calculate your specific protein needs with our Protein Calculator.

Net Carbs vs. Total Carbs

Keto followers typically count net carbs (total carbohydrates minus fiber and certain sugar alcohols) rather than total carbohydrates. Fiber does not raise blood glucose and is not digested for energy, so a serving of broccoli with 6g total carbs and 2.4g fiber has only 3.6g net carbs. Sugar alcohols like erythritol have minimal glycemic impact and are often subtracted, while maltitol and sorbitol do raise blood sugar and should be partially counted. Understanding net carbs allows more vegetable consumption and dietary variety while maintaining ketosis. Track all your macros precisely with our Macro Calculator and Calorie Calculator.

Common Keto Mistakes

The most frequent mistake is neglecting electrolytes. Ketosis increases water and electrolyte excretion, creating a need for additional sodium (3,000–5,000mg), potassium (3,500–4,700mg), and magnesium (300–400mg) daily. Symptoms of electrolyte deficiency include headaches, muscle cramps, fatigue, and dizziness — often mistaken for hunger or general malaise. Other common errors include eating too few calories (keto's appetite-suppressing effects can lead to unsustainably low intake), not eating enough vegetables (non-starchy vegetables provide fiber, micronutrients, and volume with minimal carbs), and obsessing over ketone levels rather than overall health outcomes. Monitor your hydration needs with our Water Intake Calculator.

Is Keto Right for You?

Keto has shown strong evidence for weight loss, type 2 diabetes management, and epilepsy treatment. However, it is not appropriate for everyone. People with kidney disease, liver disease, gallbladder issues, or a history of disordered eating should consult a healthcare provider before attempting keto. Long-term adherence is the biggest challenge — restrictive diets have higher dropout rates than moderate approaches. Many people achieve similar results with a lower-carb (but not ketogenic) approach of 50–100g daily carbs, which is easier to maintain and allows more food variety. The best diet is the one you can sustain consistently. Estimate your daily calorie needs with our TDEE Calculator and plan a deficit strategy with our Calorie Deficit Calculator.

Tracking and Measuring Ketosis

Three methods measure ketone levels: urine strips (cheapest but least accurate, measuring only excreted ketones), blood ketone meters (most accurate, measuring beta-hydroxybutyrate directly, but strips cost $1–$2 each), and breath analyzers (one-time purchase, measuring acetone, moderate accuracy). Nutritional ketosis is typically defined as blood ketone levels of 0.5–3.0 mmol/L. Higher levels do not necessarily mean faster fat loss — the relationship between ketone concentration and weight loss is not linear. Many experienced keto practitioners stop measuring ketones after the first few months, instead using subjective indicators like sustained energy, reduced appetite, and mental clarity to confirm they are in ketosis.

Keto-Adapted Athletic Performance

After 4–6 weeks of adaptation, many endurance athletes find that keto supports long-duration, low-to-moderate intensity exercise effectively. Fat provides a virtually unlimited fuel source (even a lean person carries 30,000–40,000 calories of stored fat), eliminating the need for constant carbohydrate refueling during long events. However, keto impairs high-intensity anaerobic performance — sprinting, heavy lifting, and HIIT suffer because these activities rely on glycogen, which is depleted on keto. Many athletes use a targeted or cyclical keto approach, consuming 20–50g of fast-acting carbs before intense training while maintaining ketosis otherwise. Estimate your exercise-related calorie expenditure with our Calories Burned Calculator.

Monitoring Ketosis and Adjusting Macros

Achieving and maintaining nutritional ketosis requires monitoring and periodic macro adjustments. Blood ketone meters are the gold standard for measuring beta-hydroxybutyrate (BHB) levels — nutritional ketosis is generally defined as 0.5-3.0 mmol/L, with the optimal range for weight loss typically 1.5-3.0 mmol/L. Urine ketone strips are inexpensive but become less accurate over time as the body adapts to using ketones efficiently and excretes fewer in urine. Breath acetone analyzers offer a non-invasive alternative, though with lower precision. Common reasons for stalled ketosis include hidden carbohydrates in sauces, dressings, and processed foods; excessive protein intake triggering gluconeogenesis (the body converting protein to glucose); and caloric surplus that prevents fat loss despite being in ketosis. Macro adjustments every 4-6 weeks based on progress are recommended — as body weight decreases, recalculating caloric needs and macro targets prevents plateaus caused by metabolic adaptation to the lower body weight.

How many carbs can I eat on keto?
Standard keto limits net carbs to 20–30g per day. Net carbs = total carbs minus fiber. Some people can maintain ketosis at 50g, but 20g is the safest target for beginners to ensure they enter ketosis.
How much protein should I eat on keto?
0.7–1.0g per pound of lean body mass (or 0.6–0.8g per pound of total body weight). Too little causes muscle loss; too much can theoretically disrupt ketosis through gluconeogenesis, though this is often overstated.
How long does it take to get into ketosis?
Most people enter ketosis within 2–4 days of restricting carbs below 20–30g/day. Full fat-adaptation (where your body efficiently uses ketones) takes 2–6 weeks. Testing with urine strips or blood monitors confirms ketosis.
How many carbs can I eat and stay in ketosis?
Most people enter and maintain ketosis at 20-50 grams of net carbs per day. Highly active individuals and those who are metabolically flexible may tolerate up to 50-75 grams. Beginners should start at 20 grams to ensure reliable ketosis, then gradually test higher amounts. Net carbs = total carbs minus fiber minus sugar alcohols. Tracking with a food app is essential in the first few weeks.
Is keto safe long-term?
Short to medium-term keto (3-12 months) appears safe for most healthy adults based on available research. Long-term concerns include potential nutrient deficiencies (fiber, certain vitamins, minerals), elevated LDL cholesterol in some individuals, kidney stress from high protein in susceptible people, and reduced gut microbiome diversity. Regular blood work and medical supervision are recommended for anyone following keto beyond 6 months.

See also: Calorie Calculator · TDEE Calculator · Protein Intake Calculator · Ovulation Calculator · Biological Age Calculator

How to Use This Calculator

  1. Enter your body metrics — Input your weight, height, age, and biological sex. These determine your basal metabolic rate, which forms the foundation for calculating daily macro targets.
  2. Select your activity level — Choose from sedentary to very active. Your activity multiplier converts BMR into total daily energy expenditure (TDEE), which determines how many total calories you need.
  3. Set your goal: maintenance, deficit, or surplus — For weight loss, a 10–20% calorie deficit is typical on keto. For maintenance, use your TDEE. For muscle gain, a 5–10% surplus with adequate protein and resistance training.
  4. Review your daily macro targets in grams — The calculator shows daily targets for net carbs (typically 20–50g), protein (based on lean body mass), and fat (filling the remaining calories). Fat is the variable that adjusts to your calorie target.

Tips and Best Practices

Protein is the most important keto macro — not fat. Adequate protein (0.7–1.0g per pound of lean body mass) preserves muscle during weight loss and supports satiety. Many keto beginners over-eat fat and under-eat protein. Fat fills remaining calories — it's not a goal to maximize. Use our Macro Calculator to compare keto macros with other approaches.

Track net carbs, not total carbs. Net carbs = total carbs minus fiber minus sugar alcohols (partially). Fiber doesn't raise blood sugar or affect ketosis. A food with 15g total carbs and 10g fiber has only 5g net carbs. This distinction lets you eat more vegetables while staying in ketosis.

The "keto flu" during the first 1–2 weeks is electrolyte depletion, not carb withdrawal. Restricting carbs causes the body to excrete more sodium, potassium, and magnesium. Supplementing with 3,000–5,000mg sodium, 1,000–3,500mg potassium, and 300–500mg magnesium daily prevents headaches, fatigue, and cramping. Bone broth and salted foods help.

Ketosis requires consistently low carbs — one high-carb day resets the process. It takes 2–7 days to enter ketosis and return after a carb spike. Occasional carb cycling is a valid strategy for athletes, but frequent exits and re-entries cause repeated "keto flu" symptoms. Decide on a consistent approach. Estimate body composition changes with our Body Fat Calculator.

See also: Macro Calculator · Calorie Calculator · Body Fat Calculator · Carbohydrate Calculator · Fat Intake Calculator

📚 Sources & References
  1. [1] Harvard T.H. Chan. Diet Review: Ketogenic Diet. HSPH.Harvard.edu
  2. [2] NIH/NIDDK. Very Low-Calorie Ketogenic Diets. NIDDK.NIH.gov
  3. [3] Epilepsy Foundation. Ketogenic Diet. Epilepsy.com
  4. [4] ADA. Low-Carb Diets and Diabetes. Diabetes.org
Editorial Standards — Every calculator is built from peer-reviewed formulas and official data sources, editorially reviewed for accuracy, and updated regularly. Read our full methodology · About the author

Electrolyte Management and the Keto Flu

The transition into nutritional ketosis triggers significant shifts in fluid and electrolyte balance that cause the constellation of symptoms known as keto flu — headache, fatigue, muscle cramps, nausea, and brain fog, typically lasting three to seven days. The mechanism is straightforward: insulin levels drop, signaling the kidneys to excrete sodium rather than retain it. Sodium loss pulls water with it (explaining the rapid initial weight loss, which is mostly water), and potassium and magnesium follow. Without deliberate electrolyte supplementation, these depletions cause symptoms that many people mistakenly attribute to the diet being harmful rather than a temporary adaptation phase.

Targeted supplementation prevents or resolves keto flu for most people. Sodium needs increase to 3,000 to 5,000 milligrams per day — far above the standard dietary recommendation — because the kidneys continuously excrete sodium at higher rates during ketosis. Potassium needs are 3,500 to 4,700 milligrams daily, obtainable through avocado, spinach, mushrooms, and salmon or through supplementation. Magnesium glycinate or citrate at 300 to 400 milligrams daily addresses the third common deficiency. Bone broth provides sodium and other minerals in a bioavailable form and is a common keto staple. These electrolyte needs remain elevated for the entire duration of the ketogenic diet, not just the adaptation period — ongoing supplementation prevents the muscle cramps and fatigue that cause many people to abandon the diet after the initial weeks.