Short answer: When you buy the same shares at different times, HMRC usually pools them and uses an average cost when you sell. Shares bought on the same day as a sale, or within the following 30 days, are matched first.
The matching order
- Same-day purchases
- Purchases in the 30 days after the sale
- The Section 104 pool of everything else, at average cost
What goes into the pool
The number of shares and the total cost, including broker fees and stamp duty. Each new purchase adds to both, and each sale takes out a proportion of the cost.
Crypto uses similar rules
Cryptoassets follow similar matching and pooling rules, which is why full transaction histories matter.
Worked example
You buy 100 shares for £1,000, then 100 more for £2,000. The pool is 200 shares costing £3,000, an average of £15. You sell 50 for £1,200. The allowable cost is 50 × £15 = £750, so the gain is £450, and 150 shares costing £2,250 remain in the pool.
Common mistakes to avoid
- Using the first purchase price instead of the pool average
- Forgetting reinvested dividends
- Ignoring same-day and 30-day matches
- Calculating each platform separately when holdings are the same
What to do next
- List every purchase and sale with dates
- Apply same-day and 30-day rules first
- Build the pool with total shares and cost
- Calculate each sale using the average cost
Frequently asked questions
Do dividends reinvested change the pool?
Yes. Reinvested dividends buy new shares and add to the pool's cost.
What about shares from an employer scheme?
They may have their own cost, such as the value at vesting. Keep scheme statements.
Does my broker calculate this?
Some provide reports, but they may not see holdings across different platforms.
Do share splits change the pool?
The number of shares changes but the total cost stays the same.
Try a free calculator
- Crypto Tax calculator: Estimate capital gains tax on cryptocurrency trades.
- Dividend Tax calculator: Tax on share dividends and company distributions.
Related guides
- Making the Most of the £3,000 Capital Gains Tax Allowance
- Bed and ISA and the 30-Day Rule for Share Sales
- Crypto Swaps and Tax: Why Not Cashing Out Does Not Settle the Question
Living abroad with UK income?
- UK tax return for expats in Australia
- UK tax return for expats in New Zealand
- UK tax return for expats in Hong Kong
- UK tax returns for British expats in every country
Local tax return accountants
- Tax return accountant in Wolverhampton
- Tax return accountant in Northampton
- Tax return accountant in Burnley
- All Midlands areas
- All North West areas
Get help with this
If this applies to you, a TaxSimba accountant can prepare and file your return. See Capital Gains Tax returns with TaxSimba.
