Macro Calculator (Keto, High-Protein & More)

Split your daily calories into grams of protein, carbohydrate and fat for balanced, high-protein, keto, low-carb, zone or custom diets.

Updated · Free · Runs in your browser

Units
Sex
years
cm
kg
Protein —
Carbohydrate —
Fat —
Daily calories —
Calorie split —
Per meal —
Protein per body weight —
    Was this calculator helpful?

    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

    1. A 30-year-old man, 175 cm and 80 kg, moderately active, wants to lose fat on a high-protein plan.
    2. BMR = 1,749 kcal and TDEE = 1,749 × 1.55 = 2,711 kcal.
    3. A 20% deficit gives 2,711 × 0.8 = 2,168 kcal a day.
    4. Protein = 2.0 × 80 = 160 g (640 kcal).
    5. Fat = 25% × 2,168 ÷ 9 = 60 g (542 kcal).
    6. Carbohydrate = (2,168 − 640 − 542) ÷ 4 = 247 g.
    7. 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.

    Frequently asked questions

    How do I calculate my macros?
    Work out your daily calories from your TDEE and goal, choose a split, then divide each share of calories by its energy value: 4 kcal per gram for protein and carbs and 9 kcal per gram for fat. The calculator does all of this for you.
    What is the best macro ratio for fat loss?
    A higher-protein split, with about 1.6–2.2 g of protein per kg of body weight and the rest of the calories divided between carbs and fat to taste, works well for most people. The calorie deficit matters most, and protein helps protect muscle and control hunger.
    How many carbs can I eat on keto?
    Most keto plans keep net carbs (total carbs minus fibre) at 20–50 g a day, and many people need to stay under 25–30 g to remain in ketosis. The calculator uses 25 g.
    Do macros matter if I'm in a calorie deficit?
    Calories decide whether you lose weight; macros affect what you lose and how you feel. Enough protein keeps more of the loss as fat rather than muscle, and the right carb and fat balance helps you train and stick to the plan.
    Should I count net carbs or total carbs?
    On keto and low-carb diets, people usually count net carbs, which excludes fibre because it isn't digested into glucose. For other diets, counting total carbohydrate is simpler and works fine.

    ↑↓ to navigate · Enter to open