The quick math check
Multiply protein and carbs by 4, fat by 9, add it up — and it's a little off from the calories shown. Before assuming a bug: small mismatches are expected, everywhere in nutrition tracking.
Where the gaps come from
- Labels don't follow 4/4/9 exactly. Manufacturers measure or compute calories their own regulated ways — fiber may count differently, rounding is legal, and factors vary by food. The app records what the label says rather than forcing a formula onto it, because the label is the better data.
- Rounding, twice. Foods round their values, and your daily totals round again for display. A day of twenty entries accumulates a handful of stray kilocalories legitimately.
- Displayed percentages always total 100. Your target's macro split is rounded so the percentages are readable — the gram targets underneath are the precise values.
What to trust
The gram numbers. Protein, carb, and fat grams are the targets that matter and the values the math runs on; the calorie line and the percentages are honest summaries with honest rounding. A mismatch of a few dozen kilocalories on a full day is cosmetic — if you're seeing something far larger, check for an entry whose label data looks wrong and fix that food.