Routing Number Check Digit Calculator
- The ABA routing number checksum weights the nine digits 3, 7, 1, 3, 7, 1, 3, 7, 1: digits in positions 1, 4 and 7 count three times, positions 2, 5 and 8 count seven times, positions 3, 6 and 9 count once.
- For the first eight digits 0 2 1 0 0 0 0 2 the weighted sum is 3 x (0 + 0 + 0) + 7 x (2 + 0 + 2) + (1 + 0) = 29.
- Adding the given check digit 1 gives a weighted total of 30, and 30 mod 10 = 0 - a routing number is valid only when that remainder is 0, so 0 2 1 0 0 0 0 2 1 is valid.
- The leading pair 02 falls in the Federal Reserve district routing range. A valid checksum does not prove the routing number is assigned to a real bank - it only proves the nine digits are internally consistent, which is what this routing number check verifies.
This routing number check digit calculator tests whether a nine-digit ABA routing number is correctly formed. It applies the standard 3-7-1 repeating weight pattern to the first eight digits, adds the ninth digit as the check digit, and checks that the total is a multiple of 10. The calculator also runs backwards: give it the first eight digits and it computes the ninth check digit for you. For example, the classic test routing number 021000021 is valid — its first eight digits give a weighted sum of 29, so the required check digit is 1.
The 3-7-1 weighting with a mod-10 total is the accepted method for this calculation because it is the check-digit scheme routing numbers are built on, and routing numbers themselves were standardized by the American Bankers Association in 1910. The first two digits also carry meaning: 00 is the US government, 01-12 are Federal Reserve district routing ranges, 21-32 are thrift institutions, 61-72 are electronic transaction identifiers, and 80 is traveler's cheques. Keep in mind what a checksum can and cannot do: it can catch typos and single-digit errors, but it cannot prove an account exists or that the number belongs to a given bank. This page shows the formula, step-by-step workings, worked examples and sources so you can follow every step.
Worked examples
Validate
(Validate a full 9-digit routing number · 2100002 · 1)
| Validity of the full routing number | Valid |
| Weighted sum of the first eight digits | 29 |
| Check digit that makes it valid | 1 |
| Prefix class (first two digits) | Federal Reserve district routing range |
Compute digit
(Compute the check digit from the first 8 digits · 1100001 · 0)
| Computed check digit | 5 |
| Weighted sum of the first eight digits | 15 |
| Check digit that makes it valid | 5 |
| Prefix class (first two digits) | Federal Reserve district routing range |
Invalid example
(Validate a full 9-digit routing number · 12345678 · 9)
| Validity of the full routing number | Invalid |
| Weighted sum of the first eight digits | 150 |
| Check digit that makes it valid | 0 |
| Prefix class (first two digits) | Federal Reserve district routing range |
The 3-7-1 checksum explained
An ABA routing number is nine digits long, but only the first eight carry the bank's identifying information. The ninth digit is a check digit, computed so that the whole number passes a simple arithmetic test. That test is the 3-7-1 checksum, and understanding it is the quickest way to see what a routing number check digit calculator does behind the scenes.
The pattern works like this. Starting from the leftmost digit, multiply the first digit by 3, the second by 7, the third by 1, then repeat: 3, 7, 1, 3, 7, 1, 3, 7. Those eight weights apply to the first eight digits only. Add the eight products together to get a weighted sum. The ninth digit is then chosen so that the weighted sum plus that digit is a multiple of 10. In other words, the check digit is whatever value makes the total land on 10, 20, 30, and so on.
A worked example makes the rule concrete. Take the classic test routing number 021000021. Its first eight digits are 0, 2, 1, 0, 0, 0, 0 and 2. Applying the 3-7-1 weights in order gives 0×3 = 0, 2×7 = 14, 1×1 = 1, 0×3 = 0, 0×7 = 0, 0×1 = 0, 0×3 = 0 and 2×7 = 14. Adding those products gives a weighted sum of 29. The next multiple of 10 above 29 is 30, so the check digit must be 1. And it is: the full number ends in 1, making the total 29 + 1 = 30, a clean multiple of 10. That is why 021000021 is treated as a valid test number.
The same arithmetic runs in reverse. If you have the first eight digits and want the ninth, a routing number check digit calculator simply computes the weighted sum and subtracts it from the next multiple of 10. When the sum already ends in 0, the check digit is 0. This is also how a validator spots a bad number: if the nine digits do not produce a multiple of 10, something is wrong.
It is worth being clear about what that proves. A checksum can catch typos and single-digit errors, but it cannot prove an account exists or that the number belongs to a given bank. It confirms only that the digits are internally consistent. For context, routing numbers themselves were standardized by the American Bankers Association in 1910, and the first two digits still identify the class of institution: 00 is the US government, 01-12 are Federal Reserve district routing ranges, 21-32 are thrift institutions, 61-72 are electronic transaction identifiers, and 80 is traveler's cheques.
- Weights repeat 3-7-1 across the first eight digits.
- Weighted sum for 02100002 is 29.
- Check digit 1 brings the total to 30, a multiple of 10.
- The calculator also runs backwards: from the first eight digits it computes the ninth check digit.
Validating versus computing a check digit
A routing number check digit calculator works in two directions, and knowing which one you need saves confusion. In the first mode, you supply a complete nine-digit ABA routing number and the tool tests it. It applies the 3-7-1 repeating weight pattern over the first eight digits and checks that the total, including the ninth digit, is a multiple of 10. If the sum lands on a multiple of 10, the number passes; if not, at least one digit is wrong or out of place.
The second mode runs backwards. Given only the first eight digits, the calculator computes what the ninth check digit must be so that the weighted total becomes a multiple of 10. This is useful when you are building or transcribing a number and want to confirm the final digit before you use it. The classic test routing number 021000021 shows how the arithmetic behaves: its first eight digits give a weighted sum of 29, so the required check digit is 1. Add that 1 under the correct weight and the total reaches a multiple of 10.
Passing the checksum is not the same as being a real, usable routing number. A checksum can catch typos and single-digit errors, but it cannot prove an account exists or that the number belongs to a given bank. That is why banks still reject some checksum-valid numbers. The digits may add up correctly while the number itself was never assigned, has been retired, or belongs to a different institution than the one on the payment. The checksum is a typo filter, not a directory lookup.
The structure of the number adds another layer the checksum does not police. The first two digits identify the class: 00 is the US government, 01-12 are Federal Reserve district routing ranges, 21-32 are thrift institutions, 61-72 are electronic transaction identifiers, and 80 is traveler's cheques. A number can satisfy the weighted test and still carry a prefix that does not fit the transaction you are attempting. Routing numbers were standardized by the American Bankers Association in 1910, and that framework is what the modern check digit test still reflects.
Use the test mode to catch transcription mistakes before a payment goes out, and the compute mode when you need to derive the ninth digit from the first eight. Treat a pass as a green light for the arithmetic only, then confirm the institution and account through your bank or payment provider before relying on the number.
What the first two digits mean
Every ABA routing number carries a story in its first two digits. Those two digits are the prefix, and they tell you what kind of institution or purpose the number was issued for. The rest of the nine-digit string — including the final check digit that a routing number check digit calculator verifies — identifies the specific institution within that class. Reading the prefix first is a quick way to sanity-check a number before you run the full checksum.
The prefix classes follow a fixed schedule set out by the American Bankers Association, which standardized routing numbers in 1910. The table below lists each class exactly as defined.
The prefix is context, not proof. A number beginning with 01 through 12 falls in a Federal Reserve district routing range, but that alone does not confirm the number is active or that it belongs to the bank you think it does. The same caution applies across every class: the prefix narrows down what the number is for, while the checksum tests whether the digits are internally consistent. Neither can prove an account exists. A checksum can catch typos and single-digit errors, but it cannot prove an account exists or that the number belongs to a given bank.
That is why the calculator pairs the prefix with the arithmetic. ABA routing numbers use a 3-7-1 repeating weight pattern over the first eight digits, and the total including the check digit must be a multiple of 10. Take the classic test routing number 021000021: its first eight digits give a weighted sum of 29, so the required check digit is 1. The calculator also runs backwards: from the first eight digits it computes the ninth check digit, which lets you test a candidate number or reconstruct a missing digit. Use the prefix to understand what the number is for, and the check digit math to confirm the digits hang together.
- 00 — US government
- 01–12 — Federal Reserve district routing ranges
- 21–32 — thrift institutions
- 61–72 — electronic transaction identifiers
- 80 — traveler's cheques
Routing numbers versus account and IBAN numbers
A routing number, an account number and an IBAN all appear on banking paperwork, but they answer different questions. The routing number identifies a financial institution within the U.S. payment system. It was standardized by the American Bankers Association in 1910 and is used to direct ACH transfers and to sort paper checks to the right bank. An account number identifies a specific account at that institution. An IBAN, used internationally, identifies both the bank and the account in a single string and carries its own, stricter check.
The routing number's internal check is modest. ABA routing numbers use a 3-7-1 repeating weight pattern over the first eight digits, and the total including the check digit must be a multiple of 10. That is exactly what a routing number check digit calculator tests. The classic test routing number 021000021 is valid: its first eight digits give a weighted sum of 29, and the required check digit is 1, bringing the total to 30. The first two digits also carry meaning: 00 is the US government, 01-12 are Federal Reserve district routing ranges, 21-32 are thrift institutions, 61-72 are electronic transaction identifiers and 80 is traveler's cheques.
An account number has no such public checksum. Its length and format are set by the bank, not by a national standard, so you cannot verify one by arithmetic alone. The IBAN is different again: it is built for cross-border payments and uses a mod-97 check that is stricter than the routing number's single weighted digit. That makes an IBAN far better at catching transcription errors across long strings, while the routing number's check remains a quick, narrow test of nine digits.
This is the key limit to keep in mind: a checksum can catch typos and single-digit errors, but it cannot prove an account exists or that the number belongs to a given bank. A routing number can pass the 3-7-1 test and still be attached to the wrong institution in a real payment. The calculator also runs backwards: from the first eight digits it computes the ninth check digit, which is useful when you are constructing or reviewing a number rather than validating one.
- Routing number: identifies the U.S. financial institution for ACH and check sorting; nine digits with a 3-7-1 weighted check.
- Account number: identifies a specific account; format set by the bank, with no public checksum.
- IBAN: identifies bank and account internationally; its mod-97 check is stricter than the routing number's.
FAQs
Is 021000021 a valid routing number?
Yes. The weighted sum of its first eight digits is 29, so the check digit must be 1, and it is. That means 021000021 passes the standard routing number checksum. Passing the checksum confirms the digits are internally consistent, but it does not by itself prove the account exists or belongs to a particular bank.
How is the routing number check digit calculated?
Multiply the first eight digits by the repeating weights 3, 7, 1, sum them (29 in the example), and choose the digit that brings the total to a multiple of 10. In that example the sum is 29, so the ninth digit must be 1, making 30, a multiple of 10.
What do the first two digits of a routing number mean?
They give the class: 01-12 are Federal Reserve district ranges, 21-32 thrift institutions, 61-72 electronic transaction identifiers, 00 the US government and 80 traveler's cheques. These two digits tell you what kind of institution or entity the routing number is assigned to, before you check the remaining digits.
Does a valid checksum mean the account is real?
No. The checksum only catches entry errors; it cannot prove the account exists or belongs to a particular bank. A number can pass the 3-7-1 check and still be unregistered, inactive, or simply made up. Treat the checksum as a typo filter, not as verification of an account.
Can I find a routing number from eight digits?
Yes. The ninth digit is fully determined by the 3-7-1 checksum over the first eight. Multiply those eight digits by the repeating weights 3, 7, 1, add the results, and pick the digit that brings the total to a multiple of 10. That digit is your check digit.
Why did my routing number fail if the checksum passes?
Banks must also have the number registered and active; the checksum is necessary but not sufficient. A number can satisfy the 3-7-1 calculation and still not be in use, because the checksum only catches entry errors. Confirm the number is registered and active before relying on it.