How to check your tax code is right
Wrong tax codes are the most common way people in the UK overpay tax, and HMRC does not always spot it. This decodes what each letter means, explains the emergency codes, and shows how to get money back for up to four previous tax years.
Short answer
Check your tax code on your payslip, in the HMRC app or in your personal tax account. The standard code reflects the full personal allowance. Codes ending in W1, M1 or X are emergency codes and usually mean you are overpaying. You can claim a refund for up to four previous tax years.
Your tax code tells your employer how much of your income to treat as tax-free. Get it wrong and you either overpay every month or build up an unexpected bill. HMRC issues codes automatically from the information it holds, and when that information is incomplete — a new job, a second job, a company benefit, a period of unemployment — the code is often wrong.
Checking takes five minutes and is the single highest-return piece of personal admin available to most UK employees.
Decode the code
A tax code is normally numbers followed by a letter. Multiply the numbers by ten to get the amount of income HMRC expects you to receive tax-free in the year. The standard code while the personal allowance is £12,570 is 1257L.
The letter modifies it. L is the standard personal allowance. M and N indicate the Marriage Allowance has been transferred to or from you. T means there are other calculations involved. 0T means no personal allowance is being applied at all — usually because HMRC has no information about you. BR means all income from that source is taxed at the basic rate, D0 at the higher rate and D1 at the additional rate; these are normal on a second job or a pension, and wrong on a sole job. K codes mean your untaxed income or benefits exceed your allowance, so an amount is added to your taxable pay rather than deducted.
A prefix matters too. S means you are a Scottish taxpayer and Scottish rates apply; C means Welsh. These are set by where you live, not where you work, and HMRC determines it from your address.
A suffix of W1, M1 or X means an emergency code. It taxes each pay period in isolation rather than cumulatively, so it ignores any unused allowance from earlier in the year. This is the single most common cause of overpayment for people starting a new job.
Check it against reality
Sign in to your personal tax account on GOV.UK or open the HMRC app. Both show your current code, the income HMRC thinks you receive from each source, and the calculation behind the code.
Look specifically at: whether HMRC thinks you have a job you no longer have, whether a company benefit such as a car or medical insurance is listed at the right value, whether an estimated income figure is wildly wrong, and whether a state pension or other income is included that should not be.
You can update most of these yourself in the app or online, and HMRC will reissue the code to your employer. This is far faster than phoning.
Check again after any change: starting or leaving a job, taking a second job, starting to receive a pension, getting a company car, or a large change in income.
Fix it and claim back what you overpaid
For the current tax year, correcting the underlying information in your personal tax account usually triggers a reissued code within days. Once your employer applies it, any overpayment made earlier in the same tax year is normally refunded automatically through payroll.
For previous tax years, HMRC reconciles after the year ends and issues a P800 calculation if you have overpaid or underpaid. A P800 showing a refund can usually be claimed online, with the money paid within about five working days, or sent as a cheque if you do nothing.
You can claim back overpaid tax for up to four previous tax years. That is a genuine deadline: the 2021–22 year, for example, closes on 5 April 2026. If you think you have overpaid in an earlier year and no P800 has arrived, contact HMRC directly rather than waiting.
Common causes of refunds beyond wrong codes: work expenses you were entitled to claim, such as professional subscriptions, uniform maintenance or mileage in your own vehicle; the Marriage Allowance where one partner earns below the personal allowance; and being taxed on the emergency code after a first pension withdrawal.
Do not use a refund company unless you have a genuinely complex claim. They charge a substantial percentage of a refund you can claim yourself in minutes, and several have been the subject of regulatory action over misleading practices and assignment clauses that divert future refunds too.
When you actually owe money
The reverse happens too. If your code has been too generous, a P800 will show an underpayment, and HMRC will normally collect it by adjusting next year's code rather than demanding a lump sum.
If the amount is large, or you no longer have PAYE income, HMRC will ask for direct payment and will usually agree a Time to Pay arrangement if you cannot pay at once. Contact them before the deadline — arrangements are routinely available to people who ask early and considerably harder to obtain after enforcement has begun.
Underpayments caused by HMRC's own error can sometimes be written off under Extra-Statutory Concession A19, where HMRC failed to act on information it held in good time and you reasonably believed your affairs were in order. It is applied narrowly, but it is worth citing where the facts fit.
Key takeaways
- Multiply the numbers in your code by ten to see the tax-free income HMRC expects you to receive.
- Codes ending W1, M1 or X are emergency codes that ignore unused allowance and usually mean you are overpaying.
- Check whether HMRC still thinks you hold a job you have left — this splits your allowance and is the most common cause of long-running overpayment.
- You can claim back overpaid tax for up to four previous tax years; the window closes on 5 April each year.
- Refund companies charge a large percentage for something you can do yourself in minutes online.
Who to contact
Tax codes, refunds, P800 calculations and Time to Pay arrangements.
Check and correct your tax code, income sources and estimated pay online.
Free tax advice charity for people on low incomes who cannot afford professional help.
At a glance
- Where to find it
- Payslip, P60, P45, HMRC app
- Standard code
- Reflects the full personal allowanceCurrently 1257L while the allowance is frozen at £12,570
- Emergency codes
- End in W1, M1 or X
- Scottish taxpayers
- Code begins with S
- Welsh taxpayers
- Code begins with C
- Refund window
- 4 previous tax yearsTax year runs 6 April to 5 April
How to check your tax code is right — FAQ
What does tax code 1257L mean?
It means HMRC expects you to receive £12,570 of income tax-free in the year — the standard personal allowance — and the L indicates you are entitled to that standard allowance with no adjustments. The numbers in any code multiplied by ten give the tax-free amount.
What is an emergency tax code?
A code ending in W1, M1 or X. It taxes each pay period in isolation rather than cumulatively, ignoring any unused personal allowance from earlier in the year. It is applied when HMRC lacks full information — typically on a new job with no P45 — and usually results in overpayment until it is corrected.
What does tax code BR mean?
All income from that source is taxed at the basic rate with no personal allowance applied. It is correct on a second job or a pension where your allowance is already used against your main income. On a sole source of income it is wrong and means you are overpaying substantially.
How far back can I claim a tax refund in the UK?
Four previous tax years. The tax year runs from 6 April to 5 April, so each 5 April closes the oldest year in the window. If you believe you overpaid in a past year and have had no P800 calculation from HMRC, contact them directly rather than waiting for one.
Should I use a tax refund company?
Usually not. Straightforward refunds can be claimed free in a few minutes through your personal tax account or the HMRC app. Refund companies charge a substantial percentage, and several have faced regulatory action over misleading marketing and clauses assigning future refunds to them. Complex claims may justify a properly qualified accountant instead.
Read next
Sources & provenance
Facts verified
- 1.Tax codes OfficialUK GovernmentUsed for: What each letter and prefix means and how the numbers work
- 2.Emergency tax codes OfficialUK GovernmentUsed for: W1, M1 and X suffixes and when they apply
- 3.Check your Income Tax OfficialUK GovernmentUsed for: Using the personal tax account to view and correct coding information
- 4.Tax overpayments and underpayments OfficialUK GovernmentUsed for: P800 calculations, refund claims and the four-year limit
- 5.Claim a tax refund OfficialUK GovernmentUsed for: Refund routes for different circumstances
- 6.Scottish Income Tax OfficialUK GovernmentUsed for: S prefix and how Scottish taxpayer status is determined
- 7.Extra-Statutory Concession A19 OfficialHM Revenue & CustomsUsed for: Write-off of underpayments arising from HMRC delay
Not a source — AI-assisted analysis on this page
- AI-assisted analysis — the ceased-employment trap — The conclusion that an employment HMRC has not closed off is the most common cause of long-running, invisible overpayment is our analysis of how allowances are allocated across sources. HMRC documents the mechanics but does not identify this as the leading cause.
Code structure, emergency codes, P800 reconciliation, the four-year refund window and ESC A19 come from the GOV.UK and HMRC sources cited above. The personal allowance figure of £12,570 reflects the frozen threshold at the review date; allowances, thresholds and therefore standard codes change and are announced at fiscal events — check GOV.UK for the current figure. Scottish and Welsh taxpayers have different rates. One passage is marked as AI-assisted analysis. Nothing here is tax advice for your circumstances.
Facts on this page are taken from the sources listed above — UK government departments, devolved administrations, regulators, statutory bodies and official statistical releases. Comparisons, judgements and "which option suits whom" conclusions are AI-assisted analysis written over those sources; they are marked in the text and listed as an AI-analysis entry in the sources, not attributed to any authority. Rates, thresholds, fees and processing times change, usually at the start of a tax year in April; figures are current as at the review date shown and should be confirmed with the responsible body before you rely on them. Much of what follows differs between England, Scotland, Wales and Northern Ireland — where it does, this site says so.