SD0X Tax Code: Meaning, 21% Rate, and How to Fix It

The SD0X tax code tells your employer or pension provider to deduct Scottish income tax at the intermediate rate of 21% from every pound they pay you, with no personal allowance applied and no running total kept across the year. HMRC usually assigns it to a second income source, such as a second job or a pension paid alongside employment, when it doesn’t yet have enough information to issue a normal cumulative code. It’s often temporary, and if you stay on it longer than you should, you’re likely paying more tax than you owe.

What Each Part of SD0X Means

The code breaks into three instructions to payroll software.

The S identifies you as a Scottish taxpayer. Your income tax rates and bands are set by the Scottish Parliament under powers granted by the Scotland Act 2016, and HMRC decides your status based on where your main home is, not where you work.1GOV.UK. Understanding Your Employees’ Tax Codes – What the Letters Mean

The D0 instructs payroll to tax all income from this source at the Scottish intermediate rate of 21%.1GOV.UK. Understanding Your Employees’ Tax Codes – What the Letters Mean This differs from the rest-of-UK D0, which applies the 40% higher rate. Because Scotland has more bands, the D-code numbering runs further: SD0 is intermediate, SD1 higher, SD2 advanced, SD3 top. The code assumes your personal allowance is already being used against another income source, so no tax-free amount is applied here.

The X signals an emergency or non-cumulative basis. Instead of tracking your total earnings since 6 April, payroll treats each pay period on its own.2GOV.UK. Tax Codes – Emergency Tax Codes The X suffix applies when pay dates vary; W1 (weekly) and M1 (monthly) do the same job for regular schedules. The practical effect is that no mid-year corrections happen automatically, so any overpayment or underpayment sits unresolved until your code is updated or the year-end reconciliation runs.

Why HMRC Has Put You on SD0X

The most common trigger is holding two jobs at the same time. Your main employer uses a standard code (often S1257L) to apply the personal allowance and lower bands, and a second employer receives SD0X so that all pay from that source is deducted without any allowance at what HMRC estimates is the right flat rate. When HMRC doesn’t yet have reliable income figures for you, the X suffix is added to stop the system making year-to-date adjustments based on incomplete data.

Pensioners who also work often see SD0X on their pension income. HMRC allocates the personal allowance to employment earnings and tells the pension provider to deduct at 21% on every payment. The same logic runs in reverse when the pension is your main income and a part-time job is secondary.

Starting a new job without a P45 from your previous employer is another common trigger. If the new employer can’t confirm your prior earnings, the system defaults to an emergency code until enough information comes through.3GOV.UK. Tax Codes – Why Your Tax Code Might Change Moving to Scotland from elsewhere in the UK can produce the same result while HMRC verifies your new address.

One boundary worth flagging: the S prefix should only appear if your main home is in Scotland. If you’ve recently moved or split your time across the UK and think Scotland isn’t actually where you spend most of the year, that’s a separate correction to raise with HMRC, because the wrong prefix can leave you paying the wrong rates altogether.4GOV.UK. Income Tax in Scotland – If You Live in More Than One Home

Whether 21% Is Actually the Right Rate for You

The 21% flat deduction only makes sense if your total income across all sources really does sit in the intermediate band once your allowance is used up on your main job. The Scottish rates for the 2026-27 tax year, assuming the standard personal allowance of £12,570, are:5Scottish Government. Scottish Income Tax 2026 to 2027 – Technical Factsheet

  • Personal allowance up to £12,570: 0%
  • Starter rate £12,571 to £16,537: 19%
  • Basic rate £16,538 to £29,526: 20%
  • Intermediate rate £29,527 to £43,662: 21%
  • Higher rate £43,663 to £75,000: 42%
  • Advanced rate £75,001 to £125,140: 45%
  • Top rate over £125,140: 48%

