What this calculator does
The Calories in Macros Calculator converts the grams of protein, carbohydrate and fat in a meal, snack or recipe into calories (kilocalories). It also shows how your total calories are split across the three macronutrients as a percentage. This is handy for tracking a diet, checking a nutrition label, building meal plans, or verifying that a recipe matches a target macro ratio.
How to use it
Enter the grams of protein, carbohydrate and fat for whatever you are measuring — a single meal, a serving, or a whole day. The calculator returns total calories plus a per-macro breakdown in both kcal and percentage. The values come from nutrition labels or food databases; alcohol (7 kcal/g) and fiber adjustments are not included in this simple model.
The formula explained
It uses the Atwater general factors, the same conversion behind standard nutrition labels: protein and carbohydrate each provide about 4 kilocalories per gram, while fat provides about 9 kilocalories per gram. So $$\text{Total kcal} = 4 \times \text{Protein (g)} + 4 \times \text{Carbs (g)} + 9 \times \text{Fat (g)}$$ Each macro's percentage is its calories divided by the total, times 100.
Worked example
Suppose a chicken-and-rice meal contains 40 g protein, 50 g carbohydrate and 12 g fat. Protein contributes \(4 \times 40 = 160\) kcal, carbs contribute \(4 \times 50 = 200\) kcal, and fat contributes \(9 \times 12 = 108\) kcal. Total $$160 + 200 + 108 = 468 \text{ kcal}$$ Protein is \(160 \div 468 \approx 34.2\%\), carbs \(\approx 42.7\%\), and fat \(\approx 23.1\%\).
FAQ
Why is fat 9 calories per gram? Fat is more energy-dense than protein or carbohydrate, packing roughly 9 kcal in each gram versus about 4 kcal for the others.
Does this include fiber or alcohol? No. This simplified model treats all carbohydrate as 4 kcal/g and ignores alcohol. For precise label-style numbers, subtract non-caloric fiber and add 7 kcal per gram of alcohol separately.
Are my results exact? They are close estimates. Real foods vary slightly, and manufacturers may use specific Atwater factors, so small differences from a label are normal.