Capital Gains Pooling Calculator United Kingdom

This capital gains pooling calculator finds the allowable cost of a UK share sale using the same-day, 30-day and Section 104 rules, then the CGT due.

Capital Gains Pooling Calculator United Kingdom
£
£
£
Advanced options
£
£
£
£
£
Capital Gains Tax due —
Pool average cost per share —
Allowable cost of the shares sold —
Disposal proceeds —
Gain on the disposal —
Gain after losses —
Annual exempt amount used —
Taxable gain —
Taxed at the lower CGT rate —
Taxed at the higher CGT rate —
Gain kept after tax —
Shares matched to the pool —
Shares left in the pool —
Pooled cost carried forward —
Effective rate on the gain —

We always strive to use the latest data for every variable so our results and reports are as accurate as possible. Even so, errors are possible — you should not rely on this tool or its report alone, and we accept no liability for any decision made based on it.

What it does

The Capital Gains Pooling Calculator works out the allowable cost of a share disposal under the HMRC share identification rules and the Capital Gains Tax that follows.

Data sources & parameters

The figures below drive this calculator. We keep them aligned with the latest official guidance, and each result recalculates automatically whenever a value changes.

ParameterValueSourceLast updated
CGT annual exempt amount3,000gov.ukEffective 2026-04-06Fixed in statute (not indexed), no change announced for 2027/28; row now open-ended. Source: gov.uk Capital Gains Tax; audit 2026-09-23
CGT rate within the basic-rate band0.18gov.ukEffective 2026-04-06Capital Gains Tax rate for gains falling in the basic-rate band (all assets, from 30 Oct 2024)
CGT rate above the basic-rate band0.24gov.ukEffective 2026-04-06Capital Gains Tax rate for gains above the basic-rate band (all assets, from 30 Oct 2024)
Personal allowance12,570gov.ukEffective 2026-04-06
Income tax basic-rate limit50,270gov.ukEffective 2026-04-06Label corrected. The stored value was right; the label named a different figure and is shown to readers in the data-sources box.

We always strive to use the latest data for every variable so our results and reports are as accurate as possible. Even so, errors are possible — you should not rely on this tool or its report alone, and we accept no liability for any decision made based on it.

The formula

Gain = proceeds − (same-day cost + 30-day cost + pooled average cost × shares matched to the pool + dealing costs); tax = taxable gain × the CGT rate for your band

How it works

Shares sold are matched first to same-day purchases, then to shares reacquired in the following 30 days, and only the balance comes out of the Section 104 pool at its average cost per share.

Where it is used

  • Costing a partial disposal from a Section 104 holding
  • Seeing what a repurchase within 30 days does to the gain
  • Tracking the pooled cost carried forward after a sale

Worked example

A pool of 1,000 shares costing £8,000.00 has an average cost of … a share, so selling 400 shares carries an allowable cost of … against … of proceeds — a gain of … and … of Capital Gains Tax.

When you sell part of a shareholding, you need to know which shares you sold and what they cost. This calculator works it out the way HMRC does: it matches the sale against same-day purchases, then against anything you bought back within the next 30 days, and finally against the Section 104 pool at its average cost per share. It then works out the gain, applies the annual exempt amount and calculates the Capital Gains Tax due.

What the capital gains pooling calculator is doing

UK tax law does not track individual share certificates. All shares of the same class in the same company are treated as one asset, the Section 104 holding, named after the section of the Taxation of Chargeable Gains Act 1992 that creates it. The pool has two running figures: the number of shares and the total cost of acquiring them. Divide one by the other and you have the average cost per share.

When you sell, the pool gives up shares and a proportional slice of its cost. Sell 400 shares from a pool of 1,000 that cost £8,000, and the allowable cost is 400 × £8 = £3,200. The pool carries forward 600 shares and £4,800 of cost for the next disposal. The calculator reports that carried-forward figure as well as the tax.

If those 400 shares sold for £25 each, the proceeds are £10,000 and the gain is £6,800. After the £3,000 annual exempt amount, £3,800 is taxable. For someone with £40,000 of other income, £10,270 of the basic rate band is unused, so all £3,800 is taxed at 18%, giving £684 of tax.

The matching rules come first

Two rules take priority over the pool.

The same-day rule matches a sale against any shares of the same class bought on the same day. Trades that cancel each other out within a day cannot create a gain or a loss.

The 30-day rule, usually called the bed and breakfasting rule, matches a sale against shares of the same class bought in the following 30 days. It targets the old practice of selling on 5 April to use the annual exempt amount and buying back on 6 April. Do that now and the sale is matched to the repurchase price instead of the pooled cost. In the example above, buying the 400 shares back at around £25 within 30 days would reduce the £6,800 gain to almost nothing.

Only what is left after both rules comes out of the Section 104 pool. Shares matched under either rule never enter the pool, which is why the pool balance in the results does not fall when a repurchase absorbs the whole sale.

Costs you are allowed to deduct

