Shares CGT Calculator 2026/27
Estimate CGT on shares or funds sold outside an ISA or pension. Enter your figures below - results update instantly. Bought or sold more than once? Keep the whole holding in the share pool tracker further down. Last updated 3 November 2026.
Calculator checked against GOV.UK and HMRC rules on (how we check).
Section 104 share pool tracker
Enter every buy and sell of one holding. The tracker matches each sale in HMRC's order: shares bought the same day, then shares bought in the next 30 days, then the Section 104 pool at average cost. It shows the pool after each trade and the gain or loss on each sale, by tax year. It is an estimate and a record for you to check, not tax advice.
Add a trade
Your trades
Your pool now
Gains and losses by tax year
The estimate uses 2026/27 rates and only the 2026/27 sales recorded here. It leaves out your other gains and any losses brought forward. For earlier years use the net figure on your tax return.
Each trade, in date order
Keep your record
Columns: holding, date, type (BUY, SELL or SPLIT), shares, amount, fees, split_from, split_to. Dates can be 2026-04-30 or 30/04/2026. Bought or sold in dollars or euros? Add an fx_rate column (currency per £1 on the trade date) and we convert each line to pounds; see shares bought in a foreign currency. The file is read in your browser and never uploaded. Clearing your browser data removes the saved record, so keep a download.
How the tracker works
- Costs include fees and stamp duty. Fees on a sale reduce the proceeds, shared across the sale when parts of it match different purchases.
- All purchases on one day count as one purchase, and all sales on one day as one sale. Same-day matching comes first for every sale, even over an earlier sale's 30-day match.
- Shares matched by the same-day or 30-day rule never enter the pool.
- A split or bonus issue changes the number of shares in the pool, not its cost. It is not a purchase, so it is never matched with an earlier sale.
- Each sale counts in the tax year of its trade date.
What it does not handle
- A repurchase within 30 days where a split or bonus issue falls between the sale and the repurchase. The tracker stops at that sale and says so, because we could not confirm how the shares are counted.
- Rights issues, takeovers, demergers, capital repayments and cash for fractions. Do not enter a rights issue as a buy: it is not treated as a purchase.
- Accumulation fund income added to cost, employee share schemes, EIS and VCT shares, and gifts or sales to connected people at market value.
- Repurchases made while you were not UK resident: the 30-day rule does not apply to them, and the tracker assumes it does.
- Sales before 6 April 2008, and shares held on 31 March 1982 unless you enter their value on that date as the cost. Foreign-currency trades need converting to pounds first.
Worked example: HMRC's Lobster plc (HS284 Example 3)
| Trade | Gain | Pool after |
|---|---|---|
| April 2017: buy 1,000 for £4,000 + £150 | 1,000 / £4,150 | |
| September 2020: buy 500 for £2,050 + £80 | 1,500 / £6,280 | |
| May 2025: sell 700 for £3,360, less £100 | £329 | 800 / £3,349 |
| February 2026: sell 400 for £2,080, less £105 | £300 | 400 / £1,675 |
HMRC rounds each step to the pound, so its helpsheet ends on £1,674 and the tracker's unrounded £1,674.67 shows £1,675 here. HMRC's example gives months only; Load HMRC's example uses the 15th of each month. For more on why the pool works this way, see the Section 104 pool explained.
Estimates and a personal record only, not tax advice. Check figures against your contract notes before using them on a return.
How it works
This calculator uses 2026/27 CGT rates for shares and funds:
- Gross gain = sale proceeds minus original purchase cost minus dealing costs.
- Deduct capital losses, then the annual exempt amount (£3,000).
- The taxable gain is split across the basic-rate and higher-rate bands using your income.
- 18% applies to gains within the basic-rate band; 24% to the remainder.
Share matching rules: HMRC uses a "same-day rule", "30-day rule" and "section 104 pool" to determine the cost base when shares are bought and sold at different times. The calculator at the top assumes a single pool with the cost you enter, so it is most accurate for a single purchase and single sale; the share pool tracker applies the rules to every trade. Use a qualified tax adviser or HMRC's own tools for complex share portfolios.
Worked example
Sale proceeds £25,000 minus purchase cost £10,000 minus dealing costs £50 = gross gain of £14,950. After the £3,000 annual exempt amount, £11,950 is taxable. With income of £40,000, £10,270 of basic-rate band remains, so CGT is £1,849 at 18% and £403 at 24% (on the other £1,680), a total of approximately £2,252.
Note about ISAs
Shares, funds and investment trusts held inside a Stocks and Shares ISA are entirely free of CGT - dividends and capital gains are both sheltered. The ISA allowance is £20,000 per tax year. This calculator is for assets held outside an ISA or pension.
Official sources
Frequently asked questions
-
Are shares inside an ISA subject to CGT?
No. Gains and income inside a Stocks and Shares ISA are completely free of CGT and income tax.
-
What are dealing costs?
Broker commissions and stamp duty reserve tax (SDRT) paid on purchase are allowable costs. Platform fees and subscription costs are generally not deductible against CGT.
-
What if I bought shares at different times?
HMRC uses share identification rules - same-day, 30-day and a section 104 pool - to calculate the allowable cost. The calculator at the top does not model those rules, but the share pool tracker on this page does: enter each trade and it works out the cost of every sale.
Related calculators
This calculator provides estimates for guidance only and does not constitute tax or financial advice. Tax rules can change and individual circumstances vary. Consult a qualified tax adviser before making decisions based on these figures.