How to Calculate Macros: Protein, Fat, and Carbs Step by Step

Set calories first, then protein at 1.6–2.2 g/kg, fat at 20–35% of calories, and give the rest to carbs. A full worked example for an 80 kg lifter is inside.

Three titanium bowls of different sizes beside a teal glass sphere on warm cream linen
On this page
  1. How many calories are in each macro?
  2. Step 1: How do you set your calorie target?
  3. Step 2: How much protein should you set?
  4. Step 3: How much fat should you eat?
  5. Step 4: How many carbs are left?
  6. A worked example: macros for an 80 kg lifter
  7. How HOPE splits your macros
  8. Does the carb-to-fat ratio matter for fat loss?
  9. Why grams per kilogram beat fixed percentages
  10. How precise do your macros need to be?
  11. The bottom line

Short answer: Start with your daily calorie target, then set protein at about 1.6–2.2 g per kg of body weight (4 kcal per gram), fat at 20–35% of calories with at least about 0.5 g/kg (9 kcal per gram), and give the remaining calories to carbohydrate (4 kcal per gram). For an 80 kg person eating 2,759 kcal, that gives about 144 g protein, 77 g fat, and 373 g carbs.

Macros are the three nutrients that supply calories: protein, carbohydrate and fat. Calculating them means turning one calorie number into three gram targets you can actually eat and track.

The order matters more than the exact ratio. Set calories, then protein, then fat, and let carbohydrate take whatever is left. Below is each step with the evidence behind it and a full example with real numbers.

How many calories are in each macro?

Protein and carbohydrate provide 4 kcal per gram, fat provides 9 kcal per gram, and alcohol provides 7. These are the general Atwater factors in the FAO's report on food energy, and they are what nutrition labels and tracking apps use to convert grams into calories.

NutrientEnergy per gram100 kcal equals
Protein4 kcal25 g
Carbohydrate4 kcal25 g
Fat9 kcalabout 11 g
Alcohol7 kcalabout 14 g

Because fat is more than twice as energy-dense, a small change in fat grams moves your calories much more than the same change in protein or carbs.

Step 1: How do you set your calorie target?

Start with maintenance, the calories that keep your weight stable, and then adjust for your goal. Maintenance is usually estimated as basal metabolic rate (BMR, the energy you burn at rest) times an activity factor; BMR vs TDEE walks through the formula.

The calorie calculator does this step and the macro split in one go.

Step 2: How much protein should you set?

Set protein first, in grams per kilogram of body weight: about 1.6 g/kg is enough for most people who lift, and up to 2.2 g/kg covers individual differences. A meta-analysis of 49 trials found that lean mass gains from resistance training plateaued at about 1.62 g/kg a day, with 2.2 g/kg as the upper end of the confidence interval.

SituationProtein per kg per daySource
Most people who exercise1.4–2.0 gJäger 2017 (ISSN)
Building muscle (average plateau)About 1.6 gMorton 2018
Off-season bodybuilding1.6–2.2 gIraki 2019
Lean lifters dieting for a contest2.3–3.1 g per kg of lean body massHelms 2014

The ISSN protein position stand supports 1.4–2.0 g/kg for most exercising people and higher intakes during a calorie deficit. If you carry a lot of extra body fat, base the calculation on a goal weight rather than current weight; the reasoning and examples are in how much protein per day, and the protein calculator handles it for you.

Multiply grams by 4 to get protein calories, which you need for step 4.

Step 3: How much fat should you eat?

Give fat about 20–35% of your calories, and keep it above roughly 0.5 g/kg. The 20–35% range is the adult Acceptable Macronutrient Distribution Range set by the US National Academies, still listed in their 2024 letter report alongside 45–65% for carbohydrate and 10–35% for protein.

Sports nutrition guidance lands in the same area. The ISSN's sports nutrition review suggests 25–35% of calories (0.5–1.5 g/kg) for general fitness and notes that fat-loss diets may drop to 0.5–1 g/kg, which can be as little as 20% of calories. For lifters, Iraki and colleagues recommend 0.5–1.5 g/kg during a muscle-building phase, and Helms and colleagues use 15–30% of calories for contest dieting.

Fat supplies essential fatty acids and helps you absorb fat-soluble vitamins, which is one reason every range above has a lower limit. A floor of about 0.5 g/kg protects you on low-calorie days.

