← All blog posts

Macros formula explained simply

WhiteUI · A plain-English guide to macro calculator

The formula behind the Macro Calculator looks short, but each part earns its place. Read it slowly once, and the calculator stops being a black box.

The formula is: Protein and carbohydrate each give 4 kcal per gram; fat gives 9 kcal per gram. Grams of a macro = (daily calories × that macro’s share) ÷ kcal per gram. The three shares must add to 100%, or the grams will not add back to the calorie total.

Worked example: 2,000 kcal at 30% protein, 40% carbohydrate and 30% fat give 600 ÷ 4 = 150 g of protein, 800 ÷ 4 = 200 g of carbohydrate and 600 ÷ 9 = 66.67 g, rounded to 67 g, of fat.

A second example: 2,500 kcal at the same 30/40/30 split gives 750 ÷ 4 = 187.5 g, rounded to 188 g, of protein, 1,000 ÷ 4 = 250 g of carbohydrate and 750 ÷ 9 = 83.33 g, rounded to 83 g, of fat. A third check: 1,800 kcal at 40/40/20 gives 720 ÷ 4 = 180 g of protein, 720 ÷ 4 = 180 g of carbohydrate and 360 ÷ 9 = 40 g of fat.

The most useful check is direction, not precision: when you raise an input, does the answer move the way you expect? If it moves the other way, you have usually swapped two inputs.

A note on scope: this guide explains the arithmetic of macronutrients — it is general information, not medical or dietary advice. How many calories and how much protein, carbohydrate or fat you need depends on your age, activity, health and goals, so talk to a doctor or a registered dietitian before changing how you eat.

Frequently asked questions

Which part of the formula matters most?

The part you are most likely to mistype: the rate, the amount or the time period. Check that one first when a result surprises you.

Do I need to memorise the formula?

No. Understand what each input does and the calculator does the arithmetic.

What if my result looks wrong?

Re-read each field and its unit first. Most wrong results come from a mistyped number or a wrong unit, not from the calculator itself.

More guides on the Macro Calculator

Try it yourself

Enter your daily calories and your protein, carb and fat split to see your grams.

Open the Macro Calculator