The day before admission to hospital, the proportion of carbohydrate in the diet may be decreased and the patient begins fasting after his or her evening meal. On admission, only calorie- and caffeine-free fluids are allowed until dinner, which consists of "eggnog"[Note 8] restricted to one-third of the typical calories for a meal. The following breakfast and lunch are similar, and on the second day, the "eggnog" dinner is increased to two-thirds of a typical meal's caloric content. By the third day, dinner contains the full calorie quota and is a standard ketogenic meal (not "eggnog"). After a ketogenic breakfast on the fourth day, the patient is discharged. Where possible, the patient's current medicines are changed to carbohydrate-free formulations.
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). 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.
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. 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.