If your combined earnings actually push into the higher band above £43,663 of taxable income, HMRC should eventually move you to SD1 or SD1X. If your total income stays below the intermediate threshold, you’re probably overpaying at 21% when some of that money should have been taxed at 19% or 20%. Earnings over £100,000 also lose £1 of personal allowance for every £2 above that threshold, disappearing entirely at £125,140.5Scottish Government. Scottish Income Tax 2026 to 2027 – Technical Factsheet

How to Check and Change the Code

The fastest way to see your current code is through your Personal Tax Account on GOV.UK, where you can also view coding notices and update your estimated income.6GOV.UK. Personal Tax Account – Sign In or Set Up The HMRC app does the same from your phone.7GOV.UK. Download the HMRC App Both need a Government Gateway login.

To ask for a change, have your National Insurance number and a realistic estimate of your total expected income for the year across all sources. A P45 from a former employer or a P60 from the end of the last tax year helps HMRC match records. Payslips are useful too, because the employer PAYE reference printed on them lets HMRC route the updated code to the right payroll team.

Once HMRC accepts the change, it issues a P2 coding notice confirming the new code and how it was calculated.8HM Revenue and Customs. PAYE11030 – Coding – P2 Notice of Coding The updated code goes electronically to your employer, and the new deduction should appear on your next payslip if it lands before payroll’s cutoff. If you’d rather speak to someone, the Income Tax helpline (0300 200 3300) can process the change directly.

Getting Overpaid Tax Back

Staying on SD0X for several months often means you’ve overpaid, especially if your actual income didn’t warrant 21% on every pound from that source. There are two ways the money comes back.

If HMRC corrects your code during the tax year, the replacement cumulative code factors in what you’ve already overpaid. Your next few payslips will show smaller deductions until the system catches up. That’s the main reason to sort the code sooner rather than later: the refund arrives through normal payroll instead of after the year ends.

If the tax year closes before the correction happens, HMRC runs a reconciliation and sends a P800 letter telling you whether you overpaid or underpaid. If you’re owed money, you can claim it online through your Personal Tax Account or the HMRC app. Bank transfer refunds usually arrive within five working days; a cheque takes about six weeks. In some cases, HMRC sends a cheque automatically within 14 days of the letter without any action from you.9GOV.UK. Tax Overpayments and Underpayments – If You’re Due a Refund

Don’t assume a P800 will always arrive. If you think you’ve overpaid and haven’t heard from HMRC after the tax year ends, contact them. You can reclaim overpaid tax going back four years.

Splitting Your Personal Allowance Between Two Jobs

If both your jobs pay less than the personal allowance individually, you can ask HMRC to split the £12,570 between them. That avoids the situation where one employer uses the whole allowance and the other applies a flat-rate code like SD0X to every pound. The split works best when pay from both jobs is steady. If your hours fluctuate, the split can create its own over- or underpayment issues, so check periodically that it still matches your earnings.

Where one job clearly pays the majority of your income, leaving the full allowance on the main job is usually simpler. The important thing is that HMRC knows which employer is your primary one. If the allowance ends up on the smaller job and the higher-paying one gets SD0X, you’ll have a cash flow problem even if the total tax over the year comes out about right.

Other Scottish D-Codes You Might See

SD0X sits within a family of Scottish flat-rate codes. Each corresponds to a band and carries the same basic instruction: tax all income from this source at the specified rate with no personal allowance.1GOV.UK. Understanding Your Employees’ Tax Codes – What the Letters Mean

  • SD0: Scottish intermediate rate (21%)
  • SD1: Scottish higher rate (42%)
  • SD2: Scottish advanced rate (45%)
  • SD3: Scottish top rate (48%)

Any of these can appear with a W1, M1, or X suffix on a non-cumulative emergency basis. Without a suffix, the code runs cumulatively, so payroll tracks year-to-date earnings and adjusts each pay period. Seeing SD0 without the X is generally a better place to be, because mid-year corrections happen automatically. The X is what stops those adjustments and is usually a sign HMRC still needs information before issuing a permanent code.