How to Calculate Your Macros for Any Goal (Protein, Carbs & Fat)
Learn step-by-step how to calculate your TDEE and set protein, carbohydrate, and fat targets based on your body and goals — weight loss, muscle gain, or maintenance.
Counting macros has gone from a bodybuilder thing to something millions of people do every day, and for good reason. While calorie counting tells you how much you're eating, tracking macronutrients tells you what you're eating — and that detail matters enormously for body composition, energy levels, and long-term health. Here's exactly how to calculate your macros based on your goals.
What Macros Actually Are
Macronutrients are the three main categories of nutrients your body uses for energy: protein, carbohydrates, and fat. Each provides a different number of calories per gram. Protein delivers 4 calories per gram. Carbohydrates deliver 4 calories per gram. Fat delivers 9 calories per gram.
So when someone says their diet is "40/30/30," they mean 40% of their daily calories come from carbs, 30% from protein, and 30% from fat. These percentages need to add up to 100%, and the actual gram amounts depend on your total calorie target.
Step 1: Calculate Your TDEE
Before you can set macros, you need to know your Total Daily Energy Expenditure — how many calories your body burns in a day. This is the foundation everything else rests on. Get this wrong and your macros won't work no matter how perfectly you split them.
Your TDEE has two components. First, your Basal Metabolic Rate (BMR): the calories you burn just staying alive, calculated from your age, sex, height, and weight using either the Mifflin-St Jeor or Harris-Benedict formula. Then that number is multiplied by an activity factor: 1.2 for sedentary, 1.375 for lightly active, 1.55 for moderately active, 1.725 for very active.
Say you're a 31-year-old woman, 5'5", 145 pounds, working out 4 days a week. Your BMR (Mifflin-St Jeor) is about 1,471 calories. Multiply by 1.55 (moderately active) and your TDEE is roughly 2,280 calories per day. That's your maintenance level.
Step 2: Adjust for Your Goal
For fat loss, subtract 300-500 calories from your TDEE. This creates a moderate deficit that promotes fat burning while preserving muscle. Going too aggressive — cutting more than 500 calories — tends to eat into muscle tissue and makes adherence harder. Our 31-year-old targeting fat loss might eat 1,800-1,950 calories per day.
For muscle building, add 200-300 calories above TDEE. This "lean bulk" approach provides the extra fuel muscle synthesis needs without excessive fat gain. Eating at or slightly above maintenance (what some call "body recomposition") can also work if you're new to training or returning after a break.
For maintenance, eat at your TDEE. This is often the goal during diet breaks, or once you've reached a comfortable weight and just want to sustain it.
Step 3: Set Your Protein First
Protein is the most important macro to nail, especially if you're training. It supports muscle repair and synthesis, keeps you satiated longer than carbs or fat, and has the highest thermic effect (your body burns about 25-30% of protein calories just digesting it).
The evidence-backed range for most people pursuing body composition goals is 0.7-1.0 grams of protein per pound of bodyweight. At higher ends of training frequency or intensity, some coaches recommend up to 1.2 grams per pound. Our 5'5" woman at 145 pounds would aim for 101-145 grams of protein daily. Let's call it 130 grams. At 4 calories per gram, that's 520 calories from protein.
Step 4: Set Fat Within a Healthy Range
Dietary fat is essential for hormone production, fat-soluble vitamin absorption (A, D, E, K), and cell function. Going too low causes real physiological problems. Most nutrition guidelines recommend fat at 25-35% of total calories as a floor and ceiling.
At 1,900 calories, 30% from fat is 570 calories, which equals 63 grams of fat (570 ÷ 9). This is a reasonable starting point. People who feel better on lower carbs often bump fat higher, which is where ketogenic approaches (70%+ fat) come from.
Step 5: Fill Remaining Calories with Carbs
Once protein and fat are set, the remaining calories go to carbohydrates. It's the most flexible macro, and adjusting carb intake is the most common way people fine-tune their diet for performance or preference.
Returning to our example: 1,900 total calories, 520 from protein, 570 from fat, that leaves 810 calories for carbohydrates. At 4 calories per gram, that's 202 grams of carbs per day. So the final macro split is 130g protein / 202g carbs / 63g fat — a roughly 27/43/30 split.
Common Starting Splits by Goal
These aren't rules, but they're reasonable starting templates:
For fat loss: 30-35% protein / 35-40% carbs / 25-30% fat. High protein preserves muscle while in a deficit.
For muscle building: 25-30% protein / 45-50% carbs / 20-25% fat. More carbs fuel training performance and glycogen replenishment.
For endurance athletes: 20-25% protein / 55-60% carbs / 15-20% fat. Carbs are the primary fuel for sustained aerobic output.
For ketogenic: 20-25% protein / 5-10% carbs / 65-75% fat. Carbs are severely restricted to maintain ketosis.
Tracking and Adjusting
The real-world test of any macro target is how your body responds over 3-4 weeks. If you're losing more than 1.5 pounds per week in a deficit, you may be losing muscle — consider raising calories slightly or increasing protein. If you're not losing weight at all, check your tracking accuracy (food scale vs. eye estimation makes a huge difference) before cutting calories further.
Start by using a macro calculator to generate your initial targets. Track for two to three weeks using a food logging app, then assess: energy levels, sleep quality, training performance, and body weight trend. Adjust from there. The numbers are a starting point, not a permanent assignment.
Written by
Dr. Priya Nair
Health & Wellness Writer
Priya has a doctorate in public health from Emory and spent six years working in hospital administration before realizing she'd rather help people understand health information than manage the systems that deliver it. She writes about health math, nutrition science, and why the advice people get from the internet is often subtly wrong.