Do You Pay Tax When You Sell Investments?

Man comparing investment purchase and sale records while considering whether Capital Gains Tax may be due.

This guide is part of our Investing Hub, where we explain the key ideas behind investing, risk and returns to help you understand how investments work and the factors that can affect their value over time.

Does Selling an Investment Automatically Mean You Pay Tax?

No. Selling an investment can create a disposal for Capital Gains Tax purposes, but that does not automatically mean you have Capital Gains Tax to pay.

There are several stages between selling an investment and establishing whether a tax liability exists. You first need to establish whether the disposal produced a gain or a loss. That result then needs to be considered alongside other relevant gains and allowable losses during the tax year, as well as any available exemption or relief.

This means that selling an investment, making a gain and having Capital Gains Tax to pay are three different things.

What Happens When You Sell an Investment?

A sale can start the Capital Gains Tax process, but it does not determine the final tax position on its own.

A disposal occurs

Selling an investment is normally a disposal for Capital Gains Tax purposes where the investment is within the CGT rules.

Work out the result

The disposal may produce a capital gain or a capital loss depending on the relevant proceeds, acquisition cost and allowable costs.

Consider the tax year

Relevant gains and allowable losses from other disposals during the tax year can affect the overall position.

Establish whether tax is due

Capital Gains Tax is only payable if a taxable gain remains after the relevant losses, exemptions and reliefs have been taken into account.

HMRC states that you may have to pay Capital Gains Tax when you make a profit, or gain, from selling or otherwise disposing of shares or other investments. The important words are may have to pay: the disposal begins the calculation, rather than establishing the tax bill by itself.

What Counts as Selling or Disposing of an Investment?

Selling an investment through an investment platform is one of the most obvious examples of a disposal. Shares held outside an ISA, units in unit trusts and certain bonds can all fall within the Capital Gains Tax rules.

For example, if you hold shares in a General Investment Account and sell them, that transaction can be a disposal for CGT purposes. The same can apply when units in an investment fund are sold.

A disposal can sometimes occur in circumstances other than an ordinary sale, so the tax meaning of disposal is broader than simply withdrawing money from an investment platform. There are also specific exemptions and special rules for certain investments and transactions.

The important starting point is therefore to establish whether a disposal has occurred. Only then does it make sense to consider whether that disposal produced a gain or loss and whether any tax may ultimately be payable.

Is Tax Based on How Much Money You Receive From the Sale?

Capital Gains Tax is not normally calculated simply by taking the entire amount you receive when you sell an investment.

Suppose you bought an investment for £10,000 and later sold it for £14,000. Ignoring other costs and adjustments for the moment, the starting gain would be £4,000 rather than £14,000.

HMRC allows certain buying and selling costs to be taken into account when working out a gain. More complicated rules can also apply where, for example, shares in the same company have been purchased at different times and prices.

The important distinction here is between sale proceeds and capital gain. The amount that arrives as cash following a sale is not necessarily the amount potentially subject to Capital Gains Tax.

Capital Gains Tax on Investments Explained looks at how an investment gain is calculated, including allowable costs, losses and the tax rates that can apply.

What If You Sell an Investment for Less Than You Paid?

Not every investment sale produces a gain. If the relevant value received on disposal is lower than the investment’s allowable cost, the disposal may instead produce a capital loss.

An allowable capital loss can potentially reduce other chargeable gains. HMRC’s rules generally require allowable losses arising in the same tax year to be deducted from gains for that year when establishing the overall Capital Gains Tax position.

For example, a gain on one investment and an allowable loss on another should not necessarily be considered independently. The loss may reduce the overall gains that remain subject to the CGT calculation.

There are rules governing which losses are allowable and how losses are claimed or carried forward, so making an investment loss does not mean every financial loss can automatically be deducted. For the purpose of understanding a sale, however, the important point is that a disposal can produce either a gain or a loss.

What If Your Investment Has Increased in Value but You Do Not Sell It?

