Why do label numbers differ from database numbers?

A label and a database can differ for three reasons: the label rounds, the rules allow the real content to differ from the printed number, and the energy can be worked out with different factors. For most foods the gap is small compared with a 5 g window, but it helps to know where it comes from.
Reason one: rounding
United States rules for the Nutrition Facts label say the caloric content per serving is expressed to the nearest 5 calorie increment up to and including 50 calories, and to the nearest 10 calorie increment above 50 calories. Amounts under 5 calories may be expressed as zero. The same regulation says calories may be calculated by applying energy factors to the actual amounts of components before any rounding.
The practical meaning:
- A serving printed as 280 calories could be anywhere from 275 to 285 before rounding.
- A serving printed as 0 calories can hold up to just under 5.
- If you eat four servings of a product that rounds each one, the four roundings add up.
That is why OnMacros logs grams of the food and takes the values per 100 g from the record, rather than multiplying a rounded per serving label figure many times.
Reason two: the allowed variance
The label is a declaration, and the regulation sets how far the real product may differ from it. For the nutrients that people want less of, the rule is a ceiling. A food with a declaration of calories, total sugars, added sugars where they are the only source of sugars, total fat, saturated fat, trans fat or sodium is treated as misbranded if the composite is more than 20 percent in excess of the declared value. The text adds that no regulatory action rests on a variation smaller than the variability generally recognized for the analytical method.
For the nutrients people usually want more of, the rule runs the other way. For protein, total carbohydrate and dietary fiber, among others, the composite must reach at least 80 percent of the declared value, and reasonable excesses over the labeled amounts are acceptable within good manufacturing practice.
So the law has a direction built in. Calories and fat can legally run up to a fifth over what is printed. Protein and carbs may legally run above it and may not run far under it. A label is a legal boundary around the real value, not a measurement of the pack in your hand.
Reason three: how energy is worked out
The FAO's chapter on the energy content of foods lists three systems: the Atwater general factors, a larger general factor set and Atwater specific factors.
The general system uses one value per component whatever the food: 17 kJ (4.0 kcal) per gram of protein, 17 kJ (4.0 kcal) per gram of carbohydrate and 37 kJ (9.0 kcal) per gram of fat. As Atwater described it, carbohydrate is found by difference, so it includes fiber.
The specific system gives each food its own factors. The FAO chapter notes that the factor for protein varies from 2.44 kcal per gram for some vegetable proteins to 4.36 for eggs, and the factor for fat from 8.37 to 9.02 kcal per gram. It also reports that applying general factors to a mixed United States diet gave values on average about 5 percent higher than specific factors, and that for some foods, such as snap beans, cabbage and lemons, the differences ranged from 20 to 38 percent.
A label may use either approach. A database may use another. When they disagree on calories, neither is lying. They are using different rules to convert the same grams.
What this looks like in a real day
The worked day in the first article of this series, with target 140 g protein, 220 g carbs and 55 g fat, ended at 139.4 g protein, 219.7 g carbs and 54.8 g fat. Applied with the general factors, those grams give 4 times 139.4, plus 4 times 219.7, plus 9 times 54.8, which is 1,929.6 kcal. The sum of the calories stored for each food in the database was 1,922.1 kcal. The two figures differ by 7.5 kcal, about 0.4 percent of the day.
That is typical. When the grams are right, the calories follow within a small margin, and the margin comes from the factors, the rounding and the fiber. It is far smaller than a 5 g miss on fat, which is worth 45 kcal on its own.
What to do about it
- Use grams as the anchor. Grams per macro are what the 5 g window is built on. Calories are derived from them.
- Pick one source per food and stay with it. Switching between a label figure and a database figure for the same product adds noise that looks like progress or setback and is neither.
- For a packaged food, read the serving size and the servings per container. The FDA's label guide shows the common trap: a serving of 280 calories in a pack of 4 servings is 1,120 calories if you eat all of it. Log the amount you ate in grams, not the number on the front.
- Do not chase the last 10 kcal. The measurement floor is wider than that.
When it matters
There are times the gap deserves attention. If a food is a large share of your day, such as a daily protein powder, a mismatch of a few grams per serving repeats every day and adds up. Check that product against its pack once, set the record to match, and stop thinking about it.
For everything else, the right response to a small gap is to accept it. A plan that works with real foods has to tolerate the way real foods are measured, and a 5 g window is how OnMacros does that.
Summary
- Labels round calories to 5 or 10 and may differ from the true value within set limits.
- The limits run in different directions for calories and fat compared with protein and carbs.
- Energy factors differ between general and specific systems, by about 5 percent on average and more for some foods.
- Anchor on grams, choose one source per food, and leave the small gaps alone.
Questions
Which is right when a label and a database entry disagree?
For the pack in your hand, the label is the claim to follow, since it is what the maker declared for that product. For a generic food without a pack, a reference database entry is the better starting point.
Why do the kcal on a label not equal four times protein plus four times carbs plus nine times fat?
Several things can break the sum: rounding of each number, fiber and sugar alcohols that carry a different energy value, and the choice between general and specific energy factors.
Should I fix the gap by hand?
Usually no. The gaps are small next to a 5 g window, and chasing them costs more effort than it returns. Log the grams from the source you chose and keep going.
Sources
- 21 CFR 101.9, Nutrition labeling of food, Legal Information Institute, Cornell Law School (Electronic Code of Federal Regulations). Accessed October 31, 2026
- Food energy, methods of analysis and conversion factors, chapter 3 (FAO Food and Nutrition Paper 77), Food and Agriculture Organization of the United Nations. Accessed October 31, 2026
- How to Understand and Use the Nutrition Facts Label, US Food and Drug Administration. Accessed October 31, 2026