Calculating macros is a four-step process: estimate your daily calorie needs, decide what percentage of those calories should come from protein, carbs, and fat, then convert each percentage into grams. The math itself is simple once you know the calorie value of each macronutrient: protein and carbohydrates each contain 4 calories per gram, while fat contains 9 calories per gram.
Step 1: Estimate Your Daily Calories
Everything starts with your total daily energy expenditure, which is a combination of your basal metabolic rate (the calories your body burns just to stay alive) and the calories you burn through movement and exercise. The most widely used formula for basal metabolic rate is the Mifflin-St Jeor equation:
- For men: (10 × weight in kg) + (6.25 × height in cm) − (5 × age in years) + 5
- For women: (10 × weight in kg) + (6.25 × height in cm) − (5 × age in years) − 161
If you weigh 170 pounds, divide by 2.2 to get roughly 77 kg. If you’re 5’8″, that’s about 173 cm. A 30-year-old man at that size would get: (10 × 77) + (6.25 × 173) − (5 × 30) + 5 = 1,697 calories per day at complete rest.
Next, multiply that number by an activity factor to account for how much you move. A common scale: sedentary (×1.2), lightly active such as walking a few days per week (×1.375), moderately active with regular exercise (×1.55), or very active with intense daily training (×1.725). Using the example above, a moderately active person would multiply 1,697 by 1.55, landing at roughly 2,630 calories per day.
Step 2: Adjust Calories for Your Goal
Your maintenance calories keep your weight stable. To change your weight, you adjust from there. For fat loss, a deficit of about 500 calories per day typically produces a loss of roughly half a pound to one pound per week, according to the Mayo Clinic. So if your maintenance is 2,630, you’d target around 2,130 calories daily.
For muscle gain, a smaller surplus of 250 to 500 calories above maintenance is the usual recommendation, putting you in the range of 2,880 to 3,130 in the same example. Larger surpluses speed up weight gain but tend to add more fat than muscle. If your goal is simply to maintain your current weight and eat more intentionally, skip this step and use your maintenance number.
Step 3: Choose Your Macro Split
Now you decide how to divide your total calories among protein, carbs, and fat. There’s no single correct ratio, but broad health guidelines suggest these ranges for adults: 10 to 35% of calories from protein, 45 to 65% from carbohydrates, and 20 to 35% from fat. Within those boundaries, your specific split depends on your goals and preferences.
A popular starting point for general fitness is 30% protein, 40% carbs, and 30% fat. Someone focused on endurance training might shift toward more carbs (50% or higher), while someone prioritizing fat loss or satiety might push protein to 35% and lower carbs. The percentages need to add up to 100%.
Setting Protein First
Many nutrition coaches recommend anchoring your plan around protein, since it plays the biggest role in muscle maintenance and fullness between meals. The government’s minimum recommendation is 0.8 grams per kilogram of body weight, but that’s a floor to prevent deficiency, not an optimal target. Most active people benefit from 1.2 to 2.0 grams per kilogram, depending on training intensity. For a 77 kg person, that’s roughly 92 to 154 grams of protein per day. Once protein is set, you divide the remaining calories between carbs and fat based on preference and activity level.
Step 4: Convert Percentages to Grams
This is where the actual calculation happens. Take your target calorie number, apply each macro’s percentage, then divide by the calories per gram for that nutrient. Here’s a worked example using a 2,000-calorie target with a 30/40/30 split (protein/carbs/fat):
- Protein (30%): 2,000 × 0.30 = 600 calories ÷ 4 calories per gram = 150 grams
- Carbs (40%): 2,000 × 0.40 = 800 calories ÷ 4 calories per gram = 200 grams
- Fat (30%): 2,000 × 0.30 = 600 calories ÷ 9 calories per gram = 67 grams
Notice that fat yields more than twice the calories per gram compared to protein or carbs. That’s why fat targets in grams always look smaller than the other two, even when the calorie percentage is the same.
A Full Worked Example
To pull it all together: say you’re a 35-year-old woman, 5’5″ (165 cm), 150 pounds (68 kg), moderately active, and your goal is gradual fat loss.
First, your BMR: (10 × 68) + (6.25 × 165) − (5 × 35) − 161 = 1,356 calories. Multiply by the moderate activity factor of 1.55 and you get about 2,102 maintenance calories. Subtract 500 for fat loss, and your daily target is roughly 1,600 calories.
Next, you set protein at 1.6 g per kg: 68 × 1.6 = 109 grams of protein, which is 436 calories (109 × 4). That leaves 1,164 calories for carbs and fat. If you want about 30% of total calories from fat: 1,600 × 0.30 = 480 calories from fat, or 53 grams (480 ÷ 9). The remaining 684 calories go to carbs: 684 ÷ 4 = 171 grams of carbohydrates.
Your daily targets: 109 g protein, 171 g carbs, 53 g fat. That’s what you’d track against using a food scale or nutrition app.
Total Carbs vs. Net Carbs
When tracking carbohydrates, you’ll encounter the concept of “net carbs,” which is total carbohydrates minus fiber (and sometimes minus sugar alcohols). The logic is that fiber doesn’t significantly raise blood sugar, so those grams can be subtracted. A medium apple with 25 grams of total carbs and 4.5 grams of fiber, for instance, would count as 20.5 net carbs.
This distinction matters most for people following low-carb or ketogenic diets. If you’re simply tracking macros for general fitness or weight management, counting total carbs is simpler and perfectly adequate. It’s worth noting that the FDA doesn’t officially recognize “net carbs” as a regulated term on food labels.
Practical Tips for Tracking
Hitting your macro targets exactly every day isn’t realistic, and it isn’t necessary. Aiming within 5 to 10 grams of each target consistently will produce the same results over time. Most people use apps that scan barcodes and pull nutrition data automatically, which removes most of the guesswork.
Weigh calorie-dense foods like nuts, oils, cheese, and nut butters rather than estimating portions. These are easy to undercount by hundreds of calories. Lean proteins, fruits, and vegetables are more forgiving if your portions are slightly off. Pre-logging your meals for the day, even loosely, helps you avoid reaching dinner with too many or too few grams of one macro left to fill.
Recalculate your macros every 10 to 15 pounds of weight change, or if your activity level shifts significantly. Your calorie needs change as your body does, and targets that worked three months ago may no longer match your current situation.

