How to Use Keto Calculator — Ketogenic Macros
Step 1: Add basics
Enter age, sex, height, and weight. Choose metric or US units.
Step 2: Pick activity
Select your weekly activity level to estimate TDEE.
Step 3: Set a goal
Choose maintain, weight loss (−10% to −25%), or gain (+10%).
Step 4: Choose net carbs
Enter a daily net-carb cap (most use 20–30 g).
Step 5: Refine protein
Optionally add body fat % to set protein from lean mass.
Step 6: Review targets
See daily calories plus protein, net carbs, and fat in grams.
Key Features
- TDEE-based calories
- Net-carb caps
- Protein from lean mass
- Flexible goals
- Metric & US units
- Mobile-first UI
Understanding Results
Formula
Your calorie target starts with an estimated basal metabolic rate (BMR) and a total daily energy expenditure (TDEE). When you enter body fat percentage, the calculator uses Katch–McArdle (BMR = 370 + 21.6 × Lean Mass kg). Otherwise it uses Mifflin–St Jeor (BMR = 10 × weight kg + 6.25 × height cm − 5 × age ± sex constant). TDEE is BMR multiplied by your selected activity factor. The goal (e.g., −20%) adjusts TDEE up or down to set a daily energy target.
Keto macros are then set in grams, not just percentages. Net carbs are a fixed cap (commonly 20–30 g). Protein is a daily minimum, ideally based on lean mass (for example, 1.6 g per kilogram of lean mass). Fat fills the remaining calories so you hit your energy target.
Reference Ranges & Interpretation
Many people aim for 20–30 g net carbs to reach nutritional ketosis. Protein targets are commonly 1.2–2.2 g/kg lean mass depending on activity and preference. Fat is variable—on weight loss, fat grams decrease to create a calorie deficit; on maintenance or gain, fat increases. Expect macro percentages to float rather than stay fixed: keto isn’t a single ratio; it’s a carb-restricted pattern with adequate protein and fat adjusted to energy needs.
Assumptions & Limitations
Equations estimate energy needs and won’t capture day‑to‑day changes in stress, sleep, or training. Net‑carb tolerance differs by person. Electrolytes and hydration matter during adaptation. This tool is informational only and not medical advice—people with medical conditions or taking medications should talk to a clinician before changing diet.
Complete Guide: Keto Calculator — Ketogenic Macros

