Capital Gains Tax Calculator Shares Excel

Capital Gains Tax Calculator for Shares (Excel-Compatible)

Standard UK allowance is £6,000 for 2023/24 tax year
Total Gain/Loss:
£0.00
Taxable Gain:
£0.00
Capital Gains Tax Due:
£0.00
Effective Tax Rate:
0%
Net Proceeds After Tax:
£0.00

Ultimate Guide to Capital Gains Tax on Shares (2024) – Excel Calculator Included

Understanding capital gains tax (CGT) on shares is essential for UK investors to optimise their tax position and avoid unexpected liabilities. This comprehensive guide explains how CGT works for share investments, how to calculate your liability, and how to use our interactive calculator to model different scenarios.

What is Capital Gains Tax on Shares?

Capital Gains Tax is a tax on the profit you make when you sell (or ‘dispose of’) shares that have increased in value. You only pay tax on the gain – not the total sale proceeds. The tax applies to:

  • Shares in companies (not held in ISAs or PEPs)
  • Unit trusts and investment funds
  • Government gilts and corporate bonds
  • Cryptocurrencies (treated as assets for CGT purposes)

How to Calculate Capital Gains Tax on Shares

The basic calculation follows these steps:

  1. Determine your total proceeds – The amount you received from selling the shares
  2. Calculate your allowable costs – This includes:
    • Original purchase price of the shares
    • Stockbroker commission or trading fees
    • Stamp duty paid on purchase (0.5% for UK shares)
    • Adviser fees if applicable
  3. Compute your gain – Proceeds minus allowable costs
  4. Apply your annual exempt amount – £6,000 for 2023/24 tax year (reducing to £3,000 in 2024/25)
  5. Calculate taxable gain – Total gain minus annual exempt amount
  6. Apply the appropriate tax rate – 10% or 20% for basic/higher rate taxpayers (18%/28% for residential property)

Capital Gains Tax Rates for Shares (2023/24)

Income Tax Band CGT Rate (Shares) CGT Rate (Property) Annual Exempt Amount
Basic Rate (20%) 10% 18% £6,000
Higher Rate (40%) 20% 28% £6,000
Additional Rate (45%) 20% 28% £6,000

Note: The annual exempt amount is reducing to £3,000 for the 2024/25 tax year as announced in the Autumn Statement 2022.

How to Use Our Capital Gains Tax Calculator for Shares

Our interactive calculator helps you estimate your CGT liability with precision. Here’s how to use it:

  1. Enter purchase details – Input the total amount you paid for the shares including fees
  2. Enter sale details – Input the total sale proceeds and sale date
  3. Select tax year – Choose the relevant tax year for your calculation
  4. Select your income tax band – This determines your CGT rate
  5. Enter your annual exempt amount – Defaults to £6,000 for 2023/24
  6. Include trading fees – Add any brokerage or transaction costs
  7. Click “Calculate” – The tool will compute your tax liability and display visual results

The calculator provides:

  • Your total gain/loss position
  • The taxable amount after your annual exemption
  • The exact CGT due based on your tax band
  • Your effective tax rate on the gain
  • Net proceeds after tax
  • An interactive chart visualising your position

Bed and Breakfasting Rules (30-Day Rule)

HMRC has anti-avoidance rules to prevent “bed and breakfasting” – selling shares to crystallise a loss, then buying them back immediately. The key rules:

  • If you sell shares and buy the same shares within 30 days, the sale and repurchase are matched for CGT purposes
  • The 30-day rule applies both before and after the sale date (60 days total)
  • This rule doesn’t apply if you buy shares in a different company, even in the same sector
  • Special rules apply for “substantially identical” assets

Example: You sell 1,000 shares in Company A on 15 June for £10,000 (cost £6,000). If you buy 1,000 shares in Company A on 20 June for £9,500, the sale and repurchase are matched. Your allowable cost becomes £9,500 (not £6,000) for future disposals.

Share Pooling Rules (Section 104 Holding)

