Short answer Carbohydrates and protein provide about 4 calories per gram, fat provides about 9, and alcohol provides about 7. These are useful general factors—not a promise that every label will multiply perfectly.

Calories measure energy

A calorie is a unit of energy. On a food label, the calorie number estimates how much energy one serving provides. The FDA describes that total as energy from carbohydrate, fat, protein, and alcohol.

Macros are not a different system. They are the major line items that produce the total.

SourceGeneral factor30 grams provides
Protein4 cal/g120 cal
Carbohydrate4 cal/g120 cal
Fat9 cal/g270 cal
Alcohol7 cal/g210 cal

A quick worked example

Imagine a meal containing 40 grams of protein, 60 grams of carbohydrates, and 20 grams of fat. Using the general factors:

Meal energy receipt
40g protein × 4160 calories
60g carbohydrate × 4240 calories
20g fat × 9180 calories
Total: about 580 calories

This is why two meals of the same physical size can contain different calories. Fat is more energy-dense by weight, while water and fiber can add weight and volume with less energy.

Why the label may not add up perfectly

The 4/4/9/7 shorthand is intentionally simple. Packaged-food labels may differ from your hand calculation because nutrient values are rounded and some ingredients use different calorie factors.

Fiber and sugar alcohols are common examples. FDA guidance assigns different factors to certain non-digestible carbohydrates and sugar alcohols, including zero calories per gram for erythritol. USDA food data can also use food-specific Atwater factors rather than only the general ones.

How this helps with tracking

The arithmetic explains the numbers, but it does not need to become another tracking chore. The useful habit is recognizing the major energy sources in a meal and logging a reasonable amount consistently.

If you know exact grams, use them. If you have a label, use the label. If you have a restaurant meal or an ordinary description, a clearly marked estimate is usually more useful than skipping the meal entirely.

Sources