A sort code is a six-digit number that identifies which bank branch holds your account
A sort code is a six-digit number written in three pairs — like 20-45-67 — that tells the banking system which specific branch of which bank you use. It is not the same as your account number. The sort code points to the physical or logical location where your account lives; your account number identifies which account at that branch is yours.
Sort codes exist because money moving between accounts has to travel through the right channels. When you send money to someone, their bank needs to know which of its thousands of branches should receive it. The sort code is how that instruction gets encoded into the payment system.
You will find your sort code on paper cheques, in your online banking portal, on statements, or by calling your bank. It is public information — you share it freely when you give someone your bank details so they can send you money.
Key Takeaways
- A sort code is a six-digit number in the format XX-XX-XX that identifies your bank branch, separate from your account number.
- Sort codes are used by the UK banking system to route payments to the correct branch; they are public information you share when receiving money.
- You can find your sort code on cheques, statements, in online banking, or by phoning your bank's customer service line.
- The first two digits of a sort code identify the bank; the last four identify the specific branch within that bank.
How sort codes fit into the payment system
When money moves from one account to another in the UK, it travels through a system called Bacs (Bankers' Automated Clearing Services) or Faster Payments, depending on the speed and type of transfer. Both systems need two pieces of information to find the right account: the sort code and the account number. Together, these are sometimes called your bank details.
The sort code acts as an address. It tells the clearing system which bank and which branch should receive the payment. Without it, the system cannot route the money correctly, and the payment will either fail or be delayed while the bank tries to work out where it should go.
This is why you cannot send money to someone with only their account number. You need both the sort code and the account number. Some payment systems now also ask for a name check — you type the account holder's name, and the system confirms it matches the account before the payment goes through. This is called Confirmation of Payee, or CoP, and it is a fraud prevention step.
Where to find your sort code
Your sort code appears in several places. On a paper cheque, it is printed in the bottom left corner as six digits in three pairs. In your online banking app or website, it is usually listed under "Account Details" or "My Details". On a bank statement, it appears at the top or in the account information section.
If you cannot find it online, call your bank's customer service number — the one on the back of your debit card or on your statement. They will give you the sort code over the phone. You do not need to prove anything; sort codes are not secret.
Some banks also let you look up a sort code if you know the bank name and branch. The UK has a central register of sort codes, though you will usually just ask your bank directly rather than searching a database yourself.
What the digits in a sort code mean
A sort code has a structure. The first two digits identify the bank itself — for example, 20 might represent one major bank, 30 another. The next two digits narrow it down further, sometimes to a region or banking group. The last two digits identify the specific branch.
You do not need to decode this yourself. The system does it automatically. But it explains why sort codes are not random: they are hierarchical. If you see a sort code starting with 20, you know it belongs to a particular bank, even if you do not know which one off the top of your head.
Different branches of the same bank have different sort codes. If you move house and your account moves to a different branch, your sort code might change. Your bank will tell you if this happens.
Sort codes versus account numbers and IBANs
A sort code is a UK-specific identifier. If you are sending money to someone outside the UK, you will not use a sort code. Instead, you will use an IBAN (International Bank Account Number), which is a longer code that includes the country, bank, and account information all in one.
An IBAN for a UK account starts with GB, followed by two check digits, then the sort code, then the account number. So a UK IBAN contains your sort code within it, but the IBAN itself is what you use for international payments.
Within the UK, you use the sort code and account number separately. For international payments, you use the IBAN. Some banks will accept either format for UK payments, but sort code plus account number is the standard.
What happens if you give the wrong sort code
If you give someone the wrong sort code, the payment will go to the wrong bank or branch. The receiving bank will usually reject it and send it back to the sender, which can take several days. The money returns to the sender's account, and they have to send it again with the correct details.
This is why it is important to double-check sort codes before you give them out or before you send money. A single digit wrong means the payment goes to the wrong place. Most banks now use Confirmation of Payee to catch this — if you type a name that does not match the account, the system warns you before the payment leaves.
If a payment goes to the wrong account and the receiving bank cannot identify who sent it, recovering the money can be slow. The receiving bank has to investigate, contact the account holder, and ask them to return it. This is why prevention — getting the sort code right the first time — matters more than recovery.
Frequently Asked Questions
Is my sort code the same as my bank's main sort code?
No. Your sort code identifies your specific branch, not the bank as a whole. Different branches of the same bank have different sort codes. If you bank online with a bank that has no physical branches, your sort code still identifies a processing centre or logical location within the bank's system.
Can someone steal money from my account if they know my sort code?
No. A sort code alone cannot be used to take money out. A thief would need your account number as well, and even then they would need to set up a payment from your account, which requires login credentials or other authentication. A sort code is safe to share.
Do I need a sort code to receive a bank transfer?
Yes. The person sending you money needs your sort code and account number to route the payment to you. Without the sort code, they cannot complete the transfer. This is why you give out your sort code when you want people to send you money.
What if my bank does not have physical branches?
Online-only banks still have sort codes. The sort code identifies a processing centre or logical location within the bank's system, not necessarily a building you can walk into. Your sort code works the same way for payments whether your bank has branches or not.
Can a sort code change?
Rarely, but yes. If your bank merges with another, restructures its branches, or closes the branch where your account is held, your sort code might change. Your bank will notify you in advance and provide your new sort code. You should update anyone who has your details on file.