A computer program such as KetoCalculator may be used to help generate recipes.[47] The meals often have four components: heavy whipping cream, a protein-rich food (typically meat), a fruit or vegetable and a fat such as butter, vegetable oil, or mayonnaise. Only low-carbohydrate fruits and vegetables are allowed, which excludes bananas, potatoes, peas, and corn. Suitable fruits are divided into two groups based on the amount of carbohydrate they contain, and vegetables are similarly divided into two groups. Foods within each of these four groups may be freely substituted to allow for variation without needing to recalculate portion sizes. For example, cooked broccoli, Brussels sprouts, cauliflower, and green beans are all equivalent. Fresh, canned, or frozen foods are equivalent, but raw and cooked vegetables differ, and processed foods are an additional complication. Parents are required to be precise when measuring food quantities on an electronic scale accurate to 1 g. The child must eat the whole meal and cannot have extra portions; any snacks must be incorporated into the meal plan. A small amount of MCT oil may be used to help with constipation or to increase ketosis.[37]
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.[7]

Long-term use of the ketogenic diet in children increases the risk of slowed or stunted growth, bone fractures, and kidney stones.[18] The diet reduces levels of insulin-like growth factor 1, which is important for childhood growth. Like many anticonvulsant drugs, the ketogenic diet has an adverse effect on bone health. Many factors may be involved such as acidosis and suppressed growth hormone.[38] About one in 20 children on the ketogenic diet develop kidney stones (compared with one in several thousand for the general population). A class of anticonvulsants known as carbonic anhydrase inhibitors (topiramate, zonisamide) are known to increase the risk of kidney stones, but the combination of these anticonvulsants and the ketogenic diet does not appear to elevate the risk above that of the diet alone.[39] The stones are treatable and do not justify discontinuation of the diet.[39] Johns Hopkins Hospital now gives oral potassium citrate supplements to all ketogenic diet patients, resulting in one-seventh of the incidence of kidney stones.[40] However, this empiric usage has not been tested in a prospective controlled trial.[9] Kidney stone formation (nephrolithiasis) is associated with the diet for four reasons:[39]
A short-lived increase in seizure frequency may occur during illness or if ketone levels fluctuate. The diet may be modified if seizure frequency remains high, or the child is losing weight.[19] Loss of seizure-control may come from unexpected sources. Even "sugar-free" food can contain carbohydrates such as maltodextrin, sorbitol, starch, and fructose. The sorbitol content of suntan lotion and other skincare products may be high enough for some to be absorbed through the skin and thus negate ketosis.[31]

A ketogenic diet helps control blood sugar levels. It is excellent for managing type 2 diabetes, sometimes even leading to complete reversal of the disease. This has been proven in studies. It makes perfect sense since keto lowers blood-sugar levels, reduces the need of medications and reduces the potentially negative impact of high insulin levels.

This principle involves eating low-energy-dense foods and can help you lose weight by feeling full on fewer calories. Healthy choices in each of the other food groups in moderate amounts make up the rest of the pyramid — including whole-grain carbohydrates, lean sources of protein such as legumes, fish and low-fat dairy, and heart-healthy unsaturated fats.