Your gross salary is the figure on your contract — before any tax, NI, pension or student loan comes off. The number you brag about at parties, not the number actually in your bank account.
If you tick "5% pension", we subtract that first — pension contributions normally come out before tax is calculated, so they reduce your taxable income.
taxable_income = gross_salary − pension_contribution
Apply the income tax bands.
The first £12,570 you earn is your personal allowance — completely tax-free. Everything above it is taxed in three bands:
taxable = 40,000 − 12,570 = 27,430
income_tax = 27,430 × 0.20 = £5,486
Tick Scotland and we swap in Scottish rates — six bands ranging from 19% (starter) up to 48% (top rate above £125,140).
Add National Insurance.
NI runs on its own thresholds, separate from income tax. For most employees in 2026/27 (Class 1):
Yes, the rate drops at higher incomes — that's why someone on £200k pays a lower marginal NI rate than someone on £40k. UK tax design is, to put it politely, eccentric.
Optionally, student loan.
If you tick the student loan chip we apply Plan 2 rates — most common for English & Welsh graduates from 2012 onwards. You pay 9% of everything you earn above £27,295.
loan = (40,000 − 27,295) × 0.09 = £1,143
Plans 1, 4, 5 and postgraduate loans use different thresholds. We don't model those yet — coming soon.
Subtract everything.
What's left is your take-home pay. Then we just divide by 12 or 52 if you wanted monthly or weekly figures.
Tax codes — 1257L, K475, BR…
Your tax code tells your employer how much tax-free allowance you get. The most common is 1257L — the number is your allowance ÷ 10, so 1257 means £12,570. The letter modifies how it's applied.
If you enter a code, we use it to override the default allowance. Here's what we recognise:
By law, PAYE deductions under a K code can't exceed 50% of your gross pay in any pay period. We apply this cap automatically, so an extreme K code on a small salary won't show absurd results.
Dividend tax — for directors & investors.
If you're a limited company director paying yourself via dividends (or you hold shares outside an ISA), dividends sit on top of your other taxable income and get their own rates.
Two allowances combine before any dividend tax kicks in: any unused personal allowance (£12,570 less anything your salary uses) plus a separate £500 dividend allowance. Above that:
Note these are the April 2026 rates — the basic and higher rates were both increased by 2 percentage points in the 2025 Autumn Budget.
salary_tax = 0 (salary uses entire PA)
pa_left = max(0, 12,570 − 12,570) = 0
taxable_div = 40,000 − 0 − 500 = 39,500
# Stack on top of salary, see which bands
basic_room = 50,270 − 13,070 = 37,200
in_basic = 37,200 × 0.1075 = £3,999
in_higher = 2,300 × 0.3575 = £822
total_div_tax = £4,821
One nice quirk: dividends aren't subject to National Insurance, which is why the salary-plus-dividends combo has historically been popular for company directors.
Self-employed? Class 4 NI applies.
Toggle Self-employed at the top of the calculator and the salary field becomes "Trading profit (after expenses)" — that's your business income minus allowable costs.
Income tax works the same way as employees (same bands, same personal allowance). What changes is National Insurance: you pay Class 4 NI instead of Class 1, at slightly lower rates:
income_tax = (40,000 − 12,570) × 0.20 = £5,486
class_4_ni = (40,000 − 12,570) × 0.06 = £1,646
take_home = 40,000 − 5,486 − 1,646 = £32,868
We don't model Class 2 NI (the small flat-rate weekly contribution) since it's now voluntary for most sole traders below the small profits threshold and represents roughly £180 a year if paid voluntarily.
The £100k tax trap.
Once your total income passes £100,000, your personal allowance starts tapering away — you lose £1 of allowance for every £2 you earn above £100k. By the time you hit £125,140, the entire £12,570 PA is gone.
if income > 100,000:
reduction = (income − 100,000) ÷ 2
effective_PA = max(0, 12,570 − reduction)
Because you're losing tax-free allowance and being taxed at the higher rate on every extra pound, the effective marginal tax rate between £100k and £125,140 is 60% — sometimes called the "60% tax trap." Add NI and student loan and it can creep north of 70%.
Many people in this band make additional pension contributions or salary sacrifice arrangements specifically to bring their adjusted income back below £100k. The tax saving can be enormous — every £100 of pension contribution in this zone effectively costs you about £40.
The calculator applies this taper automatically based on your gross salary plus any dividends — no toggle needed.