Ketogenic Diet Calculator
Calculate macronutrient grams and percentages for therapeutic ketogenic diets at 1:1 through 4:1 ratios. Used for epilepsy, GLUT1 deficiency, and metabolic therapy.
About this calculator
This calculator computes the fat, protein, and carbohydrate gram targets for a therapeutic (medical) ketogenic diet, the kind used under dietitian supervision for drug-resistant epilepsy, GLUT1 deficiency syndrome, and certain other metabolic disorders -- distinct from popular low-carb "keto" diets, which are far less strict. The diet's use against epilepsy dates to Russell Wilder's 1921 work at the Mayo Clinic, and its modern clinical protocol -- including the classical fat-to-protein-plus-carbohydrate ratios used here -- follows the consensus recommendations of the International Ketogenic Diet Study Group, most recently updated in 2018. The classical ketogenic ratio expresses fat grams to combined protein-plus-carbohydrate grams, most commonly 4:1 (about 90% of calories from fat) for the strictest therapeutic protocols, or 3:1, 2:1, or a more liberal ~1:1 (comparable to a modified Atkins approach) for less restrictive variants. Given a target ratio and a daily caloric goal, the calculator first sets protein at a fixed rate per kilogram of body weight (1.0 g/kg by default, a typical adult therapeutic-keto protein allocation), then solves for how many grams of fat and carbohydrate satisfy both the ratio constraint and the total calorie target simultaneously, using the standard caloric densities of 9 kcal/g for fat and 4 kcal/g for protein and carbohydrate.
A higher ratio pushes more of the total calories toward fat and squeezes the carbohydrate allowance down; a 4:1 ratio leaves very little room for carbohydrate at all, which is precisely the mechanism believed to drive the anti-seizure ketosis this diet is used to produce. That fat/carbohydrate solve is only achievable when the weight-based protein target itself fits inside the combined protein-plus-carbohydrate budget the ratio and calorie goal imply; if protein alone exceeds that budget (a real possibility at a high protein-per-kg rate, a strict ratio, and a modest calorie goal together), carbohydrate floors at zero, the achieved fat-to-protein ratio falls short of the one requested, and the calculator reports this explicitly via an achieved-ratio figure and status message rather than silently understating the ratio. The calculator also breaks the fat and carbohydrate targets down per meal, assuming three meals a day. This tool computes the macronutrient math only -- it does not replace the medical supervision, baseline labs, and gradual diet initiation (often started in a hospital) that a real therapeutic ketogenic diet requires, and does not account for micronutrient supplementation, which is essential on this restrictive an eating pattern.
Medical Disclaimer
This calculator is for informational and educational purposes only. It is not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider before making decisions about your health. Never disregard professional medical advice or delay seeking it because of results from this tool.
Inputs
Results
Fat (g/day)
200
Figures current as of 2018. Source: Kossoff EH, Zupec-Kania BA, Auvin S, et al. Optimal clinical management of children receiving dietary therapies for epilepsy: Updated recommendations of the International Ketogenic Diet Study Group. Epilepsia Open. 2018;3(2):175-192.
How to Use This Calculator
- Enter the patient's weight in kg and daily caloric goal.
- Set the ketogenic ratio (fat grams : protein + carb grams), commonly 3:1 or 4:1.
- Enter the protein goal in g/kg/day.
- Review the daily fat, protein, and carbohydrate gram targets.
- Check the Ratio status output -- if it reports the ratio as not achievable, raise the caloric goal, lower the ratio, or lower protein per kg until the achieved ratio matches the one requested.
- Work with a registered dietitian specializing in ketogenic therapy to implement and monitor.
How the result changes with Caloric goal (kcal/day)
| Caloric goal (kcal/day) | Fat (g/day) |
|---|---|
| 1,000 | 100 |
| 1,500 | 150 |
| 3,000 | 300 |
| 5,000 | 500 |
What each input means
- Weight
- Body weight in kilograms.
- Caloric goal (kcal/day)
- Target daily caloric intake.
- Keto ratio (fat:protein+carb)
- Classical = 4:1, moderate = 3:1, liberal = 2:1, modified Atkins ≈ 1:1.
- Protein (g/kg/day)
- Protein allocation. Typically 1.0 g/kg for adults on therapeutic keto.
What each result means
- Fat (g/day)
- Daily fat in grams.
- Protein (g/day)
- Daily protein in grams.
- Net carbs (g/day)
- Daily carbohydrate allowance.
- Fat % of calories
- Percentage of total calories from fat.
- Protein % of calories
- Percentage of total calories from protein.
- Carb % of calories
- Percentage of total calories from carbs.
- Net carbs per meal (g)
- Carb allowance per meal (3 meals/day).
- Fat per meal (g)
- Fat target per meal (3 meals/day).
- Actual total calories (kcal)
- Verified total from macro gram calculations.
- Achieved ratio (fat:protein+carb)
- The actual fat:(protein+carb) ratio from the gram targets above. Matches the requested ratio unless the protein target alone exceeds the ratio's protein+carb budget.
- Ratio status
- Whether the requested ketogenic ratio was actually achievable at these inputs.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersWeight (kg) = 70, Caloric goal (kcal/day) = 2000, Keto ratio (fat:protein+carb) = 4, Protein (g/kg/day) = 1 = 4 input(s) provided
- Calculate FatFat = ketoRatio * proteinPlusCarb200 = 200
- Calculate ProteinProtein = proteinPerKg * weightKg70 = 70
- Calculate Net carbsNet carbs0 = 0
Figures and sources
- Therapeutic ketogenic diet ratio protocol (International Ketogenic Diet Study Group) (2018) — Kossoff EH, Zupec-Kania BA, Auvin S, et al. Optimal clinical management of children receiving dietary therapies for epilepsy: Updated recommendations of the International Ketogenic Diet Study Group. Epilepsia Open. 2018;3(2):175-192.
Engine last updated . Checked against 1 independently-derived test — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why does raising the caloric goal increase the fat target but not change body weight's effect on protein?
Fat and carbohydrate grams are solved from the caloric goal and the ketogenic ratio together, completely independently of body weight, while protein is calculated separately and directly from body weight times the protein-per-kg rate. Raising the caloric goal scales up the fat (and, indirectly, the carbohydrate) target since there are now more total calories to distribute at the same ratio, but it has no effect on the protein figure, which depends only on weight and the protein rate.
Does the therapeutic keto ratio affect how much protein a patient gets?
No -- protein is calculated first and independently, as body weight times the protein-per-kilogram rate, and is then treated as fixed when the calculator solves for fat and carbohydrate grams from the ratio and calorie target. Changing the ratio from, say, 3:1 to 4:1 reshuffles how the remaining calories split between fat and carbohydrate, but the protein number stays exactly where the weight-based calculation put it.
How much lower is the carbohydrate allowance at a 4:1 ratio compared to a more liberal 2:1 ratio?
Substantially lower -- the 4:1 classical ratio is designed to push the vast majority of calories toward fat, leaving only a few grams of carbohydrate and protein combined per day, while a 2:1 ratio (sometimes used for less strict initiation or better tolerability) allows meaningfully more combined protein-plus-carbohydrate grams at the same total calorie target, since a lower ratio number means less fat is required per gram of protein-plus-carb.
Why is fat calculated in grams rather than as a simple percentage of calories?
Grams are what a caregiver actually measures on a kitchen scale when preparing therapeutic ketogenic meals, since precision matters -- an accidental extra few grams of carbohydrate can be enough to disrupt the ketosis the diet is designed to maintain. The percentage-of-calories figures are also reported for reference, but the gram targets (and the per-meal breakdown) are what actually get used in day-to-day meal preparation.
Can the requested keto ratio and the caloric goal both fail to be achieved at the same time?
Yes -- when the weight-based protein target alone already exceeds the combined protein-plus-carbohydrate budget the ratio and calorie goal imply, carbohydrate cannot go below zero, so it floors there and the achieved fat-to-(protein+carb) ratio ends up lower than the ratio requested. When this happens the calculator reports the achieved ratio alongside the requested one and flags the mismatch explicitly, rather than silently printing a ratio the inputs can't actually produce. Raising the caloric goal, choosing a lower ratio, or lowering the protein-per-kg rate all widen the budget and can restore an achievable combination.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Harris-Benedict Calculator
Calculate BMR using the revised Harris-Benedict equation with clinical stress factors for hospitalized patients. Includes protein recommendations.
Clinical NutritionMifflin-St Jeor Calculator
Estimate resting metabolic rate (RMR) and total daily energy expenditure using the Mifflin-St Jeor equation, the gold standard for clinical nutrition assessment.
Clinical NutritionDysphagia Diet Planner Calculator
Plan texture-modified diets by IDDSI level and estimate caloric adequacy, protein intake, and oral nutrition supplement needs for dysphagia patients.
More in Medical & Clinical.