GlobalFree to use

Macronutrient calculator

Convert a chosen energy target and protein/fat percentages to grams.

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Input

Tip: press Ctrl + Enter to run

Your result

Your result will appear here.

About this tool

Nutrition plans are often described as percentages of calories, but food labels list grams. This calculator converts a daily energy target and the share of calories you want from protein and fat into grams of protein, fat and carbohydrate (the remainder). It uses 4 kcal per gram for protein and carbohydrate and 9 kcal per gram for fat.

For context, the US National Academies’ acceptable macronutrient distribution ranges for adults are 10–35% of energy from protein, 20–35% from fat and 45–65% from carbohydrate. This tool accepts protein from 10 to 40% and fat from 15 to 45%, so check that your split makes sense for you; a registered dietitian can tailor it.

How to use it

  1. Enter your daily calorie target, for example from the calorie and TDEE estimator.
  2. Enter the percentage of calories from protein.
  3. Enter the percentage from fat; carbohydrate gets the rest.
  4. Run it and compare the grams with nutrition labels or a food-tracking app.

How the calculation works

Protein g = calories × protein% ÷ 4. Fat g = calories × fat% ÷ 9. Carbohydrate g = calories × (100 − protein% − fat%) ÷ 4.

Worked example

For 2,100 kcal a day split 30% protein, 30% fat and 40% carbohydrate, the targets are 157.5 g of protein (630 kcal), 70 g of fat (630 kcal) and 210 g of carbohydrate (840 kcal). The 40% carbohydrate share is below the 45–65% range in the National Academies’ guidance, worth knowing before adopting it.

Limitations

  • Calories 1,200–6,000; protein 10–40%; fat 15–45%.
  • Does not consider fibre, sugar quality or micronutrients.
  • General information, not individual dietary advice.

Sources

Last updated:

Frequently asked questions

Why is fat 9 kcal per gram?

Fat provides about 9 kcal per gram, while protein and carbohydrate provide about 4. These are the standard factors used on food labels.

Does alcohol count?

Alcohol provides about 7 kcal per gram but is not included in this split.

How much protein do adults need?

The adult recommended dietary allowance is 0.8 g per kg of body weight per day; athletes and older adults may benefit from more. Ask a professional for personal targets.

Troubleshooting

Carbohydrate shows a very small number.

Protein and fat percentages together are close to 100%; lower one of them.

My app shows different grams for the same food.

Food databases vary; use the label on the package you eat.

I want my calorie target first.

Estimate it with the calorie and TDEE estimator.

Privacy & Free to use

Are my inputs stored?

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Is this tool free?

Yes. No signup or payment is required.

Processed in your browser

Useful next steps