The formula
Calories = TDEE × (1 + goal %)
TDEE = Mifflin-St Jeor BMR × activity factor
Protein 4 kcal/g · Carbohydrate 4 kcal/g · Fat 9 kcal/g
Percentage diets: grams = calories × share ÷ kcal per gram
High-protein: protein = 2.0 g × body weight(kg); fat = 25% of calories; carbs = the rest
Keto: carbs = 25 g; protein = 1.6 g × body weight(kg); fat = the rest
Worked example
- A 30-year-old man, 175 cm and 80 kg, moderately active, wants to lose fat on a high-protein plan.
- BMR = 1,749 kcal and TDEE = 1,749 × 1.55 = 2,711 kcal.
- A 20% deficit gives 2,711 × 0.8 = 2,168 kcal a day.
- Protein = 2.0 × 80 = 160 g (640 kcal).
- Fat = 25% × 2,168 ÷ 9 = 60 g (542 kcal).
- Carbohydrate = (2,168 − 640 − 542) ÷ 4 = 247 g.
- Over three meals that's about 53 g of protein, 82 g of carbs and 20 g of fat each.
What macros are
Macronutrients are the three nutrients that provide calories: protein and carbohydrate at about 4 kcal per gram, and fat at 9 kcal per gram. Alcohol also supplies 7 kcal per gram but isn't counted as a macro you need. Counting macros means setting a daily target in grams for each, rather than just a calorie total. Two diets with the same calories can have very different effects on hunger, energy, training performance and how much of your weight loss comes from fat rather than muscle, and the macro split is the main reason why.
Choosing a diet style
- Balanced (25% protein, 50% carbs, 25% fat) sits within the ranges recommended by most dietary guidelines and suits general health.
- High-protein sets protein at 2 g per kg of body weight. It's the best choice for fat loss with strength training, because protein is the most filling macro and protects muscle in a deficit.
- Keto limits net carbs to about 25 g a day so the body produces ketones from fat. Protein is moderate at 1.6 g per kg and fat supplies the rest, usually 70% or more of calories.
- Low-carb (30 / 25 / 45) is a less strict alternative to keto.
- Zone 40/30/30 uses 40% carbs, 30% protein and 30% fat.
- Custom lets you set your own percentages; they must add up to 100%.
How much protein do you need?
The basic recommended intake is 0.8 g per kg of body weight a day, which prevents deficiency in sedentary adults. For people who exercise, and especially for fat loss, research supports 1.6–2.2 g per kg. Intakes above about 2.2 g/kg rarely add further benefit for muscle. If you have a lot of body fat, base protein on your goal weight or lean mass instead of your current weight, or the target may be higher than you need. Spread protein across meals, around 0.3–0.4 g per kg each, to make the most of muscle repair.
Fat and carbohydrate
Fat is essential for hormones and absorbing vitamins A, D, E and K. Keep it at no less than 20% of calories for most people; very low fat intakes can disrupt hormones. Carbohydrate is the body's preferred fuel for high-intensity exercise. Endurance athletes often need 5–8 g per kg on heavy training days, so a keto or very low-carb plan can reduce performance in those sports. For general fat loss, research shows that low-carb and low-fat diets give similar results when calories and protein are matched, so choose the style you can stick with.
Macros for muscle gain
For a lean bulk, the calculator adds 10–15% to your maintenance calories. Keep protein at around 1.6–2.2 g per kg and put most of the extra calories into carbohydrate, which fuels hard training and helps recovery between sessions. Gaining about 0.25–0.5% of body weight a week is enough for most people. Faster gains add mostly fat, especially for experienced lifters, who build muscle more slowly than beginners. If you're gaining much faster or slower than planned after a month, adjust calories by 100–200 kcal a day and keep the protein target the same.
Putting your macros into practice
Use a food-tracking app and aim to land within about 5–10 g of each target, with protein the priority. Build meals around a protein source, add vegetables and fill the remaining calories with your preferred carbs and fats. Weigh yourself regularly and review progress every few weeks. If weight isn't changing as expected, adjust calories first, using the TDEE and calorie deficit calculator. People with diabetes, kidney disease or other medical conditions, or who are pregnant, should check major diet changes, including keto, with a doctor or dietitian first.