UK Capital Gains Tax Calculator for Shares
Introduction & Importance of Calculating Capital Gains Tax on Shares
Capital Gains Tax (CGT) on shares is a tax levied on the profit you make when selling shares or other investments. In the UK, this tax applies when your total gains exceed the annual tax-free allowance (£3,000 for 2024/25). Understanding and accurately calculating your CGT liability is crucial for several reasons:
- Tax Efficiency: Proper calculation helps you legally minimise your tax burden through allowances and reliefs
- Financial Planning: Knowing your potential tax liability allows for better investment decisions and cash flow management
- Compliance: Accurate reporting avoids penalties from HMRC (up to 100% of the tax due for deliberate errors)
- Investment Strategy: Understanding tax implications can influence your buy/sell decisions and portfolio composition
The UK CGT system for shares operates on a self-assessment basis, meaning it’s your responsibility to calculate and report gains accurately. Our calculator handles the complex interactions between:
- Your income tax band (which determines your CGT rate)
- The annual exempt amount (tax-free allowance)
- Transaction costs that reduce your gain
- Other capital gains you’ve made in the same tax year
How to Use This Capital Gains Tax Calculator
Our share CGT calculator provides an accurate estimate of your tax liability in just 6 simple steps:
- Enter Purchase Price: Input the total amount you paid for the shares (including purchase fees)
- Enter Sale Price: Input the total amount you received from selling the shares (before any selling fees)
- Add Transaction Costs: Include all buying/selling fees, stamp duty, and other directly attributable costs
- Select Tax Year: Choose the tax year when the sale completed (UK tax years run 6 April to 5 April)
- Choose Income Tax Band: Select your marginal income tax rate (this determines your CGT rate)
- Add Other Gains: Include any other capital gains you’ve made in the same tax year
The calculator then instantly provides:
- Your total gain before allowances
- The taxable amount after deducting your annual exemption
- The exact CGT due based on your tax band
- Your effective tax rate on the gain
- A visual breakdown of how the tax is calculated
Important Notes:
- For shares acquired at different times, use the HMRC share pooling rules
- The calculator assumes you’re not eligible for Business Asset Disposal Relief (formerly Entrepreneurs’ Relief)
- For gifts or transfers, use the market value at the time of transfer
- Married couples/civil partners can transfer assets tax-free before selling
Formula & Methodology Behind the Calculator
The calculator uses the following precise methodology that mirrors HMRC’s approach:
1. Calculating the Gain
The basic gain calculation is:
Gain = (Sale Proceeds) - (Purchase Cost) - (Transaction Costs)
Where:
- Sale Proceeds: Total amount received from selling the shares
- Purchase Cost: Total amount paid to acquire the shares (including purchase fees)
- Transaction Costs: Directly attributable costs like:
- Brokerage fees
- Stamp duty (0.5% on purchases)
- Stamp duty reserve tax (SDRT)
- Advisory fees specifically for the transaction
2. Applying the Annual Exempt Amount
The taxable gain is calculated as:
Taxable Gain = Gain - Annual Exempt Amount - Other Allowable Deductions
For 2024/25, the annual exempt amount is £3,000 (reduced from £6,000 in 2023/24). Any unused allowance from previous years cannot be carried forward.
3. Determining the Tax Rate
UK CGT rates for shares depend on your income tax band:
| Income Tax Band | 2024/25 CGT Rate | 2023/24 CGT Rate |
|---|---|---|
| Basic Rate (20%) | 10% | 10% |
| Higher Rate (40%) | 20% | 20% |
| Additional Rate (45%) | 20% | 20% |
Important: The portion of gains that fall within your basic rate band are taxed at 10%, while any amount above this is taxed at 20% (or 24% for residential property). Our calculator handles this split automatically.
4. Final Tax Calculation
The final tax due is:
CGT Due = (Taxable Gain × Applicable Rate) + (Any Additional Tax from Higher Rate Portion)
Real-World Examples of Share CGT Calculations
Example 1: Basic Rate Taxpayer with Small Gain
Scenario: Sarah is a basic rate taxpayer who bought 1,000 shares in ABC plc at £10 each (£10,000 total) in 2020. She sells them in 2024/25 for £12 each (£12,000 total) with £150 in transaction costs. She has no other gains this year.
| Sale Proceeds | £12,000 |
| Purchase Cost | £10,000 |
| Transaction Costs | £150 |
| Total Gain | £1,850 |
| Annual Exempt Amount | £3,000 |
| Taxable Gain | £0 (gain covered by allowance) |
| CGT Due | £0 |
Example 2: Higher Rate Taxpayer with Medium Gain
Scenario: James is a higher rate taxpayer who bought shares for £25,000 and sells them for £42,000 in 2024/25. He has £2,000 of other gains this year and £500 in transaction costs.
| Sale Proceeds | £42,000 |
| Purchase Cost | £25,000 |
| Transaction Costs | £500 |
| Total Gain | £16,500 |
| Annual Exempt Amount | £3,000 |
| Other Gains This Year | £2,000 |
| Taxable Gain | £15,500 (£16,500 – £3,000 + £2,000) |
| CGT Rate | 20% |
| CGT Due | £3,100 |
Example 3: Additional Rate Taxpayer with Large Gain
Scenario: Priya is an additional rate taxpayer who inherited shares worth £50,000 (market value at inheritance) and sells them for £120,000 in 2024/25. She has £8,000 of other gains and £1,200 in transaction costs.
| Sale Proceeds | £120,000 |
| Purchase Cost (inheritance value) | £50,000 |
| Transaction Costs | £1,200 |
| Total Gain | £68,800 |
| Annual Exempt Amount | £3,000 |
| Other Gains This Year | £8,000 |
| Taxable Gain | £73,800 (£68,800 – £3,000 + £8,000) |
| CGT Rate | 20% |
| CGT Due | £14,760 |
Capital Gains Tax Data & Statistics
Historical CGT Allowances and Rates
| Tax Year | Annual Exempt Amount | Basic Rate CGT | Higher/Additional Rate CGT | Estimated Number of CGT Payers (000s) |
|---|---|---|---|---|
| 2015/16 | £11,100 | 10% | 20% | 265 |
| 2016/17 | £11,100 | 10% | 20% | 260 |
| 2017/18 | £11,300 | 10% | 20% | 270 |
| 2018/19 | £11,700 | 10% | 20% | 280 |
| 2019/20 | £12,000 | 10% | 20% | 320 |
| 2020/21 | £12,300 | 10% | 20% | 370 |
| 2021/22 | £12,300 | 10% | 20% | 395 |
| 2022/23 | £12,300 | 10% | 20% | 420 |
| 2023/24 | £6,000 | 10% | 20% | 500 (est) |
| 2024/25 | £3,000 | 10% | 20% | 560 (est) |
Source: HMRC Capital Gains Tax Statistics
Comparison of CGT Rates Across Asset Types
| Asset Type | Basic Rate CGT | Higher/Additional Rate CGT | Special Rules |
|---|---|---|---|
| Shares & Securities | 10% | 20% | Share pooling rules apply |
| Residential Property (not main home) | 18% | 24% | Private Residence Relief may apply |
| Commercial Property | 10% | 20% | Business Asset Disposal Relief may apply |
| Cryptocurrency | 10% | 20% | Each crypto is a separate asset |
| Antiques & Collectibles | 10% | 20% | Chattels exemption for items under £6,000 |
| Business Assets (qualifying) | 10% | 10% | Business Asset Disposal Relief applies |
Source: GOV.UK Capital Gains Tax Rates
Expert Tips to Legally Reduce Your Share CGT
1. Utilise Your Annual Allowance
- Both you and your spouse/civil partner have separate £3,000 allowances (£6,000 total for 2024/25)
- Time sales to use allowances across multiple tax years
- Transfer assets to your spouse before selling to use both allowances
2. Offset Losses Against Gains
- Capital losses can be offset against gains in the same or future years
- Report losses to HMRC within 4 years of the end of the tax year when you disposed of the asset
- Consider “bed and breakfasting” (selling and repurchasing) to crystalise losses
3. Use Tax-Efficient Accounts
- Hold shares in an ISA (£20,000 annual allowance) – no CGT
- Consider SIPPs (pension funds) – no CGT on growth
- Junior ISAs for children (£9,000 annual allowance)
4. Business Asset Disposal Relief
- If you’re a business owner selling shares, you may qualify for 10% CGT rate
- Must have owned the shares for at least 2 years
- Lifetime limit of £1 million gains
- Company must be your personal company (you’re an officer/employee)
5. Gift Assets Instead of Selling
- Gifts to spouse/civil partner are CGT-free
- Gifts to charity are CGT-free
- Consider holding assets until death (no CGT for beneficiaries)
6. Invest in EIS or SEIS Schemes
- Enterprise Investment Scheme (EIS) offers CGT deferral relief
- Seed Enterprise Investment Scheme (SEIS) offers 50% CGT reinvestment relief
- Must hold qualifying shares for at least 3 years
7. Timing Your Disposals
- Sell in a year when you have lower income to stay in basic rate band
- Consider spreading disposals over multiple tax years
- If you’re near the higher rate threshold, delay sales to avoid 20% rate
Interactive FAQ About Share Capital Gains Tax
How do I calculate the cost basis for shares bought at different times?
For shares acquired at different times, HMRC requires you to use the “share pooling” rules. You must:
- Group all shares of the same class in the same company into a “Section 104 holding”
- Calculate the pooled cost as the total amount paid divided by total number of shares
- When selling, use the pooled average cost to determine your gain
Example: You buy 100 shares at £10 and later buy 50 more at £15. Your pooled cost is ((100×£10) + (50×£15))/150 = £11.67 per share.
See HMRC’s detailed guidance on share pooling.
What transaction costs can I deduct when calculating my gain?
You can deduct the following costs when calculating your gain:
- Brokerage fees for buying and selling
- Stamp duty (0.5% on purchases of UK shares)
- Stamp duty reserve tax (SDRT) on electronic transactions
- Financial advice fees specifically related to the transaction
- Incidental costs of transfer (e.g., transfer fees)
You cannot deduct:
- General portfolio management fees
- Costs of valuations not directly related to the disposal
- Travel costs to meet your broker
How does CGT work when I inherit shares and then sell them?
When you inherit shares, you’re deemed to acquire them at their market value at the date of death (not the original purchase price). This is called the “probate value”.
Example: Your father bought shares for £5,000 that were worth £50,000 when he died. You later sell them for £60,000. Your gain is £60,000 – £50,000 = £10,000.
Key points:
- The estate may have to pay Inheritance Tax on the shares
- You’ll need the probate valuation to calculate your gain
- If you sell quickly after inheritance, the gain may be small
What happens if I sell shares at a loss? Can I claim relief?
Yes, capital losses can be used to reduce your taxable gains. Here’s how it works:
- Losses must be reported to HMRC (usually via Self Assessment)
- They can be offset against gains in the same tax year
- Any unused losses can be carried forward to future years
- You must claim the loss within 4 years of the end of the tax year when the loss occurred
Example: You make a £5,000 gain on Sale A and a £3,000 loss on Sale B in the same year. Your net gain is £2,000 (£5,000 – £3,000).
Important: You cannot create artificial losses through “bed and breakfasting” (selling and immediately repurchasing the same shares). HMRC has anti-avoidance rules for this.
Do I have to pay CGT if I give shares to my children?
Giving shares to your children is considered a disposal for CGT purposes, unless:
- The shares are held in a bare trust for the child (you may still be liable for CGT on the transfer)
- You give shares to your spouse/civil partner (this is CGT-free)
For other transfers to children:
- You’re deemed to have sold the shares at market value
- You must calculate and pay CGT on any gain
- The child acquires the shares at the market value you “sold” them for
Example: You bought shares for £10,000 now worth £30,000. If you give them to your child, you’ll have a £20,000 gain to report (minus your annual allowance).
How do I report and pay Capital Gains Tax on shares?
You must report and pay CGT on shares through one of these methods:
- Self Assessment Tax Return:
- If you’re already in Self Assessment, report gains in the Capital Gains pages
- Deadline: 31 January following the end of the tax year
- Real Time CGT Service:
- For UK residents who aren’t in Self Assessment
- Must report within 60 days of completing the disposal
- Use the GOV.UK service
- Through an Agent:
- Accountants can report and pay on your behalf
- Ensure they’re registered with HMRC
Payment deadlines:
- For Self Assessment: 31 January following the tax year end
- For Real Time service: Within 60 days of the disposal
You’ll need:
- Details of each disposal (dates, amounts, costs)
- Calculations of gains/losses
- Records of any previous losses carried forward
What are the penalties for not reporting Capital Gains Tax correctly?
HMRC can impose significant penalties for errors or late reporting:
| Infraction | Penalty |
|---|---|
| Late filing (up to 3 months) | £100 automatic penalty |
| Late filing (3-6 months) | £10 per day (up to £900) |
| Late filing (6+ months) | £300 or 5% of tax due (whichever is higher) |
| Late payment (30 days) | 5% of tax due |
| Late payment (6 months) | Additional 5% of tax due |
| Late payment (12 months) | Additional 5% of tax due |
| Careless error | 0-30% of additional tax due |
| Deliberate error | 20-70% of additional tax due |
| Deliberate and concealed | 30-100% of additional tax due |
Interest is also charged on late payments at 2.5% above the Bank of England base rate.
You can appeal against penalties if you have a reasonable excuse. Keep detailed records for at least 5 years after the 31 January submission deadline.