The basic formula for calculating your macros
To calculate your macros, you need three numbers: your daily calorie target, and the percentage of those calories you want from protein, carbohydrates, and fat. Once you have those, divide each calorie amount by the calories per gram of that macronutrient.
Protein and carbohydrates each contain 4 calories per gram. Fat contains 9 calories per gram. So if your target is 2,000 calories and you want 30% from protein, that is 600 calories from protein. Divide 600 by 4 to get 150 grams of protein per day.
The math works the same way for carbs and fat. Most people find it easier to use a calculator or a tracking app rather than doing this by hand every day, but the formula itself is straightforward.
Key Takeaways
- Your daily calorie target is the starting point; you can estimate it using your weight, age, activity level, and a formula like the Mifflin-St Jeor equation.
- Protein and carbs have 4 calories per gram; fat has 9 calories per gram, so the same calorie amount yields different gram amounts for each.
- Common macro splits are 40% carbs, 30% protein, 30% fat for general fitness, or 50% carbs, 25% protein, 25% fat for endurance athletes.
- Tracking apps like MyFitnessPal and Cronometer calculate macros automatically once you log your food, so you do not have to do the math yourself.
Finding your daily calorie target
Your calorie target depends on your basal metabolic rate (BMR)—the calories your body burns at rest—multiplied by your activity level. The Mifflin-St Jeor equation is the most widely used formula for estimating BMR. For men, it is (10 × weight in kg) + (6.25 × height in cm) − (5 × age) + 5. For women, it is (10 × weight in kg) + (6.25 × height in cm) − (5 × age) − 161.
Once you have your BMR, multiply it by an activity factor. Sedentary (little or no exercise) is 1.2. Lightly active (exercise 1–3 days per week) is 1.375. Moderately active (exercise 3–5 days per week) is 1.55. Very active (exercise 6–7 days per week) is 1.725. Very very active (physical job or training twice per day) is 1.9.
The result is your estimated daily calorie burn. If you want to lose weight, subtract 300–500 calories. If you want to gain weight, add 300–500 calories. If you want to maintain, use the number as is.
Choosing your macro percentages
There is no single "correct" split. Different goals and body types respond to different ratios. A common starting point for general fitness is 40% carbohydrates, 30% protein, and 30% fat. This works for most people who lift weights and want to build muscle while staying lean.
Endurance athletes often do better with higher carbs: 50% carbohydrates, 25% protein, 25% fat. People doing low-carb or ketogenic diets might use 5% carbs, 25% protein, 70% fat. Strength athletes sometimes go higher on protein: 35% carbs, 40% protein, 25% fat.
If you are new to tracking, start with the 40-30-30 split and adjust after 4–6 weeks based on how you feel and whether you are reaching your goals. Some people feel better with more carbs; others do better with more fat. The best split is the one you can stick to and that produces results for your body.
Converting percentages to grams
Once you have your calorie target and your percentages, the conversion is straightforward. Multiply your daily calories by each percentage, then divide by the calories per gram.
Example: 2,000 calorie target, 40% carbs, 30% protein, 30% fat. Carbs: 2,000 × 0.40 = 800 calories. 800 ÷ 4 = 200 grams of carbs. Protein: 2,000 × 0.30 = 600 calories. 600 ÷ 4 = 150 grams of protein. Fat: 2,000 × 0.30 = 600 calories. 600 ÷ 9 = 67 grams of fat.
Write these numbers down or save them in your phone. These are your daily targets. You do not have to hit them exactly every day—being within 5–10 grams of each macro is close enough for most people.
Using a tracking app instead of calculating by hand
MyFitnessPal is the most popular free option. Enter your age, weight, height, and activity level, and it calculates your calorie and macro targets automatically. Log your food by searching the database or scanning barcodes, and the app shows you how many grams of protein, carbs, and fat you have consumed and how many you have left for the day.
Cronometer is more detailed and better for people tracking micronutrients as well as macros. Lose It! is simpler and works well if you just want to track calories and macros without the extra features. All three have free versions that cover the basics.
If you prefer not to use an app, a spreadsheet works too. Create columns for the food you eat, the grams of protein, carbs, and fat in each, and let the spreadsheet add them up. This takes more work but gives you full control over your data.
Adjusting your macros over time
Your calorie and macro needs change as your weight changes. If you lose 10 pounds, your BMR drops slightly, so your calorie target should drop too. Recalculate every 4–6 weeks or whenever your weight changes by more than 5 pounds.
If you are not seeing results after 3–4 weeks, adjust your calories by 100–200 in the direction you want to go. If you are trying to lose weight and not losing, eat 100–200 fewer calories. If you are trying to gain and not gaining, eat 100–200 more. Small changes often work better than big ones.
Protein needs stay relatively stable—aim for 0.7 to 1 gram per pound of body weight if you lift weights, or 0.6 to 0.8 grams per pound if you do not. The rest of your calories can come from carbs and fat in whatever ratio feels best to you.
Common mistakes when calculating macros
The biggest mistake is using an activity level that is too high. Most people overestimate how active they are. If you sit at a desk all day and exercise 3 times a week, you are lightly active, not moderately active. Overestimating your activity level leads to a calorie target that is too high, which means you will not lose weight even if you think you are eating right.
Another mistake is not accounting for cooking methods. A chicken breast has about 165 calories and 31 grams of protein. But if you cook it in 2 tablespoons of oil, you add 240 calories and 27 grams of fat. Log the oil separately so your macros are accurate.
A third mistake is changing your macros too often. If you switch your split every week, you never give your body time to adapt. Pick a split, stick with it for at least 4 weeks, and only change it if you are not seeing results or if you feel terrible.
Frequently Asked Questions
Do I have to eat the exact same macros every single day?
No. Your body does not reset at midnight. If you eat 150 grams of protein one day and 140 the next, that is fine. Aim to hit your targets on average over a week, not every single day. This makes it much easier to stick with tracking long-term.
What if I do not know my activity level?
Start with 1.375 (lightly active) if you exercise 3 times per week, or 1.2 (sedentary) if you exercise less than that. Track your weight for 2 weeks. If it stays the same, your estimate is close. If it goes up or down, adjust your calorie target by 100–200 calories and try again.
Should I count calories from vegetables?
Technically yes, but most people do not because vegetables are low in calories and high in fiber. A cup of broccoli is about 30 calories. If you want to be precise, log them. If you want to keep things straightforward, you can ignore them and just log the protein, carbs, and fat from meat, grains, and oils.
Can I use a different macro split than the ones you mentioned?
Yes. The splits mentioned are common starting points, but they are not rules. Some people do well on 45% carbs, 25% protein, 30% fat. Others prefer 30% carbs, 35% protein, 35% fat. The best split is the one that helps you reach your goals and that you can sustain.
How often should I recalculate my macros?
Recalculate every 4–6 weeks or whenever your weight changes by 5 pounds or more. If you are in a long cutting or bulking phase, recalculating monthly keeps your targets aligned with your current body weight and prevents your progress from stalling.