Use the keto calculator to set net carbs, protein, and fat levels to enter and maintain ketosis with clear daily targets. Get instant, personalized results.
On this page
What is a ketogenic diet?
A ketogenic diet is a carbohydrate‑restricted eating pattern designed to shift your primary fuel from glucose to ketone bodies. Practically, it means keeping daily net carbohydrates low enough that your liver produces ketones from fat. For many adults, this occurs when net carbs are roughly 20–30 grams per day, though the exact threshold varies by body size, activity, and insulin sensitivity. Protein remains moderate to adequate (to support muscle and satiety), and fat is used to reach your energy needs.
Keto is not a single fixed ratio. Instead, it is a framework: cap carbs, ensure adequate protein, and let fat adjust to your goal. This calculator embraces that framework by focusing on macro grams and evidence‑based energy estimation rather than rigid percentages.
How the keto calculator works
The tool estimates your basal metabolic rate (BMR) and total daily energy expenditure (TDEE), then subtracts or adds a percentage to reflect your goal. When you provide body fat percentage, it prioritizes Katch–McArdle, which estimates BMR from lean body mass (BMR = 370 + 21.6 × LBM kg). If body fat is unknown, it falls back to Mifflin–St Jeor, a widely used equation based on sex, weight, height, and age. TDEE multiplies BMR by an activity factor you select.
Keto macros are then assigned in this order: (1) net carbs are a fixed cap you control; (2) protein is set as a daily minimum, ideally using lean mass; and (3) fat fills the remaining calories so you land near your daily energy target. The end result is a simple set of daily gram targets that align with your goal and routine.
Picking your net‑carb target
For many people, 20–30 g of net carbs per day is a practical starting point for nutritional ketosis. If you are highly active, metabolically flexible, or using targeted strategies around workouts, you may tolerate more. If you are very sensitive to carbs or want a stricter start, 15–20 g may be better. The calculator lets you choose the number that fits your plan.
Net carbs are total carbs minus fiber and certain sugar alcohols. Read labels carefully and be consistent in how you log foods. When unsure, assume the conservative case. Keeping net carbs steady for at least one to two weeks helps you evaluate response.
Setting protein the smart way
Adequate protein protects muscle mass during weight loss and supports recovery if you train. A sensible range for most adults on keto is roughly 1.2–2.2 grams per kilogram of lean mass (LBM). If you know your body fat percentage, the calculator derives LBM and sets protein from that value. If you don’t, it uses a conservative factor from total body weight.
Err on the side of meeting (not undercutting) your protein minimum. Very low protein intakes can compromise satiety and lean mass. If you lift weights, train frequently, or are older, the higher end of the range is usually more appropriate. Consider pairing this tool with our Protein Calculator andLean Body Mass Calculator for additional context.
Choosing your calorie goal
Calories determine the pace of weight change. A modest deficit (about −10% to −20% below TDEE) balances progress with sustainability. Aggressive cuts (e.g., −25%) are possible short‑term but can be stressful and harder to maintain. For maintenance, aim near 100% of TDEE. For muscle gain, a small surplus (around +10%) is common. If your activity varies week to week, let your food intake vary with it.
If you want a deeper dive into energy needs, try our TDEE Calculator andCalorie Calculator. For a non‑keto take on macro splits, explore the general Macro Calculator as well.
Macro grams vs. percentages
Traditional keto is often described by percentages (for example, 5% carbs, 20% protein, 75% fat), but percentages can be misleading when calories change. This is why our tool focuses on grams: a fixed net‑carb cap, an adequate protein minimum, and fat grams that move up or down to match calories. As calories fall on a cut, fat grams drop; as calories rise (maintenance or gain), fat grams increase.
If you still want to glance at percentages, the calculator shows them so you can see the overall pattern. Just remember that percentages are the outcome of your gram targets—not the other way around.
Tracking and logging net carbs
Accurate logging helps during the first few weeks of keto. Weigh or measure a few representative meals so you learn portions quickly. Focus on net carbs of whole foods and minimally processed choices you enjoy. When you eat out, assume a higher carb count and plan accordingly.
Use our Carb Calculator to explore carb targets, and if you want structure beyond macros, our Meal Plan Calculator can help you translate grams into meals.
Electrolytes, hydration, and adaptation
During the first 1–2 weeks (sometimes called “keto adaptation”), insulin drops and you shed water. Along with water go electrolytes—sodium, potassium, and magnesium. Low electrolytes can cause headaches, fatigue, and cramps. Prioritize hydration and consider adding sodium to taste (for example, a cup of broth) while keeping potassium and magnesium adequate from food.
Many people feel significantly better when they deliberately manage electrolytes early on. If symptoms persist, reassess net carbs, total calories, sleep, and stress. Persistent or severe symptoms warrant a conversation with a clinician.
Common mistakes and how to fix them
The most common issues are (1) under‑eating protein, (2) over‑relying on percentages, (3) letting net carbs creep up, and (4) ignoring electrolytes. Fix them by meeting your protein minimum, using a steady net‑carb cap, keeping an eye on portions of high‑fat snacks, and salting food to taste. If you strength train, align higher‑protein meals near workouts. If your progress stalls, check calorie intake with a fresh week of careful logging.
For a different lens on progress, some users also look at body composition measures. Our Body Fat Percentage Calculator can give additional context over time.
Example day of eating at 25 g net carbs
Everyone’s preferences are different, but here’s a simple template that many enjoy: eggs and avocado for breakfast; a large salad with olive oil and a protein like salmon or chicken for lunch; and a dinner of non‑starchy vegetables, olive‑oil sautéed greens, and a fatty protein such as steak, pork, or tofu. Adjust seasoning liberally and feel free to include low‑net‑carb dairy if tolerated. Berries in small portions can fit some plans. As always, match portions to your macro targets.
Next steps and related tools
Use this keto calculator — ketogenic macros frequently during your first month and anytime your activity or body weight changes. For deeper planning, grab your energy baseline with the TDEE Calculator, adjust daily calories with the Calorie Calculator, and test broader splits with the Macro Calculator or the focused Keto Macro Calculator. If you are experimenting with meal timing, the Intermittent Fasting Calculator can help map fast/feed windows.
Who should be cautious or talk to a professional
Keto is not appropriate for everyone. If you are pregnant, breastfeeding, underweight, have a history of eating disorders, or take medications (especially for diabetes or blood pressure), consult a clinician before changing your diet. Certain rare metabolic conditions also contraindicate ketogenic diets. If you are unsure, seek qualified guidance.
Practical tips for keto macros
Start simple: pick a steady net‑carb cap, set a protein minimum you can actually hit most days, and let fat adjust to appetite and goals. Many people find it easier to pre‑plan one or two anchor meals (for example, eggs at breakfast and a salad with olive oil and a protein at lunch) and then rotate dinner options. Pre‑portion nuts, cheese, and dressings; these calorie‑dense foods are easy to overpour when you are busy.
For logging, use grams in the early weeks even if you prefer “hand estimates” later. Check labels for hidden sugars and remember that fiber subtracts from total carbs to yield net carbs. If your weight or training changes, re‑run the calculator to refresh energy targets. Most stalls come from drifting carbs, inconsistent protein, or generous snacks — tighten those first before making big changes.
Finally, pair nutrition with sleep and movement. Walking after meals and resistance training help preserve lean mass and improve insulin sensitivity. Adequate sleep reduces cravings and makes adherence easier. A steady routine beats perfection; aim for consistency you can maintain for months, not days.
Evidence snapshot (brief)
Ketogenic and low‑carb diets have been studied for weight management and metabolic health in various populations. While responses differ, consistent findings include improved glycemic control for some individuals, often alongside reductions in body weight and triglycerides. Longer‑term adherence and food quality matter as much as the macro split. For clinical decisions, rely on your healthcare provider and primary research.
External references (non‑commercial): Ketogenic Diet — NCBI Bookshelf • NIDDK — Healthy Living with Diabetes

