The ketogenic diet is a dietary therapy used to treat epilepsy. The ketogenic diet consists mostly of fats, with limited carbohydrates and the recommended daily allowance of protein. Dietitians carefully calculate individualized meal plans for patients based on their calorie and protein needs for growth and development, and their ketogenic diet ratio. The prescribed ratio refers to grams of fat to grams of protein and carbohydrates combined. The higher the ratio, the larger the percentage of fat in the diet.