A sort code is a six-digit number that identifies which bank or building society holds your account in the UK
The sort code tells the banking system exactly where to send money when someone pays you. It works alongside your account number — together, they form the complete address for your bank account. Without a sort code, a payment can't reach you, even if the account number is correct.
Sort codes are used only in the UK and Ireland. If you're sending money to or receiving money from outside those countries, you'll use a different system: the SWIFT code (also called a BIC code) for international transfers, or an IBAN (International Bank Account Number) for payments within Europe.
Every bank and building society in the UK has multiple sort codes — one for each branch or processing centre. Barclays, HSBC, Lloyds, and Santander each have dozens of sort codes across their networks. The sort code doesn't tell you which specific branch you use; it tells the payment system which bank's computer to route the money to.
Key Takeaways
- A sort code is six digits, formatted as three pairs (for example, 20-26-39), and identifies your bank or building society.
- You need both your sort code and account number for someone to pay money into your account; one without the other won't work.
- Sort codes are printed on your debit card, cheque book, and bank statements, or you can ask your bank directly.
- The same bank may have different sort codes for different branches or services, so always use the one your bank gives you for payments.
- If you give the wrong sort code, the payment may be rejected, delayed, or sent to the wrong bank account entirely.
Where to find your sort code
Your sort code appears in several places. Check your debit card — it's usually printed on the front or back. Look at any cheques you have; the sort code is the first set of numbers printed at the bottom left. Your bank statements, whether paper or online, show your sort code at the top or in your account details section.
If you can't find it on any of those, log into your online banking or mobile app. Most banks display your sort code in the account information or payment details section. You can also call your bank's customer service line and ask them to confirm it. They'll verify your identity and read it to you over the phone.
Never rely on a sort code someone else gives you, even if they say it's for their bank. Always get it directly from your bank or from the person's own statements or card.
How sort codes are structured
A sort code is always six digits, written as three pairs separated by hyphens: XX-XX-XX. The first two digits identify the bank or building society. The second pair narrows it down to a specific branch or processing centre. The final pair is a check digit that helps the banking system catch errors.
For example, Barclays sort codes often begin with 20, HSBC with 40, Lloyds with 30, and Santander with 72. But within each bank, different branches and services have different sort codes. A Barclays branch in London might use 20-26-39, while a different Barclays location uses 20-17-80. Both are Barclays, but they route to different processing points.
The check digit at the end allows the banking system to spot if you've typed a digit wrong. If you accidentally swap two numbers, the check digit won't match, and the payment system will reject it rather than send money to the wrong place.
What happens if you use the wrong sort code
If you give someone an incorrect sort code, the payment may be rejected outright. The banking system will see that the sort code doesn't match a real bank, and the money will bounce back to the sender within one or two working days. The sender will see the payment as failed and can try again with the correct code.
If the sort code is wrong but looks valid — for example, it belongs to a real bank but not the one you use — the money might go into someone else's account. This is rare because the account number also has to match, but it's possible. If this happens, the receiving bank can contact the account holder and ask them to return the money, but the process is slow and not may provide.
The safest approach is to ask the person paying you to confirm your sort code and account number before they send anything. Read both numbers back to them to make sure they've written them down correctly. If you're setting up a regular payment, test it with a small amount first.
Sort codes versus account numbers
Your sort code identifies your bank. Your account number identifies your specific account within that bank. You need both for a payment to work. Think of it like a postal address: the sort code is the town, and the account number is the house number. Knowing the town isn't enough; you also need the specific address.
Account numbers in the UK are eight digits long. They're also printed on your debit card, cheques, and statements. When you give someone your details for a payment, always provide both the sort code and the account number, formatted exactly as your bank shows them.
Some banks also ask for a name check: they'll ask you to confirm the name on the account before processing a payment. This is an extra safety step to catch fraud or mistakes. If the name you give doesn't match the account holder's name, the payment may be held or rejected.
Sort codes for different types of accounts
Most current accounts, savings accounts, and business accounts all have sort codes. The sort code tells the payment system which type of account and which bank to route the money to, but the specific account number determines which account within that bank receives the money.
If you have multiple accounts at the same bank — for example, a current account and a savings account — they may share the same sort code but have different account numbers. When you want to receive a payment into your savings account, you give the sort code plus the savings account number. If you give the sort code plus your current account number by mistake, the money goes into the current account instead.
Some specialist accounts, such as those held by charities or businesses, may use different sort codes from standard personal accounts at the same bank. Always use the sort code your bank gives you for the specific account you're using.
Sort codes and online payments
When you set up a bank transfer online or through your mobile app, you'll enter the recipient's sort code and account number. The banking system checks both numbers before sending the money. If either one is wrong, the payment will be rejected before it leaves your account.
Some payment apps and services, such as Faster Payments or CHAPS, use sort codes to route money between banks. Faster Payments typically takes one to two hours; CHAPS is same-day but costs more. Both systems rely on the sort code to find the right bank and the account number to find the right account within that bank.
If you're paying someone using their name and sort code through Confirmation of Payee (CoP), the bank will check that the name matches the account holder. If it doesn't match, you'll get a warning before the payment goes through. This system has reduced fraud significantly because it catches payments to the wrong person even if the sort code and account number are correct.
Frequently Asked Questions
Can I use any sort code from my bank, or does it have to be a specific one?
You should use the sort code your bank gives you for your account. While all sort codes for the same bank go to the same bank's system, using the wrong one can cause delays or rejections. Always use the sort code printed on your card, statement, or provided by your bank.
What's the difference between a sort code and a SWIFT code?
A sort code is for payments within the UK and Ireland only. A SWIFT code (also called a BIC code) is used for international payments. If you're sending money abroad, you'll need the recipient's SWIFT code, not their sort code. For payments within Europe, you may also need their IBAN.
Do I need to memorise my sort code?
No. You can look it up whenever you need it — it's on your card, statements, and online banking. Most people don't memorise it because they rarely need to type it manually. Write it down or take a photo of it if you're setting up a new payment.
What if someone asks for my sort code over the phone or email?
Your sort code alone is not sensitive information — it's printed on your debit card and statements. However, never give your sort code and account number together to someone who contacts you unsolicited. Legitimate organisations you already deal with will have your details on file. If in doubt, hang up and call the organisation directly using a number from their official website.
Can a sort code change?
Sort codes rarely change, but it can happen if a bank closes a branch or restructures its processing centres. If your bank changes your sort code, they'll notify you in advance and update your statements and online banking. Always check your latest statement or online banking for your current sort code before giving it to someone.