ModernCalcs

Keto Calculator - Ketosis Macro Planner

Calculate personalized macros for ketogenic diet. Get your ideal fat, protein, and carb intake based on 75-20-5 keto ratios. Achieve and maintain ketosis for effective weight loss.

Weight LossLose ~1 lb (0.45 kg) per week
Maintain WeightKeep current weight
Muscle GainGain ~0.5 lb (0.23 kg) per week
Try Examples:
BMR1,420calories/day at rest
TDEE1,953maintenance calories
Target Calories1,453weight loss

Keto Macro Breakdown

🥑
Fat
121g(75%)
1090 calories
Primary energy source on keto
🥩
Protein
73g(20%)
291 calories
Preserves muscle mass
🥦
Carbs
18g(5%)
73 calories
Net carbs; < 50g/day
About Your Keto Macros
  • 75% Fat:Your body uses fat for energy instead of carbs (ketosis)
  • 20% Protein:Enough to maintain muscle without excess conversion to glucose
  • 5% Carbs:Very low to maintain ketosis (20-30g net carbs daily)
  • Net Carbs:Total carbs minus fiber. Focus on leafy greens and low-carb vegetables
  • Track your macros daily and adjust based on how you feel and your progress
  • It takes 2-4 days to enter ketosis. Stay patient and consistent.

Privacy First - 100% Browser-Based:

  • All operations happen locally in your browser
  • Your data is never sent to any server
  • No data is stored, tracked, or shared
  • Completely anonymous and secure
Keto-Friendly Supplements

Shop MCT oil, exogenous ketones and keto protein powders for your ketogenic diet

Shop Keto Supplements on Amazon →

* Affiliate link — helps support ModernCalcs at no extra cost to you

Medical Disclaimer:

This calculator is for educational and informational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always consult with a qualified health provider before making drastic changes.

Keto Calculator: Find Your Exact Ketogenic Macros

The ketogenic diet is not just 'low carb' — it requires a specific macronutrient ratio that shifts your body's primary fuel source from glucose to fat-derived ketone bodies. Getting those ratios wrong (too much protein, too many carbs, or too few calories) will prevent ketosis or undermine your goal. This keto calculator determines your personalized fat, protein, and carbohydrate gram targets based on your body stats, activity level, and specific objective.

Formula
Standard Keto: 5% carbs, 20% protein, 75% fat | Net Carbs = Total Carbs − Dietary Fiber

Macro percentages are starting guidelines. Individual carb tolerance for ketosis varies from 20–50 g/day. Adjust based on measured ketone levels and personal response.

How Ketosis Works: The Science of Fat Adaptation

Under normal conditions, the brain and muscles run primarily on glucose from dietary carbohydrates and stored glycogen. When carbohydrate intake drops below approximately 50 g/day, glycogen stores deplete within 24–48 hours. The liver then begins converting fatty acids into ketone bodies (beta-hydroxybutyrate, acetoacetate, and acetone), which cross the blood-brain barrier and serve as an alternative fuel. This metabolic state — nutritional ketosis — is characterized by blood ketone levels of 0.5–3.0 mmol/L.

Setting Your Keto Macros: The Right Order of Operations

Keto macros must be set in the correct sequence to avoid undermining the diet. First, determine your calorie target based on your TDEE and goal (deficit for fat loss, maintenance, or surplus for muscle gain). Second, set net carbs at 20–50 g/day — lower is more reliable for most beginners. Third, set protein at 1.2–1.7 g/kg of lean body mass to preserve muscle without exceeding a level that triggers gluconeogenesis. Finally, fill the remaining calories with fat — fat is the variable macro on keto, not the fixed one.

The Keto Flu: Why It Happens and How to Prevent It

Within the first 2–7 days of carb restriction, many people experience fatigue, headaches, brain fog, irritability, muscle cramps, and nausea — collectively called the keto flu. The mechanism is straightforward: as insulin drops and glycogen depletes, the kidneys excrete sodium, and water follows. This rapid fluid loss also takes potassium and magnesium with it. Prevention: add 1–2 g of extra sodium per day (bouillon cubes are effective), eat potassium-rich low-carb foods (avocado, spinach, salmon), and supplement magnesium glycinate or citrate (200–400 mg/day). Most symptoms resolve within a week.

Keto for Type 2 Diabetes and Insulin Resistance

