Want a Custom tool for Yourself?

Need a Custom Tool? We build custom tools that can save hours per employee per day.

Keto Calculator

Set keto macros by choosing keto type and entering your age, sex, height, weight, and activity level, with grams for fat, protein, and carbs.

Enter the Details



  


Results will appear here


Last updated: May 9, 2026

Created by: Eon Tools Dev Team

Reviewed by: Dr. Ashish Lamichhane



Keto is a hundred-year-old epilepsy medicine

Almost everyone who arrives at a keto calculator thinks they are looking at a diet from the 2010s. Something that came out of the internet, alongside the podcasts and the butter coffee.

It is a prescription from 1921.

Here is the actual history. Doctors had known since antiquity that fasting could reduce epileptic seizures, and by the early twentieth century they were using it deliberately. It worked. The trouble was obvious: you cannot fast a child indefinitely. So in July 1921, an endocrinologist at the Mayo Clinic named Russell Wilder asked whether you could fool the body into behaving as though it were fasting while it was still being fed. Cut the carbohydrate down to almost nothing, push the fat up to most of the plate, and the liver starts producing ketone bodies exactly as it does during starvation. He called it the ketogenic diet, tried it on three patients with epilepsy that had not responded to anything else, and their seizures dropped dramatically.

It spread through the 1920s and 30s, then faded when anticonvulsant drugs arrived and were easier to prescribe than a diet that has to be weighed on scales. But drugs do not work for everyone, and roughly a fifth to a third of epilepsy resists them. For those patients, the diet came back. A century later it is not alternative medicine or a wellness trend. It is standard care for treatment-resistant epilepsy in hospitals around the world, and in children who are started on it, it helps around half.

Why does this matter to you, standing in your kitchen with a calculator? Because it tells you what kind of thing you are doing. Keto is not a way of eating slightly less bread. It is a metabolic intervention designed by a doctor to imitate starvation in the body of a patient, and it is powerful enough that neurologists use it when the drugs fail. That is worth respecting, in both directions. It does something real. And it is not a casual choice.

What the diet is actually doing to you

Your brain is an expensive organ that normally runs on glucose, and it is fussy about supply. Starve it of carbohydrate and something has to give, because your brain cannot burn fat directly.

So your liver improvises. It starts breaking fat down into ketone bodies, which are small enough to cross into the brain and be burned there in place of glucose. This is not an emergency hack; it is a proper, evolved fallback, and it is the reason a human can go weeks without food and still think clearly enough to go and find some.

Keto simply keeps you in that state on purpose. Push carbohydrate low enough for long enough and your liver switches over to ketone production and stays there. That switch is the entire point of the diet, and it is why the carbohydrate figure this tool gives you is so unforgiving. Everything else on the plate is negotiable. The carbohydrate number is the diet.

Why the fat number looks alarming

Let us run a real one. A 30 year old man, 180 cm, 80 kg, exercising 3 to 5 times a week. His resting burn from the Mifflin-St Jeor equation comes to about 1,780 calories, and multiplied by the moderate activity factor of 1.55 his daily total is roughly 2,759.

Set to the moderate keto type, at 7 percent carbohydrate, 15 percent protein and 78 percent fat, the tool splits those calories up and converts each one into grams. Carbohydrate and protein carry 4 calories per gram, fat carries 9, so:

MacroShare of caloriesCaloriesGrams per day
Carbohydrate7 percent≈ 193≈ 48 g
Protein15 percent≈ 414≈ 103 g
Fat78 percent≈ 2152≈ 239 g

Two hundred and thirty-nine grams of fat. If you have never seen a keto target before, that number is genuinely startling. It is close to a cupful of olive oil, and you are being asked to eat its equivalent every single day, forever, on top of caring about nothing else on the plate.

Here is the reassuring half of it, though. Because fat is 9 calories a gram and everything else is 4, that mountain of calories is not a mountain of food. Add the grams up and the day comes to about 390 g of macronutrients, of which fat is 239. So fat is 78 percent of your calories but only about 61 percent of the actual weight of what you eat. Energy density is doing the work. That is a general trap with any percentage-based split, and our Macros Calculator pulls it apart properly.

The 48 g of carbohydrate is the number that will actually govern your life. That is roughly two slices of bread. For the entire day. Including whatever is hiding in your sauces.

Why protein is capped, which nobody expects

Notice what the tool did with protein: it pinned it at 15 percent and left it there whichever keto type you chose. Not a range, not a target to beat. A ceiling.

This catches people out constantly, because every other corner of nutrition advice is telling them to eat more protein. On keto, protein is not the hero. It is a constraint.

The reason is arithmetic before it is biology. You have 100 percent of your calories to allocate. Carbohydrate is already down at 7. If protein climbs, fat has to fall to make room, and fat is what your liver is turning into ketones. Every extra gram of protein is a gram not spent on the thing the diet exists to do. On top of that, your body can convert some protein into glucose when it needs to, which pulls against the ketosis you are working to maintain. How much that matters in practice is argued over, but the clinical versions of this diet have always kept protein modest for exactly this reason, and this tool follows them.

