A bank code identifies your specific bank branch to the payment system

A bank code is a number or set of numbers and letters that tells the payment system which bank branch holds your account. When you send money to someone else's account—whether through a wire transfer, ACH payment, or international transfer—the bank code routes that money to the correct institution and the correct location within it.

The exact format and length of a bank code depends on which country you are in and which payment method you are using. In the United States, the most common bank code is the routing number, a nine-digit code that identifies your bank and the specific branch. Other countries use different systems: the UK uses sort codes (six digits), Canada uses institution numbers (three digits), and many other countries use SWIFT codes (eight to eleven characters) for international payments.

You need a bank code whenever you receive a wire transfer, set up a direct deposit, or send money internationally. Without the correct code, the payment either fails to go through or arrives at the wrong bank entirely.

Key Takeaways

  • A routing number is the US bank code—a nine-digit number that identifies your bank and branch location.
  • You can find your routing number on the bottom left of your checks, in your online banking portal, or by calling your bank directly.
  • Different payment methods may require different codes: ACH transfers use routing numbers, while international wires use SWIFT codes.
  • Providing the wrong bank code will delay your payment or send it to the wrong account, so verify the code before confirming any transfer.

Where to find your bank code

The easiest place to locate your routing number is on a check from your account. Look at the bottom left corner of the check—the first nine-digit number you see is your routing number. This number is printed on every check your bank issues.

If you do not have checks or prefer not to use them, log into your online banking portal or mobile app. Most banks display the routing number in the account details section, often labeled "Routing Number," "ABA Number," or "Transit Number." You can also call your bank's customer service line and provide your account number; they will give you the routing number over the phone in seconds.

Some banks have multiple routing numbers depending on the branch or the type of transaction. If you are setting up a direct deposit for payroll, ask your employer or payroll department which routing number to use—they often have a preferred one. For wire transfers, confirm with your bank that you have the correct routing number for that specific transaction type.

Routing numbers versus account numbers

A routing number and an account number are not the same thing, and you need both for most transfers. The routing number identifies your bank and branch. The account number identifies your specific account within that bank. Together, they tell the payment system exactly where to send the money.

Think of it this way: the routing number is like the address of a post office, and the account number is like your mailbox number inside that post office. The mail carrier needs both to deliver your letter to the right place.

When you provide banking information to set up a transfer, you will usually be asked for both numbers. Some forms ask for them separately; others ask for them together as "routing and account number." Make sure you are entering each number in the correct field.

SWIFT codes for international transfers

If you are sending or receiving money from outside the United States, you may need a SWIFT code instead of a routing number. SWIFT codes are used by banks worldwide to identify each other in international payments. A SWIFT code is eight to eleven characters long and includes letters and numbers.

The first four characters identify the bank, the next two identify the country, the next two identify the city or region, and the last three (if included) identify the specific branch. For example, a SWIFT code might look like CHASUS33NYC, where CHAS is the bank, US is the country, 33 is the region code, and NYC identifies the New York branch.

You can find your bank's SWIFT code by asking your bank directly, checking your bank's website, or using an online SWIFT code lookup tool. When you send an international wire, you will need the recipient's SWIFT code, not your own.

What happens if you use the wrong bank code

If you provide an incorrect routing number, the payment will either be rejected before it is sent or it will arrive at the wrong bank. If the wrong bank receives the transfer, they will typically reject it and send it back to the originating bank. This process can take several business days, and your money will be returned to your account.

In rare cases, a payment sent to the wrong routing number may be credited to someone else's account at that bank. This is why it is critical to double-check the routing number before confirming any transfer, especially for large amounts or international payments.

If you realize you have sent money to the wrong routing number, contact your bank immediately. They can sometimes stop the payment if it has not yet been processed, or they can help you trace it and request a reversal from the receiving bank. The faster you act, the better your chances of recovering the money.

Bank codes for different payment methods

Different types of payments may use different codes or require additional information. Here is what you need for the most common scenarios:

ACH transfers (direct deposit, bill pay): Use your nine-digit routing number and your account number. ACH is the domestic system used for payroll deposits, automatic bill payments, and peer-to-peer transfers within the US.

Wire transfers (domestic): Use your routing number and account number. Wire transfers are faster than ACH but usually cost a fee. They typically complete within one business day.

Wire transfers (international): Use your bank's SWIFT code, your account number, and sometimes an IBAN (International Bank Account Number) if you are sending to certain countries. International wires can take three to five business days and involve multiple banks.

Check deposits: No code needed—the routing number is already printed on the check.

Frequently Asked Questions

Can I use the same routing number for all types of transfers?

Usually yes, but some banks have different routing numbers for different transaction types or branches. When you set up a direct deposit or wire transfer, confirm with your bank that you are using the correct routing number for that specific payment method. It only takes a minute to verify.

Is my routing number the same as my bank's routing number?

Your routing number is your bank's routing number for your specific branch. Large banks may have multiple routing numbers for different regions or branches. If you move or change branches, your routing number may change, so always verify before setting up a new transfer.

Do I need to keep my routing number private?

Your routing number is not sensitive information—it is printed on every check you write and is publicly available. However, never share your full account number with anyone you do not trust. A scammer who has both your routing number and account number can potentially set up unauthorized transfers from your account.

What if my bank does not have a SWIFT code?

All banks that handle international transfers have a SWIFT code. If you cannot find it on your bank's website, call their customer service line and ask for the SWIFT code associated with your account or branch. They will provide it immediately.

Can a wrong routing number cause my payment to be rejected?

Yes. If the routing number does not match any real bank, the payment will be rejected and returned to you. If it matches a different bank, that bank will reject it and send it back. Either way, the money returns to your account, but the process takes several business days.