PrompTax PrompTax
Statements and tables are easier to check with the phone turned sideways, or on a computer.

Worked examples

Check our working

Software that produces a capital gains computation in minutes has to earn your trust. We publish 12 calculations, each small enough to do on paper and each built around a rule that is easy to get wrong. Every one shows the trades, the working step by step, and the figures for the return. Two are below; the rest are available once you sign in.

All amounts are in pounds and include dealing costs. All disposals fall in the 2025/26 tax year, with an annual exempt amount of £3,000.00. The companies are fictional.

Checked automatically: this exact calculation runs against PrompTax's calculation engine before every release.

The trades, working and figures on this page come from the same file the engine is tested against, so the page cannot show a figure the engine has not reproduced to the penny.

A

Section 104 pool: three purchases, two part disposals

Shares of one company held over time form a single pool at average cost. A sale takes its cost from that average, not from the earliest purchase.

TCGA 1992 s104

The trades

Date Transaction Shares Price Amount
10 Jan 2024 Buy Harbour Foods plc 1,000 £4.00 £4,000.00
15 Aug 2024 Buy Harbour Foods plc 500 £5.20 £2,600.00
3 Jun 2025 Buy Harbour Foods plc 500 £6.00 £3,000.00
10 Oct 2025 Sell Harbour Foods plc 800 £7.00 £5,600.00
2 Feb 2026 Sell Harbour Foods plc 600 £5.50 £3,300.00

The working

  1. Neither sale has a purchase on the same day or in the 30 days after it, so both take their cost from the Section 104 pool.
  2. Pool before the first sale: 2,000 shares.
    £4,000.00 + £2,600.00 + £3,000.00 = £9,600.00 (average £4.80 a share)
  3. Sale of 800 on 10 October 2025. Allowable cost is the pool cost in proportion to the shares sold.
    £9,600.00 × 800 ÷ 2,000 = £3,840.00; gain £5,600.00 - £3,840.00 = £1,760.00
  4. The pool falls to 1,200 shares.
    £9,600.00 - £3,840.00 = £5,760.00 (still £4.80 a share)
  5. Sale of 600 on 2 February 2026.
    £5,760.00 × 600 ÷ 1,200 = £2,880.00; gain £3,300.00 - £2,880.00 = £420.00
  6. Carried forward: 600 shares with a cost of £2,880.00.
    £5,760.00 - £2,880.00 = £2,880.00

The result

Date Disposal Cost taken from Proceeds Cost Gain / (loss)
10 Oct 2025 Sale of 800 Harbour Foods plc Section 104 pool (800) £5,600.00 £3,840.00 £1,760.00
2 Feb 2026 Sale of 600 Harbour Foods plc Section 104 pool (600) £3,300.00 £2,880.00 £420.00
Net gain / (loss) £2,180.00

SA108, listed shares and securities

Box 23 Number of disposals 2
Box 24 Disposal proceeds £8,900.00
Box 25 Allowable costs £6,720.00
Box 26 Gains in the year, before losses £2,180.00
Box 27 Losses in the year £0.00

Section 104 holding carried forward

Harbour Foods plc 600 shares £2,880.00

The common mistake

Taking the first sale's cost from the January 2024 purchase (first in, first out) gives 800 × £4.00 = £3,200.00 and a gain of £2,400.00, overstating it by £640.00. UK shares are pooled; brokers' realised gain reports often are not.

C

Bed and breakfast: the 30-day rule overrides the pool

Shares bought back within 30 days after a sale are matched with that sale before the pool is used. A loss that looks large against the pool can shrink once the repurchase is taken into account.

TCGA 1992 s106A(5)

The trades

Date Transaction Shares Price Amount
8 Mar 2024 Buy Kestrel Mining plc 1,000 £8.00 £8,000.00
12 Jun 2025 Sell Kestrel Mining plc 1,000 £5.00 £5,000.00
26 Jun 2025 Buy Kestrel Mining plc 600 £5.20 £3,120.00