The allowable cost includes more than the purchase price. You can add the incidental costs of buying and selling: broker commission on both sides, stamp duty or stamp duty reserve tax paid on the purchase, and transfer or settlement fees. Enter those in the dealing and transfer costs field and they reduce the gain directly.

Interest on a loan used to buy the shares is not allowable. Neither are ongoing platform or custody fees, research subscriptions or the value of your own time. Dividends already taxed as income play no part in the capital gains calculation.

Losses and the annual exempt amount, in that order

Capital losses come off the gain first, and the annual exempt amount is applied to what remains. Losses from the same tax year must be used in full, even if that wastes part of the exempt amount. Losses brought forward from earlier years are used only down to the level of the exempt amount, so they are never wasted. The calculator takes one losses figure and applies it before the exemption, which matches the brought-forward treatment most people need.

What is left is the taxable gain. It is stacked on top of your income: the part that fits in your unused basic rate band is taxed at the lower rate for shares and the rest at the higher rate. Two people with the same gain can therefore face very different bills, which is why the calculator asks for your other taxable income.

Keeping the pool right over time

The pool is only as good as your records. Every purchase adds its full cost, including stamp duty and commission. Rights issues add shares and cost. Bonus issues and share splits add shares without adding cost, which lowers the average. Takeovers, mergers and share-for-share exchanges usually carry the old cost across to the new holding instead of triggering a disposal. Dividends reinvested through a DRIP are new purchases at the reinvestment price and must be added like any other purchase. They are easy to forget, and missing them understates the pooled cost for years.

Shares held in an ISA or a pension are outside Capital Gains Tax altogether, so there is no pool to keep.

Before you file on these numbers

The tool models one disposal from one pool, which covers most ordinary share sales. It does not handle share reorganisations, employee share schemes with their own base cost rules, holdings acquired before April 1982, negligible value claims, or jointly held shares where each owner has a separate pool. Non-residents, trusts and companies follow different rules.

Use the result to plan and to sanity-check a broker’s tax report. Confirm anything you intend to file with a qualified tax adviser or HMRC’s guidance. This is information, not financial or tax advice.

About This Capital Gains Pooling Calculator

Use this capital Gains pooling calculator to get an instant, accurate estimate. The figures follow official GOV.UK guidance and every rate and threshold is kept up to date for 2026. Adjust the inputs above to match your situation, or browse all our calculators to plan your next step.

Tax year 2026

Frequently asked questions

What is a Section 104 pool?
It is a single running holding of all the shares of the same class in the same company that you own. Every purchase adds shares and cost to the pool, and every sale removes shares and a proportional slice of the cost. Because the pool has one average cost per share, you never need to know which physical shares you sold.
How does this capital gains pooling calculator match a disposal?
In the statutory order. Shares sold are matched first to shares bought on the same day, then to shares reacquired in the following 30 days, and only the balance is taken from the Section 104 pool at its average cost. Enter your same-day and 30-day quantities and the tool applies the rules in sequence.
What is the 30-day bed and breakfasting rule?
If you buy the same shares back within 30 days of selling them, the sale is matched against that repurchase rather than your pool. The gain is then measured against the repurchase price, which is usually close to the sale price, so most of the gain you meant to realise disappears. The rule stops people selling and buying back purely to use the annual exempt amount.
What counts as an allowable cost?
The purchase price of the shares matched to the disposal, plus the incidental costs of buying and selling: broker commission, stamp duty or stamp duty reserve tax on the purchase, and transfer fees. Interest on money borrowed to buy the shares is not allowable, and neither are the costs of managing the holding.
What rate of Capital Gains Tax applies to shares?
The gain sits on top of your income. The part that falls inside your unused basic rate band is taxed at 18%, and anything above it at 24%. Enter your other taxable income so the calculator can split the gain between the two rates.
Do I need to report the disposal to HMRC?
You must report it on a Self Assessment return if your gains exceed the annual exempt amount, or if your total disposal proceeds exceed the reporting threshold, even when no tax is due. Keep the pool history (every purchase, sale, cost and corporate action), because HMRC can ask you to show how the pooled cost was built up.

About the author

Taha Kheirandish

Written and reviewed by

Taha Kheirandish

Economics student and independent researcher

Taha Kheirandish reads tax codes the way other people read maps — to find out where a system actually leads, not where it claims to go.

He is an economics student, and his work here is comparative by design. A pension deferral bonus in Quebec, a commuting allowance in Germany, a rent-increase ceiling in the Netherlands: each is a decision a government made about how money should move, and each reads differently once you set it beside eight others. He builds and checks these calculators across nine markets from primary sources — the regulation rather than a summary of it, the ministry’s own circular rather than a news item quoting it.

That is the editorial standard of the site as well as his habit. Every rate, threshold and bracket here carries the document it was read from and the date it takes effect, and gets re-checked when the law moves rather than when someone happens to notice.

He is a researcher, not a licensed adviser, and nothing on this site is personal financial advice. It is arithmetic done carefully with its sources shown — so that you can check it, and take it to someone who is.

Leave a Reply

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