Calcylator
Macro Nutrients

Macro nutrients:
turn a calorie target into grams

Percentages are easy to pick; the grams on your plate are what you actually have to measure.

Calcylator Editorial Team

Updated · 6 min read

What macro nutrients are and what "counting macros" means

Macro nutrients are the three nutrients that supply almost all the energy in food: protein, carbohydrate and fat. A macro nutrients calculator takes your daily calorie target and divides it among them, so you end up with a gram target for each.

The conversion rests on three energy factors that nutrition labels commonly use. Protein and carbohydrate give about 4 kcal per gram, and fat gives about 9 kcal per gram. Alcohol, which is not a macronutrient in the usual sense, gives about 7 kcal per gram.

Because fat carries more than twice the energy per gram, a 20 g fat target and a 20 g carbohydrate target look the same on paper but are very different in calories. That is why macros are planned as a share of calories first and as grams second.

Macros answer a different question from calories. Calories say how much you eat; macros say what that energy is made of. Two diets of 1,800 kcal can feel completely different to follow, because one may be rich in protein and fibre-heavy carbohydrate and the other mostly refined starch and fat.

You do not need to be an athlete to use them. A macro split is simply a more specific way of describing a meal plan, which is helpful when you are trying to lose weight, build muscle, manage hunger or keep a family member's diet consistent.

Macro nutrients formula: from percentages to grams

Grams of a macro nutrient =Daily calories × share of calories (%)100 × kcal per gram
Daily calories:
Your calorie target, for example from a TDEE estimate
Share of calories:
The percentage you assign to protein, carbohydrate or fat
kcal per gram:
4 for protein, 4 for carbohydrate, 9 for fat
The three shares must add up to 100%. If they do not, the grams will not add back up to your calorie target.

The formula is a two-step division, but the order matters. First you turn the share into calories, then you convert calories into grams using the energy factor of that nutrient.

  1. Decide your daily calorie target.
  2. Choose a split for protein, carbohydrate and fat that adds to 100%.
  3. Multiply calories by each share to get calories per macro.
  4. Divide each by its kcal per gram: 4, 4 and 9.
  5. Add 4 × protein g + 4 × carbohydrate g + 9 × fat g to confirm you land back on your target.

Worked example: 1,800 kcal at 20% protein, 50% carbohydrate, 30% fat

  • Daily calories

    1,800 kcal

  • Split (protein / carbohydrate / fat)

    20% / 50% / 30%

  • Calories per macro

    360 / 900 / 540 kcal

Daily gram targets

Protein 90 g, carbohydrate 225 g, fat 60 g

Check: 90 × 4 + 225 × 4 + 60 × 9 = 360 + 900 + 540 = 1,800 kcal. Fat is exactly 60 g here: 540 ÷ 9.

Notice what the fat figure means in practice. Sixty grams of fat is roughly four tablespoons of oil, ghee or butter across the whole day, and that has to cover cooking fat as well as the fat hidden in paneer, nuts, eggs and packaged snacks.

Spread over four eating occasions, the same targets become about 22 g protein, 56 g carbohydrate and 15 g fat each. Small, repeatable portions are easier to plan than one daily total, and they keep protein spread through the day instead of landing at dinner.

Carbohydrate at 225 g sounds large until you split it across the day. Three meals and a snack leave around 55 to 60 g each, which is a normal serving of rice or roti with dal, vegetables and a fruit.

Comparing common macro splits at 2,000 kcal

Same 2,000 kcal, different distributions (grams rounded)
StyleProtein / carb / fat (%)ProteinCarbohydrateFat
Balanced20 / 50 / 30100 g250 g67 g
Higher protein25 / 45 / 30125 g225 g67 g
High protein30 / 40 / 30150 g200 g67 g
Lower carbohydrate20 / 35 / 45100 g175 g100 g

Watch the fat column. Moving 15 percentage points of calories from carbohydrate to fat lifts the fat target from 67 g to 100 g, while the carbohydrate target falls by 75 g. A shift of the same size looks very different in grams depending on which macro you move.

