Skip to content
InvestmentCalculator
All calculators

Stocks and shares ISA calculator — methodology

The period-by-period projection, the year-by-year dividend tax it avoids, the capital gains tax it avoids on sale, and why only half of this page carries a verification stamp.

Open the stocks and shares isa calculator

This calculator does two separate things and they are not equally strong. It projects a pot forward, which is arithmetic on an assumption you supplied and contains nothing published by government; and it prices the tax the ISA wrapper avoided, which is built entirely from statutory rates. Both halves are set out below, each with the claim it is entitled to make.

The projection half of this page is not a forecast, and carries no verification stamp. There is no rate, threshold or allowance published by government anywhere in it. Nothing grows at the same rate every year, real returns arrive in an order and the order changes the outcome, and nobody — including this site — can tell you what the rate will turn out to have been. What the projection claims is narrower and checkable: given the figures you entered and the conventions stated below, the pot is what those inputs compound to.

The tax half is different, and the stamp further down is about that half only. The dividend allowance and rates, the capital gains annual exempt amount and rates, the personal allowance and the ISA subscription limit are published figures, checked against gov.uk on the date recorded there. That check covers the rates. It does not cover any answer this page produces, because the answer also depends on a growth assumption that nothing could verify.

Step one: the pot

The projection runs in periods — a month, a quarter or a year, whichever you chose — in integer pence, so a thirty-year schedule has no floating-point balance drifting under it:

balance ← balance + contribution      (at the start of each period)
balance ← balance × (1 + periodic rate)
balance ← balance − charges

The annual rate becomes a periodic one as (1 + r)^(1/n) − 1, an effective conversion, so the rate you typed is the rate a year compounds to. Dividing by twelve instead — the nominal convention — turns 5% into about 5.12% a year and silently inflates an assumption you never made. Contribution timing and rate basis are both conventions rather than facts, they both move the answer, and the investment calculator prices each one on your own figures.

Step two: the dividend tax, one year at a time

Each year’s dividends are the yield applied to the balance the year opened at, and the tax on them is the tax engine run twice:

dividends(y) = opening balance(y) × yield
tax(y)       = income tax(your income + dividends(y)) − income tax(your income)

Running it per year is what makes the £500 dividend allowance an annual nil-rate band. A single blended rate over the term would either ignore the allowance or apply it once, and both are wrong by more than a rounding. It also means the dividends meet whatever rate your other income leaves them at, because dividends are the top slice of income — the same stacking the dividend tax calculator shows band by band.

Using the opening balance rather than an average of opening and closing understates the dividends of anyone still paying in. That is deliberate: it understates the figure this page exists to advertise, which is the direction an author should be careless in if they are going to be careless at all.

Step three: the capital gains tax, once, on sale

base cost      = money paid in + dividends already taxed
gain           = max(0, final value − base cost)
chargeable     = max(0, gain − annual exempt amount)
basic-rate room = max(0, basic-rate ceiling − your taxable income)
at 18.00%         = min(chargeable, basic-rate room)
at 24.00%         = chargeable − the part above

The dividends already taxed lift the base cost. A distribution that has borne income tax is money already brought into charge; taxing the same pounds again as a gain would double-count them and make this page’s own headline bigger than the truth. That is the line most likely to be got wrong in the flattering direction, so it is written into the table on the calculator itself rather than buried here.

The gain is stacked on taxable income — gross income less the personal allowance that actually applies to it, which above £100,000 is not the statutory figure — so a gain straddling the basic-rate ceiling meets both rates rather than one.

Rates and limits, read from the rules files this calculator runs on

Read from the rules files this calculator runs on
Figure2025/262026/27
ISA subscription limit£20,000£20,000
Dividend allowance£500£500
Dividend rates8.75% / 33.75% / 39.35%10.75% / 35.75% / 39.35%
Capital gains annual exempt amount£3,000£3,000
Capital gains, shares and funds — basic / higher18.00% / 24.00%18.00% / 24.00%
Personal allowance£12,570£12,570

Dividend and capital gains rates are UK-wide and are not devolved. Scottish rates apply to earned income only — but that earned income still decides which dividend band the dividends fall in and how much basic-rate room the gain finds.

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.

Six assumptions the comparison rests on, none of them hidden

  • Today’s rates, for the whole term. Every year is priced at 2026/27 figures. The dividend allowance and the capital gains annual exempt amount have both been cut repeatedly in the last decade, and nothing here projects that forward. This is the largest assumption on the page.
  • The tax is settled from other money. That is how an accumulating fund works — nothing is distributed to pay the bill with — and it is why the pot is the same size in both worlds and the answer is a bill rather than a difference in outcome. A fund paying cash out, or units sold to settle the bill, leaves the ISA worth more than the figure shown.
  • One disposal, in one tax year. One annual exempt amount comes off. Selling over several years uses it more than once and costs less, so the capital gains line is the worst case rather than the likely one.
  • Your income holds steady, including in the year you sell. Selling in a year you earn less moves part of the gain into the lower rate for gains.
  • A UK dividend. Offshore reporting funds, excess reportable income and equalisation payments have their own regime and none of it is modelled.
  • The allowance is not enforced. The projection runs on whatever contribution you type. It says when a year of contributions exceeds £20,000; it does not cap them. The ISA allowance calculator is where the limits are worked out.

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.