Macro Calculator Guide — How to Calculate Protein, Carbs, and Fat
Published May 2026 · 8 min read
Counting calories alone tells you how much energy you are consuming, but it does not tell you whether that energy is coming from the right sources. Two people eating 2,000 calories per day can have vastly different body composition results depending on how those calories are split between protein, carbohydrates, and fat. This is where macronutrient tracking — or "counting macros" — becomes a more precise tool for reaching your fitness goals. This guide explains what macros are, how to calculate your ideal daily targets, and how to use a free macro calculator to get personalized numbers.
What Are Macronutrients?
Macronutrients are the three categories of nutrients that provide your body with energy (calories). Every food you eat contains some combination of these three:
- Protein — 4 calories per gram. Essential for building and repairing muscle tissue, producing enzymes and hormones, and maintaining immune function. Sources include meat, fish, eggs, dairy, legumes, tofu, and protein powder.
- Carbohydrates — 4 calories per gram. Your body's primary energy source, especially for high-intensity exercise. Sources include rice, bread, pasta, fruits, vegetables, oats, and potatoes.
- Fat — 9 calories per gram. Essential for hormone production (including testosterone and estrogen), nutrient absorption, brain function, and cell membrane integrity. Sources include oils, nuts, avocados, butter, fatty fish, and cheese.
Alcohol is sometimes considered a fourth macronutrient at 7 calories per gram, but it provides no nutritional value and is not included in macro calculations.
How to Calculate Your TDEE
Before you can set macro targets, you need to know your Total Daily Energy Expenditure (TDEE) — the total number of calories your body burns in a day, including exercise and daily activities. TDEE is calculated in two steps:
Step 1: Calculate your Basal Metabolic Rate (BMR). This is the number of calories your body burns at complete rest, just to maintain basic functions like breathing, circulation, and cell production. The Mifflin-St Jeor equation is the most widely used formula:
- Men: BMR = (10 x weight in kg) + (6.25 x height in cm) - (5 x age in years) + 5
- Women: BMR = (10 x weight in kg) + (6.25 x height in cm) - (5 x age in years) - 161
Step 2: Multiply by your activity factor. This accounts for calories burned through movement and exercise:
- Sedentary (desk job, no exercise): BMR x 1.2
- Lightly active (1-3 days/week exercise): BMR x 1.375
- Moderately active (3-5 days/week): BMR x 1.55
- Very active (6-7 days/week): BMR x 1.725
- Extremely active (physical job + daily training): BMR x 1.9
For example, a 30-year-old man who weighs 80 kg, is 175 cm tall, and exercises 3-4 times per week would have a BMR of approximately 1,773 calories. Multiplying by 1.55 (moderately active) gives a TDEE of about 2,748 calories per day.
Macro Splits for Different Goals
Once you know your TDEE, you adjust your calorie target based on your goal, then split those calories into protein, carbs, and fat. Here are the most common macro splits:
Weight Loss (Calorie Deficit): Aim for 300-500 calories below your TDEE. A typical split is 40% protein, 30% carbohydrates, 30% fat. The higher protein ratio helps preserve muscle mass during the deficit and keeps you feeling full longer. For a 2,200 calorie target, that is 220g protein, 165g carbs, and 73g fat.
Maintenance (Stay the Same): Eat at your TDEE level. A balanced split of 30% protein, 40% carbohydrates, 30% fat works well for most people. This provides enough protein for recovery, sufficient carbs for energy, and adequate fat for hormonal health.
Muscle Gain (Calorie Surplus): Aim for 200-400 calories above your TDEE. A split of 30% protein, 45% carbohydrates, 25% fat provides extra carbs to fuel intense training and support muscle protein synthesis. The surplus should be moderate to minimize fat gain.
Athletic Performance: Endurance athletes often benefit from higher carbs (50-60%) to fuel long training sessions. Strength athletes typically do better with higher protein (35-40%) and moderate carbs.
Protein Recommendations by Goal
Protein is the most important macro to get right, regardless of your goal. Here are evidence-based recommendations:
- General health: 0.8g per kg of body weight (the RDA minimum)
- Weight loss (preserve muscle): 1.8-2.4g per kg of body weight
- Muscle building: 1.6-2.2g per kg of body weight
- Athletes and intense training: 1.4-2.0g per kg of body weight
For a 180-pound (82 kg) person trying to build muscle, that means 131-180 grams of protein per day. Spread this across 3-5 meals with at least 25-40 grams per meal to maximize muscle protein synthesis. Research shows that distributing protein evenly across meals is more effective than consuming most of it in a single sitting.
Practical Meal Planning Tips
Knowing your macro targets is one thing — hitting them consistently is another. Here are practical strategies:
Start with protein. Plan each meal around a protein source first, then fill in carbs and fat. If your target is 160g of protein, divide it by the number of meals (e.g., 40g per meal across 4 meals). Common 40g protein servings include 6 oz chicken breast, 7 oz Greek yogurt plus 1 scoop protein powder, or 5 oz salmon.
Use a food scale for accuracy. Eyeballing portions is unreliable. Studies show people underestimate calorie intake by 30-50% on average. A $10 food scale removes the guesswork and makes macro tracking precise.
Prep meals in advance. Cooking in batches and portioning meals into containers makes it easy to hit your targets without calculating macros at every meal. Cook protein and carb sources in bulk on Sunday, then assemble meals throughout the week.
Be flexible with the numbers. Hitting your macros exactly every day is not necessary. Aim to be within 5-10 grams of each target. If you go over on fat one day, adjust by eating less fat the next day. Weekly averages matter more than daily precision.
Prioritize whole foods. While macro counting allows flexibility (the "If It Fits Your Macros" approach), getting 80% of your calories from whole, minimally processed foods ensures you also meet your micronutrient needs. Vegetables, fruits, whole grains, lean meats, and healthy fats should form the foundation of your diet.
Using the Macro Calculator
Our free macro calculator handles all the math for you. Enter your age, gender, height, weight, activity level, and goal (lose, maintain, or gain weight), and it calculates your TDEE, calorie target, and exact grams of protein, carbohydrates, and fat per day. It uses the Mifflin-St Jeor equation for BMR and applies activity multipliers to give you accurate, personalized results.
You can also use it alongside the Calorie Calculator to understand your baseline energy needs before diving into macro-specific planning.
Calculate Your Daily MacrosWant to understand your overall calorie needs first? Try our Calorie Calculator to see how many calories you burn each day and set your baseline target.