A sort code is a six-digit number that identifies which bank branch holds your account

In the UK and Ireland, a sort code is a six-digit number written in the format XX-XX-XX. It tells the banking system which specific branch of which bank your account belongs to. When someone sends you money, the sort code routes that payment to the right place. Without it, the transfer either fails or arrives at the wrong account.

Sort codes are used only in the UK and Ireland. Other countries use different systems — the US uses routing numbers, Europe uses IBAN codes, and Australia uses BSB numbers. If you're sending money internationally, you'll need the recipient's system, not a sort code.

You'll find your sort code on your debit card, in your online banking app, on paper statements, or by calling your bank. It never changes unless you close the account and open a new one at a different branch.

Key Takeaways

  • A sort code is a six-digit number that identifies your bank branch and is required for receiving transfers within the UK and Ireland.
  • Sort codes appear on your debit card, bank statements, and online banking portal — you don't have to remember it.
  • The first four digits identify the bank; the last two identify the specific branch.
  • You need both a sort code and an account number to receive a payment; one without the other will not work.
  • Sort codes are not used for international transfers — those require an IBAN or other country-specific code.

How sort codes are structured

A sort code breaks down into two parts. The first four digits identify the bank itself — for example, Barclays, HSBC, Lloyds, or Santander. The last two digits identify the specific branch where your account is held. This means two people with accounts at different branches of the same bank will have different sort codes.

For example, a sort code of 20-17-80 means the account is held at a specific Barclays branch. If you moved your account to a different Barclays branch, your sort code would change. The bank and account number stay the same, but the branch code updates.

Sort codes are maintained in a central register called VBAN (the Validating Bank Account Number system). Banks use this to verify that a sort code and account number combination actually exists before processing a payment.

Where to find your sort code

Your sort code appears in several places, so you don't need to memorize it. On a debit card, it's printed on the front alongside your account number. On paper bank statements, it appears at the top or bottom of the page. In your online banking app or portal, it's usually listed under account details or settings.

If you can't locate it, call your bank's customer service line — they can tell you your sort code in seconds. You can also use your bank's website to search for a branch sort code if you know which branch you use.

Some banks display your sort code differently depending on the product. A current account and a savings account at the same branch might have the same sort code, or they might not — check the specific account you're using.

Sort codes versus account numbers

A sort code and an account number are two different things, and you need both to receive a payment. The sort code identifies the branch; the account number identifies your specific account within that branch. Giving someone only a sort code is like giving them your town but not your street address — they know the general area but can't find the exact location.

An account number is usually eight digits long, though some banks use different lengths. Together, the sort code and account number form a unique identifier for your account. Banks use both pieces of information to route money correctly and prevent payments from going to the wrong person.

When you provide your details for a transfer, always give both. If someone asks for only one, they don't have enough information to send you money.

What happens if you give the wrong sort code

If you provide an incorrect sort code, the payment will either be rejected outright or sent to the wrong bank branch. Modern banking systems catch most errors before the money leaves — the bank will tell you the sort code doesn't match the account number you provided, and the transfer won't go through.

If a payment does go to the wrong branch, it usually bounces back to the sender within a few business days. The receiving bank will see that the account number doesn't exist at that branch and return the funds. This can delay your money by a week or more, but it rarely gets lost permanently.

The safest approach is to copy and paste your sort code rather than typing it by hand. This eliminates typos. If you're unsure, ask your bank to confirm the sort code before you send the payment.

Sort codes for different types of accounts

Most current accounts, savings accounts, and money market accounts have their own sort code. If you hold multiple accounts at the same branch, each one may have a different sort code — or they may share one, depending on the bank's system. Check the specific account you're using rather than assuming all your accounts at one bank use the same code.

Business accounts, student accounts, and joint accounts all use sort codes the same way. The format and function are identical; only the account number changes. If you're not sure which sort code belongs to which account, your bank's app usually labels them clearly.

If you close an account and reopen it later at the same branch, you may be assigned a new sort code. Don't assume your old one still works.

Sort codes and fraud prevention

Sort codes are public information — they're printed on your debit card and appear in your bank statements. Knowing someone's sort code alone does not let a fraudster access their account or steal money. You also need the correct account number, and even then, most transfers require additional verification like a one-time password or confirmation from the receiving bank.

However, fraudsters sometimes use sort codes as part of a larger scam. They may ask you to confirm your sort code as a way to seem legitimate, or they may use it to set up a fake payment request. Never provide your sort code along with your account number, PIN, or password to anyone who contacts you unsolicited.

If you're sending money to someone new, verify their sort code and account number through an independent channel — call them directly or check their official website — rather than relying on an email or message they sent you.

Frequently Asked Questions

Can someone steal money from my account if they know my sort code?

No. A sort code alone is not enough to access or withdraw from your account. A fraudster would also need your account number, and even then they would need to set up a payment from their own account to yours — which requires their own banking details and verification. Your sort code is safe to share.

What's the difference between a sort code and an IBAN?

A sort code is a UK and Ireland system. An IBAN (International Bank Account Number) is used for transfers within Europe and some other countries. An IBAN includes the sort code as part of its structure, but they serve different purposes. For transfers within the UK, use a sort code and account number. For international transfers, use an IBAN.

Do I need a sort code to set up a direct debit?

Yes. Direct debits require both a sort code and account number so the biller knows which account to take money from. You'll provide these details when you set up the direct debit, usually on a form or through your bank's app.

What if my bank doesn't have a sort code?

All UK and Irish banks have sort codes. If you bank with a UK or Irish institution, your account has one. If you bank with a non-UK institution or a digital bank that operates from outside the UK, it may use a different system — check with your bank directly.

Can a sort code change?

A sort code can change if you close your account or move it to a different branch. It will not change while your account remains open at the same branch. If your bank merges with another bank or restructures its branches, your sort code may change — your bank will notify you in advance.