Capital Gains Tax on shares, funds and crypto in the UK (2026/27)
Capital Gains Tax on shares and crypto in 2026/27: 18% or 24% on gains over the £3,000 allowance. How to work out your gain, the 30-day rule and how to report.
You pay Capital Gains Tax on shares, funds and crypto when your total gains for the tax year are above the £3,000 tax-free allowance. For 2026/27 the rate is 18% on the part that fits in your basic rate band and 24% on the rest. Shares and funds inside an ISA or a pension are free of Capital Gains Tax.
Capital Gains Tax on shares is a tax on the profit you make when you sell or give away investments that have gone up in value, not on the money you receive. This guide covers what is taxed, how to work out your gain (including the matching rules for shares you bought at different times), how crypto is treated, what happens with losses and how to report to HMRC.
It explains how the rules work. It is not advice on what to buy, sell or hold.
What is Capital Gains Tax on shares in the UK?
It is the tax on the gain when you sell or dispose of shares, fund units or cryptoassets for more than they cost you. You only pay if your total taxable gains for the tax year (6 April to 5 April) are above your allowance.
GOV.UK lists as chargeable:
- shares that are not in an ISA or PEP
- units in a unit trust, and certain bonds
- cryptoassets
"Disposing" is wider than selling. For crypto, HMRC counts selling, swapping for a different token, paying for goods or services and giving tokens away. For shares, giving them away also counts, and you use their market value on the day.
How much Capital Gains Tax do I pay on shares?
For 2026/27 you get a £3,000 tax-free allowance, then pay 18% on gains within your basic rate band and 24% above it. The same rates apply to shares, funds and crypto. For the full table and past years, see our guide to the Capital Gains Tax allowance and rates.
| Capital Gains Tax on shares and crypto | 2026/27 |
|---|---|
| Tax-free allowance (Annual Exempt Amount) | £3,000 |
| Gains within your basic rate band | 18% |
| Gains above your basic rate band | 24% |
| Higher and additional rate taxpayers | 24% on all taxable gains |
| Basic rate band used to work out the rate | £37,700 of taxable income |
| Gains qualifying for Business Asset Disposal Relief | 18% |
Budget 2026 lists the same £3,000 allowance and the same 18% and 24% rates for 2027/28.
How do I know which rate applies to me?
Your income decides the rate. GOV.UK's method is:
- Work out your taxable income: your income minus your Personal Allowance (£12,570 for 2026/27) and other Income Tax reliefs.
- Add up your taxable gains and take off the £3,000 allowance.
- Add what is left to your taxable income.
- Any part that fits within the £37,700 basic rate band is taxed at 18%. The rest is taxed at 24%.
So a large gain can be partly at 18% and partly at 24%, even if your salary is in the basic rate band.
What shares and investments are free of Capital Gains Tax?
Gains inside ISAs and registered pensions are not taxed, and nor are gains on UK government gilts and Premium Bonds. GOV.UK and HMRC's manuals list these as free of Capital Gains Tax:
| Investment | Capital Gains Tax? |
|---|---|
| Shares, funds and other investments in an ISA or PEP | No |
| Investments held by a registered pension scheme | No |
| UK government gilts and Premium Bonds | No |
| Qualifying Corporate Bonds | No |
| Shares kept in an employer Share Incentive Plan (SIP) until you sell | No |
| Gifts of shares to your husband, wife, civil partner or a charity | Usually no |
| Employee shareholder shares | Depends on when you got them |
| Shares, funds and crypto held anywhere else | Yes, on gains above your allowance |
The ISA limit for 2026/27 is £20,000 in total across your ISAs. Dividends are taxed separately from gains: our guide to dividend tax rates covers the tax on what your shares pay out.
How is Capital Gains Tax on shares calculated?
Your gain is usually what you sold the shares for, minus what you paid for them, minus the costs of buying and selling. Add up the gains on everything you sold in the tax year, take off any losses, then take off the £3,000 allowance. What is left is taxed at 18% or 24%.
Costs GOV.UK says you can take off include:
- dealing or broker fees when you bought and sold
- Stamp Duty Reserve Tax you paid when you bought the shares
You use the shares' market value instead of what you paid or received when:
- you gave them to someone other than your spouse, civil partner or a charity
- you sold them for less than they were worth
- you inherited them and do not know the Inheritance Tax value
- you owned them before April 1982
- you got them through certain employee share schemes
If you own shares jointly, you only work out the gain on your share.
Is there a Capital Gains Tax on shares calculator?
Yes, GOV.UK has a calculator, but only for simple sales. You can use it if you sold one type of share, in one company, bought on one date and sold all at the same time. You cannot use it if you sold other shares or other chargeable assets (like a let property) in the same tax year, or if you are claiming reliefs. For anything else, you work it out using the rules below.
How do I calculate Capital Gains Tax on shares bought at different times?
When you buy the same shares more than once, you usually use the average cost of all of them, known as the Section 104 pool. Two rules come first, though: shares bought on the same day as a sale, and shares bought in the 30 days after it.
HMRC matches the shares you sell in this order:
- Same day rule. Shares you bought on the same day you sold.
- 30-day rule (often called "bed and breakfasting"). Shares of the same type in the same company that you buy in the 30 days after the sale.
- Section 104 pool. Everything else, at the average cost of all the shares of that type you hold.
How does the Section 104 pool work?
Since 6 April 2008, all your shares of the same type in the same company are treated as one pool with one average cost. When you buy more, you add the shares and their cost to the pool. When you sell some, you take out a matching share of the cost.
GOV.UK's own example: you buy 100 shares at 80p (£80), then 300 more at £1.20 (£360). Your pool is 400 shares costing £440, an average of £1.10 each. If you sell 150, the cost you take off is £165.
What is the 30-day rule for shares?
If you sell shares and buy the same shares back within 30 days, the sale is matched with the shares you bought back, not with your pool. So the cost you take off is the price of the new shares, not your older average cost.
The 30-day rule does not apply if you were not UK resident when you bought the shares back. HMRC's helpsheet HS284 has the full rules, including what happens with bonus and rights issues.
How are funds, unit trusts and investment trusts taxed?
Units in a unit trust are taxed like shares, and the same rules apply to shares in investment trusts and open-ended investment companies. So you use the same pool and matching rules as above.
Two points catch people out:
- Accumulation units. The income is reinvested for you instead of being paid out. Where that reinvested income is taxed as income, HMRC lets you add it to your cost, which reduces your gain when you sell.
- Switching between sub-funds. In an umbrella fund, each sub-fund is treated as a separate unit trust, so a switch between them is normally a disposal.
Do I pay Capital Gains Tax on crypto?
Yes. HMRC treats cryptoassets as chargeable assets, so you may pay Capital Gains Tax when you dispose of them. You add your crypto gains to your other gains for the year, and the same £3,000 allowance and 18% or 24% rates apply.
HMRC says a disposal includes:
- selling tokens for money
- exchanging tokens for a different type of token
- using tokens to pay for goods or services
- giving tokens away, unless it is to your spouse, civil partner or a charity
Moving tokens between wallets you own is not a disposal, as long as you keep ownership the whole time.
Is swapping one crypto for another taxable?
Yes. A crypto-to-crypto swap is a disposal of the token you give up. Your proceeds are the value in pounds of the tokens you receive. HMRC's manual says you need a suitable exchange rate where there is no direct pound price, and to use a reasonable, consistent method and record how you valued it.
The tokens you receive then start with that value as their cost, ready for when you dispose of them later.
How do you work out the gain on crypto?
Crypto uses the same pooling and matching rules as shares. Each type of token has its own pool with an average cost. Tokens bought on the same day as a sale, or in the 30 days after it, are matched first. Non-fungible tokens (NFTs) are each different, so they are not pooled.
Costs you can take off include transaction fees, advertising for a buyer or seller, drawing up a contract and valuations needed to work out the gain. You cannot take off mining costs such as equipment or electricity, or costs already claimed against Income Tax. Where one fee covers a swap, HMRC accepts splitting it 50/50 between the token you gave up and the one you received.
HMRC says exchange reports can help, but they are not tax calculations and do not track pooled costs, so you need your own records. If you paid Income Tax when you received tokens (for example as pay), Capital Gains Tax only applies to the rise in value after that. You may also owe Income Tax when you receive crypto, which is a separate set of rules.
What if I lose my crypto keys?
Losing a private key is not a disposal, so you cannot claim a loss just for that. If there is no prospect of getting the key back, HMRC says you may be able to make a negligible value claim, which treats the tokens as sold and bought back so you can record a loss. The claim covers the whole pool for that token.
Worked example: Priya sells shares and swaps crypto
Priya, a basic rate taxpayer, makes £18,000 of net gains in 2026/27 and pays £3,138 in Capital Gains Tax. Her salary is £42,570, so her taxable income after the £12,570 Personal Allowance is £30,000. Nothing is held in an ISA.
Her shares. She bought 1,000 shares in a company for £5,000, including fees, then another 1,000 for £10,000. Her pool is 2,000 shares costing £15,000, or £7.50 each. She sells 1,200 shares for £24,000.
| Shares | Amount |
|---|---|
| Sale price | £24,000 |
| Less: pool cost (1,200 x £7.50) | £9,000 |
| Gain | £15,000 |
Her crypto. She swaps tokens with a pooled cost of £2,000 for a different token worth £6,000 on the day. That swap is a disposal: gain £4,000.
Her fund. She sells fund units for £4,000 that cost her £5,000: a loss of £1,000.
| Putting it together | Amount |
|---|---|
| Gain on shares | £15,000 |
| Gain on crypto swap | £4,000 |
| Less: loss on fund units | £1,000 |
| Net gains | £18,000 |
| Less: annual allowance | £3,000 |
| Taxable gains | £15,000 |
| Working out the rate | Amount |
|---|---|
| Basic rate band left (£37,700 minus £30,000) | £7,700 |
| £7,700 at 18% | £1,386 |
| Rest: £7,300 at 24% | £1,752 |
| Capital Gains Tax to pay | £3,138 |
Her gains are above the allowance, so she must report them, even though the total she sold for (£34,000) is under £50,000.
What if Priya buys some shares back? Say she buys 200 of the same shares for £4,200 ten days after selling. Under the 30-day rule, 200 of the 1,200 she sold are matched with those, at £4,200. The other 1,000 come from her pool at £7.50 each, which is £7,500. Her cost is now £11,700 and her gain on the shares falls to £12,300, not £15,000. Her pool afterwards is 1,000 shares costing £7,500.
Can I use losses on shares or crypto?
Yes. Losses come off gains in the same tax year first, and unused losses can be carried forward to later years. You have 4 years from the end of the tax year you made the loss to claim it.
- You claim a loss by putting it on your tax return. If you have never made a gain and are not in Self Assessment, you can write to HMRC instead.
- Losses from the same tax year are taken off your gains in full.
- Losses carried forward from earlier years only need to bring your gains down to the £3,000 allowance. Anything left carries forward again.
- You cannot claim a loss on assets you gave or sold to your spouse or civil partner. A loss on a sale to a family member can only be set against gains from that same person.
- If shares you still own become worthless or of "negligible value", for example after the company is wound up, you can make a negligible value claim (HMRC helpsheet HS286 explains how).
A crypto loss can be set against share gains, and the other way round, because they all count towards the same Capital Gains Tax for the year. GOV.UK says you must report a loss to HMRC before you can use it.
Do I pay Capital Gains Tax on shares given by my employer?
Not usually on the tax-advantaged schemes, as long as you follow their rules, but you might when you sell other employer shares. Shares from an employer can bring Income Tax and National Insurance when you get them, and Capital Gains Tax when you sell.
- Share Incentive Plan (SIP). No Capital Gains Tax if the shares stay in the plan until you sell, or you move them into an ISA within 90 days of taking them out. If you take them out and sell later, you might have to pay.
- Save As You Earn (SAYE). No Capital Gains Tax if you move the shares into an ISA within 90 days of taking them out of the scheme, or straight into a pension when the scheme ends. Otherwise you might pay when you sell.
- Other employer shares. Shares outside the tax-advantaged schemes can have Income Tax and National Insurance on them, and you may need to report through Self Assessment if your employer does not take it through payroll. When you sell, a gain above your allowance is reported like any other.
HMRC's helpsheet HS287 covers working out gains on employment shares.
Do I pay Capital Gains Tax on inherited or gifted shares?
You do not pay tax when you inherit shares, but you may pay Capital Gains Tax when you sell them if they have gone up in value since the person died. The value when the person died is your starting point.
If you give shares away, you may owe Capital Gains Tax yourself, because the gift counts as a disposal at market value. Gifts to your husband, wife, civil partner or a charity are usually free of Capital Gains Tax. For shares in a personal or unlisted company, Gift Hold-Over Relief can mean no tax on the gift, with the person receiving the shares paying when they sell. Our guide to Capital Gains Tax on gifts has a worked example.
Can I legally pay less Capital Gains Tax on shares?
The rules themselves set out what is not taxed, and that is the only safe route: there is no lower rate for holding shares a long time. What GOV.UK and HMRC set out:
- gains inside ISAs and registered pensions are not taxed
- everyone has their own £3,000 allowance each tax year
- gifts between spouses and civil partners are usually free of Capital Gains Tax
- losses reduce gains, and you have 4 years to claim them
- some reliefs reduce or delay the tax where strict conditions are met: Business Asset Disposal Relief (shares in a trading company you work for, where you hold at least 5% of the shares and voting rights), the Enterprise Investment Scheme and Seed Enterprise Investment Scheme (reinvesting a gain in qualifying unlisted companies)
These are the rules, not a recommendation. Whether any of them fits you depends on your own circumstances. Our guide on how to avoid Capital Gains Tax legally covers each one in more detail.
How do I report Capital Gains Tax on shares and crypto?
If your taxable gains are above the £3,000 allowance, you report them on a Self Assessment tax return or through HMRC's real time Capital Gains Tax service. You have to tell HMRC about your gains yourself.
| Route | Who can use it | Report by (2026/27 gains) | Pay by |
|---|---|---|---|
| Self Assessment tax return | Anyone | 31 January 2028 online (31 October 2027 on paper) | 31 January 2028, with your balancing payment |
| Real time Capital Gains Tax service | UK residents reporting their own gains from 2025/26 or 2026/27 | 31 December 2027 | 31 January 2028 |
Things to know:
- Real time service. You must attach a copy of your calculations. HMRC then sends a payment reference starting with "X". If you are already in Self Assessment, you also include the sale on your tax return.
- Self Assessment. Capital gains are added to your balancing payment, not your payments on account. Crypto has its own section on the return from 2024/25, with figures in pounds. If you need a return and have not sent one before, you must register by 5 October after the end of the tax year. See do I need a Self Assessment tax return and how to register for Self Assessment.
- Gains under £3,000. You do not pay anything. But if you are registered for Self Assessment, you must still report your gains if the total you sold assets for was more than £50,000. Before 2023/24 the limit was four times the allowance.
- Unpaid crypto tax from earlier years. HMRC's Cryptoasset Disclosure Service is for telling HMRC about tax you owe for past years.
Our guides to Self Assessment deadlines and how to fill in your Self Assessment return walk through the return itself. If you are selling a property rather than investments, read Capital Gains Tax on property, which has a 60-day deadline.
What to do next
- List every disposal in the tax year: share and fund sales, crypto sales, swaps, spending and gifts. Leave out anything inside an ISA or pension.
- Work out each gain or loss in pounds, using the matching order: same day, then the next 30 days, then the pool.
- Add them up, take off losses and the £3,000 allowance, then apply 18% or 24% using your taxable income.
- Report through Self Assessment or the real time Capital Gains Tax service if you are over the allowance, or over £50,000 of sales and in Self Assessment.
- Keep your records: contract notes, transaction histories, pool workings and how you valued crypto swaps. HMRC expects you to keep your own pooled cost records.
- Set money aside. A big gain arrives in one go. Our guide to how much to save for tax helps you plan for it.
For what Budget 2026 changes for savers and investors, see Budget 2026 for savers and investors.
Holdfast keeps your income records and shows what you owe as you go, so a gain on shares or crypto can sit alongside the rest of your tax for the year.
Questions
Do I pay Capital Gains Tax on shares in an ISA?
No. GOV.UK says you do not pay Capital Gains Tax on gains from ISAs or PEPs, however much the shares or funds inside them grow.
How much Capital Gains Tax do I pay on shares?
For 2026/27 you pay 18% on taxable gains that fit in your basic rate band and 24% on the rest, after taking off the £3,000 tax-free allowance. Higher and additional rate taxpayers pay 24% on all their taxable gains.
Do I pay less Capital Gains Tax on shares held for 10 or 20 years?
No. The UK has no lower rate for shares you have owned for a long time. A gain on shares held for 20 years is taxed at the same 18% or 24% as a gain on shares held for 20 days.
Do I pay Capital Gains Tax on inherited shares?
Not when you inherit them. If you later sell shares that went up in value after the person died, you may pay Capital Gains Tax on that rise.
Do I pay Capital Gains Tax on SIP shares from my employer?
Not if the shares stay in the Share Incentive Plan until you sell them, or you move them into an ISA within 90 days of taking them out. If you take them out and sell later, you might have to pay.
Is swapping one cryptocurrency for another taxable in the UK?
Yes. HMRC treats exchanging tokens for a different type of token as a disposal, so you work out a gain or loss in pounds, even though you never received any money.
Can I defer Capital Gains Tax on shares?
Only through specific reliefs. GOV.UK says the Enterprise Investment Scheme can delay or reduce the tax if you reinvest the gain in qualifying unlisted companies, and each relief has its own conditions.
Do I have to report share sales if my gain is under £3,000?
Usually not. But if you are registered for Self Assessment, you must report your gains on your return if the total you sold assets for was more than £50,000, even when the gain is under the allowance.
Sources
- www.gov.uk/tax-sell-shares
- www.gov.uk/tax-sell-shares/print
- www.gov.uk/capital-gains-tax/what-you-pay-it-on
- www.gov.uk/capital-gains-tax/rates
- www.gov.uk/capital-gains-tax/allowances
- www.gov.uk/capital-gains-tax/work-out-need-to-pay
- www.gov.uk/capital-gains-tax/losses
- www.gov.uk/capital-gains-tax/reporting-and-paying-capital-gains-tax
- www.gov.uk/report-and-pay-your-capital-gains-tax/if-you-have-other-capital-gains-to-report
- www.gov.uk/government/publications/shares-and-capital-gains-tax-hs284-self-assessment-helpsheet/hs284-shares-and-capital-gains-tax-2026
- www.gov.uk/hmrc-internal-manuals/capital-gains-manual/cg51560
- www.gov.uk/hmrc-internal-manuals/capital-gains-manual/cg67650
- www.gov.uk/guidance/check-if-you-need-to-pay-tax-when-you-sell-cryptoassets
- www.gov.uk/hmrc-internal-manuals/cryptoassets-manual/crypto22050
- www.gov.uk/hmrc-internal-manuals/cryptoassets-manual/crypto22100
- www.gov.uk/hmrc-internal-manuals/cryptoassets-manual/crypto22150
- www.gov.uk/hmrc-internal-manuals/cryptoassets-manual/crypto22200
- www.gov.uk/hmrc-internal-manuals/cryptoassets-manual/crypto22257
- www.gov.uk/hmrc-internal-manuals/cryptoassets-manual/crypto22400
- www.gov.uk/hmrc-internal-manuals/cryptoassets-manual/crypto22500
- www.gov.uk/hmrc-internal-manuals/cryptoassets-manual/crypto23000
- www.gov.uk/individual-savings-accounts
- www.gov.uk/tax-employee-share-schemes
- www.gov.uk/tax-employee-share-schemes/share-incentive-plans-sips
- www.gov.uk/tax-employee-share-schemes/save-as-you-earn-saye
- www.gov.uk/tax-employee-share-schemes/reporting-the-gain-on-your-shares
- www.gov.uk/tax-property-money-shares-you-inherit/money-and-shares
- www.gov.uk/income-tax-rates
- www.gov.uk/understand-self-assessment-bill/payments-on-account
- www.gov.uk/register-for-self-assessment
- www.gov.uk/government/publications/budget-2026-overview-of-tax-legislation-and-rates-ootlar/annex-a-rates-and-allowances
This guide is general information, not financial, tax or legal advice. Tax rules change, so check GOV.UK or ask HMRC if you're unsure. Read our terms.
Try it and read more
- Capital Gains Tax calculator 2026/27Free calculator
- Your Self Assessment returnHow Holdfast estimates your Self Assessment tax, builds your return with every step explained, and lists what needs a look.
- How to pay HMRCThe ways to pay your Self Assessment bill, how long each takes to reach HMRC, the right reference and what to do if you can't pay.
- Keeping records for HMRCWhat records HMRC expects you to keep for Self Assessment, how long to keep them, and how Holdfast keeps them for you.
More tax guides
- Can I avoid Capital Gains Tax? 10 legal ways to pay less in 2026/27Can I avoid Capital Gains Tax? Not if it is due, but 10 legal rules cut it: the £3,000 allowance, spouse transfers, losses, costs, ISAs and 2026/27 reliefs.
- Capital Gains Tax allowance and rates 2026/27, and past yearsCapital Gains Tax allowance and rates 2026/27: the UK allowance is £3,000 and gains are taxed at 18% or 24%. Past years from 2016/17, Scotland and reporting.
- Capital Gains Tax on gifts: shares, property and giving to family (2026/27)Capital Gains Tax on gifts: giving shares or property counts as a sale at market value, except to a spouse or charity. Who pays, 2026/27 rates and reliefs.
- Capital Gains Tax on home sale: Private Residence Relief explainedCapital Gains Tax on home sale: when Private Residence Relief makes your home tax-free, the final 9 months, letting, lodgers, two homes and when to report.