1. Home
  2. Guides
  3. Section 104 holding

The section 104 holding: how share pooling works

Last updated . Written by Divisio Capital. Figures checked against GOV.UK on 15 November 2026.

The short answer:

  • One pool: your shares of the same class in the same company are held together in one section 104 holding.
  • Average cost: the costs of the shares in it are added together, so each share counts at the same average cost.
  • Part sales: a sale takes the shares sold divided by the shares in the pool, times the pool's cost.

The section 104 holding is the pool HMRC puts your shares of one company in for capital gains tax, at their average cost. When you sell some of them, the cost you deduct is that share of the pool's total cost. Shares matched by the same-day and 30-day rules never join it.

What the pool is

HS284 says that from 6 April 2008 all shares of the same class in the same company are held together in a section 104 holding. You add together the costs of the shares in it, and each share is treated as if it was bought at the same average cost. HMRC's Capital Gains Manual describes it as a single pool of expenditure, and says the pool includes the cost of the shares and the costs of buying them.

The exception HS284 gives is shares you held on 31 March 1982, which are not at their actual cost. This guide does not cover them.

Sources: GOV.UK, HS284 Shares and Capital Gains Tax (2026) and HMRC's Capital Gains Manual, CG51575. Checked against GOV.UK on 15 November 2026.

What goes in and what comes out

Sources: GOV.UK, HS284, Tax when you sell shares: work out your gain and HMRC's Capital Gains Manual, CG51575. Checked against GOV.UK on 15 November 2026.

A worked example

You buy shares in Company A in a general account (not an ISA). The costs below include fees and stamp duty, and no purchase falls on the day of a sale or in the 30 days after one.

The pool, step by step
DateWhat happensShares in the poolPool cost
14 March 2021Buy 400 for £1,000.00400£1,000.00
8 August 2023Buy 600 for £2,400.001,000£3,400.00
10 June 2026Sell 250: cost 250 ÷ 1,000 × £3,400.00 = £850.00750£2,550.00
2 September 2026Buy 500 at £3.98, plus £10.00 in fees: £2,000.001,250£4,550.00
5 January 2027Sell 250: cost 250 ÷ 1,250 × £4,550.00 = £910.001,000£3,640.00

The average starts at £3.40 a share (£3,400 over 1,000). A sale does not change it: after the first sale the 750 left still cost £3.40 each. The purchase in September moves it to £3.64 (£4,550 over 1,250), and the January sale leaves it there.

The two sales
10 June 2026: 250 sold for £1,250.00 after fees, less £850.00£400.00
5 January 2027: 250 sold at £5.00, less a £10.00 fee (£1,240.00), less £910.00£330.00
Gains for 2026/27£730.00

With no other gains, £730 is inside the £3,000 annual exempt amount for 2026/27, so no tax would be due on it.

The free section 104 pool calculator works through your own buys and sales of one share this way, and shows what is left in the pool afterwards.

Source: GOV.UK, Capital Gains Tax rates and annual tax-free allowances. Checked against GOV.UK on 15 November 2026.

How the pool meets the same-day and 30-day rules

A sale is matched with the pool only after shares bought the same day and in the 30 days after the sale. Suppose the 500 shares were bought on 25 June 2026 instead, 15 days after the June sale, for the same £2,000.00 (£4.00 a share).

The same purchases, with the 500 bought within 30 days
10 June 2026: 250 matched with 250 of the 25 June purchase, £1,250.00 less 250 × £4.00£250.00
Pool after 25 June: 1,000 shares untouched plus the other 250 bought£4,400.00
5 January 2027: £1,240.00 less 250 ÷ 1,250 × £4,400.00 (£880.00)£360.00
Gains for 2026/27£610.00
Pool afterwards: 1,000 shares, £3.52 a share£3,520.00

The June sale never touched the pool, and only the 250 shares the match did not use joined it. HS284 sets this order; its own example matches 500 shares sold with a purchase 12 days later and the rest with the holding.

Source: GOV.UK, HS284 Shares and Capital Gains Tax (2026). Checked against GOV.UK on 15 November 2026.

How Divisio keeps the pool

The capital gains tax on shares page lists everything the estimate counts, the guide to capital gains tax on shares covers the allowance and rates, and the demo shows pooled holdings on two example portfolios with no sign-up. This is information, not advice: check your own situation.

Sources

Questions people ask

What is a section 104 holding?

It is the pool HMRC holds your shares of the same class in the same company in for capital gains tax. HS284 says the costs of the shares in it are added together, and each share is treated as bought at the same average cost.

How is the cost of a part sale worked out?

HS284 says the cost is a fraction of the pool: the number of shares sold divided by the number in the holding. The cost left in the pool goes down by the same amount.

Do fees and stamp duty go into the pool?

HMRC's Capital Gains Manual says the pool includes the cost of the shares and the costs of buying them, and GOV.UK lists stockbrokers' fees and Stamp Duty Reserve Tax among the costs you can deduct (CG51575 and Tax when you sell shares: work out your gain).

Do shares bought within 30 days of a sale join the pool?

Not the ones the sale is matched with. HS284 matches a sale with shares bought the same day, then in the 30 days after, before the section 104 holding, so those shares are used up by the sale. Any left over join the pool.

Are shares in an ISA part of the pool?

GOV.UK lists shares you have put into an ISA among those you do not pay Capital Gains Tax on, so this guide pools only shares held outside one (Tax when you sell shares).

See your own shares this way

Add what you own, from any broker, in a couple of minutes. Every feature is free during the beta, and no card is asked for. Or look round the demo first: two example portfolios, no sign-up.

For informational purposes only, not financial or tax advice. Tax rules depend on your own circumstances and can change; GOV.UK has the rules in full. Prices from Yahoo Finance, which can be delayed, usually by 15 minutes and on some exchanges by more.