Macro Calculator

Convert a calorie target and macro percentages into grams of protein, carbohydrate, and fat.

Enter your values, then select the button.
Macro Calculator method
Protein/carbs ÷ 4 kcal per gram; fat ÷ 9.

How to use the macro calculator

  1. Daily calories: Chosen calorie target.
  2. Protein (%): Share of calories from protein.
  3. Carbohydrate (%): Share of calories from carbohydrate.
  4. Fat (%): Share of calories from fat.
  5. Select the button and review the result.

Worked example

At 2,200 calories and 30/40/30, the targets are 165 g protein, 220 g carbs, and about 73 g fat.

Method and limitations

Protein/carbs ÷ 4 kcal per gram; fat ÷ 9.

Percentages must total 100. Nutrition needs vary; consult a qualified professional for medical needs.

Common questions

Why might another result be different?

Inputs, rounding, policies, rates, and assumptions can differ. Compare like-for-like values and use current official information when a rate or rule can change.

Does NidXee save my entries?

No. The calculation runs in your browser. Reloading or closing the page may clear it.