An investment can rise substantially in value while you continue to own it. That increase is often described as an unrealised gain because the investment has not yet been disposed of.

Suppose you invested £10,000 and the investment is now worth £15,000. Its market value has increased by £5,000, but you have not sold it simply because its quoted value has changed.

This distinction matters because an investment account might show a large increase in value without that increase having been realised through a sale. A later disposal could bring some or all of that gain into the CGT calculation, but the changing market value by itself does not normally create the same event.

What If Your Gain Is Below the Capital Gains Tax Annual Exempt Amount?

Individuals have an Annual Exempt Amount for Capital Gains Tax. For the 2026/27 tax year, this is £3,000.

However, the £3,000 exemption should not be thought of as a separate allowance for every investment you sell. It applies when considering your overall relevant gains for the tax year after the applicable rules for losses and reliefs have been taken into account.

This means that making a £2,000 gain on one investment does not necessarily settle the tax position if you later make gains from other chargeable disposals during the same tax year.

For example, two separate £2,000 gains would amount to £4,000 of gains before considering any allowable losses or other adjustments. Each individual gain might be below £3,000, but they still form part of the same tax-year calculation.

How the Capital Gains Tax Annual Exempt Amount Works explains the exemption and how it interacts with gains and losses in more detail.

What If You Sell Several Investments During the Same Tax Year?

Looking at each investment sale in isolation can give a misleading picture. Relevant gains and allowable losses from different disposals can need to be brought together when establishing the overall Capital Gains Tax position for the tax year.

Consider an investor who makes gains on two investments but also realises an allowable loss on a third.

Combining Gains and a Loss

This simplified example shows why several investment disposals may need to be considered together.

Gain on Investment A £4,000
Gain on Investment B £2,000
Allowable loss on Investment C £1,500
Net gains before the Annual Exempt Amount £4,500
What this means
The three disposals form part of the investor’s overall position. The available Annual Exempt Amount and any other relevant rules would then need to be considered before establishing whether Capital Gains Tax is payable.

This is a simplified illustration and assumes the loss is allowable and there are no other gains, losses or relevant reliefs.

The example also shows why the sale price of a single investment cannot necessarily tell you how much CGT will be due. Other transactions during the same tax year can change the final result.

Do You Pay Tax When You Sell Investments in an ISA?

Gains arising on investments held within an ISA are not subject to UK Capital Gains Tax. This means selling an eligible investment inside a Stocks & Shares ISA does not bring that gain into the normal CGT calculation.

The underlying investment may still have increased or decreased in value in exactly the same way as an investment held outside an ISA. What changes is the tax wrapper surrounding it.

For example, selling shares held in a General Investment Account can potentially create a chargeable gain. Selling shares held within an ISA does not create a UK CGT liability on the ISA gain.

This is one of the tax protections provided by the ISA wrapper. ISA Tax Benefits Explained looks at how ISAs affect the treatment of capital gains, dividends and interest more broadly.

Does Withdrawing the Money Create the Tax?

Selling an investment and withdrawing the resulting cash are two separate actions. This distinction is particularly important when investments are held through a General Investment Account.

Selling an Investment

The investment is disposed of and converted into cash. Where the investment is within the Capital Gains Tax rules, this disposal can produce a gain or loss that needs to be considered.

Withdrawing the Cash

Cash that is already sitting within the investment account is transferred elsewhere, such as to a bank account. This is separate from the investment disposal that produced the cash.

For Capital Gains Tax purposes, the disposal of the investment is the important event. Leaving the sale proceeds inside the investment account does not undo that disposal.

Suppose you sell shares held in a GIA and leave the proceeds as cash on the investment platform. The fact that you have not transferred the money to your bank account does not mean the shares were never disposed of.

Equally, transferring cash that is already sitting within the account should not be confused with selling an investment. The two actions may happen close together, but they perform different jobs.