Multiply fat grams by 9 to get fat calories.

Step 4: How many carbs are left?

Carbohydrate gets the remaining calories: subtract protein and fat calories from your target and divide by 4. Then check the result in grams per kilogram against how much you train.

The ISSN review gives 3–5 g/kg a day for general fitness, 5–8 g/kg for moderate to intense training of 2–3 hours a day, and more for very high training volumes. Iraki and colleagues suggest at least 3–5 g/kg for lifters in a building phase. If your remainder falls well below 3 g/kg while you train hard, your calorie target or fat intake may need a second look.

A worked example: macros for an 80 kg lifter

Take a 30-year-old man, 180 cm, 80 kg, who lifts four days a week and is moderately active overall. His goal is to maintain weight while getting stronger.

  1. Calories. BMR with Mifflin-St Jeor: 10 × 80 + 6.25 × 180 − 5 × 30 + 5 = 1,780 kcal. Maintenance at an activity factor of 1.55: 1,780 × 1.55 = 2,759 kcal.
  2. Protein. 1.8 g/kg × 80 = 144 g, or 576 kcal.
  3. Fat. 25% of 2,759 = 690 kcal, or 690 ÷ 9 = 77 g (0.96 g/kg).
  4. Carbs. 2,759 − 576 − 690 = 1,493 kcal, or 1,493 ÷ 4 = 373 g (4.7 g/kg).
MacroGramsCaloriesShare of caloriesPer kg
Protein144 g576 kcal21%1.8 g
Fat77 g690 kcal25%0.96 g
Carbohydrate373 g1,493 kcal54%4.7 g
Total2,759 kcal100%

Every number sits inside the ranges above: protein in the 1.6–2.2 g/kg band, fat within 20–35% and above 0.5 g/kg, carbs at 54% and 4.7 g/kg, in line with regular training.

How HOPE splits your macros

HOPE follows the same order with fixed rules. Protein is 2.0 g per kg (1.8 g/kg when the goal is muscle gain), capped at 35% of calories; when you are losing weight it is calculated from your goal weight rather than your current weight. Fat is 25% of calories or 0.6 g/kg, whichever is higher, capped at 35%. Carbohydrate takes the rest.

Here is what that rule gives the same 80 kg man for three goals, assuming a goal weight of 75 kg and a pace of 0.5 kg a week for the cut and 0.25 kg a week for the gain:

GoalCaloriesProteinFatCarbs
Maintain2,759 kcal160 g77 g357 g
Lose fat2,209 kcal150 g61 g264 g
Build muscle3,034 kcal144 g84 g425 g

When cutting, protein is based on the 75 kg goal weight (75 × 2.0 = 150 g), and fat stays at the 25% share because 61 g is still above the 0.6 g/kg floor. The caps exist so that one macro never crowds out the others on a low-calorie target.

Does the carb-to-fat ratio matter for fat loss?

Much less than calories and protein. In a meta-analysis of 32 controlled feeding studies that swapped carbohydrate for fat at equal calories, Hall and Guo found differences in energy expenditure and fat loss of only 26 kcal and 16 g per day, both slightly favoring the lower-fat diets, the opposite of popular low-carb claims.

Real-world diets tell the same story. In the DIETFITS trial, 609 adults followed a healthy low-fat or healthy low-carbohydrate diet for 12 months and lost 5.3 kg and 6.0 kg, a difference that was not statistically significant. The ISSN position stand on diets and body composition concludes that a wide range of approaches, from low-fat to ketogenic, can be similarly effective, and that long-term success depends mostly on adherence.

So pick the carb-to-fat balance you can stick to and that fuels your training. Keep protein and calories on target, and the rest is preference.

Why grams per kilogram beat fixed percentages

Fixed ratios such as 40/30/30 scale with calories, so they give very different protein amounts at different intakes. For an 80 kg person:

Calorie target40% proteinPer kg20% proteinPer kg
1,800 kcal180 g2.3 g90 g1.1 g
2,759 kcal276 g3.5 g138 g1.7 g
3,200 kcal320 g4.0 g160 g2.0 g

