Macro Formula

To turn a calorie target and a macro split into grams, divide each share of calories by that nutrient calories per gram.

Grams = (Calories × Macro %) ÷ Calories per gram

Where

Calories daily calorie target
Macro % share for that macro
Calories per gram 4 protein, 4 carbs, 9 fat

Worked example

At 2000 calories with 30% protein: (2000 × 0.30) ÷ 4 = 150 g protein. Carbs at 40%: (2000 × 0.40) ÷ 4 = 200 g. Fat at 30%: (2000 × 0.30) ÷ 9 = 67 g.

Protein and carbs use 4, fat uses 9. The three percentages should add to 100%.

FAQ

Why don’t my calculated total calories from macros exactly match a food label? Small rounding in listed macro grams, plus label rules that allow some rounding tolerance, mean a recalculation from labeled macros can come out slightly different from the label’s stated calorie count, even using the same calorie-per-gram factors.

Split your target with the Macro calculator in the cooking calculators.

A worked example

For a 2,000 calorie target split 30 percent protein, 40 percent carbohydrate, and 30 percent fat, the protein share is 600 calories, which at 4 calories per gram is 150 grams. Carbohydrate is 800 calories, or 200 grams, and fat is 600 calories, which at 9 calories per gram is about 67 grams.

Using the split

Check that your percentages add up to 100. The right split depends on your goals, your health, and your activity, and no single ratio suits everyone. Alcohol also provides calories, at about 7 per gram, and is not counted in these three groups. A registered dietitian or your doctor can help set targets. This is general information and not medical advice.

Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.