Skip to content

How a bank account number's check digit catches a typo

5 min read June 16, 2026
bank accountcheck digitvalidationkontonummer

A check digit is an extra digit calculated from the rest of an account number. It catches most typos on its own, which is how a number can be flagged as wrong before any transfer.

How a bank account number's check digit catches a typo — Hivly

A long bank account number is exactly the kind of thing fingers get wrong: a digit dropped, two swapped, one mistyped. Many account numbers defend against this with a quiet trick built into the number itself, a check digit, and it is the same idea that makes IBANs typo-resistant, just applied one level down at the national account.

TL;DR: A check digit is one extra digit calculated from the rest of an account number by a fixed formula. Re-run the formula when the number is entered, and a mismatch reveals a typo before any money moves. It proves the number is consistent, not that the account is real.

What a check digit is

A check digit is not part of the account’s identity in the way the other digits are. It is derived from them. A bank takes the meaningful digits of an account number, runs them through a published calculation, and the single digit that calculation produces becomes part of the account number, usually in a fixed slot like the last position.

The payoff comes later. Whenever someone enters that number, software can run the same calculation on the other digits and check whether the result matches the check digit that is sitting there. If it matches, the number is internally consistent. If it does not, something was typed wrong. The number carries its own proof of integrity, no database lookup required.

How it catches mistakes

The formulas are chosen for one reason: they are good at catching the specific errors humans make. Most check-digit schemes weight each position differently, multiply the digits by those weights, add the results, and reduce them with a modulo operation, often mod 10 or mod 11. The weighting is the clever part.

Because each position carries a different weight, changing a single digit changes the total, and the check digit no longer matches. And because adjacent positions have different weights, swapping two neighbouring digits, the classic transposition slip, also shifts the total and gets caught. The two most common typing errors are exactly the ones the math is tuned to flag, which is why a single extra digit pulls so much weight.

The German example: Kontonummer methods

Germany is a good case study because it leans on this heavily. A German account number, the Kontonummer, has a check digit, but there is no single national formula. Each bank declares which check-digit method it uses, and there are dozens of them, published by the Bundesbank, each with its own weights and rules.

That means checking a German account number is a two-part job: first find out which method that account’s bank uses, identified by its bank code, then run that specific method’s calculation. The account number checker at finance.hivly.net does both, taking the bank code (the Bankleitzahl) and the account number, looking up the right method and reporting a clear pass or fail. Where an account’s bank uses a rarer method that is not yet covered, it says so plainly rather than guessing, because a wrong guess on a payment detail is worse than an honest “cannot check this one.”

Where this sits next to the IBAN check

It is worth seeing how this relates to the IBAN checksum, because the two work together. The IBAN’s mod-97 check digits guard the whole international number end to end. A national account check digit, like the German one, guards just the domestic account number inside it. They are layered: the account-level check catches a bad account number, and the IBAN-level check catches a bad IBAN built around it.

So a fully careful flow runs both. Validate the national account number to confirm its own check digit holds, then build or validate the IBAN to confirm the wrapper is sound. Each layer catches typos the other might miss, and neither, on its own or together, can promise the account is open. For that last assurance you still need the bank, not the math.

What it can and cannot tell you

Keep the limits in view. A passing check digit means the number is almost certainly typed correctly. It does not mean the account exists, is open, or belongs to the person you think. It is a typo detector, a very good one, and nothing more.

Used for what it is, though, it is genuinely useful. Run the check before you save a new account number to a payroll file, an invoice template, or a payments system, and you catch the fumbled digit at the point of entry, when fixing it costs a keystroke, instead of after a transfer has gone somewhere it should not. That is the whole value of the digit hiding at the end of the number: a cheap, instant check that the rest of it was typed right.

Try the finance calculatorsMortgage, loan, retirement, savings, tax and interest math, plus IBAN tools, worked out instantly.

Frequently asked questions

What is a check digit in a bank account number?
It is one extra digit, usually at a fixed position, calculated from all the other digits by a published formula. When the number is entered later, the formula is run again; if the recomputed digit does not match the one present, the number has a typo. It is the same idea as the check digits in an IBAN, applied at the national account level.
Does a passing check digit mean the account exists?
No. A passing check digit only means the number is internally consistent and almost certainly free of typos. Whether the account is open and belongs to the right person is a separate question that only the bank can answer.
Do all countries use account number check digits?
No. Check digits in domestic account numbers are country specific. Germany uses many different check-digit methods, one per bank; other countries use different schemes or none at all. The IBAN checksum, by contrast, applies to every country.
Why might a checker say a method is not supported?
Because some banking systems use dozens of different check-digit formulas, and a tool may implement the common ones but not every rare variant. A good checker says so honestly rather than guessing a pass or fail it cannot actually compute.

Keep reading

Building something bigger?

Hivly is made by CodingEagles, a software studio that ships production web apps. If you have a real project, get in touch.

See what CodingEagles does →