Nutrition & Diet
Keto Calculator
The ketogenic diet typically uses 70 to 80% fat, 20 to 25% protein, and 5% net carbs. Enter calories and protein for your keto macros.
Enter your details
Results
Ketosis is a measured metabolic state
A ketogenic diet restricts carbohydrate enough for the liver to produce more ketone bodies from fatty acids.
Blood beta-hydroxybutyrate at or above about 0.5 mmol/L is commonly used to describe nutritional ketosis, but thresholds vary across studies and treatment protocols. A macro calculation cannot confirm that state. Clinical ketogenic diets were developed for epilepsy and remain a treatment option for drug-resistant seizures under specialist care. Weight-loss and diabetes programs often use less rigid versions. Evidence from one indication should not be transferred to another because epilepsy protocols can use weighed meals, ketogenic ratios, supplements, and laboratory monitoring.
Nutritional ketosis differs from diabetic ketoacidosis. Ketoacidosis involves dangerous acid accumulation, often with insulin deficiency, illness, or sodium-glucose cotransporter 2 inhibitor use. Symptoms such as vomiting, abdominal pain, rapid breathing, or confusion require urgent care regardless of a diet plan.
Common ketogenic approaches
| Approach | Carbohydrate pattern | Typical context |
|---|---|---|
| Classic 4:1 ratio | Very low, weighed prescription | Drug-resistant epilepsy |
| Modified Atkins | Low carbohydrate, less rigid | Clinical epilepsy programs |
| Very-low-carbohydrate ketogenic | Often under 50 g/day | Weight or metabolic programs |
| Low carbohydrate, not necessarily ketogenic | Under 130 g/day | General carbohydrate reduction |
How this keto calculator works
Enter calories, protein grams, and the carbohydrate setting. Carbohydrate calories = carbohydrate grams × 4. Protein calories = protein grams × 4. Fat grams = remaining calories ÷ 9. Remaining calories = total calories minus carbohydrate calories minus protein calories. At 2,000 kcal with 25 g carbohydrate and 120 g protein, carbohydrate supplies 100 kcal and protein supplies 480 kcal. Remaining energy is 1,420 kcal. Fat = 1,420 ÷ 9 = 158 g after rounding. This is about 71 percent of total energy from fat.
The output becomes invalid if protein and carbohydrate calories exceed the total calorie target.
It also assumes the calorie target is appropriate and that net carbohydrate is calculated consistently. Clinical epilepsy ratios use grams of fat relative to combined protein and carbohydrate, which is a different calculation.
Worked 2,000 kcal ketogenic calculation
| Component | Calculation | Result |
|---|---|---|
| Carbohydrate | 25 g × 4 | 100 kcal |
| Protein | 120 g × 4 | 480 kcal |
| Energy left for fat | 2,000 - 100 - 480 | 1,420 kcal |
| Fat | 1,420 ÷ 9 | 158 g |
Typical ketogenic macronutrient distribution. ADA notes keto may benefit select diabetes patients under supervision.
| Macro | Percent of calories | Grams at 2,000 kcal |
|---|---|---|
| Fat | 70 to 80% | 155 to 178 g |
| Protein | 15 to 25% | 75 to 125 g |
| Net carbs | 5 to 10% | 25 to 50 g (max) |
How to use the macro result
Set protein from body weight, training, age, and medical status before assigning remaining energy to fat. Gluconeogenesis is a regulated process and does not justify inadequate protein. People preserving muscle during weight loss still need resistance training and sufficient protein. Introduce restriction with a food plan and medication review. Track total and net carbohydrate, fiber, saturated fat, symptoms, and blood glucose when relevant.
Blood beta-hydroxybutyrate can verify ketosis, while urine strips become less informative as renal ketone excretion changes.
Review weight, blood pressure, bowel function, training performance, fasting lipids, and kidney or liver tests when a clinician recommends them. Appetite reduction can help some people lower energy intake, but calculated fat is not a quota that must be consumed when fullness is adequate.
Build meals from nutrient-dense foods
Use nonstarchy vegetables, fish, eggs, tofu, poultry, unsweetened dairy when tolerated, nuts, seeds, avocado, olives, and unsaturated oils.
Butter, bacon, coconut oil, and large cheese portions can push saturated fat high even when the macro ratio looks correct. A meal might pair salmon with leafy vegetables, olive oil, and avocado. Another might use tofu, broccoli, mushrooms, and sesame oil. Portion sizes depend on the daily calculation. Fiber can remain low when vegetables, nuts, and seeds are treated as optional.
Early headache, fatigue, constipation, and dizziness can reflect lower energy intake, fluid shifts, medication effects, or illness. Blanket advice to consume 3 to 5 g of sodium can be unsafe for hypertension, heart failure, or kidney disease. Use ordinary hydration and clinician-directed electrolytes rather than an unverified universal dose.
Interpret weight, glucose, lipids, and ketones
Rapid first-week weight loss largely reflects glycogen-associated water and lower intestinal contents. Continued fat loss requires sustained energy intake below expenditure. A ketone reading does not measure body-fat loss and does not prove that calorie intake is appropriate. Glucose and triglycerides often improve when carbohydrate and weight fall, but medication reductions can contribute. LDL cholesterol can rise substantially in some individuals.
Repeat laboratory testing after a major dietary shift is more useful than assuming every marker moves in the same direction.
Blood beta-hydroxybutyrate between about 0.5 and 3 mmol/L is often seen in nutritional ketosis. Higher values require clinical context. A person with diabetes, illness, symptoms, or an SGLT2 inhibitor should not use a consumer target to rule out ketoacidosis.
Medication risks and contraindications
Insulin and sulfonylureas can cause hypoglycemia when carbohydrate falls quickly.
Blood-pressure medicine may also need review as weight and fluid balance change. SGLT2 inhibitors increase concern for euglycemic ketoacidosis, so a ketogenic plan requires prescriber involvement. Avoid unsupervised keto with type 1 diabetes, pregnancy, lactation, pancreatitis, severe liver disease, disorders of fatty-acid oxidation, porphyria, or a current eating disorder. Kidney stones, gout, gallbladder disease, and chronic kidney disease require individualized risk assessment.
Children using ketogenic therapy need a multidisciplinary epilepsy program to monitor growth, bone health, stones, lipids, gastrointestinal effects, and nutrient supplements. An adult weight-loss calculator cannot generate a pediatric therapeutic prescription.
Lower limits and nutrient gaps
The adult carbohydrate RDA is 130 g per day and the AMDR is 45 to 65 percent of energy. Ketogenic intakes sit well below both references. Therapeutic intent and monitoring are more relevant than claiming the diet meets ordinary carbohydrate guidance. Restricting grains, legumes, fruit, milk, and starchy vegetables can lower fiber, thiamin, folate, potassium, magnesium, and other nutrients.
A multivitamin does not replace fiber or food structure. Food records and laboratory testing can identify gaps more reliably than symptoms alone.
Total fat often exceeds the adult AMDR of 20 to 35 percent. Saturated fat should still remain below the Dietary Guidelines limit where possible. Favoring olive oil, nuts, seeds, avocado, and fish improves the fat profile without changing ketosis calculations.
Evidence limits and safety
Umbrella reviews report short-term improvements in weight and selected metabolic markers for some ketogenic interventions, but certainty varies and many trials are small or short. Evidence for long-term cardiovascular events, mortality, kidney outcomes, and sustainability remains limited. Diet comparisons bundle carbohydrate amount with protein, fat type, counseling, and calorie changes. Results from adults with obesity or type 2 diabetes do not establish benefit for healthy lean adults, pregnancy, children outside epilepsy care, or endurance athletes.
Seek urgent care for repeated vomiting, severe abdominal pain, rapid or deep breathing, confusion, fainting, or high ketones with diabetes. Stop and obtain clinical review for recurrent hypoglycemia, palpitations, persistent constipation, rising LDL cholesterol, or inability to meet energy needs.
Adherence definitions vary. A study may classify a diet by assigned carbohydrate target even when measured intake rises above ketogenic levels, while another requires ketone confirmation. Averaging those studies can blur the difference between low-carbohydrate and sustained nutritional ketosis. Read the achieved intake and ketone data before applying a headline effect to this calculator. Athletic evidence depends on the event. Increased fat oxidation does not guarantee faster performance, and reduced glycogen availability can impair repeated high-intensity work. Endurance adaptation studies often use trained samples and tightly controlled feeding that differs from self-directed weight loss. Athletes should judge pace, power, recovery, injury, and energy availability rather than ketones alone. Stopping keto also needs planning. Adding carbohydrate restores glycogen and associated water, so scale weight can rise without equivalent fat gain. Reintroduce legumes, fruit, whole grains, or starchy vegetables in measured portions while adjusting fat to keep calories appropriate. A sudden increase in both carbohydrate and fat can exceed the intended energy target. Constipation should not be treated only with magnesium or stimulant laxatives. Review fluid, vegetable intake, nuts, seeds, tolerated fiber, activity, and medications. Persistent symptoms, bleeding, severe pain, or vomiting require medical assessment. People with a history of kidney stones need individualized fluid and mineral guidance before supplementing electrolytes. Alcohol can impair judgment, add uncounted energy, and increase hypoglycemia risk with some diabetes treatments. It also reduces the reliability of symptom-based monitoring. People using a ketogenic medical plan should discuss alcohol with the treating team rather than assigning it a net-carbohydrate value.
How it works
Keto: ~5% carbs, 20 to 25% protein, remainder fat. Protein set first, fat fills remaining calories.
Frequently asked questions
- How many net carbs on keto?Most keto diets limit net carbs to 20 to 50g per day to maintain ketosis.
Related calculators
References
- Optimal clinical management of children receiving dietary therapies for epilepsy
- Dietary Reference Intakes for macronutrients
- Ketogenic diets and chronic disease
- Ketogenic diet for obesity: friend or foe
- Effects of ketogenic diets on health outcomes: umbrella review
- Dietary Guidelines for Americans, 2020 to 2025
- Standards of Care in Diabetes: Facilitating positive health behaviors and well-being
- Low-carbohydrate and very-low-carbohydrate diets in type 2 diabetes
- SGLT2 inhibitors and ketoacidosis risk