A bank code is a short set of numbers or letters that identifies which bank holds your account

When you send money between banks or set up a direct deposit, the payment system needs to know exactly which bank to send it to. A bank code is the identifier that does that job. It is not the same as your account number. Your account number identifies you within a bank; the bank code identifies the bank itself.

The exact format and name of a bank code depends on where you are and what kind of transfer you are making. In the United States, the most common bank code is the routing number (also called a routing transit number or RTN). In other countries, banks use different systems — the UK uses sort codes, Canada uses institution numbers, and many other countries use SWIFT codes or IBAN numbers for international transfers.

You will need your bank code when you set up direct deposit for paychecks, arrange automatic bill payments, or send money to someone at a different bank. Your bank code is not secret information — it is printed on the bottom left of your checks and available from your bank's website or customer service.

Key Takeaways

  • A bank code identifies your specific bank in the payment system, separate from your account number.
  • In the United States, the bank code is called a routing number and appears on the bottom left of your checks.
  • You need your bank code to set up direct deposit, automatic payments, and transfers between banks.
  • Bank codes are public information — they are not sensitive like a PIN or password.
  • Different countries and transfer types use different bank code formats (routing numbers, sort codes, SWIFT codes, IBAN).

Where to find your bank code

The fastest way to find your routing number is to look at a check from your account. The routing number is the first set of nine digits on the bottom left of the check, before your account number. If you do not have checks or prefer not to use them, you can find your routing number on your bank's website — usually in the customer service or account information section.

You can also call your bank's customer service line and ask for your routing number. Have your account number ready when you call. Some banks print the routing number on statements or in your online banking portal under account details.

If you are moving money internationally or to a bank outside the United States, you may need a SWIFT code instead of a routing number. SWIFT codes are eight or eleven characters long and identify banks worldwide. Your bank can provide this if you ask for it.

Routing numbers versus account numbers

These two numbers work together but serve different purposes. Your routing number tells the payment system which bank to send money to. Your account number tells that bank which account within the bank should receive the money. You need both to complete a transfer.

Think of it like mailing a letter: the routing number is the city and zip code; the account number is the specific street address. The postal service needs both to deliver the letter to the right place.

Some banks have multiple routing numbers depending on the type of transaction or the branch where you opened your account. If you are setting up a transfer and it fails, double-check that you have the correct routing number for that specific transaction type.

When you need a bank code

Direct deposit is the most common reason you will need your routing number. When you start a job, your employer asks for your routing number and account number so they can deposit your paycheck directly into your account instead of issuing a paper check.

You also need it to set up automatic bill payments from your bank account — for utilities, insurance, rent, or loan payments. If you are sending money to someone else's bank account through your bank's online transfer system, you will need their routing number and account number.

Wire transfers, ACH transfers (automated clearing house transfers), and peer-to-peer payment setups may all require your routing number. Some of these services now use account number alone, but having your routing number on hand prevents delays.

Bank codes in other countries

If you are receiving money from outside the United States or sending money internationally, the other bank will use a different system. The United Kingdom uses sort codes (six digits), Canada uses institution numbers (three digits), and most countries outside North America use IBAN (International Bank Account Number) or SWIFT codes for international transfers.

When you receive a wire transfer from another country, the sending bank will ask you for your SWIFT code and possibly your IBAN. Your U.S. bank can provide both of these if you ask. SWIFT codes are maintained by the Society for Worldwide Interbank Financial Telecommunication and are the standard for cross-border payments.

If you are unsure which code format you need, ask the person or organization sending you money — they will know what their bank requires.

What happens if you use the wrong bank code

If you provide an incorrect routing number, the payment will either fail before it is sent or it will be sent to the wrong bank. Most modern payment systems catch the error before the money leaves your account, and the transaction is rejected. You will see an error message and can correct the information and try again.

If the money does reach the wrong bank, that bank is responsible for returning it. This process can take several business days. The sending bank will investigate, the receiving bank will reverse the transaction, and the money will come back to the sender. During this time, you will not have access to the funds.

To avoid this, always double-check your routing number before confirming a transfer, especially for large amounts or time-sensitive payments like rent or payroll.

Bank codes and account security

Your routing number is not sensitive information. It is printed on every check you write and is publicly available on your bank's website. Sharing your routing number alone does not put your account at risk — someone cannot withdraw money or make charges using only a routing number.

However, you should not share your routing number and account number together with someone you do not trust. Together, these two pieces of information can be used to set up unauthorized transfers or payments from your account. Keep your full account details private the same way you would keep a PIN or password private.

If you suspect someone has misused your routing number and account number, contact your bank when ready. Your bank can freeze your account, review recent transactions, and reverse any unauthorized transfers.

Frequently Asked Questions

Is my routing number the same at every branch of my bank?

Usually yes, but not always. Most banks use one routing number for all branches, but some larger banks have different routing numbers for different regions or transaction types. If a transfer fails, contact your bank to confirm you have the correct routing number for that specific branch or transaction.

Can I use my account number as a bank code?

No. Your account number identifies you within your bank; your bank code (routing number) identifies the bank itself. Payment systems need both pieces of information to route money correctly. Using only your account number will cause the transfer to fail.

What if I cannot find my routing number?

Call your bank's customer service line with your account number ready. They will provide your routing number when ready. You can also visit your bank's website — most banks list routing numbers in the customer service or account information section, or you can use the bank's routing number lookup tool.

Do I need a different code for international transfers?

Yes. For transfers outside the United States, you will need a SWIFT code instead of a routing number. Your bank can provide this. Some international transfers also require an IBAN (International Bank Account Number). Ask the person sending you money which codes their bank requires.

Can someone steal money using just my routing number?

Not with your routing number alone. They would need both your routing number and your account number to set up a transfer. Keep these two pieces of information together as private as you would keep a PIN or password.