A tax code tells your employer or pension provider how much tax-free pay to give you in each pay period under PAYE. The code is built from your personal allowance (£12,570 for most people), with adjustments for taxable benefits, untaxed income, underpaid tax and the Marriage Allowance. To read it, take the number, multiply by 10 and add 9: 1257L means £12,579 of tax-free pay for the year. The letter adds meaning: L is the standard allowance, M and N mean the Marriage Allowance is received or given, and K means you owe more than your allowance. This calculator builds the code, the tax-free pay and the tax on your salary.
How the calculation works
- Allowance = personal allowance ± Marriage Allowance (£1,260)
- Less taxable benefits, untaxed income and underpaid tax ÷ the rate used to collect it
- Tax code number = allowance ÷ 10, rounded down
- Tax-free pay = code number × 10 + 9
- Tax on salary = 20 % of the taxable pay up to the basic-rate band, then 40 % above it
Example
You earn £40,000 and have no adjustments. The allowance is £12,570, so your code is 1,257L. It gives £12,579 of tax-free pay a year, or £1,048.25 a month. The taxable pay is the rest of the salary, and the estimated tax is £5,484, an average rate of 13.7 %. If you had £600 of underpaid tax collected at 20 %, the allowance would fall by £3,000 for the year and the code would be lower.
Why it matters
A wrong code means you pay too much or too little tax during the year, and HMRC corrects it later with a refund or a bill. A code with a lower number can come from a company car, a second job or untaxed savings interest, and a higher number can come from the Marriage Allowance or a claim for work expenses. Checking the code against your payslip is the quickest way to catch an error.
Good to know
A T letter means other items are included in the calculation of your allowance. BR taxes all pay at the basic rate, D0 at the higher rate and 0T gives no allowance, and they are often used for a second job. Scottish codes start with an S and Welsh codes with a C. The estimate here uses the English rates, so a Scottish taxpayer’s tax will differ, and the 45 % rate and the taper above £100,000 are not modelled. National Insurance is separate.
In practice
Find your code on your payslip, your P45 or your personal tax account, and tell HMRC if your circumstances change. This tool is educational and is not tax advice.