The ketogenic diet has substantial clinical evidence for improving blood glucose control and insulin sensitivity in type 2 diabetes and prediabetes. By dramatically reducing dietary carbohydrate, the post-meal glucose spike is eliminated at the source. Several trials show reductions in HbA1c, fasting glucose, and medication requirements. However, people taking insulin or sulfonylureas must work closely with their doctor before starting keto, as medication doses may need rapid downward adjustment to prevent hypoglycemia.

Keto-Friendly Foods to Build Your Diet Around

  • Proteins: Fatty fish (salmon, sardines, mackerel), grass-fed beef, eggs, chicken thighs, bacon, lamb.
  • Fats: Avocado, olive oil, coconut oil, butter, MCT oil, full-fat cheeses, heavy cream, nuts (macadamia, pecan, walnut).
  • Vegetables: Spinach, kale, broccoli, cauliflower, zucchini, asparagus, bell peppers, mushrooms (all under 5 g net carbs per 100g).
  • Beverages: Water, sparkling water, black coffee, plain tea, electrolyte drinks with no sugar.

Foods to Eliminate on Keto

  • Grains and Starches: Bread, pasta, rice, oats, quinoa, corn, potatoes — even small servings can exhaust the daily carb budget.
  • Sugar and Sweetened Foods: All forms of sugar, honey, maple syrup, fruit juice, candy, cakes, and most condiments with added sugar.
  • Most Fruit: Bananas, grapes, mangoes, apples, and oranges are high in fructose. Small amounts of berries (strawberries, blueberries) are generally tolerated.
  • Legumes: Beans, lentils, and chickpeas are high in net carbs despite their protein content.
  • Low-fat Dairy: Often has added sugar to compensate for removed fat — always check labels.

Frequently Asked Questions

What is ketosis?

Ketosis is a metabolic state in which the body shifts its primary fuel source from glucose to ketone bodies — produced by the liver from stored fat. It occurs when carbohydrate intake is sufficiently restricted (typically below 50 g of net carbs per day) and liver glycogen is depleted. The body enters ketosis as an adaptive survival mechanism.

How many carbs can I eat on keto?

Most people achieve and maintain ketosis at 20–50 g of net carbs per day. Net carbs are calculated as total carbohydrates minus dietary fiber (and sugar alcohols for some). Starting at 20 g/day is the most reliable approach; some people can maintain ketosis at higher intakes depending on activity level and individual metabolism.

What is the keto flu and how do I avoid it?

Keto flu describes symptoms that appear in the first 1–5 days of carb restriction: headache, fatigue, brain fog, irritability, and muscle cramps. It is caused by rapid fluid and electrolyte loss as insulin drops and glycogen stores deplete. Prevention involves drinking adequate water and supplementing sodium (2–3 g/day extra), potassium, and magnesium.

Is keto safe for everyone?

The ketogenic diet is not appropriate for everyone. People with pancreatitis, liver failure, fat metabolism disorders, carnitine deficiency, or certain enzyme deficiencies should avoid it. Those with type 1 diabetes require close medical supervision due to risk of ketoacidosis. Always consult a healthcare provider before starting keto if you have any medical condition or take medication.

What foods are keto-friendly?

High-fat, low-carb foods are the foundation: fatty fish (salmon, sardines), meat and poultry, eggs, full-fat dairy (cheese, butter, heavy cream), nuts and seeds (macadamias, almonds, chia), non-starchy vegetables (spinach, broccoli, zucchini, cauliflower), avocado, and olive oil. Foods to avoid: bread, pasta, rice, sugar, most fruit, legumes, and starchy vegetables.

How long does it take to enter ketosis?

With strict carb restriction (under 20 g net carbs/day), most people enter ketosis within 2–4 days. Exercise accelerates the process by depleting glycogen faster. A single high-carb meal can kick you out of ketosis and require another 1–3 days to re-enter, which is why consistency in the first few weeks is critical.

Can I do keto as a vegetarian or vegan?

Vegetarian keto is feasible — it centers on eggs, full-fat dairy, nuts, seeds, and low-carb vegetables. Vegan keto is more challenging because it eliminates both animal products and most high-carb plant staples, but it is possible using tofu, tempeh, avocado, nuts, seeds, oils, and low-carb vegetables while carefully tracking net carbs and supplementing B12 and omega-3.

What is the difference between standard keto and cyclical keto?

Standard Ketogenic Diet (SKD) maintains low carbs continuously (5% carbs, 20% protein, 75% fat). Cyclical Keto (CKD) involves 5–6 low-carb days followed by 1–2 high-carb refeed days, primarily used by athletes to replenish muscle glycogen for intense training. SKD is recommended for weight loss and metabolic health; CKD is better suited to high-performance athletes.