When you buy shares in the same company at different times, HMRC requires you to pool them for CGT calculations. The rules:

  • All shares of the same class in the same company are pooled
  • The pooled cost is the total cost of all shares divided by the total number
  • When you sell, you’re deemed to sell from the pool
  • You must keep records of all purchases and sales

Example: You buy 100 shares at £10 each (£1,000 total) in January, then another 100 at £15 each (£1,500) in March. Your pooled cost is £2,500/200 = £12.50 per share. If you later sell 150 shares for £20 each (£3,000), your gain is £3,000 – (150 × £12.50) = £750.

How to Reduce Capital Gains Tax on Shares

Legal strategies to minimise your CGT liability:

  1. Use your annual exemption – £6,000 for 2023/24 (£3,000 from April 2024)
  2. Use losses – Offset gains with losses from the same or previous tax years
  3. Transfer to spouse – Use both partners’ annual exemptions (£12,000 total for 2023/24)
  4. Invest in ISAs – No CGT on shares held in ISAs or PEPs
  5. Bed and ISA – Sell shares, use annual exemption, then repurchase in an ISA
  6. Invest in EIS/SEIS – Enterprise Investment Scheme offers CGT reliefs
  7. Defer gains – Time disposals to spread gains over multiple tax years
  8. Gift shares – Transfer to charity (no CGT) or family members (may trigger CGT)

Capital Gains Tax vs Income Tax on Shares

Feature Capital Gains Tax Income Tax (Dividends)
Tax Rate (Basic) 10% 8.75% (2023/24)
Tax Rate (Higher) 20% 33.75%
Tax Rate (Additional) 20% 39.35%
Annual Allowance £6,000 (2023/24) £1,000 (Dividend Allowance)
When It Applies When you sell shares for a profit When you receive dividend payments
Loss Relief Can offset against other gains No loss relief available
ISA Protection No CGT in ISAs No income tax on dividends in ISAs

Record Keeping Requirements

HMRC requires you to keep detailed records of all share transactions for at least 5 years after the 31 January submission deadline of the relevant tax year. You should record:

  • Dates of all purchases and sales
  • Number of shares bought/sold
  • Total cost of purchases (including fees)
  • Total proceeds from sales (after fees)
  • Details of any share splits, bonuses, or rights issues
  • Copies of contract notes or broker statements
  • Calculations of gains/losses

For digital records, HMRC accepts spreadsheets (like our Excel-compatible calculator), dedicated software, or broker-provided statements. Our calculator generates results you can easily export to Excel for your records.

How to Report and Pay Capital Gains Tax

You must report and pay CGT through:

  1. Self Assessment tax return – If you’re already in Self Assessment
  2. Real Time CGT Service – For UK residents who aren’t in Self Assessment (must report within 60 days of sale)

Payment deadlines:

  • 31 January following the end of the tax year for Self Assessment
  • Within 60 days of the sale for property disposals (shares usually go through Self Assessment)

You’ll need:

  • Your Government Gateway user ID and password
  • Details of all disposals in the tax year
  • Calculations of gains and tax due
  • Records of any losses you want to claim

Common Mistakes to Avoid

Investors often make these costly errors:

  1. Forgetting to include fees – Brokerage costs can significantly reduce your gain
  2. Ignoring the 30-day rule – Accidentally triggering bed and breakfasting rules
  3. Not using losses – Failing to offset current or brought-forward losses
  4. Incorrect share matching – Not following HMRC’s share pooling rules
  5. Missing deadlines – Late reporting can incur penalties
  6. Not keeping records – Without proper records, HMRC may disallow claims
  7. Assuming ISA transfers are disposals – Moving shares into an ISA isn’t a sale for CGT
  8. Forgetting about foreign shares – Overseas shares are also subject to UK CGT

Capital Gains Tax on Different Types of Shares

