The four numbers every calorie count is built from
Every calorie figure on a nutrition label, in a recipe app or in a macro plan traces back to four numbers, the general Atwater factors: a gram of protein carries 4 kilocalories, a gram of carbohydrate carries 4, a gram of fat carries 9, and a gram of alcohol, present in any drink but almost never printed on a food label, carries 7. Nothing else is hidden inside the arithmetic; every figure this page shows is one of those four numbers multiplied by however many grams you type in, then added together.
These are general factors, averaged across whole food categories rather than measured fresh for every ingredient, which is worth remembering before treating any total as exact to the calorie.
Grams to calories and back, worked in full
Take a meal with 30 g of protein, 40 g of carbohydrate and 20 g of fat, no alcohol. Multiply each by its own factor and add the results:
The first tab on this page runs exactly that sum on whatever grams you type in, with a donut chart showing how much of the total each macronutrient contributes. Fat's 180 kcal here is the biggest single slice despite supplying less than a third of the meal's weight in grams, which is the fat-versus-carbohydrate gap in miniature.
The second tab runs the same arithmetic backwards. Give it a calorie figure and a single macronutrient, and it divides by that macronutrient's factor instead of multiplying: 500 kcal of fat is 500 ÷ 9, or about 55.6 g. Ask the same question of protein or carbohydrate instead and the answer is bigger, 125 g each, because their factor is smaller; ask it of alcohol and the answer sits in between, about 71.4 g, since alcohol's factor sits between carbohydrate's and fat's. The table beside the answer runs all four at once, so a single calorie figure, a snack's worth or a whole meal's, shows what it would look like as pure protein, pure carbohydrate, pure fat or pure alcohol side by side, a quick way to build a feel for how far a given number of calories actually goes.
Why fat carries more than double carbohydrate or protein
Fat's 9 kcal/g against protein and carbohydrate's shared 4 is not a rounding quirk; it comes from chemistry. Digesting and metabolising a nutrient releases energy from its chemical bonds, and how much energy comes out depends on how reduced, how rich in carbon-hydrogen bonds relative to oxygen, the starting molecule already is. Fat's long carbon chains carry far more of those carbon-hydrogen bonds than the carbon-oxygen-heavy structure of sugars and starches, so oxidising a gram of fat releases roughly twice the energy of oxidising a gram of carbohydrate. Protein lands at the same 4 kcal/g as carbohydrate once the extra cost of processing nitrogen out of its amino acid structure is folded into the general factor. Alcohol, at 7 kcal/g, sits in between: ethanol is already partly oxidised compared with fat, but still carries more usable energy than sugar, gram for gram.
Alcohol's 7 kcal/g, the number nobody counts
Alcohol earns its own factor in every serious energy table, yet it is the one macronutrient a nutrition label is not required to print calories from directly, in the US or the EU. A label lists fat, carbohydrate and protein and the calories that come with them; the alcohol in a drink adds its own 7 kcal/g on top, invisible unless you go looking for it. A standard 25 ml spirit measure at 40% ABV carries around 8 g of pure alcohol, so roughly 56 kcal from the alcohol alone before any mixer or sugar is added; a large glass of wine can carry three or four times that. For a full breakdown of where a drink's calories actually come from, the Low-Calorie Alcohol Calculator on this site runs the numbers for beers, wines and spirits side by side.
Why a label's own arithmetic rarely adds up exactly
Multiply a real nutrition label's own protein, carbohydrate and fat grams by 4, 4 and 9 and add them up, and the total rarely matches the calorie figure printed a few lines above, usually by a handful of calories either way. Three things are behind that gap, none of them a mistake. First, rounding: labelling rules require both the calorie figure and each gram figure to be rounded to set steps before printing, so the numbers on the pack are already several small roundings away from the lab's original measurements before you even start multiplying. Second, fibre: it is a type of carbohydrate, and US labelling folds it into total carbohydrate at the same 4 kcal/g as everything else, while EU rules give fibre its own lower factor, 2 kcal/g, since the body cannot fully digest it. A fibre-rich food can show a noticeably different declared calorie count depending on which set of rules produced the label. Third, the Atwater factors themselves are averages struck across whole food categories, not a fresh laboratory measurement of the exact item in front of you, so the true energy in any specific food sits close to 4-4-9-7 rather than exactly on it.
Checking a label's arithmetic yourself
The third tab turns that explanation into a quick check. Type a label's own protein, carbohydrate, fat and alcohol grams, and its stated calorie figure, and this page multiplies the grams out using the same 4-4-9-7 factors and compares the result with what the label claims. A small gap, a handful of calories either way, is exactly what the rounding and fibre effects above would predict, and this tool marks it as fine rather than flagging an error that isn't really there. A gap running into dozens of calories on a small stated total is bigger than rounding alone tends to explain and is worth a second look against the ingredient list or another source.
Questions people ask
Why do calories from fat cost more than the same weight of protein or carbohydrate?
Because a gram of fat carries roughly twice the chemical energy of a gram of protein or carbohydrate once oxidised, 9 kcal against 4, a difference rooted in how hydrogen-rich fat's molecular structure already is compared with sugars, starches and amino acids.
Why isn't alcohol listed as a calorie source on a nutrition label?
Labelling rules in the US and EU require fat, carbohydrate and protein calories to be shown, but not alcohol's, even though it carries a genuine 7 kcal/g. A drink's true calorie count needs that figure added on separately.
Why doesn't my label's own maths add up exactly when I multiply it out?
Rounding on both the calorie figure and each gram figure, differing treatment of fibre between US and EU rules, and the averaged nature of the Atwater factors themselves all open a small, expected gap. It isn't a labelling error unless that gap is unusually large.
Is the gap this label-check tool finds ever a real problem?
A gap of a few calories on an ordinary serving is well within what rounding and fibre treatment alone would produce. A gap running into dozens of calories, especially on a small stated total, is bigger than those effects typically explain and worth checking against the ingredient list or a second source.
Why is fibre treated differently in the label-check explanation than in the grams-to-calories tab?
The grams-to-calories tab always uses the general 4-4-9-7 factors for whatever grams are typed in. The fibre point is about why a real label's own printed numbers can differ, since some labelling regimes give fibre a separate, lower factor rather than folding it into carbohydrate at 4 kcal/g.
Can I use this to work out calories for a whole day of eating?
Yes. The grams-to-calories tab treats whatever protein, carbohydrate, fat and alcohol you type in as one total, so entering a full day's macros works exactly the same as entering a single meal's.
How is this different from the Macro Calculator?
The Macro Calculator works out a personalised target split of protein, carbohydrate and fat from your own stats and a calorie goal. This page does the plain arithmetic underneath that split, and the reverse, converting any grams to calories or any calories to grams, without needing your age, weight or activity level.
Figures here use the general Atwater factors (4 kcal/g protein, 4 kcal/g carbohydrate, 9 kcal/g fat, 7 kcal/g alcohol); they are not a substitute for a manufacturer's own lab-tested label, which can vary slightly by food and by labelling regime.