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

In the UK, a sort code works like a postal address for your money. When someone sends you a payment, the sort code tells the banking system exactly which institution to route it to. It is separate from your account number — together, they form the complete address needed to move money into your account.

Sort codes are used only in the UK and Ireland. If you are sending money to or receiving money from outside those countries, you will use a different system (usually a SWIFT code or IBAN instead). Within the UK, sort codes are the standard routing identifier for domestic payments.

The format is always the same: six digits, usually written as three pairs separated by hyphens. For example, 20-17-80 or 40-52-40. Each pair has a specific meaning in the banking system, though you do not need to decode it yourself — you just need to know which one belongs to your bank.

Key Takeaways

  • A sort code is a six-digit number that identifies your specific bank or building society branch within the UK banking system.
  • You need both your sort code and account number together to receive a payment; one without the other will not work.
  • Your sort code appears on your debit card, bank statements, and cheques, or you can ask your bank directly.
  • Sort codes are used only for UK and Ireland payments; international transfers use SWIFT codes or IBANs instead.
  • The same bank may have different sort codes for different branches or services, so always use the one your bank gives you.

Where to find your sort code

Your sort code is printed on every cheque you have. Look at the bottom left of the cheque — you will see nine digits in total. The first six are your sort code, the next eight are your account number, and the final digit is a check digit the system uses to verify the account exists.

If you do not have cheques, your sort code appears on your bank statement, usually near the top where your account details are listed. You can also find it on your debit card, though not all banks print it there — some only show it in your online banking portal or mobile app. The fastest route is to log into your online banking and look for "account details" or "payment details" — most banks display both your sort code and account number there.

If you cannot find it anywhere, call your bank's customer service number (on the back of your debit card) and ask for your sort code. They will give it to you when ready. You do not need to explain why you need it — banks expect this question regularly.

Sort codes versus account numbers

A sort code identifies your bank. An account number identifies your specific account within that bank. You need both to receive a payment. Giving someone only your sort code is like giving them your city but not your street address — the money will not arrive.

The same bank may use multiple sort codes for different branches, different services, or different regions. If you move branches or switch to a different service (like moving from a current account to a savings account), your sort code might change. Always check with your bank before giving out your sort code, especially if you have recently switched accounts.

Your account number usually stays with you even if your sort code changes, but the pairing matters. A payment sent to the wrong sort code with your account number will either bounce back or go to someone else's account at a different bank — it will not automatically find you.

How sort codes work in the payment system

When you receive a bank transfer, the sending bank uses your sort code to route the payment to your bank's processing centre. Your bank then uses your account number to deposit the money into your specific account. The whole process normally takes one to two working days for a standard transfer, though faster payments (Faster Payments Service) can arrive within hours.

The sort code is also used for standing orders, direct debits, and cheque clearing. When you set up a standing order to pay a bill, you provide the recipient's sort code and account number so the system knows where to send the money each month. For direct debits (like a utility bill or subscription), the company uses your sort code to pull money from your account on the agreed date.

Sort codes are maintained by a central registry called VOCN (Vocalink, now part of Mastercard), which keeps the complete list of which sort code belongs to which bank and branch. This prevents payments going to the wrong place and helps the banking system route money quickly and accurately.

What happens if you give the wrong sort code

If you provide an incorrect sort code, the payment will either be rejected by the system or sent to the wrong bank entirely. Modern banking systems have some protection — if the sort code and account number do not match (meaning they do not belong to the same bank), the payment may be held or returned. However, this is not may provide, especially with older systems or international transfers.

If money is sent to the wrong sort code by mistake, recovery is slow and difficult. The sending bank has to trace where the payment went, contact the receiving bank, and ask them to return it. This can take weeks. The best approach is to double-check the sort code before you send any payment, especially for large amounts.

Some banks now offer Confirmation of Payee (CoP), a system that checks whether the account holder's name matches the sort code and account number you have provided. If there is a mismatch, the system warns you before the payment goes through. Not all banks use this yet, but it is becoming more common as a safety feature.

Sort codes for different types of accounts

Most UK banks have one main sort code for current accounts, but some have different codes for savings accounts, business accounts, or online-only services. If you have multiple accounts at the same bank, each one might have a different sort code. This is why it is important to use the sort code that matches the specific account you are using, not just any sort code from that bank.

Building societies (which are similar to banks but structured differently) also have sort codes. The format is identical to bank sort codes — six digits — and they work the same way in the payment system. If you bank with a building society, your sort code will be listed on your statements and cheques just as it would be with a bank.

Some specialist accounts, like savings accounts held with a different institution than your main bank, will have their own sort code. Always check which sort code belongs to which account before you give it out, especially if you have accounts spread across multiple banks or building societies.

Frequently Asked Questions

Do I need a sort code to send money to someone?

No. You need the recipient's sort code and account number. You do not need to provide your own sort code when sending a payment — the bank already knows which account the money is leaving from because you are logged in.

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

Not with just your sort code alone. They would also need your account number, and even then they would need to set up a payment or direct debit through their own bank, which requires additional verification. Giving out your sort code and account number together is safe — that information is printed on your cheques, which are public documents.

What is the difference between a sort code and a SWIFT code?

A sort code is used for payments within the UK and Ireland only. A SWIFT code (also called a BIC) is used for international payments. If you are sending money abroad or receiving it from outside the UK, you will need a SWIFT code instead of a sort code.

Will my sort code change if I switch banks?

Yes. Your new bank will give you a new sort code because the code identifies which bank holds your account. Any standing orders or direct debits set up with your old sort code will need to be updated with your new bank's sort code, or they will fail.

Is my sort code the same as my bank's sort code?

Not necessarily. Your sort code identifies your specific branch or service within the bank. A large bank might have dozens of sort codes for different branches, regions, or account types. Always use the sort code your bank gives you for your specific account.