Skip to content
InvestmentCalculator
All calculators

Self-employed tax calculator — methodology

The two bases a self-employed bill is charged on, Class 4 band by band, why Class 2 is a status rather than a charge, and the five things the calculation does not model.

Open the self-employed tax calculator

A self-employed person owes two things on one profit figure, and they are not charged on the same amount. Income tax is charged on the profit together with every other kind of taxable income the person has; Class 4 National Insurance is charged on the profit and nothing else. Blending them into a single rate — which is what a calculator returning one number does — is wrong in both directions at once, and wrong by a different amount for anybody who also has a job.

The calculation, in order

  1. Start from the profit you entered: turnover less allowable expenses and capital allowances. This is an input, not a result. Nothing in this software derives it.
  2. Add other taxable income. That total is the income tax base.
  3. Deduct the personal allowance that applies to that total. Above £100,000 it tapers, so this step runs through the income tax engine rather than subtracting a constant.
  4. Tax the remainder band by band at the schedule for the chosen region. Income tax on this kind of income is devolved to Scotland.
  5. Charge Class 4 National Insurance on the profit alone, on UK-wide rates. Other income does not consume the lower profits limit and cannot push the profit past the upper one.
  6. Report the Class 2 status. Nothing compulsory is added.
  7. Subtract both from the income. That is what is left.
income tax base = profit + other income
taxable income  = income tax base − personal allowance(income tax base)
income tax      = schedule[region].earned applied to taxable income

class 4 base    = profit                        (never the income tax base)
class 4         = mainRate  × (min(profit, upper limit) − lower limit)
                + upperRate × max(0, profit − upper limit)

left over       = profit + other income − income tax − class 4

The Class 4 line is written out to show the shape of the charge, not because the page computes it: class4NI does, and the calculator renders the bands that function returns.

Rates, thresholds and allowances

Read from the rules files this calculator runs on
Figure2025/262026/27
Personal allowance£12,570£12,570
Personal allowance taper starts at£100,000£100,000
Class 4 lower profits limit£12,570£12,570
Class 4 upper profits limit£50,270£50,270
Class 4 main rate6.00%6.00%
Class 4 rate above the upper profits limit2.00%2.00%
Class 2 small profits threshold£6,845£7,105
Class 2 weekly voluntary rate£3.50£3.65
Income tax — England, Wales and Northern IrelandBasic rate 20.00% from £0; Higher rate 40.00% from £37,700; Additional rate 45.00% from £125,140Basic rate 20.00% from £0; Higher rate 40.00% from £37,700; Additional rate 45.00% from £125,140
Income tax — ScotlandStarter rate 19.00% from £0; Basic rate 20.00% from £2,827; Intermediate rate 21.00% from £14,921; Higher rate 42.00% from £31,092; Advanced rate 45.00% from £62,430; Top rate 48.00% from £125,140Starter rate 19.00% from £0; Basic rate 20.00% from £3,967; Intermediate rate 21.00% from £16,956; Higher rate 42.00% from £31,092; Advanced rate 45.00% from £62,430; Top rate 48.00% from £125,140

Every Class 4 and Class 2 figure in this table is UK-wide. National Insurance is not devolved, so the only row a Scottish reader sees a different answer from is the income tax schedule.

Class 2, and the annual figure that does not exist

Class 2 stopped being a compulsory charge. At or above the small profits threshold a self-employed person is credited with a qualifying year towards the state pension without paying anything; below it they earn no automatic credit but may pay voluntarily to protect their record. So the compulsory Class 2 figure is zero, and the calculator shows the zero rather than dropping the line — “do I still have to pay Class 2?” is a question a blank space does not answer.

The voluntary cost is where this gets awkward, and it is worth being exact about why. HMRC publishes a weekly Class 2 rate and no annual figure at all. That is recorded in packages/tax-core/VERIFICATION.md, in the same section that documents the opposite trap for Class 1: HMRC’s published annual National Insurance thresholds are not the weekly ones multiplied by 52, the two disagree, and the annual figure is the one that governs an annual calculation. This package uses HMRC’s annual figures wherever one is published, precisely because multiplying out is unsafe.

For Class 2 there is nothing to reconcile, because there is nothing published to reconcile against. The annual voluntary cost this software reports is therefore the weekly rate times 52, computed here, not a figure anyone can check on gov.uk. The calculator shows the weekly rate, the multiplier and the product on separate lines and labels the product as its own arithmetic, which is the only honest way to present a number whose source is a multiplication rather than a publication. Contributions are due for each week of self-employment, so a part year is less than the full-year figure.

Sources

