X Tax Code Explained: Emergency Tax on Your Payslip

X Tax Code: What It Means and What to Do About It

An x tax code is an emergency tax code. The X tells your employer to work out your tax on each payslip in isolation, rather than adding up your pay and tax across the whole tax year so far. HMRC applies it when it does not yet hold enough information to issue your proper code.

That one letter is doing more work than it looks. The digits in a tax code set the tax-free amount your employer applies. The X tells them how to do the sums, and that second instruction is what changes the figure at the bottom of your payslip.

An X code turns up when your circumstances change and HMRC’s records haven’t caught up yet.

GOV.UK names two situations in particular: starting a new job where your employer does not have your previous income details, and starting to receive company benefits or the State Pension.

These codes are temporary by design. What matters is what happens to your pay while you are on one.

An X tax code starts fresh every payday

Most tax codes are cumulative. Your employer looks at everything you have earned and paid so far this tax year, works out where you should be by this point, and adjusts accordingly. Overpay in May and June quietly puts it right.

An X tax code switches that off. Each pay period is treated as though it is the only one, so your employer gives you the slice of allowance belonging to that week or month and ignores everything before it.

That is what non-cumulative means, and it is the whole reason the X exists.

The practical effect is that nothing self-corrects. Pay too much in one period and the next period will not hand it back. The same mechanics apply across this family of codes, and the guide to emergency tax codes and how they work covers them in more detail.

Why HMRC uses X, not W1 or M1

X, W1 and M1 all carry the same instruction. What separates them is the pay pattern they are attached to. GOV.UK sets it out plainly: W1 is used when you are paid weekly, M1 when you are paid monthly, and X when your pay dates vary.

So an X on your payslip is not a worse code than W1 or M1, and it is not a different rate of tax. It is the version used when there is no fixed weekly or monthly rhythm to hang the calculation on, for example where shifts or pay dates move around from one period to the next.

Payroll software does not always display it the same way.

If your payslip shows NONCUM instead of an X, GOV.UK treats that as the same thing: an emergency code.

Whichever label appears, the W1 M1 X tax code markers, and NONCUM alongside them, tell your employer to do the same job. A tax code ending in X is not a special case among them.

1257L X and 0T X work differently

This is where the confusion starts. The X says how the sum is done. The characters in front of it say how much you can earn before tax applies, and HMRC’s tax code guidance treats those as two separate things.

A 1257L X tax code still gives you the standard personal tax free allowance, sliced up period by period rather than spread evenly across the year. A 0T X code gives you no allowance at all. Same X, very different payslip.

The distinction matters more than the letter itself:

  • A 1257L X code gives you the standard personal allowance, divided across your pay periods.
  • A 0T X code gives you no personal allowance, so income tax is due on the whole amount.
  • The X itself changes neither figure, because it only controls how the calculation is done.

Checking which code you are actually on is therefore more useful than spotting the X on its own.

Example: £30,000 on two X codes (2026/27)

Take someone earning £30,000 across the 2026/27 tax year, paid evenly, with the personal allowance at £12,570.

On 1257L X, £12,570 is tax-free and the remaining £17,430 is taxed at the 20% basic rate. That produces an income tax bill of £3,486 and take-home pay of £26,514 before National Insurance.

On 0T X, none of the £30,000 is covered by an allowance, so the full amount is taxed at 20%. That produces £6,000 of income tax and take-home pay of £24,000 before National Insurance, leaving a gap of £2,514 across the year.

One point can get lost here. If your pay is genuinely even and the X code applies for the whole year, the result lands close to what a cumulative code would produce.

That follows from the mechanism GOV.UK describes, where each period is taxed as though you are paid that amount all year: even pay produces even allowance slices.

Overpayment builds up when pay varies between periods, or when the code only covers part of the year.

An X tax code can leave you overpaying

Overpaying happens because unused allowance does not carry forward.

Earn nothing in April and £4,000 in May, and a cumulative code would let May draw on April’s unused allowance. An X code will not, so more tax comes out than the year as a whole justifies.

Underpaying is possible too. Where the code does not account for all your taxable income or benefits, deductions come out too low. GOV.UK says HMRC will then adjust your code to collect what is owed, spread over one or more tax years where that can be done.

Once your code is corrected during the tax year, an overpayment is normally put right through your pay. If the year has already ended, HMRC checks the position and writes to you where the figures do not balance.

The guide to claiming a tax refund from HMRC covers the routes and the timescales involved.

How long does an X tax code last?

An X code is temporary. HMRC updates it once the missing information arrives, and that information comes from you or your employer rather than appearing on its own.

Where the trigger was a new job, GOV.UK states this can take up to 35 days from the day you started.

Two things stretch it out. Underpayment is the one that drags: GOV.UK is explicit that where too little tax has been paid, the emergency code stays in place until the year’s tax has been settled.

The other is simpler, in that if nobody sends HMRC the missing details, nothing triggers the update at all.

A new tax year normally brings a fresh code, since codes are reissued for the year ahead. Useful to know, but not a plan: waiting until April means months of pay calculated the hard way.

How to get an X code changed

The fix is information, not argument. Your employer needs enough detail to report you correctly, and HMRC needs enough detail to issue a proper code.

Three steps are worth taking in order:

  • Give your new employer the P45 from your last job, which carries your pay and tax to date.
  • Complete a starter checklist if you do not have a P45, so your employer can report the right details to HMRC.
  • Check your code through your personal tax account on GOV.UK, which shows the code in use alongside the income HMRC expects you to have.

If the code has not changed after a few pay periods and your employer has sent the information across, contacting HMRC directly is the next step. The helpline runs Monday to Friday and is closed on bank holidays.

Before you check your X tax code

