How to Calculate Macros (Protein, Carbs, Fat)

Chart of food nutrient groups used when planning protein carbs and fat
Photo: “Food Nutrient Group Chart” by Ryanimage · CC0 1.0 · via Wikimedia Commons

Short answer

Macros are the grams of protein, carbohydrate and fat in your diet. Protein and carbs provide about 4 calories per gram; fat about 9. Grams = (calories × percent ÷ 100) ÷ calories-per-gram. On 2,000 calories with a 30/40/30 split you need about 150 g protein, 200 g carbs, 67 g fat. Try the free macro calculator.

Counting macros means planning how many grams of protein, carbs and fat you eat, not only total calories. Athletes and meal planners use macros to match training; beginners use them to learn what is in food. This guide shows the classroom math with clear examples. It is educational, not medical advice.

Calories in each macro

Nutrition labels and diet math commonly use these Atwater-style factors:

Alcohol is often counted around 7 kcal per gram when present, but most macro plans focus on the three above.

The formula

  1. Choose a daily calorie target (maintenance, cut or surplus).
  2. Choose a percent split for protein / carbs / fat that adds to 100%.
  3. For each macro: grams = calories × (percent ÷ 100) ÷ kcal-per-gram.

Worked example: 2,000 kcal at 30 / 40 / 30

Macro%Calories÷ factorGrams
Protein30%600÷ 4150 g
Carbs40%800÷ 4200 g
Fat30%600÷ 9≈ 67 g

Per meal for 4 meals: about 37.5 g protein, 50 g carbs, 17 g fat each. The macro calculator does this instantly and can show per-meal grams.

Picking a calorie target first

Macros sit on top of calories. Estimate maintenance with a TDEE-style tool, then adjust:

Start with the calorie calculator, then convert the result into macros. For protein-focused planning, also see the protein intake calculator.

Example splits (starting points, not prescriptions)

There is no single best split for every person. Age, health conditions, medications and sport all matter. Teens, pregnant people and anyone with a medical condition should follow a clinician or registered dietitian—not a website calculator alone.

US dietary pattern note

The Dietary Guidelines for Americans, 2020–2025 emphasize nutrient-dense food patterns and limits such as keeping saturated fat below 10% of calories for ages 2+. Macro percentages for the whole diet still vary by person; use official guidelines and professionals for personal targets.

Label reading mini-check

If a yogurt lists 15 g protein, 20 g carbs and 2 g fat, calories from macros ≈ (15×4) + (20×4) + (2×9) = 60 + 80 + 18 = 158 kcal from those macros (labels can also include fiber rounding differences).

Common mistakes

For body-size context only, you can glance at the BMI calculator—remember BMI is a screening estimate, not a macro plan. Stay hydrated with sensible habits; our water guide explains everyday ranges.

Second worked example: 1,800 kcal high-protein 40/35/25

Macro%CaloriesGrams
Protein40%720180 g
Carbs35%630157.5 g
Fat25%45050 g

That higher protein target is popular during fat-loss phases, but it is still only a template. Kidneys, eating disorders, sports weight classes and medical diets need professional oversight.

Fibre, sugar and “net carbs”

Carbohydrate grams on a label include starches and sugars; fibre is listed separately in many countries. Some low-carb plans subtract fibre to estimate “net carbs.” Macro calculators that only split protein/carbs/fat do not automatically enforce fibre targets—use the Dietary Guidelines’ pattern advice and label reading together.

Building a day of food (sketch)

  1. Set calories with the calorie calculator.
  2. Convert to grams with the macro calculator.
  3. Anchor protein at each meal (eggs, dairy, legumes, fish, poultry, tofu, etc.).
  4. Fill carbs with fruit, grains and starchy vegetables according to training load.
  5. Add fats from nuts, oils, avocado or fatty fish to reach the fat gram target.

Weighing food helps accuracy at first; later, hand portions are often enough. If you convert ounces to grams while meal prepping, the unit converter is handy. Percent math for homemade recipes is easy with the percentage calculator.

When macros are the wrong tool

In those cases, skip DIY macro targets and ask a qualified professional. For general adult body-size screening only, the BMI calculator is an estimate—not a macro prescription. Protein-centric planning can also start from the protein intake calculator.

Frequently asked questions

How many calories are in a gram of protein?

About 4. Carbohydrate is also about 4 kcal per gram; fat is about 9.

How do I convert calories to macro grams?

Multiply total calories by the macro’s percent, then divide by 4 (protein/carbs) or 9 (fat).

What is a simple starter split?

A balanced 30% protein / 40% carbs / 30% fat is a common learning template—not a medical prescription.

Do I need macros to lose weight?

Not strictly. A calorie deficit drives fat loss for many people; macros help food quality and protein intake. Seek medical advice when needed.

Is the macro calculator for children?

No. Children need individualized guidance from a doctor or dietitian.

Sources

💙 If VSH helps you, please share it and help us improve.