Of course. Here is a comprehensive guide to how tax and capital gains are calculated for stocks in the UK.
Overview of Taxes on Stocks in the UK
When you invest in stocks outside of a tax-free wrapper (like an ISA or a SIPP), you are potentially liable for three types of tax:
- Capital Gains Tax (CGT): A tax on the profit you make when you sell your shares.
- Dividend Tax: A tax on the income you receive from dividends paid by the companies you own shares in.
- Stamp Duty Reserve Tax (SDRT): A tax you pay when you buy shares.
Let's break down each one.
1. Capital Gains Tax (CGT)
This is the main tax you pay on the profit from selling shares.
The Core Calculation
The basic formula is:
Taxable Gain = (Selling Price) - (Buying Price + Allowable Costs) - (Annual Exempt Amount)
Step-by-Step Calculation Guide
Step 1: Calculate Your Proceeds
This is the total amount of money you received from selling the shares.
Step 2: Calculate Your Allowable Costs
You can deduct certain costs from your proceeds to reduce your gain. These include:
- The original purchase price of the shares.
- Broker's fees (for both buying and selling).
- Stamp Duty or SDRT paid on purchase (see section 3).
Step 3: Calculate the Net Gain or Loss
Subtract your total allowable costs from your proceeds.
Net Gain = Proceeds - Total Allowable Costs
Step 4: Use Your Annual Exempt Amount (AEA)
Every individual has a tax-free allowance for capital gains each tax year (6th April to 5th April).
- For the 2024/2025 tax year, the AEA is £3,000.
- (This was reduced from £6,000 in 2023/24 and £12,300 in 2022/23).
You only pay tax on gains that are above this allowance.
Step 5: Determine Your CGT Rate and Pay the Tax
The rate of tax you pay on the remaining gain depends on your Income Tax band.
- Add your total taxable gains (after the AEA) to your total taxable income for the year.
- See which Income Tax band this total falls into.
- If your total income + gain is still within the basic rate band (£12,571 to £50,270 for 2024/25), you pay 10% CGT.
- If your total income + gain pushes you into the higher or additional rate band (above £50,270), you pay 20% CGT on that portion.
Worked Example
Let's say in the 2024/25 tax year:
- You are a basic-rate taxpayer with a salary of £40,000.
- You have no other capital gains this year.
-
Buy: You bought 1,000 shares in Company X for £10,000. You paid £10 in broker fees and £50 in Stamp Duty.
- Total Cost Basis: £10,000 + £10 + £50 = £10,060
-
Sell: You sell all 1,000 shares for £15,000. You paid another £10 in broker fees.
- Net Proceeds: £15,000 - £10 = £14,990
-
Calculate Net Gain:
- £14,990 (Net Proceeds) - £10,060 (Total Cost Basis) = £4,930 Net Gain
-
Apply the Annual Exempt Amount (AEA):
- £4,930 (Net Gain) - £3,000 (AEA) = £1,930 Taxable Gain
-
Calculate the Tax:
- Your income (£40,000) + your taxable gain (£1,930) = £41,930. This is still within the basic rate band.
- Tax to pay: 10% of £1,930 = £193
Important CGT Rules for Stocks
- Share Pooling (Section 104 Holding): If you buy shares in the same company at different times and prices, you don't track them individually. They are "pooled" together. To find your cost basis, you calculate the average price you paid for all the shares in the pool.
- The 30-Day Rule ("Bed and Breakfasting"): You cannot sell shares to realise a gain (or loss) and buy them back within 30 days to game the system. If you do, the purchase cost of the new shares is matched against the disposal you just made, not the original pool.
- Capital Losses: If your costs are greater than your proceeds, you have a capital loss. You can't claim a refund, but you can use this loss to offset gains from other assets in the same tax year. If you still have losses left over, you can carry them forward to future tax years indefinitely. You must report your losses to HMRC on your tax return to be able to use them.
2. Dividend Tax
This is a tax on the income you receive from a company you hold shares in.
How it's Calculated
-
Dividend Allowance: You have a tax-free Dividend Allowance each year.
- For the 2024/2025 tax year, the allowance is £500.
- (This was reduced from £1,000 in 2023/24).
-
Tax Rates: For dividends received above the allowance, the tax rate depends on your Income Tax band.
- Basic Rate Taxpayer: 8.75%
- Higher Rate Taxpayer: 33.75%
- Additional Rate Taxpayer: 39.35%
Crucially: Your dividends are treated as the 'top slice' of your income. This means they are added on top of your other income (like your salary) to determine which tax band they fall into.
3. Stamp Duty Reserve Tax (SDRT)
This is the simplest of the three.
- What is it? A tax on the electronic purchase of UK shares.
- Rate: 0.5% of the transaction value.
- How is it paid? It's almost always handled automatically by your broker and included in the cost of the trade. You don't need to do anything separately.
- Important: Remember to include this 0.5% charge as part of your "Allowable Costs" when calculating Capital Gains Tax later.
Note: Some investments like ETFs, gilts, and shares on the AIM market are exempt from Stamp Duty.
The Best Way to Avoid Stock Taxes: ISAs and SIPPs
For most UK investors, the best strategy is to use tax wrappers.
- Stocks & Shares ISA (Individual Savings Account): You can invest up to £20,000 per tax year (2024/25).
- Inside an ISA, there is NO Capital Gains Tax and NO Dividend Tax to pay, ever.
- SIPP (Self-Invested Personal Pension): A pension wrapper you control.
- Inside a SIPP, there is also NO Capital Gains Tax and NO Dividend Tax. You get tax relief on your contributions, but you will pay Income Tax on the money when you withdraw it in retirement (from age 55, rising to 57).
Using your ISA allowance first is typically the most effective tax-saving strategy for stock market investors in the UK.
How to Report and Pay Tax
If your total gains are over the £3,000 Annual Exempt Amount, or your total proceeds from selling assets are more than four times the allowance (£12,000), you must report it to HMRC.
This is usually done via a Self Assessment tax return. The deadline for online filing and paying the tax is 31st January of the following year.
Disclaimer: This information is for general guidance only and is based on tax rules for the 2024/2025 tax year. Tax laws can change, and your personal circumstances can affect your tax position. It is always recommended to seek advice from a qualified financial advisor or accountant.