LLM math accuracy is the question of whether a language model gets numbers right: sums, averages, percentages, date differences, currency totals. The short answer is that a model can often produce the right figure, but it cannot guarantee it, because it generates text rather than running arithmetic. For business questions such as “how much is overdue, and how old is it?”, the reliable design is to let the model plan the work and let an exact calculation step compute and verify every number.
This guide explains why models make arithmetic and aggregation errors, describes the plan, fetch, compute pattern, and shows a worked ageing example where the totals add up. It also covers validation, presenting uncertainty and what to do when the data is incomplete.
Can AI do math? What actually happens inside a model
A large language model reads and writes tokens, not digits or numbers. A token is a chunk of text: a word, part of a word, a few characters. Numbers are split into tokens too, and the split depends on the tokenizer. A figure like 184300 may become one token, two tokens or several, and a formatted value like 184,300.00 is split differently again. The model never sees “a number”; it sees a sequence of text pieces.
The model then predicts the next token based on patterns learned in training. For short, common calculations this works well, because those patterns appear often. It is still prediction, not a calculator executing a fixed procedure. That leads to a few typical LLM math errors:
- Arithmetic slips. Carrying digits across a long addition or multiplying two large amounts can go wrong in a single position, and the result still looks plausible.
- Aggregation errors. Summing 40 invoice rows means holding 40 exact values in context and adding them without skipping or repeating one. Copying a row twice or dropping one is a quiet mistake.
- Partial data. The model only sees what is in its context. If a tool returned the first page of results, the model may total that page and present it as the whole.
- Unit and currency mixing. Adding lira and euro amounts, or VAT-inclusive and VAT-exclusive figures, produces a number that means nothing.
- Dates. “Last month”, “overdue for more than 60 days” or “this quarter” depend on today’s date, the time zone and sometimes the fiscal calendar. Guessing these is a common source of hallucination.
None of this means models are useless with numbers. It means the number itself should come from somewhere you can check.
The pattern: model plans, tools fetch, the calculation engine computes and verifies
An LLM calculator tool is the simplest version of the fix: give the model a function that does arithmetic and let it call that function instead of guessing. For business data, the same idea extends to the whole question.
- The model plans. It reads the question, decides which data is needed and picks tools through tool calling, for example “list open receivables with due dates”.
- Tools fetch records. The tool calls the business system’s API and returns rows. Every page is fetched, so the result set is complete or clearly marked as incomplete.
- The calculation engine aggregates. Sums, counts, averages, ageing buckets, percentages and period comparisons are computed with exact decimal arithmetic. Rounding happens once, at the end, with a defined rule.
- The answer cites records. The model writes the explanation, but every figure in the text is checked against a computed result, and the answer lists the tools and records it used.
The model still does the part it is good at: understanding the question, choosing the right data and explaining the result in plain language. It just never invents the figure.
Worked example: overdue invoices by ageing bucket
Question, asked on Monday, 23 November 2026: “Which customer invoices are overdue, and how is the total split by age?”
The tool returns these open invoices (fictional data). Days overdue are counted by the calculation engine from the due date to today, in the Europe/Istanbul time zone.
| Invoice | Customer | Due date | Days overdue | Amount |
|---|---|---|---|---|
| INV-1041 | Akın Yapı | 2 Nov 2026 | 21 | $42,500 |
| INV-1037 | Deniz Gıda | 30 Oct 2026 | 24 | $18,750 |
| INV-1022 | Kuzey Tekstil | 12 Oct 2026 | 42 | $63,200 |
| INV-1019 | Akın Yapı | 28 Sep 2026 | 56 | $9,850 |
| INV-1008 | Ova Lojistik | 4 Sep 2026 | 80 | $27,400 |
| INV-0991 | Deniz Gıda | 11 Aug 2026 | 104 | $22,600 |
The calculation engine then groups the rows into ageing buckets and computes shares of the total:
| Ageing bucket | Invoices | Amount | Share |
|---|---|---|---|
| 1–30 days | 2 | $61,250 | 33.2% |
| 31–60 days | 2 | $73,050 | 39.6% |
| 61–90 days | 1 | $27,400 | 14.9% |
| Over 90 days | 1 | $22,600 | 12.3% |
| Total | 6 | $184,300 | 100.0% |
A seventh overdue invoice, INV-1030 for €3,100 (34 days), is in a different currency. It is listed separately and not added to the dollar total, because adding it would need an exchange rate and a rate date that nobody chose.
The written answer might read: “Six invoices are overdue, totalling $184,300. The largest share, $73,050, is 31–60 days old. One invoice in euros is shown separately.” Each of those numbers traces back to the tables above.
Validation: checks that catch wrong numbers
An exact calculation step removes most errors, but a few checks are still worth running on every answer:
- Totals match. Bucket amounts add up to the grand total; the row count matches the number of records fetched. Shares are computed from unrounded values and rounded once.
- Every number has a source. Each figure in the text must match a computed result or a value from the question. A number with no source is removed rather than shown.
- Units and currencies. Amounts in different currencies or units are never summed. VAT treatment is stated when it is known from the field description.
- Dates and time zone. Relative periods (“last month”, “overdue”) are resolved by the calculation engine using the company’s time zone, here Europe/Istanbul, so an invoice due at midnight is not counted a day early or late.
- Rounding rule. Use one rule (for example, half up to two decimals for money) and apply it after aggregation, not row by row.
Presenting uncertainty honestly
A careful answer says what it knows and what it does not. Some practical rules:
- State the scope: “open invoices as of 23 November 2026”, “customers you are allowed to see”.
- Separate fact from interpretation. “$22,600 is over 90 days old” is a computed fact; “collection risk is rising” is an opinion and should be phrased as one.
- Do not round to look confident. If a value is an estimate, say so and say what it is based on.
- Show the records. A table with a link to the full result lets the reader check the answer instead of trusting it.
When the data is incomplete
Sometimes the system returns only part of the data: a page limit is reached, a field is missing, or the user’s permissions filter out rows. The right response is not to guess.
- Do not total partial results. If not every page was fetched, show the rows that were returned and say the total is not available.
- Name the gap. “Due dates are missing on 3 invoices; they are not in any bucket” is more useful than a silent exclusion.
- Mention permission filtering. If row filters hid some records, the answer should say the figures cover only what the user may see.
- Offer the next step. Suggest narrowing the question (one customer, one month) or ask a clarifying question.
How ORQEN handles numbers
In ORQEN, the language model does not compute numbers. The agent plans and calls approved tools generated from your system’s API, whether it is an ERP or an in-house service connected through a custom API. Totals, averages, ageing and comparisons are calculated exactly from the tool results, results that are incomplete or mix currencies are not totalled, and every number in the answer is checked against its source before it is shown. Each answer lists the records and tools it used. You can see the pattern applied to receivables, payables and cash questions in the finance and accounting use case, and more example questions in AI for finance teams.