An X tax code is a holding position, not a verdict on your tax. It tells your employer to calculate each payday on its own, which is why the figures can look wrong in a way a normal code would have quietly smoothed over.

The characters before the X still decide how much tax-free income you get, so 1257L X and 0T X produce very different payslips.

The code is temporary, and what ends it is information reaching HMRC. Handing your employer a P45 or a completed starter checklist is what sets that in motion.

Your payslip shows the code you are on now, and your personal tax account shows what HMRC currently believes about your circumstances. Where the two do not match, that is the gap to close.

The guide to how tax codes are put together explains what the rest of the characters mean.

Key Takeaways

  • An X tax code is an emergency code that tells your employer to calculate tax on each pay period in isolation.
  • The X controls the method, while the characters before it decide how much personal allowance you receive.
  • A 1257L X code still gives the standard allowance, whereas a 0T X code gives none at all.
  • Overpayments build up when pay varies or the code covers only part of the year, because unused allowance does not carry forward.
  • UK states that after starting a new job, a code update can take up to 35 days.
  • Providing a P45 or a completed starter checklist is what prompts HMRC to issue a correct code.

Those points cover the mechanics of the code itself. The questions below deal with what happens afterwards.

Common X tax code questions

The answers below follow published GOV.UK guidance on tax codes, emergency codes and overpaid tax.

Will HMRC refund overpaid tax from an X code automatically?

Where the tax code is corrected within the same tax year, the refund normally comes through your pay. Your employer applies the new code, the calculation catches up, and the overpayment is returned as part of your net pay rather than as a separate payment.

If the tax year ends first, GOV.UK says HMRC writes to you: either a P800 tax calculation, or a Simple Assessment. Those letters go out between June and March of the year that follows, and only to people who are employed or drawing a pension.

No route starts until HMRC holds the correct information, which is the part within your control. Your personal tax account shows what is currently on record.

If no letter arrives and you believe you have overpaid, GOV.UK sets out a separate way to claim a refund, so it is worth checking rather than assuming the correction happens on its own.

Can I have an X tax code on one job and a normal code on another?

Yes. A second job or pension is coded separately from your main employment, which is why GOV.UK lists codes such as BR and D0 as ones typically used where there is more than one job or pension.

An X can therefore appear against one source while another runs on a cumulative code. That reflects incomplete information for one of them rather than a problem with your overall tax position.

Checking each code separately is sensible, because a correct code on one payslip tells you nothing about the other. Your personal tax account covers the jobs and pensions HMRC holds for you, so it is the quickest way to see them side by side.

Does an X tax code apply to the State Pension?

It can. GOV.UK lists starting to receive the State Pension among the circumstances that trigger an emergency code, because it changes your total taxable income and HMRC’s records may not reflect it straight away.

The State Pension is paid without tax deducted. Where you have other income, tax due on the pension is collected through the code applied to that other source, such as a private pension or employment income, and an emergency code there affects the collecting source.

Where the State Pension is your only income and it takes you above your allowance, the position is different. GOV.UK lists having to pay tax on your State Pension as a Simple Assessment case, which is settled by a letter after the year ends rather than through a code.

Is a 1250LX tax code still valid?

Not for current tax years. The 1250LX tax code reflected a personal allowance of £12,500, which applied in the 2019/20 and 2020/21 tax years.

Finding it on an old payslip or P45 from those years is entirely normal. Finding it on a current payslip points to a code that has not been updated, which is worth raising with your employer or HMRC.

The equivalent code now carries the current allowance figure, which is why 1257L X appears in its place.

Do I need to file a Self Assessment return to sort out an X tax code?

A tax return is not the route for this. PAYE codes are corrected through the PAYE system, using a P45, a starter checklist or an update through your personal tax account.

Self Assessment becomes relevant where you already have to file for another reason, such as self-employment or untaxed income. GOV.UK notes that if you are registered for Self Assessment, an underpayment or overpayment is picked up through your bill rather than by a separate letter.

Filing purely to recover PAYE overpayments is not the expected route. HMRC checks the year once it closes, though GOV.UK also explains how to claim a refund yourself if no calculation letter reaches you.

Written by: Tax Rebate Services Editorial Team
Reviewed by: Tony Shanks, qualified Taxation Technician (ATT)

This page provides general information, not personalised tax advice. Tax rules and allowances change — for help with your own circumstances, speak to a qualified adviser or HMRC.

Reviewed by Tony Shanks, Operations Director Tax Rebate Services and member of Association of Tax Technicians (ATT)
Your tax code

Anyone who is employed, or has income through PAYE, is given a tax code by the tax office (HMRC)…

Checking your tax code is a valuable exercise to make sure the right amount of tax is being deducted from your income…

Tax Code Meanings Explained

From emergency and BR codes to K, D0 and 1257L, every tax code means something different. These FAQs explain the most common codes and how each one affects your take-home pay.

An emergency tax code is used by your employer because your correct tax code is not available…

BR stands for Basic Rate and means all your income from this source is taxed at 20%…

Tax codes by tax year

Tax codes can change from one tax year to the next. These FAQs set out the standard tax codes for each year so you can confirm yours is correct.

The 2025/2026 tax year starts on the 6th April 2025 bringing with it changes to the way some people pay tax…

The 2024/2025 tax year starts on the 6th April 2024 bringing with it changes to the way some people pay tax…

The most common 2021-22 tax code for Basic Rate taxpayers with one source of income is: 1257L…

The 2023/2024 tax year starts on the 6th April 2023 bringing with it changes to the way some people pay tax…
Your tax code is used by your employer and/or pension provider to calculate the amount of income tax to deduct…

The 2026/2027 tax year starts on the 6th April 2026 bringing with it changes to the way some people pay tax…