Here’s what we do know: The keto diet may be useful in treating symptoms of epilepsy, a seizure disorder. “The use of keto in treating epilepsy has the most evidence,” Angelone says. One study conducted by Johns Hopkins Medicine, for example, followed epileptic patients on the keto diet and found that 36 percent of them had a 50 percent reduction in seizures after three months on the diet, and 16 percent were seizure-free. However, experts aren't entirely sure why the keto diet has this affect, she adds.
On the ketogenic diet, carbohydrates are restricted and so cannot provide for all the metabolic needs of the body. Instead, fatty acids are used as the major source of fuel. These are used through fatty-acid oxidation in the cell's mitochondria (the energy-producing parts of the cell). Humans can convert some amino acids into glucose by a process called gluconeogenesis, but cannot do this by using fatty acids.[57] Since amino acids are needed to make proteins, which are essential for growth and repair of body tissues, these cannot be used only to produce glucose. This could pose a problem for the brain, since it is normally fuelled solely by glucose, and most fatty acids do not cross the blood–brain barrier. However, the liver can use long-chain fatty acids to synthesise the three ketone bodies β-hydroxybutyrate, acetoacetate and acetone. These ketone bodies enter the brain and partially substitute for blood glucose as a source of energy.[56]

Epilepsy is one of the most common neurological disorders after stroke,[7] and affects around 50 million people worldwide.[8] It is diagnosed in a person having recurrent, unprovoked seizures. These occur when cortical neurons fire excessively, hypersynchronously, or both, leading to temporary disruption of normal brain function. This might affect, for example, the muscles, the senses, consciousness, or a combination. A seizure can be focal (confined to one part of the brain) or generalised (spread widely throughout the brain and leading to a loss of consciousness). Epilepsy can occur for a variety of reasons; some forms have been classified into epileptic syndromes, most of which begin in childhood. Epilepsy is considered refractory (not yielding to treatment) when two or three anticonvulsant drugs have failed to control it. About 60% of patients achieve control of their epilepsy with the first drug they use, whereas around 30% do not achieve control with drugs. When drugs fail, other options include epilepsy surgery, vagus nerve stimulation, and the ketogenic diet.[7]

When you eat less than 50 grams of carbs a day, your body eventually runs out of fuel (blood sugar) it can use quickly. This typically takes 3 to 4 days. Then you’ll start to break down protein and fat for energy, which can make you lose weight. This is called ketosis. It's important to note that the ketogenic diet is a short term diet that's focussed on weight loss rather than the pursuit of health benefits. 

Around this time, Bernarr Macfadden, an American exponent of physical culture, popularised the use of fasting to restore health. His disciple, the osteopathic physician Dr. Hugh William Conklin of Battle Creek, Michigan, began to treat his epilepsy patients by recommending fasting. Conklin conjectured that epileptic seizures were caused when a toxin, secreted from the Peyer's patches in the intestines, was discharged into the bloodstream. He recommended a fast lasting 18 to 25 days to allow this toxin to dissipate. Conklin probably treated hundreds of epilepsy patients with his "water diet" and boasted of a 90% cure rate in children, falling to 50% in adults. Later analysis of Conklin's case records showed 20% of his patients achieved freedom from seizures and 50% had some improvement.[10]

There are theoretically no restrictions on where the ketogenic diet might be used, and it can cost less than modern anticonvulsants. However, fasting and dietary changes are affected by religious and cultural issues. A culture where food is often prepared by grandparents or hired help means more people must be educated about the diet. When families dine together, sharing the same meal, it can be difficult to separate the child's meal. In many countries, food labelling is not mandatory so calculating the proportions of fat, protein and carbohydrate is difficult. In some countries, it may be hard to find sugar-free forms of medicines and supplements, to purchase an accurate electronic scale, or to afford MCT oils.[54]
Although many hypotheses have been put forward to explain how the ketogenic diet works, it remains a mystery. Disproven hypotheses include systemic acidosis (high levels of acid in the blood), electrolyte changes and hypoglycaemia (low blood glucose).[19] Although many biochemical changes are known to occur in the brain of a patient on the ketogenic diet, it is not known which of these has an anticonvulsant effect. The lack of understanding in this area is similar to the situation with many anticonvulsant drugs.[56]
The classic ketogenic diet is not a balanced diet and only contains tiny portions of fresh fruit and vegetables, fortified cereals, and calcium-rich foods. In particular, the B vitamins, calcium, and vitamin D must be artificially supplemented. This is achieved by taking two sugar-free supplements designed for the patient's age: a multivitamin with minerals and calcium with vitamin D.[18] A typical day of food for a child on a 4:1 ratio, 1,500 kcal (6,300 kJ) ketogenic diet comprises three small meals and three small snacks:[28]
Lots of apps and websites offer keto diet challenges—basically, a blueprint for the keto diet with a fixed starting and ending point (they typically last for a week to a month, though some may be longer). Speaking of apps, plenty of keto-centric ones are right at your fingertips (a.k.a., your smartphone), like the KetoDiet app, which can help you calculate your macros and track your keto diet effectively.
Before starting, ask yourself what is really realistic for you, Mattinson suggests. Then get your doctor’s okay. You may also work with a local registered dietitian nutritionist to limit potential nutrient deficiencies and talk about vitamin supplementation, as you won’t be eating whole grains, dairy, or fruit, and will eliminate many veggies. “A diet that eliminates entire food groups is a red flag to me. This isn’t something to take lightly or dive into headfirst with no medical supervision,” she says.