At 20%, the low-calorie target leaves protein near 1.1 g/kg, below what supports muscle while dieting. At 40%, the high-calorie target asks for 4 g/kg, more than twice the average plateau for muscle gain and expensive to eat. Grams per kilogram avoid both problems, and percentages remain useful as a check against the 20–35% fat range.

How precise do your macros need to be?

Close is good enough. Daily intake naturally varies, labels have tolerances, and your maintenance estimate is itself a prediction. A practical standard is to hit protein most days and keep calories near target over the week.

  • Track for two to three weeks to learn what your usual meals contain.
  • Prioritize protein and calories; let carbs and fat float within their ranges.
  • Recheck after a weight change of a few kilograms, since your targets move with body weight.

If you have diabetes, kidney disease, or a history of disordered eating, set macro targets with your doctor or a registered dietitian rather than on your own.

The bottom line

Calculate calories first, then protein at 1.6–2.2 g/kg, then fat at 20–35% of calories with a floor of about 0.5 g/kg, and give carbohydrate the rest. Check carbs against your training in grams per kilogram. Beyond that, the exact ratio matters far less than eating enough protein and staying consistent with your calorie target.

Frequently asked questions

How do I calculate my macros?

Find your calorie target, multiply body weight by 1.6–2.2 for grams of protein, take 20–35% of calories for fat and divide by 9, then divide the remaining calories by 4 for grams of carbs.

What is a good macro ratio for building muscle?

There is no single ratio. Set protein at about 1.6–2.2 g/kg, fat at 20–35% of calories, and let carbs fill the rest. In practice that often lands near 20–25% protein, 25–30% fat and 45–55% carbs.

What macros should I eat to lose fat?

Stay in a calorie deficit and keep protein high, at least 1.6 g/kg and often more; how you split the remaining calories between carbs and fat matters far less than the deficit itself.

Should I use percentages or grams per kilogram for macros?

Use grams per kilogram for protein and as a floor for fat, then check percentages. Fixed percentages scale with calories, so they can give too little protein on low intakes and far too much on high ones.

Sources

  1. Rethinking the Acceptable Macronutrient Distribution Range for the 21st Century: A Letter Report. National Academies of Sciences, Engineering, and Medicine (2024).
  2. Food energy – methods of analysis and conversion factors (FAO Food and Nutrition Paper 77). Food and Agriculture Organization of the United Nations (2003).
  3. Morton RW, Murphy KT, McKellar SR, et al.. A systematic review, meta-analysis and meta-regression of the effect of protein supplementation on resistance training-induced gains in muscle mass and strength in healthy adults. British Journal of Sports Medicine (2018).
  4. Jäger R, Kerksick CM, Campbell BI, et al.. International Society of Sports Nutrition Position Stand: protein and exercise. Journal of the International Society of Sports Nutrition (2017).
  5. Kerksick CM, Wilborn CD, Roberts MD, et al.. ISSN exercise & sports nutrition review update: research & recommendations. Journal of the International Society of Sports Nutrition (2018).
  6. Iraki J, Fitschen P, Espinar S, Helms E. Nutrition Recommendations for Bodybuilders in the Off-Season: A Narrative Review. Sports (2019).
  7. Helms ER, Aragon AA, Fitschen PJ. Evidence-based recommendations for natural bodybuilding contest preparation: nutrition and supplementation. Journal of the International Society of Sports Nutrition (2014).
  8. Aragon AA, Schoenfeld BJ, Wildman R, et al.. International society of sports nutrition position stand: diets and body composition. Journal of the International Society of Sports Nutrition (2017).
  9. Hall KD, Guo J. Obesity Energetics: Body Weight Regulation and the Effects of Diet Composition. Gastroenterology (2017).
  10. Gardner CD, Trepanowski JF, Del Gobbo LC, et al.. Effect of Low-Fat vs Low-Carbohydrate Diet on 12-Month Weight Loss in Overweight Adults and the Association With Genotype Pattern or Insulin Secretion: The DIETFITS Randomized Clinical Trial. JAMA (2018).

We link primary research and official guidelines wherever possible. How we write and check our guides

HOPE Editorial Team

Guides are researched and written by the team that builds HOPE. Every factual claim links to its source, and articles are updated when the evidence changes. How we write and check our guides

This guide is general information, not medical advice. If you have a health condition, are pregnant or take medication, talk to a qualified professional first.