So if you have arrived from ordinary fitness advice, where protein is the one thing you cannot overdo, this will feel wrong. It is not. It is a different diet with a different job.

Moderate or liberal?

The tool offers two settings, and the gap between them is smaller than it sounds.

  • Moderate, at 7 percent carbohydrate, 15 percent protein, 78 percent fat. The stricter of the two, and the more reliable at getting you into ketosis and keeping you there.
  • Liberal, at 10 percent carbohydrate, 15 percent protein, 75 percent fat. A little more carbohydrate to work with, which for most people is the difference between a diet they can live with and one they cannot.

In our example the choice is worth about 21 g of carbohydrate a day. That is one piece of fruit. It sounds trivial and it is not, because on a diet this tight, one piece of fruit is a meaningful share of your entire daily allowance.

Start liberal if you are new. There is no prize for suffering more than necessary, and the version you stick with beats the version you quit. If you are not reaching ketosis after a fortnight, moderate is the next lever.

The first fortnight

Two things will happen in the first two weeks and neither means what people think it means.

The scale will drop fast, and it is not fat. Cutting carbohydrate empties your glycogen stores, and glycogen holds a lot of water alongside it. Several kilograms can leave in the first week or so. It is real weight and it is genuinely gone, but it is water, and it does not repeat. Do not use it to judge the diet. And do not panic when it comes back the week you eat a bowl of rice, because that is water returning, not fat arriving overnight.

You may feel dreadful, and that is fixable. The headaches, fatigue, fogginess and irritability of the first week or two get called keto flu. A large part of it is not the ketosis at all. When your glycogen and insulin drop, your kidneys start flushing out sodium and water, and the electrolytes go with them. Salt your food deliberately, keep your fluids up, and mind your potassium and magnesium. Most people who describe keto as unbearable were dehydrated and short of salt, not intolerant of a metabolic state that human beings have been entering every winter for a hundred thousand years.

If it persists beyond a couple of weeks, or you feel genuinely unwell rather than merely rough, that is worth a doctor rather than a forum.

Questions people ask

Who should not do this?

Anyone with pancreatic, liver, thyroid or gallbladder conditions, anyone with a history of disordered eating, and anyone who is pregnant or breastfeeding should not start keto without medical advice. If you take medication for diabetes or blood pressure, talk to your doctor first, because cutting carbohydrate this hard can change your dosing quickly and dangerously.

How long until I am in ketosis?

Usually somewhere between two and four days of holding the carbohydrate target, though it varies with how active you are and how depleted your glycogen was to begin with.

Can I eat more protein than it says?

You can, but it comes out of your fat allowance and may make ketosis harder to hold. If you want a high-protein diet, keto is the wrong tool and our Macros Calculator has a split built for that.

Is keto better than other diets for weight loss?

Not inherently. Where diets are compared with calories matched, keto does not reliably beat the others, and the early scale drop is largely water. What it does do, for some people, is blunt appetite in a way that makes eating less feel easier. That is a real advantage, and it is a different claim from the diet being magic.

References

Where this comes from. Wilder's 1921 work at the Mayo Clinic is the origin of the ketogenic diet and of the term itself. The StatPearls review sets out its clinical applications and evidence-based indications today. The review by Ko and colleagues covers the history from fasting therapy through to the modern revival for drug-resistant epilepsy. The resting equation the tool runs is Mifflin-St Jeor.

  1. Masood W, Annamaraju P, Khan Suheb MZ, Uppaluri KR. Ketogenic diet. In: StatPearls. Treasure Island FL: StatPearls Publishing. https://www.ncbi.nlm.nih.gov/books/NBK499830/
  2. Ko A, Kwon HE, Kim HD. Updates on the ketogenic diet therapy for pediatric epilepsy. Biomedical Journal. Ketogenic diet: old treatment, new beginning. https://pmc.ncbi.nlm.nih.gov/articles/PMC6123870/
  3. Johns Hopkins Epilepsy Center. Timeline: ketogenic diet therapy for epilepsy. https://www.hopkinsmedicine.org/neurology-neurosurgery/specialty-areas/epilepsy/keto-diet-timeline
  4. Wilder RM. The effect of ketonemia on the course of epilepsy. Mayo Clinic Bulletin. 1921;2:307-308.
  5. Mifflin MD, St Jeor ST, Hill LA, Scott BJ, Daugherty SA, Koh YO. A new predictive equation for resting energy expenditure in healthy individuals. American Journal of Clinical Nutrition. 1990;51(2):241-247. https://doi.org/10.1093/ajcn/51.2.241


Dr. Ashish Lamichhane

Dr. Ashish Lamichhane is an MBBS doctor currently serving as an ASBA medical officer and hospital chief, with a background in general medicine and clinical practice. His work brings real world medical perspective to health related calculation tools and everyday decision support utilities. At Eon Tools, he reviews health tools.