Ketogenic Diet Calculator

Ketogenic Diet Calculator

This calculator will calculate the precise proportions of fat, protein, and carbohydrates necessary to switch your body to burning fat.

Your TDEE (Total Daily Energy Expenditure).
Standard Keto (SKD) is recommended for beginners.
Your Daily Meal Plan
● Fat ● Protein ● Carbs
FAT
---
---
PROTEIN
---
---
CARBS (NET)
---
---
Note: Count NET carbs (Total carbs minus Fiber).

How does the formula work?

Fat: 75% | Protein: 20% | Carbs: 5% (max 50g)
The gold standard of the ketogenic diet (SKD)

The Ketogenic Diet Calculator is an advanced digital tool whose fundamental goal is to precisely estimate an individual’s macronutrient needs, in accordance with the strict principles of the ketogenic diet. The operation of such a calculator is based on a sequence of mathematical algorithms that consider the user’s key physiological parameters and the biochemical principles underlying the state of ketosis. The basis of its functionality is the conversion of anthropometric data and lifestyle information into specific, measurable caloric values, and then their distribution into fats, proteins, and carbohydrates according to a strictly defined percentage ratio—in this case, 75% of energy from fats, 20% from proteins, and 5% from carbohydrates, with an additional absolute limit for the latter of 50 grams per day.

The first and most important step in the calculation process is determining the Basal Metabolic Rate (BMR). BMR represents the minimum amount of energy (expressed in kilocalories) necessary to sustain the body’s basic vital functions at rest, such as breathing, blood circulation, internal organ function, or maintaining body temperature. Modern calculators most often implement the Mifflin-St Jeor equation for this purpose, which is considered one of the most accurate predictive equations for the general population. This formula comes in two variants, depending on sex. For men: BMR = (10 × weight in kg) + (6.25 × height in cm) – (5 × age in years) + 5. For women: BMR = (10 × weight in kg) + (6.25 × height in cm) – (5 × age in years) – 161. The user’s input of data such as sex, age, body weight, and height allows for the precise calculation of this baseline energy value.

However, BMR alone is not sufficient to determine daily caloric needs, as it does not account for energy expended during any physical activity. Therefore, the next step is to calculate the Total Daily Energy Expenditure (TDEE). The TDEE value is obtained by multiplying BMR by a physical activity level (PAL) multiplier. This multiplier is a numerical value assigned to a specific level of activity, for example: 1.2 for a sedentary person (office work, no exercise), 1.375 for a lightly active person (light exercise 1-3 days a week), 1.55 for moderate activity (exercise 3-5 days a week), up to values of 1.9 and higher for professional athletes. By specifying their typical activity level, the user provides the calculator with the necessary multiplier. Thus, TDEE = BMR × PAL. The resulting TDEE value represents the number of calories needed to maintain the current body weight with the given lifestyle.

Once the calculator has the TDEE value, it must consider the user’s goal—most often weight loss, less frequently weight maintenance or building muscle mass. In the case of weight loss, a specific caloric deficit is subtracted from the TDEE value, usually expressed as a percentage (e.g., 15-20%). For example, for a person with a TDEE of 2500 kcal, a 20% deficit means a target intake of 2000 kcal per day (2500 – 0.20 * 2500). For a mass-building goal, an analogous caloric surplus is applied. This final, modified caloric value becomes the basis for the subsequent macronutrient distribution.

The central point of the ketogenic calculator’s operation is the implementation of the specified macronutrient ratio: 75% fat, 20% protein, and 5% carbohydrates. To convert these percentage values into grams, the algorithm must use standard macronutrient caloric values: 1 gram of fat provides about 9 kcal, 1 gram of protein – 4 kcal, and 1 gram of carbohydrates – 4 kcal. The calculation process proceeds as follows, using the example of a target intake of 2000 kcal: Calories from fat = 2000 kcal × 0.75 = 1500 kcal. Amount of fat in grams = 1500 kcal / 9 kcal/g ≈ 167 g. Calories from protein = 2000 kcal × 0.20 = 400 kcal. Amount of protein in grams = 400 kcal / 4 kcal/g = 100 g. Calories from carbohydrates = 2000 kcal × 0.05 = 100 kcal. Amount of carbohydrates in grams = 100 kcal / 4 kcal/g = 25 g.

However, a key element of the calculator’s logic is the additional restriction of carbohydrate intake to a maximum of 50 grams per day, which is fundamental for initiating and maintaining the state of ketosis. Ketosis is a metabolic state in which the body, due to a drastic restriction of glucose availability (from carbohydrates), begins to produce ketone bodies (mainly beta-hydroxybutyrate) from fatty acids in the liver, using them as an alternative energy source, especially for the brain. The calculator must therefore include a condition that checks whether the amount of carbohydrates calculated based on 5% of the caloric value does not exceed 50 g. If this happens (which is possible with very high caloric needs), the amount of carbohydrates is “capped” at the limit of 50 g. The calories “saved” in this way (the difference between the calculated and maximum carbohydrate amount multiplied by 4 kcal/g) are then reallocated, most often to the fat pool, to maintain the overall caloric balance and further increase the share of this macronutrient, which promotes deeper ketosis.

It is also worth noting the role of protein. Although the adopted 20% ratio is a common and safe starting value, its excessive consumption can theoretically disrupt ketosis through the process of gluconeogenesis, in which amino acids are converted into glucose. Therefore, advanced calculators may offer alternative methods for calculating protein needs, e.g., based on lean body mass (e.g., 1.2-1.7 g of protein per kg of LBM). However, the model presented (20%) is a simplification that is fully functional and sufficient for most people. The final result of the calculator’s operation is a personalized plan, presenting the user with specific daily targets for calorie and macronutrient intake in grams, which serves as a practical foundation for meal planning and effectively following a ketogenic diet. Further exploration of the topics of calories and macronutrients is crucial, and resources like Gym Mathematics can provide additional tools and knowledge. The calculator thus acts as a personal metabolic navigator, translating the complex principles of biochemistry and physiology into a simple and useful dietary guide.

Frequently Asked Questions

What is a ketogenic diet?

The ketogenic (keto) diet is a way of eating that is very low in carbohydrates (under 50g per day), moderate in protein, and high in fat. It forces the body to burn fat as its primary energy source by producing ketones.

What is the macronutrient split on a keto diet?

The classic split is: 70–75% of calories from fat, 20–25% from protein, and 5–10% from carbohydrates. In practice, this means 20–50g of net carbs per day. The calculator will determine the exact amounts in grams for your needs.

What is the keto flu and how to deal with it?

The keto flu refers to adaptation symptoms in the first 1–2 weeks: fatigue, headaches, irritability. It's caused by electrolyte loss. Drink plenty of water and supplement with sodium (salt), potassium, and magnesium. The symptoms subside once the body adapts to ketosis.

Is the keto diet good for athletes?

For endurance sports, it can be beneficial after an adaptation period (4–6 weeks). For strength and high-intensity sports, it is problematic – carbohydrates are the preferred fuel for short, intense efforts. Consider a cyclical keto diet (CKD).

How can I check if I'm in ketosis?

Methods include: urine strips (cheapest, but inaccurate), a blood ketone meter (most accurate), and a breath ketone meter. Symptoms of ketosis also include: a metallic taste in the mouth, reduced appetite, and increased energy after the adaptation period.