You put each employee's tax code into your payroll software, and it works out the Income Tax to deduct from every payment. A code is a number followed by a letter, such as 1257L, sometimes with a prefix or a suffix.
How a code is built
Whatever the code, the tax you deduct in any pay period cannot be more than half of the employee's pay before tax.
Set the code for a new starter
If the employee gives you a P45 from their last job, use the tax code on it. If they have no P45, or left their last job before 6 April 2025, ask them to complete a starter checklist. Their answers give you a starter declaration, which sets the code.
A P45 from the current tax year also carries a declaration: B, or C if its code includes BR, 0T, D0 or D1. Put the code and declaration on the FPS you send on or before the employee's first payday.
Replace emergency codes when HMRC sends the right one
When the right code arrives, update your payroll before the next payday and add any previous pay and tax that comes with it, so tax is again worked out over the whole year.
Update codes when HMRC changes them
HMRC emails you when an employee's code changes. You can find the new code, sometimes called a P6, in PAYE Online under tax code notices, in the PAYE Desktop Viewer or in your payroll software. Update the employee's record before you next pay them.
Between January and March, HMRC tells you about codes for the tax year starting on 6 April. If a code is not changing, HMRC does not contact you and you carry it forward, leaving off any W1, M1 or X. A code that reaches you too late for the tax year applies in the next one.
Deal with employees' questions
A code changes when the employee's circumstances do: for example, when they start a second job or a pension, receive a taxable state benefit, claim Marriage Allowance, or have a company benefit added or removed. You cannot change a code yourself. If an employee thinks theirs is wrong, they should check and update their details with HMRC, which usually tells them and you the new code within 15 working days.
Legal basis
Primary legislation and key regulations