bocco
Blog Get the app
Tracking mechanics

The 4-4-9 rule: how calories are calculated from protein, carbs, and fat

By Artem Grebenkin, founder of Bocco ยท ยท 5 min read

Three numbers calculate every calorie count

Protein

calories per gram

Carbs

calories per gram

Fat

calories per gram

The general calorie factors behind every nutrition label: 4, 4, and 9 calories per gram.

The short version: the 4-4-9 rule says a gram of protein or carbohydrate holds 4 calories, and a gram of fat holds 9. Multiply each macro by its number and add the three together, and you get a food's total calories โ€” which is exactly what's happening behind every "Calories" line on a U.S. nutrition label, and behind most AI calorie estimates too. It's not a diet-app gimmick; it's a federal labeling rule with a 19th-century research paper behind it, and knowing it means you can check anyone's math, including an app's.

Here's how it actually works, where it comes from, and where it quietly breaks.

The rule, and why a label's numbers don't always "add up"

The formula:

(protein g ร— 4) + (carbs g ร— 4) + (fat g ร— 9) = total calories

Try it on a protein bar. Say the label lists 20g protein, 23g carbs, 8g fat, and "Calories 210." Run the math: (20 ร— 4) + (23 ร— 4) + (8 ร— 9) = 80 + 92 + 72 = 244 โ€” about 34 calories higher than the printed number. That's not a typo. Fiber is almost always baked into that 23g of carbs, and most fiber doesn't get digested into usable energy, so it's effectively "free" calories the 4-4-9 formula would otherwise overcount. A bar with 9g of fiber in those 23g carbs explains most of the gap on its own.

This is the single most common reason someone's own math doesn't match a label, and it's not a bug in either the label or your arithmetic โ€” it's the difference between the general factors (4-4-9, applied uniformly) and the specific factors manufacturers are also allowed to use, which account for things like fiber and food-specific digestibility. The FDA's own nutrition-labeling regulation lays out both options โ€” see 21 CFR 101.9(c)(1), which sets the general factors at 4, 4, and 9 calories per gram for protein, total carbohydrate, and total fat, among several permitted calculation methods.

Where the numbers came from

They're not a modern invention. In the 1890s, chemist Wilbur Atwater โ€” working for the USDA โ€” ran calorimetry experiments to measure how much energy the human body actually extracts from food after digestion, not just how much energy burns off in a lab furnace. His results rounded cleanly to 4, 4, and 9, and over a century later they're still what USDA's FoodData Central uses as its default "Atwater general factors," and what the FDA wrote into federal regulation for every packaged food in the country. That's an unusually long shelf life for a 130-year-old measurement โ€” a sign the original research held up, not that nutrition science stood still.

A batch-cooked meal, start to finish

The 4-4-9 math gets more useful once you apply it to something you actually cook, not just a label you're double-checking. Say you batch-cook a pot of turkey chili for the week โ€” 1.5 lb ground turkey, a can of kidney beans, a can of diced tomatoes, and a tablespoon of olive oil โ€” and the whole pot adds up to roughly 180g protein, 140g carbs, and 45g fat by the time you've totaled every ingredient's label.

Run it: (180 ร— 4) + (140 ร— 4) + (45 ร— 9) = 720 + 560 + 405 = 1,685 calories for the entire pot. Split into 5 servings, that's 337 calories a serving โ€” a number you now trust because you built it from the actual ingredients, not from "chili is roughly X calories a bowl" guesswork. This is the same logic in how to count calories in homemade meals: total the dish, then divide by servings, and 4-4-9 is the step in the middle that turns grams into calories.

The one exception worth knowing: alcohol

Alcohol has its own factor โ€” 7 calories per gram, between carbs/protein and fat โ€” but it isn't one of the three macros on a label, so it's easy to forget it's there at all. A beer or a glass of wine adds real calories through this exact arithmetic; it's just not labeled "4-4-9" because alcohol doesn't get its own gram line on most packaging. If you drink and track, how to count calories in alcohol walks through the actual numbers.

How Bocco actually uses this rule on every scan

Here's the part I think is genuinely useful to know, not just trivia: this exact formula is built into Bocco's backend as a sanity check, not just a teaching tool.

Bocco showing calories and macros estimated from a photo of a meal
Every scan's calorie number gets checked against its own macros using the same 4-4-9 math.

When Gemini reads a meal photo and returns protein, carbs, fat, and a calorie number, those four numbers don't always agree with each other โ€” AI models are good at recognizing food, less reliable at mental arithmetic. So before anything gets saved, Bocco runs the model's own macros through 4 ร— protein + 4 ร— carbs + 9 ร— fat and compares that to the calorie figure it returned. If the calorie number comes in well below what the macros themselves add up to, the app trusts the macro math and recalculates the total โ€” because a gram of fat is 9 calories whether or not the model remembered that correctly. It's a small, boring piece of arithmetic, and it's exactly the kind of thing I built the correction loop around: numbers should be internally consistent, and when they're not, fix the number, not the label.

Frequently asked questions

What is the 4-4-9 rule in nutrition?

It's the general rule that a gram of protein or carbohydrate provides 4 calories, and a gram of fat provides 9. Multiplying each macro by its factor and adding them together gives a food's total calories โ€” the method the FDA permits for calculating the "Calories" line on U.S. nutrition labels.

Why doesn't my own 4-4-9 math match the label?

Usually fiber. Manufacturers can also use "specific" Atwater factors that discount fiber and other hard-to-digest carbohydrate, which the uniform 4-4-9 formula doesn't account for. A gap of 30โ€“40 calories on a high-fiber food is normal; a gap of 100+ usually means a serving size or macro was mis-entered.

Does 4-4-9 apply to alcohol?

No โ€” alcohol has its own factor, 7 calories per gram, and isn't one of the three label macros, so it's easy to miss entirely when you're doing the math by hand.

Is 4-4-9 accurate for AI-estimated meals?

It's accurate as arithmetic โ€” the question is whether the estimated grams fed into it are right. Bocco runs this exact check against every photo scan's own macros before saving it, specifically to catch cases where a model's calorie number doesn't match the macros it just reported.

Where does the 4-4-9 rule actually come from?

19th-century research by USDA chemist Wilbur Atwater, still used today as USDA's default "Atwater general factors" and written into FDA labeling regulation under 21 CFR 101.9(c)(1).

โ† Back to the blog

This article is for general information only and isnโ€™t medical advice. For guidance about your own health, talk to a doctor or registered dietitian.