What Is a General Investment Account? explains how investments and cash can be held within a GIA and why the account itself should be distinguished from the investments inside it.

What If You Sell One Investment and Immediately Buy Another?

Using the proceeds from an investment sale to buy another investment does not generally erase the disposal that has already taken place.

For example, you might sell £15,000 of Investment A and immediately use the £15,000 to buy Investment B. Even though the money remains invested and never reaches your bank account, Investment A has still been disposed of.

Any gain or loss arising from that disposal therefore still needs to be considered under the relevant Capital Gains Tax rules.

There can be additional complexity if you sell shares and repurchase shares in the same company. HMRC has specific share-identification rules that determine which shares are treated as having been disposed of where purchases and sales occur at different times. Those rules are covered more fully in Capital Gains Tax on Investments Explained.

The broader principle remains straightforward: reinvesting the proceeds does not, by itself, cancel the original disposal.

What If You Sell Investments to Move Them Into an ISA?

Investments held outside an ISA generally cannot simply have their account wrapper changed while the existing holding remains untouched. One way investments are moved from a taxable account towards an ISA is through a process commonly known as Bed and ISA.

This normally involves selling investments outside the ISA, subscribing cash to the ISA subject to the applicable ISA rules and available allowance, and then purchasing investments within the ISA.

The important tax point is that the initial sale outside the ISA remains a disposal. Moving the resulting money into an ISA does not retrospectively place the original gain inside the ISA tax wrapper.

A gain or loss on the original disposal may therefore need to be considered for Capital Gains Tax purposes before the subsequent ISA investment is considered separately.

Do You Need to Report Every Investment Sale to HMRC?

Selling an investment does not automatically mean that the transaction needs to be reported to HMRC in every circumstance. Reporting requirements depend on matters including the gains made, the investor’s wider circumstances and how their tax affairs are dealt with.

This is another reason to keep three questions separate: whether a disposal occurred, whether Capital Gains Tax is payable and whether something needs to be reported to HMRC. The answer to one does not automatically determine the others.

HMRC provides current guidance on reporting Capital Gains Tax, including reporting through Self Assessment and other available reporting routes. Because reporting requirements and procedures can change, the current HMRC guidance should be checked when establishing whether a particular disposal needs to be reported.

Keeping records of purchases, sales, allowable costs, investment income and other relevant transactions can make this process easier, particularly where several investments have been bought and sold over time.

A Simple Way to Think About Selling Investments and Tax

Work through the disposal before deciding whether selling the investment has actually produced a Capital Gains Tax liability.

  1. Was there a disposal?

    Establish whether an investment was sold or another event occurred that counts as a disposal for Capital Gains Tax purposes.

  2. Did it produce a gain or loss?

    Compare the relevant disposal value with the allowable cost under the applicable CGT rules.

  3. What else happened during the tax year?

    Consider other relevant gains and allowable losses rather than looking at one disposal in isolation.

  4. What exemptions or reliefs apply?

    Take account of the available Annual Exempt Amount and any other relevant reliefs or rules.

  5. Is there a taxable gain left?

    Only after working through the preceding stages can you establish whether the disposal contributes to a Capital Gains Tax liability.

The key distinction

Selling an investment can create a disposal without necessarily creating a tax bill. The final tax position depends on the gain or loss and the investor’s overall Capital Gains Tax position.

Conclusion

Selling an investment does not automatically mean you have tax to pay. The sale may create a disposal for Capital Gains Tax purposes, but the next question is whether that disposal produced a gain or a loss.

Even where a gain has been made, it needs to be considered alongside other relevant gains and allowable losses during the tax year, as well as the Annual Exempt Amount and any applicable reliefs. Investments held within an ISA are also treated differently because gains arising within the ISA are not subject to UK Capital Gains Tax.

The clearest way to approach the question is therefore to separate the events. First establish whether there has been a disposal, then determine the gain or loss, consider the wider tax-year position and only then establish whether Capital Gains Tax is actually payable.