Macro Calculator: Protein, Carbs and Fat in Grams

Last updated: · 4 min read

Counting calories tells you how much you eat, but knowing where those calories come from matters too. Protein, carbohydrates and fat do different jobs in the body, and each gram of them carries a different energy value. This guide turns a 2,200 kcal daily target into grams using a balanced split of 30% protein, 40% carbohydrates and 30% fat. It explains why the energy values are 4, 4 and 9 kcal per gram and what the calculator shows for each of its five macro splits.

Formula

Protein (g) = calories × protein share ÷ 100 ÷ 4
Carbohydrates (g) = calories × carb share ÷ 100 ÷ 4
Fat (g) = calories × fat share ÷ 100 ÷ 9

Calories is your daily kcal target. The share is the percentage for the split you chose; in the balanced split the protein share is 30%. The divisors reflect the energy in one gram: protein and carbohydrate give 4 kcal per gram, fat gives 9 kcal per gram. Every split's three shares add up to 100%, so the gram values account for the full calorie target.

What the inputs mean

Daily calorie target
Your daily energy target in kcal. If you do not know it, estimate your total daily energy expenditure first; for most adults the figure falls between 1,600 and 2,800 kcal.
Macro split
Five options: balanced (30/40/30), high protein (40/30/30), low carb (40/20/40), ketogenic (25/5/70) and endurance sport (20/55/25). The order is always protein, carbohydrates, fat.
Result to show
Choose protein, carbohydrates or fat. To see all three, run the calculator once for each option.

Worked example: 2,200 kcal with a balanced split (30 / 40 / 30)

  1. Target 2,200 kcal, balanced split: protein 30%, carbohydrates 40%, fat 30%.
  2. Protein calories: 2,200 × 0.30 = 660 kcal; 660 ÷ 4 = 165 g of protein.
  3. Carbohydrate calories: 2,200 × 0.40 = 880 kcal; 880 ÷ 4 = 220 g of carbohydrates.
  4. Fat calories: 2,200 × 0.30 = 660 kcal; 660 ÷ 9 = 73.33 g of fat.
  5. Check: 660 + 880 + 660 = 2,200 kcal, so the three macros meet the target exactly.

Result: With a balanced split at 2,200 kcal you need 165 g of protein, 220 g of carbohydrates and 73.33 g of fat. On the high protein split (40% protein) the protein rises to 220 g; on the ketogenic split (70% fat) the fat becomes 171.11 g.

🥗 Macro Calculator

Free, no sign-up; your data stays in your browser.

Open the calculator →

Also in this calculator

  • Compare: up to three results side by side, with differences in amount and percent
  • Download Excel: inputs, result and the table if there is one
  • Save: keep the calculation in your own browser only

How to read the result

Gram values are a starting point. Body weight, activity level, sleep and health change what you need, and protein targets are often set per kilogram of body weight. Cutting fat very low can cause nutritional imbalances. This is general information, not nutrition counselling or medical advice.

Country-specific note

The energy values (4 kcal per gram for protein and carbohydrates, 9 kcal per gram for fat) are the same in US and European practice. Food labels may use other factors for fibre and for alcohol (about 7 kcal per gram); this calculator covers only the three macros.

Common mistakes

  • Reading percentages as grams: 30% protein means 30% of 2,200 kcal, not 30 grams.
  • Mixing up energy values: fat gives 9 kcal per gram while protein and carbohydrates give 4. Dividing fat grams by 4 creates a large error.
  • Trying to hit the macros at every meal: as long as the daily total is on target, each meal does not need an exact split.
  • Treating the calorie target as fixed: as weight and activity change, your needs change, and so should the gram figures.
  • Forgetting vegetables, fibre and micronutrients: a macro calculation does not cover vitamin and mineral needs.

Frequently asked questions

Is a balanced split or a low-carb split better?

It depends on the person and the goal. For general health and long-term use, a balanced split is easy to follow. High-fat plans such as ketogenic diets should be tried only under the supervision of a doctor or dietitian.

How many calories does a gram of protein provide?

About 4 kcal. Carbohydrates also give 4 kcal per gram and fat gives 9 kcal per gram. Alcohol gives about 7 kcal per gram, but this calculator does not include it.

How closely should I track these gram figures?

For most people, staying close to the target on a weekly average is enough. Athletes or people with specific medical conditions may need tighter tracking, with expert guidance.

Is the result medical advice?

No. The result is only a mathematical starting point. If you have diabetes, kidney disease, are pregnant or have a history of an eating disorder, speak to a doctor before you change your diet.

The result is not exact or binding and is for information only; it is not an official document and cannot be used in official procedures. Confirm it with the competent authority or a professional before acting; no liability is accepted for losses arising from its use.

Sources

Choose your cookie preference to continue

Records the site needs to work (theme, language, favourites) stay in your browser.

This site is free and funded by ads.

With your consent, Google Analytics cookies measure visits and Google AdSense cookies are used to show ads; the data is processed on Google servers abroad.

If you reject, the site works just the same.

Cookie Policy · KVKK notice