Skip to main content
health

Keto Macro Calculator

Calculate ketogenic diet macronutrient targets with strict carb limits (typically 20-50 g/day), high fat, and moderate protein for achieving and maintaining nutritional ketosis.

Reviewed by Chase FloiedUpdated

This free online keto macro calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

20-50 g for ketosis

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Keto Macro Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Keto Macro Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Keto Macro Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the Keto Macro Calculator for personal health tracking and wellness monitoring, establishing a baseline and tracking changes over time.
  • Use it when recording fitness metrics to track progress toward health or athletic goals.
  • Use it to compare measurements before and after a lifestyle, diet, or training change to quantify the impact.
  • Use it as a conversation starter before a doctor's appointment, bringing objective data to discuss with a healthcare professional.

About This Calculator

The Keto Macro Calculator is a free health and wellness calculation tool designed for personal use and general informational purposes. Calculate ketogenic diet macronutrient targets with strict carb limits (typically 20-50 g/day), high fat, and moderate protein for achieving and maintaining nutritional ketosis. This calculator provides reference values based on established health screening formulas and should not be used as a substitute for professional medical advice, diagnosis, or treatment. Results may vary based on individual factors not captured by the calculation. Consult a qualified healthcare provider for personalized health guidance. All calculations are performed locally in your browser — no personal health data is transmitted or stored.

About Keto Macro Calculator

The Keto Macro Calculator computes macronutrient targets specifically for a ketogenic diet, where carbohydrate intake is restricted to 20-50 grams of net carbs per day to induce nutritional ketosis. In ketosis, the liver converts fatty acids into ketone bodies, which serve as an alternative fuel source for the brain and muscles. The calculator fixes your carb target, sets protein based on body weight to preserve muscle, and fills the remaining calories with dietary fat. Typical keto macros are approximately 5-10% carbs, 20-25% protein, and 65-75% fat.

The Math Behind It

Nutritional ketosis is a metabolic state where blood ketone levels (beta-hydroxybutyrate) rise to 0.5-3.0 mmol/L due to restricted carbohydrate availability. The liver upregulates ketogenesis, producing acetoacetate and beta-hydroxybutyrate from fatty acids. **Achieving ketosis** requires depleting liver glycogen stores (~100 g), which typically takes 2-4 days of consuming fewer than 50 g of net carbs. Most people enter ketosis at under 30 g net carbs; the 20 g threshold is nearly universally effective. **Net carbs vs. total carbs**: Net carbs = total carbohydrates minus fiber minus sugar alcohols. Fiber and most sugar alcohols are not digested and do not raise blood glucose or insulin. **Protein on keto**: Moderate protein is essential. Too little causes muscle loss; too much can theoretically stimulate gluconeogenesis, though this concern is overstated in current research. A range of 1.2-2.0 g/kg body weight is appropriate for most people on keto. **Common keto benefits reported in research**: improved insulin sensitivity, appetite reduction, steady energy levels, potential neurological benefits (originally developed for epilepsy treatment in the 1920s). Evidence also supports short-term weight loss exceeding isocaloric non-keto diets, likely due to water loss from glycogen depletion and increased satiety from fat and protein. **Keto flu**: During the first 1-2 weeks, sodium, potassium, and magnesium losses increase as insulin drops and the kidneys excrete more water. Supplementing electrolytes (particularly 3-5 g sodium, 1 g potassium, and 300-400 mg magnesium daily) mitigates symptoms like fatigue, headaches, and muscle cramps.

Formula Reference

Keto Macro Split

Fat (g) = (Calories - Carbs×4 - Protein×4) / 9

Variables: Carbs fixed (20-50g), protein = g/kg × weight, fat fills remainder

Worked Examples

Example 1: Standard Keto

2000 kcal, 25 g net carbs, 1.5 g/kg protein, 80 kg

Step 1:Protein: 1.5 × 80 = 120 g (480 kcal)
Step 2:Carbs: 25 g (100 kcal)
Step 3:Remaining for fat: 2000 - 480 - 100 = 1420 kcal
Step 4:Fat: 1420 / 9 = 158 g
Step 5:Fat %: 1420/2000 = 71%

25 g carbs, 120 g protein, 158 g fat (71% of calories from fat).

Example 2: High Protein Keto

1800 kcal, 30 g net carbs, 2.0 g/kg protein, 70 kg

Step 1:Protein: 2.0 × 70 = 140 g (560 kcal)
Step 2:Carbs: 30 g (120 kcal)
Step 3:Fat: (1800 - 560 - 120) / 9 = 124 g
Step 4:Fat %: 1120/1800 = 62.2%

30 g carbs, 140 g protein, 124 g fat (62% fat).

Common Mistakes & Tips

  • !Confusing total carbs with net carbs. Fiber does not count toward the carb limit for ketosis purposes.
  • !Eating too little protein to 'stay in ketosis' — excessive gluconeogenesis from protein is largely a myth. Prioritize adequate protein.
  • !Ignoring electrolyte needs during the transition period, leading to preventable 'keto flu' symptoms.
  • !Assuming ketosis equals fat loss. You still need a calorie deficit to lose body fat; ketosis alone does not guarantee weight loss.

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

How many carbs to stay in ketosis?

Most people achieve ketosis at under 50 g net carbs per day. For guaranteed ketosis, 20 g net carbs is the widely recommended starting point. Individual tolerance varies — some people maintain ketosis at 50-75 g, especially if very active.

Will too much protein kick me out of ketosis?

Unlikely. Gluconeogenesis (converting protein to glucose) is demand-driven, not supply-driven. Research shows that even protein intakes of 2.0-2.4 g/kg do not prevent ketosis in most people. Prioritize adequate protein over fear of excess.

How long does it take to get into ketosis?

Typically 2-4 days of consuming under 20-50 g net carbs. Liver glycogen must be depleted first (~100 g stored). Exercise accelerates the process by depleting glycogen faster.

Is keto safe long-term?

Short-term (up to 2 years), keto appears safe for most healthy adults. Long-term data is limited. Concerns include potential increases in LDL cholesterol in some individuals, and the difficulty of meeting all micronutrient needs with such restricted food choices. Consult a physician for extended use.