The ketogenic diet is calculated by a dietitian for each child. Age, weight, activity levels, culture, and food preferences all affect the meal plan. First, the energy requirements are set at 80–90% of the recommended daily amounts (RDA) for the child's age (the high-fat diet requires less energy to process than a typical high-carbohydrate diet). Highly active children or those with muscle spasticity require more food energy than this; immobile children require less. The ketogenic ratio of the diet compares the weight of fat to the combined weight of carbohydrate and protein. This is typically 4:1, but children who are younger than 18 months, older than 12 years, or who are obese may be started on a 3:1 ratio. Fat is energy-rich, with 9 kcal/g (38 kJ/g) compared to 4 kcal/g (17 kJ/g) for carbohydrate or protein, so portions on the ketogenic diet are smaller than normal. The quantity of fat in the diet can be calculated from the overall energy requirements and the chosen ketogenic ratio. Next, the protein levels are set to allow for growth and body maintenance, and are around 1 g protein for each kg of body weight. Lastly, the amount of carbohydrate is set according to what allowance is left while maintaining the chosen ratio. Any carbohydrate in medications or supplements must be subtracted from this allowance. The total daily amount of fat, protein, and carbohydrate is then evenly divided across the meals.
The brain is composed of a network of neurons that transmit signals by propagating nerve impulses. The propagation of this impulse from one neuron to another is typically controlled by neurotransmitters, though there are also electrical pathways between some neurons. Neurotransmitters can inhibit impulse firing (primarily done by γ-aminobutyric acid, or GABA) or they can excite the neuron into firing (primarily done by glutamate). A neuron that releases inhibitory neurotransmitters from its terminals is called an inhibitory neuron, while one that releases excitatory neurotransmitters is an excitatory neuron. When the normal balance between inhibition and excitation is significantly disrupted in all or part of the brain, a seizure can occur. The GABA system is an important target for anticonvulsant drugs, since seizures may be discouraged by increasing GABA synthesis, decreasing its breakdown, or enhancing its effect on neurons.
Variations on the Johns Hopkins protocol are common. The initiation can be performed using outpatient clinics rather than requiring a stay in hospital. Often, no initial fast is used (fasting increases the risk of acidosis, hypoglycaemia, and weight loss). Rather than increasing meal sizes over the three-day initiation, some institutions maintain meal size, but alter the ketogenic ratio from 2:1 to 4:1.