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

When you make a payment to someone in the UK or Ireland, you need three pieces of information: their name, their account number, and their sort code. The sort code tells the payment system which specific branch the money should go to. Without it, the payment cannot reach the right bank, even if the account number is correct.

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 are sending money internationally, you will need the recipient's code for their country, not a sort code.

Key Takeaways

  • A sort code is a six-digit number written as three pairs (for example, 20-06-09) that identifies your bank branch in the UK or Ireland.
  • You need a sort code plus an account number to receive payments; the sort code alone is not enough to identify an account.
  • Your sort code appears on your debit card, bank statements, and online banking, usually near your account number.
  • Different branches of the same bank can have different sort codes, so the code is specific to your location and branch, not just your bank.

Where to find your sort code

Your sort code is printed on your debit card in the bottom left corner, written as six digits in three pairs separated by hyphens. It also appears on paper bank statements, usually at the top or bottom of the page next to your account number.

If you use online banking, log in and look for your account details or account information section. Most banks display the sort code alongside your account number. You can also call your bank's customer service line and ask — they will give it to you immediately.

If you have lost your debit card and do not have a statement, do not give out your account number to anyone claiming to need it. Instead, contact your bank directly using the phone number on their official website or the back of an old statement.

How sort codes are structured

A sort code has six digits arranged in three pairs: the first two digits identify the bank, the middle two identify the branch area, and the last two identify the specific branch. For example, Barclays branches might all start with 20, but different Barclays branches in different cities will have different final digits.

This structure means that two people with accounts at the same bank but different branches will have different sort codes. If you move branches or your branch closes and merges with another, your sort code may change — your bank will notify you if this happens.

Sort codes versus account numbers

A sort code and an account number work together but do different jobs. The sort code directs the payment to the right branch; the account number identifies your specific account within that branch. You need both for a payment to go through correctly.

If you give someone only your sort code, they cannot send you money — they also need your account number. If you give them only your account number without the sort code, the payment system will not know which branch to send it to and the payment will fail or be delayed.

Some payment systems, like Faster Payments or CHAPS, require both pieces of information before they will process a transfer. Others may ask for your name as well, as an extra check that the money is going to the right person.

When you need to provide your sort code

You provide your sort code when someone needs to send you money: a new employer setting up your salary, a friend paying you back, a company refunding you, or a government agency sending you a payment. You should always give both your sort code and account number together.

You do not need to provide your sort code when you are sending money to someone else — you need theirs. You also do not need it when you are paying a bill by card or online; the payment system already knows which bank you are using.

If a business asks for your sort code in a context where it does not make sense — for example, when you are paying them by card — you can refuse. Legitimate businesses only ask for sort codes when they need to send money to your account.

Sort codes and fraud protection

Sharing your sort code alone is low risk because it does not identify your account by itself. However, you should not share your sort code with anyone you do not trust, because combined with your account number it gives them the information they need to set up a payment to your account.

If someone has your sort code and account number, they can send you money or request a payment from you, but they cannot withdraw money from your account without additional security information. Your bank uses other checks — like your name and sometimes your address — to prevent fraud.

Never share your sort code along with your PIN, password, or security codes. If a bank employee or official asks for these together, it is a scam. Your bank already knows your sort code and will never ask you for it over the phone or email.

What happens if you give the wrong sort code

If you provide an incorrect sort code, the payment will either fail immediately or be sent to the wrong branch. Most modern payment systems check the sort code against a database and reject the payment if it does not match a real branch.

If the payment does go through to the wrong branch, it usually bounces back to the sender within one to three working days. The sender's bank will then return the money to their account. This delay can be frustrating if you are waiting for an urgent payment, which is why it is important to double-check the sort code before confirming a transfer.

If a payment has been sent to the wrong sort code and has not returned after five working days, contact your bank. They can trace the payment and request it back, though this process can take longer than a standard reversal.

Frequently Asked Questions

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

No. Your sort code is specific to your branch, not your entire bank. A large bank like HSBC or Lloyds has many branches, and each one has a different sort code. If you move to a different branch or your branch closes, your sort code may change.

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 cannot withdraw money — they can only send money to your account or request a payment. Your bank uses additional security checks to prevent unauthorised withdrawals.

What if I do not have a debit card and cannot find my sort code?

Call your bank using the number on their official website. You can also log into online banking if you have access. If you have an old bank statement, the sort code is printed on it. Your bank can provide it immediately over the phone.

Do I need a sort code to set up a standing order?

Yes. A standing order requires the recipient's sort code and account number so the bank knows where to send the payment each time. You will enter both when you set up the order in your online banking or at a branch.

Will my sort code change if my bank merges with another bank?

Possibly. If your branch is affected by a merger or closure, your bank will write to you with your new sort code. You should update any standing orders or regular payments with the new code to avoid payment failures.