Money and Finance

ABA Routing Numbers: How the Check Digit and Prefix Work

How a nine-digit US routing number is built, how the 3-7-1 check digit catches typing errors and what the first two digits say about the bank.

Saizul Amin
Saizul Amin23 Oct 2026 · 3 min read
ABA Routing Numbers: How the Check Digit and Prefix Work

ABA Routing Numbers Explained

Every US check, direct deposit and wire has a routing number printed or typed on it. One wrong digit can send a payment back after days of delay. The US ABA Routing Number Validator tests the number in your browser before you submit it.

What the nine digits mean

The first four digits are the Federal Reserve routing symbol. The first two tell the Federal Reserve district and the type of institution, and the next two identify the Federal Reserve check processing center. The following four digits identify the institution itself. The ninth digit is a check digit that depends on the other eight.

The prefix

Prefixes from 01 to 12 belong to the twelve Federal Reserve districts, starting with Boston as 01 and ending with San Francisco as 12. For thrift institutions the number is the district plus 20, so 21 to 32. For electronic transactions it is the district plus 60, so 61 to 72. The prefix 80 is used for traveler's checks. Anything else is not a valid routing prefix, and the validator reports it.

The check digit rule

Multiply the first, fourth and seventh digits by 3, the second, fifth and eighth by 7, and the third, sixth and ninth by 1. Add the nine products. A valid number gives a sum divisible by 10. For 021000021 the products add to 0 + 28 + 2 = 30, so it passes. The rule catches every single-digit mistake and most swaps of neighbouring digits. It does not catch all errors, so a pass is not a guarantee.

Using the validator

Paste one number per line. Spaces and hyphens are ignored. Each number is marked as passed or failed. A valid number shows its type, the Federal Reserve district, the institution digits and the check digit. A failed number shows the reason, and for a wrong check digit it shows the digit that would make the number valid, so you can see whether the last digit or another one is wrong.

A worked example

The number 021000021 passes and belongs to district 2, New York. The number 011000015 passes and belongs to district 1, Boston. If you type 021000022 instead, the sum is no longer a multiple of 10, and the tool says that the expected check digit is 1. A number such as 991000021 fails because 99 is not a prefix in use.

ACH, wire and paper checks

A bank may have one routing number for paper checks and ACH and another for wires. A number can be correct and still be the wrong one for your purpose. Banks publish which number to use on their websites, and the bottom of a check shows the number for check processing. If a payment fails, ask the bank which number to use.

Where mistakes come from

People mix up the routing number with the account number, which is longer, swap digits when reading from a phone call, or copy numbers from an old document after a bank merger. Businesses that pay by direct deposit see most rejected payments from mistyped numbers and closed accounts. Checking the number when you collect it saves time.

Safety tips

Never send account details in an unprotected email. Confirm changes to payment details by phone, using a number you already know, because fraudsters ask companies to change the bank details on invoices. The validator checks the structure only. It cannot tell you that the account belongs to the person who gave it to you.

Limits

The tool works in your browser and stores nothing. It is a technical check and not financial advice.

For developers

If you build a payment form, validate the routing number on the client for instant feedback and again on the server. Reject numbers with the wrong length before you test the check digit, and show the user which part is wrong. Do not accept a number just because it passes: many companies also run the number against the Federal Reserve's published directory, which lists active institutions, to catch closed banks.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages