A sort code identifies your specific bank branch, not just your bank
A sort code is a six-digit number that tells the banking system exactly which branch of your bank holds your account. It is not the same as your account number — the sort code points to the physical or virtual location where your money lives, while your account number identifies you within that branch.
Sort codes are used in the United Kingdom and Ireland. If you bank elsewhere, your bank uses a different routing system: the United States uses a nine-digit routing number, Canada uses an eight-digit transit number, and Australia uses a six-digit BSB code. The principle is the same — the code routes money to the right place — but the format and name differ by country.
You will need your sort code whenever you set up a direct debit, receive a bank transfer, or provide your banking details to an employer or government agency. Without it, money sent to you can be delayed or sent to the wrong branch entirely.
Key Takeaways
- A sort code is a six-digit number that identifies your bank branch; your account number identifies you within that branch.
- You can find your sort code on the bottom left of your cheques, in your online banking portal, or by calling your bank.
- Sort codes are required for direct debits, standing orders, bank transfers, and any payment that routes through the UK or Irish banking system.
- Providing the wrong sort code will delay a payment or send it to a different branch, but the money usually returns to the sender within a few business days.
Where to find your sort code
The easiest place to find your sort code is on a cheque. Look at the bottom left corner — you will see three pairs of numbers separated by hyphens. The first pair is your sort code. For example, a sort code might look like 20-17-80.
If you do not have a cheque book, log into your online banking portal or mobile app. Most banks display your sort code alongside your account number in the account details section. Some banks label it "sort code", others call it "branch code" or "bank code".
If you cannot find it online, call your bank's customer service line. They will confirm your sort code over the phone once they have verified your identity. This usually takes a few minutes.
When you need to provide your sort code
You need your sort code whenever money is being routed to your account through the UK or Irish banking system. The most common situations are direct debits (recurring payments to utilities, subscriptions, or loan repayments), standing orders (regular transfers you set up yourself), and bank transfers from another person or organisation.
Employers also ask for your sort code when setting up payroll. Government agencies — including HM Revenue & Customs, the Department for Work and Pensions, and local councils — require it to pay benefits, tax refunds, or housing assistance directly into your account.
You will also need it if you are receiving money from abroad and the sender is using an international transfer service that routes through UK banking infrastructure.
What happens if you give the wrong sort code
If you provide an incorrect sort code, the payment will be sent to a different branch. The money does not disappear — it either reaches an account that does not exist at that branch, or it reaches someone else's account by accident.
In either case, the receiving bank will usually reject the payment and send it back to the sender within two to five business days. The sender then receives a notification that the transfer failed and can resubmit it with the correct sort code.
If the money accidentally lands in someone else's account, the receiving bank can attempt to recover it, but this takes longer and requires the sender to contact their bank to report the error. To avoid this, always double-check your sort code before confirming a payment, especially for large amounts or one-off transfers.
Sort codes versus account numbers and other identifiers
Your sort code and account number work together. The sort code routes the payment to your branch; your account number identifies your specific account within that branch. Both are required for most payments.
Some banks also use an IBAN (International Bank Account Number), which is a longer code that includes your sort code and account number in a standardised format. An IBAN typically starts with two letters (your country code), followed by two check digits, then your sort code and account number. If you are sending money internationally or to a bank that asks for an IBAN, you can usually find it in your online banking portal or ask your bank to provide it.
Your bank code is sometimes used interchangeably with sort code, though technically a bank code identifies the bank itself while a sort code identifies the specific branch. In practice, UK and Irish banks use sort codes for both purposes.
How sort codes are structured
A sort code is always six digits, arranged in three pairs separated by hyphens: XX-XX-XX. The first pair usually identifies the bank, the second pair identifies the region or processing centre, and the third pair identifies the specific branch.
For example, Barclays sort codes often begin with 20, HSBC with 40, Lloyds with 30, and NatWest with 60. However, this is not a strict rule — some banks use multiple sort codes, and some sort codes are shared across branches in the same region. The exact structure varies by bank and has changed over time as the banking system has evolved.
You do not need to understand the structure of your sort code to use it. You only need to know what it is, where to find it, and when to provide it.
Protecting your sort code and account details
Your sort code is not secret information — it appears on every cheque you write and is often visible in your online banking portal. However, you should never provide your sort code and account number together to someone you do not trust, because together they are enough to set up a direct debit or standing order from your account.
Your bank will never ask you for your sort code by email, text, or phone call. If someone contacts you claiming to be from your bank and asks for this information, it is a scam. Hang up or delete the message and call your bank directly using the number on the back of your card or on their official website.
When providing your sort code to a legitimate organisation — your employer, a utility company, a government agency — verify that you are using their official contact method. Do not click links in emails or texts; instead, go directly to their website or call their published phone number.
Frequently Asked Questions
Can I change my sort code?
No. Your sort code is tied to the specific branch where your account is held. If you want a different sort code, you would need to close your account and open a new one at a different branch, which is not practical. Most people keep the same sort code for the life of their account.
What if I moved and my branch closed?
If your branch closed, your account was transferred to another branch, but your sort code usually remains the same. Your bank will notify you of the change and confirm that your sort code has not changed. If it has, they will provide you with the new one and advise you to update it with your employer and any organisations that pay you regularly.
Do I need a sort code for online banking or card payments?
No. Sort codes are only needed for payments that route through the UK or Irish banking system directly — direct debits, standing orders, and bank transfers. Card payments, online shopping, and contactless payments do not require a sort code.
Is my sort code the same as my bank's sort code?
Not necessarily. Your sort code identifies your specific branch; your bank's main sort code identifies the bank as a whole. Some branches share a sort code, and some banks use different sort codes for different regions or services. Always use the sort code for your specific branch, not the bank's general number.
What if a payment fails because of a wrong sort code — will I be charged?
Most banks do not charge you if a payment fails because of an incorrect sort code provided by the recipient. However, if you initiated the payment and provided the wrong sort code yourself, some banks may charge a small fee to investigate or reverse it. Check your bank's policy or call them to ask.