None of these rows is the right answer for everyone. A person training for strength may prefer the higher-protein rows, while someone who eats mostly rice, roti and dal may find a 50% carbohydrate share the most natural. Adherence matters more than the exact percentages.

How do you choose? Start from protein, because it is the macro with the most consistent evidence behind a minimum. Set it by body weight, then split the remaining calories between carbohydrate and fat according to what you enjoy, how active you are and what keeps you full.

For a starting range, adult guidance from the US National Academies puts protein at 10–35%, carbohydrate at 45–65% and fat at 20–35% of calories. National guidelines differ, so check your own country's recommendation and use the table above as a way to see what each share looks like in grams.

How to work backwards from a food label

The same factors work in reverse, which is useful for checking whether a packet fits your split. Take a label that lists 8 g protein, 30 g carbohydrate and 6 g fat per serving.

  • Protein

    8 g × 4 = 32 kcal

  • Carbohydrate

    30 g × 4 = 120 kcal

  • Fat

    6 g × 9 = 54 kcal

Energy and split per serving

206 kcal: about 16% protein, 58% carbohydrate, 26% fat

Labels often show a slightly different kcal figure because of fibre, rounding and the exact factors used.

A result that is far from your target split is not a problem in itself. Meals do not have to match the daily split; the day as a whole does. A fruit snack will be nearly all carbohydrate, and a boiled egg will be mostly fat and protein.

Working backwards is also the quickest way to spot packaged foods that look healthy but deliver most of their energy from fat or refined carbohydrate. Calculate once for the products you buy often and you will remember the answer.

Common mistakes when planning macro nutrients

  • Letting the percentages add to 95% or 110%, so the grams no longer match the calorie target.
  • Using 4 kcal per gram for fat or 9 for carbohydrate. Fat is the 9.
  • Setting protein as a percentage only. A 20% share of a very low calorie target can be too little protein for your body weight, so check it against a grams-per-kilogram figure as well.
  • Weighing raw food but logging it as cooked, or the reverse. Rice, dal and meat change weight in cooking, so use the same state every time.
  • Forgetting drinks, oil, sauces and sugar in tea and coffee. They are small each time and add up across a week.

A macro plan is also only as good as the calorie number behind it. If your calorie target is a guess, the grams are a precise answer to an imprecise question. Re-estimate it when your weight or activity changes, and recalculate the grams rather than scaling one macro up or down.

People with diabetes, kidney disease, pregnancy or a history of disordered eating should set macro targets with a doctor or registered dietitian rather than with an online tool. Everyone else can treat the numbers as a starting point and adjust based on energy, hunger and how the week actually goes.

Common questions

How do I calculate macros from calories?

Multiply your daily calories by each macro's percentage, then divide by its energy per gram: 4 for protein, 4 for carbohydrate and 9 for fat. For 1,800 kcal at 20/50/30, that gives 90 g protein, 225 g carbohydrate and 60 g fat.

How many calories are in a gram of protein, carbohydrate and fat?

Protein and carbohydrate provide about 4 kcal per gram and fat about 9 kcal per gram. Alcohol provides about 7. These are average factors used for labelling, so real foods can differ slightly depending on fibre and how the figure is rounded.

What is a good macro split for weight loss?

There is no single best split. A common starting point is 20–30% protein, 40–50% carbohydrate and 25–35% fat, with total calories doing the work. Choose a split you can follow consistently, and see a dietitian for medical conditions.

Do I need to hit my macros exactly every day?

No. Daily figures vary, and food labels are rounded, so treat targets as a range of roughly 5–10 g either way. Averages over a week matter more than any single day.

Should I count fibre in carbohydrates?

Total carbohydrate on a label usually includes fibre. Some people track net carbohydrate by subtracting fibre, but the 4 kcal figure is an approximation anyway. Pick one method and use it consistently rather than switching between them.

Was this guide helpful?

Continue reading

View all blogs