Enter your buys and sells of one stock or fund. Every sale is matched the way HMRC requires: same-day purchases first, then the next 30 days, then your Section 104 pool. You get the gain, the allowance used and the tax.
In 2025-26 your sales made a net gain of £6,547.79. After the £3,000 annual exempt amount, £3,547.79 is taxable: about £638.60 if it all fits in your basic rate band, £851.47 as a higher rate taxpayer.
| Date | Shares in pool | Average cost |
|---|
When you sell shares in a company you bought at different times, HMRC decides which purchase you sold. You don't get to pick, and it isn't first in, first out. Each sale is matched in this order:
In the example loaded above, you sell 3,500 shares on 2 June 2025 for £18,900.00. Here is how they are matched:
The allowable cost is £17,230.70, the shares plus your dealing costs on the sale, and the gain is £1,669.30. The pool only shrinks by the 1,000 shares it supplied, and its average cost per share stays the same.
Every share you buy that isn't matched by the same-day or 30-day rule goes into one pool per company, or per fund share class. The pool keeps two numbers: how many shares it holds and what they cost in total, dealing costs included. Buying adds to both. Selling from the pool takes out a slice of the cost in proportion to the shares sold, so the average cost per share only moves when you buy.
The pool runs for as long as you hold the shares, across tax years. That is why a sale this year can depend on a purchase from ten years ago, and why the full trade history matters.
Add up the gains and losses on all your sales in the tax year, which runs from 6 April to 5 April. The first £3,000 of net gains is covered by the annual exempt amount, the figure for 2024-25 to 2026-27. This estimate includes losses for the selected tax year only.
What remains is taxed at 18% where it fits inside your unused basic rate band and 24% above it, for sales from 30 October 2024. Before that date the rates were 10% and 20%, and the calculator applies the right ones by sale date. The basic rate band is £37,700. Your gains sit on top of your taxable income. Enter it to see an estimated split between the two rates.
Listed shares and funds go on the capital gains pages of Self Assessment, form SA108: the number of disposals, the proceeds, the allowable costs, the gains and the losses. You have to report when your gains are over the annual exempt amount, and also when you are registered for Self Assessment and your sale proceeds for the year are over £50,000.
Gains inside an ISA or a pension are tax free and stay off the return. A spouse or civil partner has their own pool and their own allowance.
Import your broker trades into AllInvestView to prepare your SA108 figures and review the matching behind them.
14-day trial with the filing pack included. No card required.
Each sale is matched to the shares you bought on the same day first, then to any you buy in the next 30 days, and only then to your Section 104 pool at its average cost. The gain is what you sold for less that cost and your dealing costs. Add up the gains and losses for the tax year, take off the annual exempt amount, and tax the rest at the rates in force on each sale date.
If you sell shares and buy the same shares back within 30 days, the sale is matched to the shares you bought back, not to your pool. The gain or loss on those shares uses the repurchase cost.
It is one pool for each company or fund, holding every share you bought that was not matched by the same-day or 30-day rule. The pool keeps a running number of shares and their total cost, so the cost per share is an average across all your purchases.
The annual exempt amount is £3,000 for 2024-25, 2025-26 and 2026-27. Only the part of your net gains above it is taxed, and an unused allowance does not carry forward.
No. Gains inside an ISA or a pension are free of capital gains tax, so leave those trades out. Enter only shares held in an ordinary dealing account.
You report on the capital gains pages of Self Assessment, form SA108, when your gains are above the annual exempt amount. You also report when your total sale proceeds are over £50,000 and you are already registered for Self Assessment, even if no tax is due.
An estimate for listed shares and funds held in an ordinary dealing account, from the trades you enter. It is not tax advice.
Sources: HMRC helpsheet HS284, Shares and Capital Gains Tax; HMRC Capital Gains Manual CG51550; Taxation of Chargeable Gains Act 1992 sections 1K, 104, 105 and 106A; changes to the rates of Capital Gains Tax.