How to Calculate the Check Digit of a Routing Number from an Illegible Check

Quick answer: A U.S. routing number has nine digits. The ninth digit is a check digit used to catch common typing or reading mistakes. To calculate it, multiply the first eight digits by the repeating weights 3, 7, and 1, add the results, and choose the ninth digit that makes the total divisible by 10. This can help when one digit is hard to read, but you should still verify the routing number with the bank before using it for a payment.

Calculator and banking paperwork used to verify routing number digits
The routing number check digit is a math check, not a full bank verification.

What the Routing Number Check Digit Does

A routing number identifies a U.S. bank or credit union for checks, ACH payments, direct deposits, and some other domestic transactions. The last digit helps detect common mistakes. If someone misreads one digit, flips two digits, or types the number incorrectly, the check digit test may fail.

The check digit is not a security code and does not prove the account is valid. It only helps confirm that the routing number follows the expected mathematical pattern. A number can pass the check digit test and still be wrong for your transaction, closed, outdated, or not the right routing number for wires or ACH.

When This Calculation Helps

This calculation can help when a paper check is smudged, photographed poorly, scanned badly, or printed with one unclear routing digit. If you can read the first eight digits but the ninth digit is unclear, the formula can show what the ninth digit should be.

It can also help you catch a typo before submitting direct deposit, payroll, vendor payments, or bill pay. However, if more than one digit is unclear, or if you are not sure which number group is the routing number, do not rely on math alone. Ask the bank or use a verified banking portal.

The Basic Formula

For a nine-digit routing number, label the digits like this:

d1 d2 d3 d4 d5 d6 d7 d8 d9

The check digit is d9. The formula uses all nine digits with this pattern:

3 x d1 + 7 x d2 + 1 x d3 + 3 x d4 + 7 x d5 + 1 x d6 + 3 x d7 + 7 x d8 + 1 x d9

The result should be divisible by 10. In other words, the total should end in zero.

How to Calculate the Ninth Digit

If you know the first eight digits, use these weights:

  • Digit 1 x 3
  • Digit 2 x 7
  • Digit 3 x 1
  • Digit 4 x 3
  • Digit 5 x 7
  • Digit 6 x 1
  • Digit 7 x 3
  • Digit 8 x 7

Add those eight products. Then find the digit from 0 to 9 that makes the final total divisible by 10. That digit is the check digit.

Shortcut Formula

After adding the first eight weighted products, take the last digit of the sum. If the sum already ends in zero, the check digit is 0. Otherwise, subtract the last digit from 10.

Another way to write it is:

check digit = (10 – (sum mod 10)) mod 10

You do not need to memorize the formula if you understand the idea: the final total must end in zero.

Example 1: Finding the Last Digit

Suppose the first eight digits are:

02100002?

Now multiply the first eight digits by the weights:

  • 0 x 3 = 0
  • 2 x 7 = 14
  • 1 x 1 = 1
  • 0 x 3 = 0
  • 0 x 7 = 0
  • 0 x 1 = 0
  • 0 x 3 = 0
  • 2 x 7 = 14

The sum is 29. The next number ending in zero is 30, so the check digit is 1. The full routing number is:

021000021

Example 2: When the Check Digit Is Zero

Suppose the first eight weighted products add up to 70. Since 70 already ends in zero, the ninth digit must be 0. Adding any other digit would make the total end in a number other than zero.

This is why the second part of the shortcut formula has another “mod 10.” Without it, subtracting 0 from 10 would give 10, but a single check digit must be 0 through 9.

What If a Middle Digit Is Illegible?

If one of the first eight digits is unclear, the calculation can sometimes help, but it is less direct. You can test each possible digit from 0 to 9 and see which one makes the full routing number pass the check digit test. If exactly one candidate works, you may have a clue.

But be careful. A passing result does not guarantee the bank is correct. If the check is important, verify the routing number using a secure bank app, bank statement, official bank document, or a phone call to the bank.

What If More Than One Digit Is Unclear?

If more than one digit is hard to read, the check digit is not enough. Many combinations may pass the test. Do not guess routing numbers for payroll, bill payments, tax refunds, loan payments, vendor payments, or transfers.

In that situation, ask for a new check image, a voided check, a direct deposit form, or confirmed account details from the account holder. If you are the account holder, get the number from online banking or customer support.

How to Avoid Confusing Routing, Account, and Check Numbers

On most U.S. personal checks, the routing number is a nine-digit group along the bottom left. The account number usually comes after it, and the check number may appear after that. But layouts can vary, especially on business checks.

Do not run the check digit formula on the account number. Account numbers do not follow the same nine-digit routing formula. If the number group is not exactly nine digits, it is probably not the routing number.

Why Verification Still Matters

The formula can catch errors, but it cannot tell you whether a routing number is current, whether it is used for ACH or wire transfers, whether the bank merged, or whether the account number beside it is correct. It also cannot tell you whether a check is fake.

Use the calculation as a helpful math check, then confirm through banking records before money moves. This is especially important for high-value payments and payroll.

Mini Worksheet You Can Copy

If you are doing the math by hand, write the first eight digits across a line. Under them, write the weights 3, 7, 1, 3, 7, 1, 3, and 7. Multiply each digit by the weight under it, then add the products. This keeps the work organized and reduces mental mistakes.

For example, if the first eight digits are A B C D E F G H, your worksheet is:

  • A x 3
  • B x 7
  • C x 1
  • D x 3
  • E x 7
  • F x 1
  • G x 3
  • H x 7

After you add the results, write down the last digit of the sum. If the last digit is 6, the check digit is 4. If it is 3, the check digit is 7. If it is 0, the check digit is 0.

Common Mistakes to Avoid

The most common mistake is using the wrong number group from the bottom of the check. Another is using the account number instead of the routing number. People also forget that the weights repeat as 3, 7, 1, not 1, 3, 7. A fourth mistake is treating the check digit as proof that the check is real.

Also watch for leading zeros. A routing number can begin with zero, and that zero matters. Do not drop it when typing the number into a spreadsheet or form. If a nine-digit routing number becomes eight digits because the first digit disappeared, the check digit test will no longer be meaningful.

When accuracy matters, write the number twice: once from the check and once from the verified bank record, then compare them digit by digit before submitting any payment form.

Helpful Videos

Final Takeaway

To calculate the check digit of a routing number, multiply the first eight digits by 3, 7, 1, 3, 7, 1, 3, and 7, add the products, and choose the ninth digit that makes the total divisible by 10. It is a useful way to catch mistakes on an illegible check, but it is not a substitute for bank verification.

Lord AI Editorial Team

The Lord AI Editorial Team publishes practical, reader-focused guides and reliable information across technology, finance, digital safety, politics, and current affairs.

Leave a Reply