Skip to main content

How HMRC Uses Payroll Data to Calculate Your Tax (RTI Explained)

James Holloway, CTA9 min read
RTIHMRCTax codesDynamic coding2026/27

Every payslip in the UK triggers a hidden message to HMRC. It travels electronically, lands in HMRC's systems within hours, and feeds an algorithm that decides what tax code you should be on next month. The system is called Real Time Information, or RTI. Most people only meet it when their tax code changes unexpectedly. This guide explains what is going on behind the scenes, why your code can change mid-year, and how to interpret the letters HMRC sends. Updated for 2026/27.

Last updated: 5 May 2026.

Want to check if your own payslip adds up?

Run a free payslip check now
RTI flow diagram: employer FPS to HMRC to revised tax code
RTI flow: employer Full Payment Submission to HMRC to revised tax code.

What is RTI?

RTI (Real Time Information) is the system HMRC introduced in 2013 to replace the old paper-based "P14 / P35" annual reporting. Under RTI:

The system means HMRC has a near-real-time picture of your earnings across all your PAYE jobs. They can spot under- and over-payments long before the tax year ends.

What an FPS contains

Each FPS line for an employee includes:

If anything changes - new tax code, started leave, took a bonus - the FPS reflects it. Errors in the FPS show up on your personal tax account at gov.uk.

Dynamic coding: why your code changes mid-year

Before 2017, tax codes only changed once a year (for the new tax year) or after a manual review. Since 2017, HMRC uses "dynamic coding" - they recalculate your code whenever significant data changes.

The triggers most likely to change your code mid-year:

You receive a coding notice (P2) by post or in your personal tax account. The new code applies from the next FPS your employer files.

Worked example: dynamic coding mid-year (2026/27)

You earn £45,000 with code 1257L. In month 5 (August), you start a £15,000-a-year evening side job under PAYE. The second employer reports their first FPS to HMRC.

  1. HMRC's algorithm sees combined annual income forecast at £60,000
  2. £60,000 - £50,270 = £9,730 in the higher-rate band
  3. Higher-rate tax: £9,730 x 40% = £3,892
  4. Basic-rate tax: £37,700 x 20% = £7,540
  5. Total expected income tax: £11,432
  6. To collect this through PAYE, HMRC keeps your main job on 1257L (taking 20% on most of it) and applies a D0 code to the second job (taking 40% on all of it)
  7. You receive two coding notices within days of starting

If you only earn £15,000 from job two for half the year (£7,500 actual), HMRC will reconcile via P800 at year end and refund any over-deduction. The dynamic system over-corrects deliberately to avoid underpayment.

Worth knowing

Dynamic coding is why your code can change without you doing anything. HMRC's view of your annual income shifts as new RTI data arrives. The codes are best understood as forecasts, not facts. If they are wrong, log into your personal tax account and update your "expected income" figures.

What HMRC's letters mean

Each year you might receive several coding letters. Decoding them:

The P2 is the most important to read. It lists each piece of the calculation: personal allowance, deductions for benefits, deductions for previous underpayments, additions for marriage allowance, and so on. The total becomes your numeric tax code with letter suffix.

Reading a P2 line by line

A typical 1083L P2 might say:

Your "tax code" is shorthand for "your real tax-free amount divided by 10".

Why your tax code might change suddenly

The most common patterns we see at PayslipIQ:

If you do not understand the change, the P2 is the source of truth. Read it slowly.

Spotting RTI errors before they hit your bank balance

A few sanity checks every couple of months:

If you spot a mismatch, the cause is almost always one of three things:

The fix is a phone call to HMRC on 0300 200 3300, or a webchat in your tax account. Both can correct the data the same day.

Common mistake

If a former employer never marked you as a leaver, HMRC continues to assume you have two active jobs. A common symptom is a sudden BR or D0 code on what is actually your only employment. The fix requires the old employer to file a corrected FPS - chase them and HMRC at the same time.

RTI and student loans

Student loan repayments are reported in RTI in the same way as tax. The Student Loans Company sees the FPS and updates your balance roughly weekly.

If you switch from PAYE to Self Assessment, the SLC reconciles annually. If you have multiple PAYE jobs, the deduction is taken per pay period, per job - which can lead to small over-deductions that you can claim back from the SLC.

Read our student loan guide for plan-specific rates, or use our student loan calculator.

RTI and pensions

Employer pension contributions are reported in RTI but are not deducted from gross pay (employer-only). Employee contributions are reported and reduce gross taxable pay if it is a salary sacrifice or net pay arrangement.

This means HMRC sees your contribution levels and can adjust your code if you are a higher-rate taxpayer claiming relief at source. The "auto-relief" mechanism is gradually being rolled out for employers using RTI to flag higher-rate contributions.

How long until a tax code change reaches your payslip?

Once HMRC issues a P9, the timeline is:

In rare cases the FPS uses an old code if HMRC's notice arrives after the cut-off. The next month corrects it.

Frequently Asked Questions

Does HMRC see every payslip in real time?

Effectively yes. Your employer files a Full Payment Submission on or before each payday, and HMRC processes it within hours. Mid-month corrections are handled by an Earlier Year Update (EYU) or amended FPS.

Why did my tax code change without warning?

You should always receive a P2 notice in the post or online. If you did not, the most common reasons are: a benefit was payrolled, you started a second job, or HMRC corrected an earlier underpayment.

Can I refuse a tax-code change?

You can disagree, but you cannot refuse. The employer must apply the code HMRC issues. To dispute, contact HMRC and explain your view; they may issue a corrected code.

Does RTI affect Universal Credit?

Yes - DWP receives RTI data directly, and UC awards are calculated using each FPS. This is why your UC monthly award fluctuates if your pay date moves around within the assessment period.

How do I see my own RTI data?

Log into your personal tax account at gov.uk/personal-tax-account. The "Income from your employments" section shows the YTD totals reported to HMRC by each employer.

Sources

Ready to check your own payslip?

Enter your figures and get an instant AI-powered analysis. Free, private, no signup.

Check My Payslip Free

PayslipIQ provides educational information and estimated calculations only. It does not provide tax, legal, financial, payroll, accounting, pension, benefits or employment advice. Always verify your payslip, tax code, deductions and take-home pay with your employer's payroll department, HMRC, your pension provider, a qualified accountant, tax adviser or another appropriately qualified professional.

Related guides