This Leangains calculator estimates your calories, protein, fat and carbohydrate targets and sets an eating window for Leangains-style intermittent fasting. Enter your sex, age, weight, height and activity level, choose cut, maintain or bulk, and read the daily targets.
Leangains Calculator
Calories, protein, fat and carbs plus an eating window for Leangains-style intermittent fasting, using your own targets.
Starting values: the calculator opens with a 30-year-old man, 80 kg and 180 cm, at activity factor 1.55, cutting 20% below maintenance. The result is 1,780 kcal BMR, 2,759 kcal maintenance and 2,207 kcal target, with 176 g protein, 64 g fat and 232 g carbohydrate, eaten between 12:00 and 20:00.
How the numbers are worked out
- BMR comes from the Mifflin-St Jeor equation: 10 × weight in kg + 6.25 × height in cm – 5 × age, then + 5 for men or – 161 for women.
- Maintenance calories (TDEE) are BMR multiplied by the activity factor: 1.2 sedentary, 1.375 light, 1.55 moderate or 1.725 very active.
- The target is maintenance, or maintenance reduced or increased by the percentage that you choose for a cut or a bulk.
- Protein and fat are set in grams per kilogram of body weight, using your own settings.
- Carbohydrate is what is left of the calorie target after protein (4 kcal per gram) and fat (9 kcal per gram) are taken out, divided by 4.
The defaults of 2.2 g of protein and 0.8 g of fat per kg, and the 20% cut, are example settings that you can change. The calculator does not claim that they are right for you.
Worked examples
Example 1: the default man, cutting
BMR = 10 × 80 + 6.25 × 180 – 5 × 30 + 5 = 800 + 1,125 – 150 + 5 = 1,780 kcal. At a factor of 1.55, maintenance is 1,780 × 1.55 = 2,759 kcal. A 20% cut gives 2,759 × 0.8 = 2,207 kcal.
Protein is 2.2 × 80 = 176 g, which is 704 kcal. Fat is 0.8 × 80 = 64 g, which is 576 kcal. Carbohydrate is (2,207 – 704 – 576) / 4 = 232 g, which is 928 kcal. The eating window starts at 12:00 and runs for 8 hours, to 20:00, leaving 16 hours of fasting.
Example 2: the same man, maintaining
Choosing Maintain removes the percentage change, so the target is the full 2,759 kcal. Protein and fat stay at 176 g and 64 g, and carbohydrate rises to (2,759 – 704 – 576) / 4 = 370 g.
Example 3: a woman at a lighter activity level
Take a 30-year-old woman who weighs 65 kg and is 165 cm tall, with a light activity factor of 1.375. BMR = 650 + 1,031.25 – 150 – 161 = 1,370 kcal, and maintenance is 1,884 kcal.
Example 4: pounds and inches
If you choose lb and inches, the calculator converts them first, using 1 lb = 0.45359237 kg and 1 inch = 2.54 cm. A weight of 176 lb is 79.8 kg, so the result is close to the default.
The eating window
Enter the time that the window opens, in 24-hour format, and its length in hours. The calculator shows when you eat and when you fast. The default is an 8-hour window and a 16-hour fast. Any length from a fraction of an hour to 24 hours is accepted, so you can test a shorter or longer window.
When the settings do not fit
If protein and fat at your settings use more calories than the target, the carbohydrate figure would be negative. The calculator then shows an error and asks you to lower the protein or fat per kg, or to raise the target. This is a useful check, since it shows when the settings are not realistic for your size and goal.
Limits
- The equation estimates calories for an average person. Your real needs can differ, so watch your results over weeks and adjust.
- The activity factor is a rough guess, and choosing the wrong one has a big effect on maintenance.
- The calculator does not give medical or dietary advice. Talk to a doctor or a registered dietitian before you change how you eat, especially if you have a health condition.
- It does not plan meals or timing within the window.
The same kind of arithmetic, applied to training loads, is in the Smolov Jr calculator.
Adjusting after a few weeks
Treat the first set of numbers as a starting point. Weigh yourself at the same time of day, track the weekly average, and compare it with what you expected. If the average moves faster or slower than planned, change the calorie percentage by a small step, rather than starting again with a different activity factor. A change of 5 percentage points in the cut or the bulk, such as moving from 20% to 15% below maintenance, shifts the daily target by about 138 kcal at the default maintenance of 2,759.
Reading the macro split
In the default cut, protein supplies 704 kcal, fat 576 kcal and carbohydrate 928 kcal of the 2,207 kcal target, or about 32%, 26% and 42%. Because protein and fat are set per kilogram of body weight and carbohydrate takes up the rest, the split moves when you change the target. A deeper cut leaves less room for carbohydrate, which is why the tool warns you when the settings do not fit.
Frequently asked questions
What equation does the calculator use for BMR?
The Mifflin-St Jeor equation, which uses weight, height, age and sex.
How are the macros calculated?
Protein and fat are your chosen grams per kg times body weight. Carbohydrate is the remainder of the calorie target.
Can I change the calorie cut or bulk?
Yes. The percentage below or above maintenance is a setting. The default is 20% for a cut.
What is the eating window?
The period in which you eat. The default is 8 hours, starting at 12:00, so the calculator shows a 16-hour fast.
Is this medical advice?
No. It is a calculator with example settings. Ask a doctor or dietitian before changing your diet.