Written by Marko Šinko
Lead Developer
Computer scientist specializing in data processing and validation, ensuring every health calculator delivers accurate, research-based results.
View full profileFrequently Asked Questions
What is the keto calculator and who is it for?
The keto calculator estimates daily calories and ketogenic macros (protein, net carbs, and fat) based on your body size, activity, and goal. It is for adults who want simple, data‑driven targets to start or fine‑tune a ketogenic diet.
How accurate is this keto calculator?
It uses Mifflin–St Jeor or Katch–McArdle (when body fat % is provided) to estimate BMR, then applies activity multipliers to reach TDEE. These are well‑known equations and suitable for planning, but real‑world response varies.
Do I have to set net carbs to 20 g?
Not necessarily. Many people choose 20–30 g net carbs to reach and maintain nutritional ketosis, but tolerance differs. Start lower, track your response, and adjust if needed.
How does protein work on keto?
Protein is set as a daily minimum, ideally from lean body mass. Adequate protein protects muscle during weight loss and supports satiety. Going extremely low on protein is not recommended.
Will the calculator tell me exactly what to eat?
No. It provides calorie and macro targets in grams. You can meet those targets with many food patterns. Choose whole foods you tolerate well and consider electrolytes and hydration during adaptation.
Is this medical advice?
No. This tool is informational and not a diagnosis or treatment plan. If you have a health condition, pregnancy, or take medications, talk to a healthcare professional before changing your diet.
Related Calculators
BMR Calculator: Basal Metabolic Rate by Proven Formulas
Use our BMR calculator to estimate your basal metabolic rate using Mifflin–St Jeor or revised Harris–Benedict formulas. Choose metric or US units and see TDEE.
Calorie Calculator: Daily TDEE and Intake Estimate
Use our calorie calculator to estimate daily energy needs (TDEE) from age, sex, height, weight, and activity. See maintain, loss, and gain targets instantly.
Calorie Deficit Calculator — Set a Safe Daily Deficit
Use our calorie deficit calculator to set a safe daily calorie target. Estimate TDEE, choose a weekly weight-loss rate, and see deficit, timeline, and guidance.
Calorie Intake Calculator: Daily Calories for Your Goal
Use our calorie intake calculator to estimate daily calories from your BMR and activity. Choose weight loss, maintenance, or gain and get practical targets.
Carb Calculator: Set Daily Carbohydrate Targets Online
The carb calculator assigns daily carbohydrates by calories, macro split, and training needs. Get instant results tailored to your goal and body. Easy to use.
Chipotle Bowl Calorie Calculator: Build and Track Macros
Use our chipotle bowl calorie calculator to see calories and macros update instantly. Choose rice, beans, protein, salsa, and toppings, plus portion controls.