How Our Tax Calculators Work: Methodology (2026/27)
We publish our full calculation logic, data sources and test cases because a tax calculator you cannot verify is not a tool you can trust. Everything below is reproducible. Calculators support 2026/27 (current) and 2025/26 (historical).
Data sources (2026/27, with 2025/26 where they differ)
- National Insurance thresholds and rates: HMRC / gov.uk – NI rates
- Income tax rates and personal allowance: gov.uk – Income Tax rates
- Scottish income tax bands: Scottish Government – rates and bands
- Capital Gains Tax rates: gov.uk – CGT rates
- Inheritance tax nil rate band, exemptions and taper: gov.uk – Inheritance Tax
- Tax refund time limits: gov.uk – Claim a tax refund
1. Self-Employed National Insurance Calculator
Input: annual self-employed profit (net of expenses). Output: Class 2 status and Class 4 liability.
Class 2 (2026/27, 2025/26 in brackets):
profit < SPT → £0 due; voluntary £3.65/week (£3.50 in 2025/26) available
SPT ≤ profit < £12,570 → £0 (NI credits earned)
profit ≥ £12,570 → £0
SPT = £7,105 in 2026/27 · £6,845 in 2025/26
Class 4 (unchanged for both years):
profit ≤ £12,570 → £0
£12,570 < profit ≤ £50,270 → 6% × (profit − £12,570)
profit > £50,270 → 6% × £37,700 + 2% × (profit − £50,270)
= £2,262 + 2% × (profit − £50,270)
Total due = Class 2 (£0 for most) + Class 4
Notes: applies to sole traders only (limited company directors pay Class 1). Class 4 is not payable if you are over State Pension age at the start of the tax year.
2. Inheritance Tax Gift Calculator
Inputs: gift amount, years between gift and death, estate value at death (optional), exemption flags. Output: chargeable amount and IHT due.
Step 1 Recipient is spouse/civil partner or UK charity → exempt, £0.
Step 2 Annual exemption: £3,000 (unused allowance rolls over one year, max £6,000).
The £250 small-gifts exemption applies only when the annual exemption
is used elsewhere (HMRC: the two are mutually exclusive per recipient).
Step 3 chargeable_gift = max(0, gift − exemptions − wedding-gift allowance)
Step 4 total = max(0, chargeable_gift + estate − £325,000 nil rate band)
Step 5 Taper relief (only when total > 0):
0–3 yrs 100% | 3–4 yrs 80% | 4–5 yrs 60% | 5–6 yrs 40% | 6–7 yrs 20%
Step 6 IHT = total × 40% × taper%
Wedding-gift allowances: child £5,000 · grandchild/great-grandchild £2,500 · between the couple £2,500 · anyone else £1,000. Gifts made more than 7 years before death are fully exempt.
3. Overpaid Tax (Refund) Calculator
Inputs: annual salary, tax deducted, tax code, location, optional pension contributions. Output: estimated overpayment or underpayment.
Personal allowance: £12,570; tapered by £1 per £2 of income above £100,000 (zero at £125,140). England / Wales / NI (on taxable income): ≤ £37,700 → 20% | £37,700–£125,140 → 40% | above → 45% Scotland 2025/26 (on total income, standard PA £12,570): Starter £12,571–£15,397 19% | Basic £15,398–£27,491 20% Inter £27,492–£43,662 21% | Higher £43,663–£75,000 42% Advanced £75,001–£125,140 45%| Top over £125,140 48% Estimate = expected tax − tax already deducted (+ = likely overpaid, − = likely owes). This is an estimate only; HMRC's P800 / Simple Assessment is the only authoritative figure.
Verification: 24 test cases, all passing
Every calculator's JavaScript is tested against hand-calculated expectations. Representative cases:
| Test | Input | Expected | Result |
|---|---|---|---|
| NI Class 4 main rate | profit £30,000 | £1,045.80 (6% × £17,430) | ✅ |
| NI Class 4 upper band | profit £60,000 | £2,456.60 (£2,262 + 2% × £9,730) | ✅ |
| IHT below NRB | gift £10,000, 4–5 yrs, estate £0 | £0 – Exempt | ✅ |
| IHT taper 6–7 yrs | gift £400,000, estate £0 | £5,760 (40% × 20%) | ✅ |
| IHT spouse gift | any amount to spouse | £0 – Exempt | ✅ |
| Overpaid estimate | salary £30,000, tax paid £4,000 | overpaid ~£514 | ✅ |
| Scotland bands | salary £30,000 | £3,482.82 | ✅ |
| PA taper | salary £120,000 | £39,432 | ✅ |
The full regression suite (24 cases) ships with the site and can be re-run at any time.
Boundary value tests (NI calculator)
Threshold edges are the most common source of errors, so we test them explicitly. Expected results below are for 2026/27 (2025/26 SPT was £6,845, tested too).
| Input (profit) | Expected result (2026/27) |
|---|---|
| £0 | Class 2 voluntary option shown; Class 4 = £0 |
| £7,104 | Below SPT → Class 2 voluntary option; Class 4 = £0 |
| £7,105 | SPT reached → Class 2 = £0 (credits); Class 4 = £0 |
| £12,569 | Below LPL → Class 4 = £0 |
| £12,570 | LPL reached → Class 4 = 6% × £0 = £0 |
| £50,270 | Top of main band → Class 4 = £2,262 |
| £50,271 | Above UPL → £2,262 + 2% × £1 = £2,262.02 |
| Empty / invalid input | Friendly prompt, no crash, no false result |
| Decimals (e.g. 12,345.67) | Accepted and calculated precisely |
| Very large values | Computed per the formula (no overflow) |
How we keep figures accurate
- Rates updated every April when the new tax year starts (2025/26 → 2026/27 etc.)
- Every page shows its last review date
- Reported errors are corrected within 48 hours (report an error)
- All calculators point to official sources rather than guesswork