Tax and Legal
Selling and Rebuying Quickly Can Change Your Cost Basis
By Walid Mograbi · · 2 min read
In the UK, your cost may not be matched the way you expect if you sell and then buy the same share class again quickly.
Why this lesson matters
In the UK, your cost may not be matched the way you expect if you sell and then buy the same share class again quickly.
The core idea
- When you sell shares and buy the same class again on the same day or within 30 days, tax matching rules can change the cost basis used.
- The rules first match same-day purchases, then purchases within 30 days, and only then the pooled holding.
- This can change the reported gain or loss, so do not assume the oldest purchase is always treated as sold first.
Practical example
An investor sells shares to crystallize a result, then buys back the same share class a week later and discovers the tax matching is not based on the oldest holding.
Common mistakes to avoid
- Assuming the earliest lot is always sold first.
- Ignoring same-day and 30-day matching rules.
- Relying on memory instead of full trade records and fees.
What to do next
It warns you that quick repurchases can change how gain and cost are calculated when you file.
Important caution
This is general UK guidance, not personal tax advice; review your exact situation when needed.
Further reading
- https://www.gov.uk/government/publications/shares-and-capital-gains-tax-hs284-self-assessment-helpsheet/hs284-shares-and-capital-gains-tax-2025
- https://www.gov.uk/government/publications/shares-and-capital-gains-tax-hs284-self-assessment-helpsheet
- https://www.gov.uk/capital-gains-tax/work-out-need-to-pay
#uk-tax #cost-basis #share-matching #capital-gains #wash-sale-risk