How to calculate Macros - worked example
The best way to trust a calculator is to work one example all the way through by hand, then confirm the calculator agrees. Here is that example, step by step, with nothing skipped.
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.
Step by step: 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.
Now repeat it with your own numbers. Change one input at a time and watch the answer move — that is how you learn what each input actually does.
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.
30/40/30 or 40/30/30: which split fits the day?
The same calories give very different grams when the split changes, so pick the split for the day you are actually having. At 2,200 kcal, a 30% protein, 40% carbohydrate and 30% fat split gives 660 ÷ 4 = 165 g of protein, 880 ÷ 4 = 220 g of carbohydrate and 660 ÷ 9 = 73.33 g, rounded to 73 g, of fat. Swap protein and carbohydrate to 40/30/30 and the same 2,200 kcal gives 880 ÷ 4 = 220 g of protein, 660 ÷ 4 = 165 g of carbohydrate and the same 73 g of fat.
The protein and carbohydrate swap places; the fat stays put because its share did not change. That is the point to hold on to: changing one share moves two numbers, not one, because the shares must still add to 100%. A training day with more protein usually means less carbohydrate, not just “more protein”. Before you settle on a split, check it against a real meal: 165 g of protein is roughly five servings of dal, curd, eggs or paneer across the day, and 220 g of carbohydrate is roughly four to five servings of rice, roti or oats. If the grams do not match what you actually eat, the split is a wish, not a plan.
What to check before you trust a macro split
First, add the shares: they must total 100%. A split of 30/40/35 adds to 105, and the grams will add back to more calories than you started with. Second, check the grams add back to the calories: protein and carbohydrate at 4 kcal a gram, fat at 9. Third, run a round-number case: 1,600 kcal at 25% protein, 50% carbohydrate and 25% fat gives 400 ÷ 4 = 100 g of protein, 800 ÷ 4 = 200 g of carbohydrate and 400 ÷ 9 = 44.44 g, rounded to 44 g, of fat. If the calculator gives a different answer for those inputs, one share is entered wrong.
Finally, remember what this page is: general information about the arithmetic, not dietary advice. How much protein or carbohydrate you need depends on your age, activity, health and goals, so talk to a doctor or a registered dietitian before changing how you eat — especially if you have a medical condition or you are feeding a child.
Frequently asked questions
Why work through an example by hand?
Because a hand-worked example gives you a number you trust. Once you have one, you can test the calculator against it and spot any input slip at once.
Should the calculator match my hand calculation exactly?
Yes, apart from rounding to two decimal places. A larger gap means an input differs.
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
Enter your daily calories and your protein, carb and fat split to see your grams.