Share Type CGT Treatment Special Considerations
UK Listed Shares Standard CGT rules apply Stamp duty on purchase (0.5%)
US Shares UK CGT applies to gains May also have US withholding tax on dividends
Employee Share Schemes Special rules may apply Check if it’s a tax-advantaged scheme
Inherited Shares Gain calculated from probate value Inheritance tax may also apply
Gifted Shares Market value at gift date used May trigger CGT for giver if value > cost
Shares in an ISA No CGT on disposal £20,000 annual ISA allowance
Shares in a SIPP No CGT on disposal 25% tax-free lump sum available

Excel Spreadsheet for Capital Gains Tax Calculations

For investors who prefer to track their share portfolios in Excel, here’s how to set up a basic CGT calculator spreadsheet:

Basic Structure:

  1. Purchase Records Sheet:
    • Columns: Date, Company, Shares, Price per share, Total cost, Fees
    • Formulas to calculate pooled costs
  2. Sale Records Sheet:
    • Columns: Date, Company, Shares, Price per share, Total proceeds, Fees
    • Formulas to match sales to purchases (FIFO or pooling)
  3. Gain Calculation Sheet:
    • Columns: Tax Year, Total Gains, Total Losses, Net Gain, Annual Exemption, Taxable Gain
    • Formulas to calculate tax based on your income tax band
  4. Tax Summary Sheet:
    • Annual summary of CGT liability
    • Cumulative records for loss carry-forward

Advanced features to include:

  • Automatic 30-day rule checking
  • Share pooling calculations
  • Dividend income tracking
  • ISA and SIPP transfer tracking
  • Visual charts of your portfolio performance

Our online calculator provides all these calculations automatically and can serve as a template for building your own Excel version. The results can be exported to CSV for import into Excel.

Frequently Asked Questions

Do I pay capital gains tax on shares in an ISA?

No. Shares held in an Individual Savings Account (ISA) are completely free from capital gains tax, regardless of how much they increase in value. This is one of the main advantages of using ISAs for investing.

What if I give shares to my spouse?

Transfers between spouses or civil partners are generally free of capital gains tax. The receiving spouse inherits your original cost basis. This can be useful for utilising both partners’ annual exempt amounts.

How do I calculate the gain if I inherited shares?

For inherited shares, the acquisition cost is the market value at the date of death (probate value), not what the original owner paid. You only pay CGT on the increase in value from that probate value to the sale price.

What happens if I sell shares at a loss?

Losses can be offset against gains in the same tax year. If your losses exceed your gains, you can carry forward the excess to future tax years. You must claim the loss – it doesn’t happen automatically.

Do I pay CGT on shares I received as a gift?

If you receive shares as a gift, you may need to pay CGT when you eventually sell them. The cost basis is usually the market value when you received them (unless it was a gift from your spouse).

How does CGT work with share options?

Employee share options have special rules. Generally, you pay income tax and National Insurance when you exercise the option (based on the difference between the exercise price and market value), and then CGT when you sell the shares (based on the difference between sale price and market value at exercise).

Expert Resources and Further Reading

For official guidance, consult these authoritative sources:

For complex situations, consider consulting a chartered tax adviser or accountant specialising in investment taxation.

Conclusion

Understanding capital gains tax on shares is crucial for UK investors to make informed decisions and optimise their tax position. Key takeaways:

  • You only pay tax on the gain, not the total sale proceeds
  • The tax rate depends on your income tax band (10% or 20% for shares)
  • Everyone gets an annual exempt amount (£6,000 for 2023/24)
  • Keep meticulous records of all share transactions
  • Use legal strategies like loss offsetting and ISA investments to reduce tax
  • Report and pay CGT through Self Assessment by 31 January
  • Our calculator provides an accurate estimate of your liability

For most investors, capital gains tax on shares is manageable with proper planning. By understanding the rules, keeping good records, and using tools like our calculator, you can ensure you’re not paying more tax than necessary while remaining fully compliant with HMRC requirements.

Leave a Reply

Your email address will not be published. Required fields are marked *