The rates, thresholds and allowances used by this calculator were verified against gov.uk on . That covers the published rates, thresholds and allowances this page calculates with. It does not verify any figure the page produces for you: that is arithmetic on verified inputs. Parts of the engine behind it are checked against HMRC’s own published worked examples, which tests the method on a small number of scenarios rather than your answer, and most of the test suite derives its expected values by hand. That check was carried out automatically and no named person has signed it off yet.

The verification log, as recorded in the source repository
Figures coveredVerified onVerified byHuman sign-off
2025-262026-08-12Automated verification (Claude Opus 5)not yet signed off
2026-272026-08-12Automated verification (Claude Opus 5)not yet signed off
2020-21 to 2024-25 — pension annual allowance only2026-08-12Automated verification (Claude Opus 5)not yet signed off
2025-26 and 2026-27 — share identification window only2026-08-13Automated verification (Claude Opus 5)not yet signed off
2025-26 and 2026-27 — pension relief at source only2026-08-13Automated verification (Claude Opus 5)not yet signed off
2025-26 and 2026-27 — inheritance tax only2026-08-13Automated verification (Claude Opus 5)not yet signed off
2025-26 and 2026-27 — family tax, LISA and pension-access additions2026-08-13Automated verification (Codex)not yet signed off
2025-26 and 2026-27 — student loan deductions only2026-08-18Automated verification (Claude Opus 5)not yet signed off
2025-26 and 2026-27 — property acquisition tax only2026-08-18Automated verification (Claude Opus 5)not yet signed off
2025-26 and 2026-27 — automatic enrolment only2026-08-18Automated verification (Claude Opus 5)not yet signed off
2025-26 and 2026-27 — State Pension age and rates only2026-08-18Automated verification (Claude Opus 5)not yet signed off

The log covers the rules directory, not only this calculator. 8 rows are deliberately narrow — 2020-21 to 2024-25 — pension annual allowance only; 2025-26 and 2026-27 — share identification window only; 2025-26 and 2026-27 — pension relief at source only; 2025-26 and 2026-27 — inheritance tax only; 2025-26 and 2026-27 — student loan deductions only; 2025-26 and 2026-27 — property acquisition tax only; 2025-26 and 2026-27 — automatic enrolment only; 2025-26 and 2026-27 — State Pension age and rates only — and they verify the figures named there and nothing else. Those tax years are not modelled by any calculator on this site: the years this page can compute are the ones its tax-year selector offers, and no others.

A verification goes stale the moment one of its sources is updated past the date above. If a source below carries a later date than this stamp, trust the source.

Rates, thresholds and allowances on this page are taken from material published by HM Revenue & Customs and the Scottish Government. Contains public sector information licensed under the Open Government Licence v3.0.

Five things this calculation does not model, stated here rather than buried

  • Student loan and postgraduate loan repayments. They are collected through self assessment with the income tax and Class 4 shown here, and nothing in this software models them — no plan types, no thresholds, no rates. The consequence is specific and one-directional: for anyone repaying, the “left over” figure is too high. That is why the calculator says so against the figure itself and not only here.
  • Pension contributions. This page passes computeTaxPosition no contribution, so its relief-at-source band extension — the mechanism by which a contribution extends the basic-rate band and shelters higher-rate income — never runs here. A self-employed person paying into a personal pension is shown more income tax than they owe, and there is no field to correct it with. The pension tax relief calculator works out the band extension. Class 4 is genuinely unaffected: pension contributions do not reduce it.
  • The profit. Turnover, allowable expenses, capital allowances, the trading allowance, use-of-home and vehicle claims and losses brought forward are all outside this software. A calculator cannot tell a turnover figure from a profit one, so entering the wrong one produces a confident answer with no symptom.
  • Payments on account. What is computed is a tax-year liability. HMRC bills a balancing payment plus two instalments towards the following year, each half of this year’s income tax and Class 4, so a first January demand can be about one and a half times the figure here.
  • Class 1 National Insurance and the annual maximum. Employment income entered in the other-income box feeds income tax only; the Class 1 an employer deducts is not computed, and neither are the annual maximum rules that can cap total National Insurance across classes in one year.

This site publishes information, not advice. It cannot know your circumstances, it does not recommend any product, provider or course of action, and nothing on it is a personal recommendation. For a decision that matters, check the figures against gov.uk or speak to an accountant or a regulated adviser.

Every calculation runs in your browser. There is no application server and no database, so nothing you type is transmitted or stored. A share link is the exception: it carries your figures in the URL.

Found an error? It belongs on the corrections log, and how to report one is on that page.