Keto Macro Calculator
Calculate your ideal keto macros. Enter your daily calories to get fat, protein, and carb targets for the ketogenic diet.
What is Ketosis and How Does the Ketogenic Diet Work?
The ketogenic diet dramatically restricts carbohydrates to 20–50g per day (typically 5–10% of calories), replacing them with fat (70–80% of calories) and moderate protein (20–25%). This carbohydrate restriction depletes liver glycogen within 24–48 hours, forcing the liver to produce ketone bodies (beta-hydroxybutyrate, acetoacetate, acetone) from fat as an alternative fuel source. When ketones are elevated in the blood (typically 0.5–3.0 mmol/L), you're in nutritional ketosis.
The appeal: fat provides virtually unlimited fuel even for lean individuals (body fat stores = 50,000–100,000+ kcal), eliminating the energy crashes associated with glycogen depletion. Additionally, ketosis reduces hunger hormones, potentially making calorie reduction easier.
Ketogenic Macros: Standard Calculation
Setting up ketogenic macros follows a specific hierarchy:
- Carbohydrates: 20–50g total carbs/day (or 20–30g net carbs = total carbs − fiber). This is the non-negotiable constraint that determines whether ketosis is achieved.
- Protein: 1.2–1.7g/kg body weight. Adequate to maintain muscle mass. Excessive protein (>2.0g/kg) can be gluconeogenic (converted to glucose), potentially interfering with ketosis.
- Fat: Fill remaining calories. Fat is the metabolic lever — eat enough to feel satisfied without a calorie surplus (if weight loss is the goal).
Example: 75 kg person, TDEE 2,400 kcal, keto fat loss goal (deficit 400 kcal): Carbs: 25g × 4 = 100 kcal (4%). Protein: 1.5g × 75 = 112.5g × 4 = 450 kcal (22%). Fat: (2000 − 100 − 450) / 9 = 161g fat (74%).
Ketosis Testing Methods
Verifying ketosis requires measuring ketone levels:
| Method | Ketone Measured | Accuracy | Cost |
|---|---|---|---|
| Blood ketone meter | BHB (most metabolically active) | High | $30 device + $1–2/strip |
| Urine test strips | Acetoacetate | Moderate (decreases with adaptation) | $0.10/strip |
| Breath acetone meter | Acetone | Moderate | $100–200 device, free per test |
Nutritional ketosis: blood BHB 0.5–3.0 mmol/L. This range is safe and associated with keto's metabolic benefits. Above 5.0 mmol/L (diabetic ketoacidosis range) indicates a medical emergency — only occurs in type 1 diabetes without insulin, not in healthy individuals on keto diets.
Keto and Athletic Performance: The Evidence
The relationship between ketogenic dieting and athletic performance is complex and context-dependent:
- Low-intensity endurance (less than 65% VO2max): Keto-adapted athletes can match carbohydrate-fueled performance after 3–6 weeks of adaptation. Fat oxidation capacity increases dramatically. This has led some ultra-endurance athletes to adopt keto for very long-duration events.
- Moderate-high intensity running (above 70% VO2max): Carbohydrate remains essential. Research by Burke et al. (2017) showed keto-adapted elite race walkers had significantly impaired performance at race pace intensities compared to high-carb athletes. The primary reason: fat oxidation cannot supply energy quickly enough for high-intensity effort.
- Strength training: Moderate evidence that keto impairs acute strength performance. Long-term (6+ months) adaptation may reduce this effect.
Bottom line for competitive runners: standard carbohydrate-periodized approaches outperform keto at most race distances and intensities. Keto may have a niche for ultra-endurance events at lower intensities.
'Keto Flu': Managing the Adaptation Period
The first 1–2 weeks of ketogenic dieting often produce flu-like symptoms: headache, fatigue, brain fog, irritability, muscle cramps, and nausea. This 'keto flu' results from three mechanisms: (1) electrolyte loss from rapid glycogen/water depletion, (2) the metabolic transition from glucose to ketone utilization, and (3) potential gut microbiome disruption.
Managing keto flu:
- Electrolytes: Sodium (3,000–5,000mg/day), potassium (3,500–4,700mg/day), magnesium (300–500mg/day). Keto diets are diuretic early on — significant electrolyte losses occur. Bone broth, salting food liberally, and electrolyte supplements help.
- Gradual carb reduction: Reducing from 200g to 50g carbs over 2 weeks (rather than cutting cold turkey) reduces keto flu severity.
- Fat adaptation time: Full keto adaptation — where the brain and muscles operate efficiently on ketones — takes 3–6 weeks, not the 3–5 days many sources claim.
Foods on a Ketogenic Diet
Keto-compatible foods (high fat, low carb):
- Proteins: All meats, fish, eggs, full-fat dairy (cheese, butter, cream)
- Fats: Avocado, olive oil, coconut oil, nuts, seeds
- Vegetables: Leafy greens, broccoli, cauliflower, zucchini, peppers (avoid high-starch vegetables)
- Avoid: Grains, legumes, fruit (except small amounts of berries), root vegetables, sugar, most dairy (milk contains lactose)
Tracking net carbs (total carbs minus fiber) rather than total carbs allows more vegetable consumption — fiber doesn't meaningfully raise blood glucose or interfere with ketosis. A 30g net carb limit with fiber included allows consumption of significant amounts of non-starchy vegetables.
Tips for Getting Accurate Results
For the most accurate calculations, use precise inputs. Body weight should be measured at the same time each day (morning, after using the bathroom, before eating). Height should be measured standing straight against a wall. For calculations involving body fat percentage, use consistent measurement methods — if using bioelectrical impedance scales, measure at the same hydration level each time. If tracking changes over time, compare measurements taken under identical conditions.
Remember that all calculators provide estimates based on population averages and validated formulas. Individual variation is real — genetic factors, hormonal status, training history, and gut microbiome composition all affect how your body responds to diet and exercise. Use calculator outputs as starting points and adjust based on your real-world results over 4–8 weeks.
When to Consult a Healthcare Professional
These calculators are educational tools for general health and fitness guidance. They are not medical devices and do not replace professional medical advice. Consult a healthcare professional if: your results indicate values outside healthy ranges (BMI under 17 or over 35, body fat under 5% for men or 10% for women); you're experiencing symptoms that concern you; you're pregnant, have a chronic medical condition, or take medications that affect metabolism; or you're planning significant dietary or exercise changes alongside a medical condition.
For personalized nutrition advice, a registered dietitian (RD/RDN) can provide individualized guidance based on your complete health picture. For performance optimization, a sports medicine physician or certified strength and conditioning specialist (CSCS) can assess your fitness and create appropriate programming.
Frequently Asked Questions
How many carbs can I eat on keto?
20–50g total carbs per day (or 20–30g net carbs for most people). Individual variation exists — some people achieve ketosis at 50g, others need to go under 20g. The reliable way to know: test your blood ketones after 3–4 days of a specific carb level.
How long does it take to get into ketosis?
Light ketosis begins within 24–48 hours of cutting carbs below 50g, once liver glycogen is depleted. Measurable blood ketones (0.5+ mmol/L) typically appear within 2–3 days. Full fat-adaptation (efficient use of ketones for brain and muscle function) takes 3–6 weeks of sustained ketosis.
Is keto good for runners?
For easy/recreational running, keto can work adequately after full adaptation. For competitive runners targeting fast race times at any distance from 5K to marathon, high-carb approaches outperform keto due to the critical role of glycogen at race intensities. Ultra runners at very slow paces may find keto viable.
What happens when you cheat on keto?
A single high-carb meal kicks you out of ketosis temporarily. Blood glucose rises, insulin spikes, and ketone production stops. Return to ketosis typically takes 1–2 days after resuming low-carb eating. Glycogen stores don't fully reload from one cheat meal — it takes multiple high-carb days to fully replenish glycogen.
Is keto safe long-term?
Current evidence suggests keto is safe for most healthy adults long-term, though studies beyond 2 years are limited. Potential concerns for athletes: bone density (some studies show decreased BMD), reduced fiber intake if vegetables aren't prioritized, and potential performance impairment at high intensities. Regular blood work monitoring is recommended for long-term keto practitioners.
How often should I recalculate?
Recalculate when your weight changes by 5+ kg, when your activity level changes significantly, or every 3–6 months to account for age-related metabolic changes. For athletes, recalculate training-related values (VDOT, training zones, VO2max estimates) after each significant race or every 6–8 weeks of structured training.
Are these calculations accurate for everyone?
All calculations use validated scientific formulas but are estimates based on population averages. Individual variation means any estimate could be off by 10–20% for a specific person. Use the results as starting points and adjust based on real-world outcomes over several weeks of monitoring.