Free calculator and guide · United Kingdom · National Insurance

UK self-employed National Insurance calculator: Class 4 and Class 2

If you're a self-employed sole trader in the UK, you pay National Insurance on your profits through Self Assessment. Type in your profits and the calculator works out Class 4 the way HMRC does: 6% on profits between £12,570 and £50,270, and 2% on anything above. It also tells you where you stand on Class 2, which nobody has had to pay since 6 April 2024.

General information, not tax advice. This page explains HMRC's own rules for a UK sole trader or partner with trading profits. It covers National Insurance only: not Income Tax. It doesn't cover the annual maximum if you're also an employee, Special Class 4 (examiners and similar), share fishermen, volunteer development workers, ministers of religion, landlords, or people who aren't UK resident. The calculator does arithmetic with your own figures. We have no affiliate links or deals with anyone mentioned here.
Private by design. The calculator runs entirely in your browser. Nothing you type is sent anywhere or saved: no cookies, no analytics, no tracking, and the page loads no third-party scripts. Close the tab and it's gone.

The short answer

The National Insurance calculator

Pick the tax year and type in your profits from self-employment for that year. It starts with a made-up example: £35,000 of profits in 2026 to 2027.

2026 to 2027 is the tax year we're in now. GOV.UK hasn't published the next year's figures yet.

Your income minus allowable expenses, from all your self-employment added up: the taxable profit on your Self Assessment return. For a loss, type a minus sign.

Leave this unticked if you reached State Pension age during the tax year: you still pay Class 4 for that whole year.

Your Class 4 National Insurance

Class 4 stepAmount
Your profits for 2026 to 2027
Your profits for 2026 to 2027£35,000.00
Lower Profits Limit (no Class 4 up to here)
Lower Profits Limit (no Class 4 up to here)£12,570
Profits over £12,570, up to £50,270
Profits over £12,570, up to £50,270£22,430.00
Main rate: 6% of £22,430.00
Main rate: 6% of £22,430.00£1,345.80
Class 4 National Insurance
Class 4 National Insurance£1,345.80

Class 4 National Insurance for 2026 to 2027: £1,345.80 (about 3.8% of your profits). You pay it through Self Assessment, with your Income Tax.

Income Tax is separate and isn’t included here.

Class 2

Nothing to pay: Class 2 is treated as paid. Your profits of £35,000.00 are over the £7,105 Small Profits Threshold for 2026 to 2027, so your National Insurance record is protected for the weeks you were self-employed, without paying anything.

The example's numbers are made up to show how it works; they aren't typical. Amounts are worked to the penny; your Self Assessment calculation is the final word.

This is not your whole tax bill. Income Tax is worked out separately on the same profits (after your Personal Allowance), and you pay it together with Class 4 through Self Assessment. If your bill is big enough, HMRC also asks for advance payments towards next year: our UK payments on account guide and checker explains when and how much.

1. Class 4: how it's worked out

The law sets Class 4 as the main Class 4 percentage of profits that exceed the lower limit but don't exceed the upper one, plus the additional percentage of profits above the upper limit (Social Security Contributions and Benefits Act 1992, s. 15). HMRC's manual puts it the same way (HMRC: NIM24045):

In the example above: £22,430.00 of profits is over £12,570, and 6% of that is £1,345.80. Nothing is over £50,270, so that's the Class 4 for the year.

2. Class 2 since 6 April 2024

Class 2 used to be a flat weekly amount that most self-employed people had to pay. The National Insurance Contributions (Reduction in Rates) Act 2023, s. 3 removed the requirement to pay it from 6 April 2024. HMRC: "liability to pay Class 2 NICs no longer exists" (NIM70300). What's left:

3. Rates and thresholds by tax year

From GOV.UK's table of National Insurance rates and allowances (GOV.UK: Rates and allowances: National Insurance contributions, tables 3.1 and 3.2). The contribution weeks are our count, as above.

Self-employed National Insurance by tax year
Tax yearLower Profits LimitUpper Profits LimitMain rateRate above the upper limitSmall Profits ThresholdClass 2 a weekWeeks
2026 to 2027£12,570£50,2706%2%£7,105£3.6552
2025 to 2026£12,570£50,2706%2%£6,845£3.5053
2024 to 2025£12,570£50,2706%2%£6,725£3.4552

4. HMRC's worked examples

HMRC's manual has two examples, using the 2018/2019 limits (£8,424 and £46,350) and rates (9% and 2%) (HMRC: NIM24051). Run through the same calculator code with those figures, they come out the same as HMRC's:

HMRC's Class 4 examples (2018/2019 figures)
ExampleProfitsClass 4 (main rate + above the upper limit)
Ms C Danvers£40,000£2,841.84
Mr D Blake£80,000£3,413.34 + £673.00 = £4,086.34

Those are old rates, shown only because they're HMRC's own worked examples. Since 6 April 2024, the method for someone who's only self-employed is just the two Class 4 steps added together, with no Class 2 step (NIM24153).

5. State Pension age and other exceptions

6. Income Tax is separate

If you'd like the records behind your profits kept in one place, our paid Freelance Billing Kit by Small Rows (US$12, one-time) tracks invoices, payments and expenses, and has an optional UK payments-on-account tab where you type your own figures. It doesn't work out National Insurance; it's a record-keeping tool, not tax advice.

7. Before you pay voluntary Class 2

Where the sources differ

We read the pages listed under Sources on 2026-10-11. A few details don't line up neatly; here's how this page handles them:

How the calculator works

When to talk to an accountant

Sources

GOV.UK guidance, HMRC's National Insurance Manual on gov.uk, and legislation.gov.uk, read on 2026-10-11. Rates change each tax year; check the live pages before you rely on them.

GOV.UK page dates when read: self-employed rates 2015-02-10; rates and allowances 2026-04-06; voluntary National Insurance 2025-01-10; NIM70200 and NIM70300 2024-04-06; NIM24050 2022-11-09.

Found something wrong or out of date? Tell us via Support and we'll fix it and note the change here.