Difference diagnoser
Name the keying error behind an out-of-balance: transposition, slide, sign flip or omission.
Difference diagnoser, worked
Arithmetic only — not tax, accounting, legal or investment advice. Check against current rules.
How the difference diagnoser works.
Difference diagnoser: Out by 8,100 → divisible by 9 → transposition, and difference ÷ 9 says how much the two swapped digits differ by. Also catches a line omitted or posted twice, a sign flip (half the gap is a figure in the data), a decimal slide (the "off by a factor of 10"), and per-line rounding.
Quoted from the toolbelt spec, the document this tool was built against.
Where these numbers come from.
Negatives are parenthesized because that’s what a statement does. The rest is four promises.
Minor units, never floats
Amounts are integers in the currency's smallest unit, end to end. A float never touches a cent.
Rounded in the right place
Rounded where an invoice or a ledger would round, never operand by operand, so a split still sums to the whole. A tool that rounds each period says so.
Unit tested
The arithmetic lives in one unit-tested module, and the extension uses the same one.
No network
There is no request to make. What you type stays in this tab and is gone when you close it.
More in reconciliation & investigation
- Which invoices make this deposit?Find which open items add up to a deposit, to the cent.
- Two-list matcherMatch bank against ledger and list what's left unmatched on each side.
- Duplicate paymentsSame vendor, same amount, close in time. Or the same reference on any date.
- Benford & round numbersBenford and round-number tests that point at the rows to pull first.
Read it in context
- Founder guide · 3 minWhy startups should close their books every monthA monthly close turns a bank balance into numbers an investor, an auditor or a 409A firm will accept. What it is, and why it gets expensive to skip.
- Founder guide · 4 minAudit-ready books before your Series AInvestors, lenders and auditors ask for the same things: accrual statements, reconciled accounts and support for every balance. How to be ready first.
- Founder guide · 3 minCan you vibe code your startup’s accounting?AI coding tools build a finance dashboard in an afternoon, but not a closed, reconciled, GAAP-basis ledger. Where the line is, and how to stay inside it.
Learn what it computes
- Accounting · Lesson 13 · 10 minClosing the monthThe close proves every balance against something outside the ledger, then locks the period so the numbers can't change after sign-off.
- Accounting · Lesson 7 · 10 minThe trial balanceEvery account netted onto one side, with both columns added up. It proves the arithmetic, and you need to know what it doesn't prove.
- AP · Lesson 11 · 10 minVendor statements and the payables tie-outThe drill vendor's statement against Northwind's books, matched by invoice number: one unrecorded $1,850 freight bill explains the whole difference.
The same number, elsewhere.
A calculator answers the question once. These carry the answer into a product, name what it computed, and argue the method.
- ComponentReconciliationViewTwo-pane matcher. The match animation.
- ComponentAccountTieOutEvery BS account, proven against its evidence.
- ComponentVarianceCellAbsolute + percent + significance flag.
- TermReconciliationComparing our record to an external party's
- TermTie-outProving a GL balance against supporting evidence
- TermExceptionA break requiring investigation
- DocCash & treasuryCash is the only balance sheet account where an independent third party, the bank, says what the balance should be. That makes it the easiest account to verify and the one where a break hurts most.
- DocCurrency decimal placesHow many decimals each ISO 4217 code is stored at — JPY 0, USD 2, KWD 3.