The working

  1. No shares were bought on 12 June 2025, so there is no same-day match.
  2. The 600 shares bought on 26 June fall within the 30 days after the sale (to 12 July 2025). 600 of the shares sold are matched with them at what they cost.
    600 shares: £3,120.00
  3. The other 400 come from the pool of 1,000 costing £8,000.00.
    £8,000.00 × 400 ÷ 1,000 = £3,200.00
  4. Total cost and the result.
    £3,120.00 + £3,200.00 = £6,320.00; £5,000.00 - £6,320.00 = a loss of £1,320.00
  5. The pool keeps 600 of the original shares. The shares bought back have been used by the 30-day match, so they do not join it.
    £8,000.00 - £3,200.00 = £4,800.00 for 600 shares

The result

Date Disposal Cost taken from Proceeds Cost Gain / (loss)
12 Jun 2025 Sale of 1,000 Kestrel Mining plc 30-day (600), Section 104 pool (400) £5,000.00 £6,320.00 (£1,320.00)

SA108, listed shares and securities

Box 23 Number of disposals 1
Box 24 Disposal proceeds £5,000.00
Box 25 Allowable costs £6,320.00
Box 26 Gains in the year, before losses £0.00
Box 27 Losses in the year £1,320.00

Section 104 holding carried forward

Kestrel Mining plc 600 shares £4,800.00

The common mistake

Taking the whole cost from the pool gives £5,000.00 - £8,000.00 = a loss of £3,000.00. The repurchase within 30 days means only £1,320.00 of loss is allowable this year; the rest stays in the cost of the shares still held.

10 more worked examples

Practices using PrompTax can see every example, with the full working and the sample report.

  • B. Two purchases on one day, and a sale the same day
  • D. Same day comes before an earlier sale's 30-day claim
  • E. Written options: one expires worthless, one is bought back
  • F. Written put assigned: the premium reduces the cost of the shares
  • G. Written call assigned: the premium is added to the sale proceeds
  • H. Losses brought forward do not waste the annual exempt amount
  • I. A CFD closed at a profit: financing and commission come off the gain
  • J. A short CFD closed at a loss, with a dividend adjustment
  • K. A CFD opened last tax year: everything counts in the year it closes
  • L. Shares and a CFD in the same year share one annual exempt amount

See a sample report

Every client calculation comes with a report that shows its working, disposal by disposal, so you can review it and keep it on file. This sample is a finalised 2024/25 report for a fictional higher-rate client, A. Sample: pools brought forward from the previous year, shares received from a spouse, two brokers in pounds and US dollars, dealing fees, the 30-day rule, an assigned call and an expired put, and the rate change on 30 October 2024 with its box 51 adjustment.

The client, brokers and companies are fictional, so the report carries no live verification reference. Box totals are rounded to whole pounds, as on the return.

Sign in to open the full sample report (PDF)
Sample report page: SA108 capital gains summary with boxes 23 to 27 and box 51

The figures for the return

SA108 boxes 23 to 27, and box 51 for the 2024/25 rate change, with the working behind it.

Sample report page: a sale matched under the 30-day rule and the Section 104 pool, with the pool after it and the dollar amounts converted

The matching rule for every disposal

Each sale shows which rule supplied its cost (same day, 30-day or the Section 104 pool), the shares and cost from each, and the pool before and after.

Sample report page: assigned options with the premium taken into the share cost or proceeds

Option premiums, accounted for

Assigned options show the premium taken off the cost of the shares or added to the proceeds; written options are listed with premium, buyback and gain.

Reproduced a filed return to the penny

Small examples prove the rules. Real portfolios prove the rest. PrompTax is also checked against a real 2024/25 Self Assessment return as filed: 113 trades across three brokers, in more than one currency, including 29 written options. The engine reproduced every capital gains figure on that return to the penny.

That return is now a permanent regression test. A software change that moves any of its figures, even by a penny, fails the test and cannot go ahead unless it is a deliberate correction to the tax treatment, recorded with its reasons. The corrections so far include counting disposals of the same share on the same day as one disposal, as HMRC's SA108 notes require, and costing all purchases made on one day at their average. They changed how the disposals are counted on the form and moved the net gain by one penny; the tax was unchanged.

Alongside the examples on this page and that return, the engine runs against more than 200 further automated calculation tests covering the matching rules, options, currencies, losses and pools carried between years.

No personal or client details from that return are published or shown here.