0%
Processing your trades…
Your data stays on this device
Upload Error
whatsmycgt
whatsmycgt.co.uk
Built Using HMRC Rules

UK Capital Gains Tax.
Calculated.

Upload your trades, apply HMRC share matching rules, and generate your SA108 report — free, instant, and private.

For guidance only — verify results with a qualified tax professional before filing.
Works with any broker
Export your trades as Excel or CSV. Just make sure it includes: date, ticker, buy/sell, quantity, price, and fees — all in GBP.
Free forever
No sign-ups, no subscriptions, no hidden charges. Professional-grade CGT calculations that would cost hundreds from an accountant.
HMRC compliant
Same-day, bed & breakfast, and Section 104 pool rules applied automatically. SA108 box figures ready to file.
100% private
Everything runs in your browser. Your trade data never leaves your device — no servers, no databases, no accounts.
How it works
Three steps to your tax report.
1
Upload trades
Drop your broker export — Excel, CSV, or ODS. Most UK broker formats work out of the box.
2
HMRC rules applied
Same-day, 30-day bed & breakfast, and Section 104 pool matching run automatically on every disposal.
3
Get your report
SA108 figures, audit trail, P&L charts, tax optimisation tips, and sell simulator — all in one page.
Why use whatsmycgt
How we stack up.
Everything you need to file your self-assessment — without the bill.
whatsmycgtAccountantManual / spreadsheet
CostFree£200–500+Free
HMRC share matching✓ AutomaticManual & error-prone
SA108 box figures✓ Instant
Full audit trail✓ Every disposalVaries
Turnaround timeSecondsDays–weeksHours–days
Data privacy✓ Never leaves deviceShared with firm✓ Local
Multi-year supportPer engagementComplex
What you'll get
HMRC-Ready Filing
SA108 box mapping, multi-year support, ERI dividends, and share split adjustments.
Sell Simulator
Model hypothetical sales using your real S104 cost basis and see the tax impact before you trade.
Charts & Insights
P&L charts, win/loss stats, exemption tracking, carried losses, and key filing dates.
Full Audit Trail
Every disposal matched with HMRC rules explained — same-day, B&B, and Section 104.
1 Upload Trades
Upload your Excel file containing all buy and sell transactions.
How to prepare your file
Your spreadsheet must have these columns (header names are flexible):
  • Date — trade date in DD/MM/YYYY or any Excel date format
  • Ticker / Symbol — the stock or fund identifier (e.g. VWRL, AAPL)
  • Type / Action — must contain Buy or Sell
  • Quantity / Shares — number of shares traded
  • Price — price per share converted to GBP
  • Brokerage / Fees — broker commission for the trade converted to GBP (can be 0)
Most broker exports (Trading 212, Freetrade, Hargreaves Lansdown, IBKR) work with minimal adjustment. Ensure all trades for the tax years you want to report are included — the calculator needs your full history to build accurate Section 104 pools.
Required Excel format
DateTickerTypeQuantityPriceBrokerage
01/03/2024VWRLBuy10082.505.00
15/09/2024VWRLSell5091.205.00
Price = price per share. Brokerage = broker fee for the trade. Both must be in £ GBP — convert from other currencies before uploading. If you don't have the exchange rate, use the mid-market rate for that trade date (e.g. from HMRC, xe.com, or your broker's rate).

Drop your spreadsheet here

or click to browse · .xlsx / .xls / .csv / .ods

Your data never leaves your device

0 Data Warnings Found

These are usually duplicate rows from broker exports. Review them and acknowledge to continue.
    I have reviewed the warnings and wish to continue
    2 Configure Settings
    Adjust the calculator settings below, then generate your report.
    Calculator settings explained
    • Tax Year — UK tax years run 6 April to 5 April. Select a specific year or "All years" to see every tax year in your data. SA108 values are generated per year.
    • CGT Rate — depends on your total taxable income. Basic rate taxpayers pay a lower CGT rate; higher and additional rate taxpayers pay more. Check HMRC's current rates and enter yours as a whole number. The default reflects the current standard basic rate.
    • Annual Exemption — the tax-free allowance set by HMRC each year. The default is updated automatically based on the selected tax year. Check HMRC for the latest threshold if you're unsure.
    • Unrealised gains — optionally enter current market prices for positions you still hold to see paper gains/losses. This doesn't affect your tax calculation.

    Your CGT Report

    Processed locally

    Frequently Asked Questions

    How does this UK capital gains tax calculator work?

    Upload your share trade history as a CSV or Excel file containing your buy and sell transactions. The calculator applies HMRC's three share matching rules — the same-day rule, the 30-day bed and breakfast rule, and Section 104 pool averaging — to each disposal. It calculates your taxable gains and allowable losses for each tax year and generates SA108 box figures ready for your self-assessment tax return.

    What are the HMRC share matching rules for CGT?

    When you sell shares, HMRC requires disposals to be matched against acquisitions in a strict order. First, shares are matched against any bought on the same day (same-day rule). Then against shares bought within the next 30 days (bed and breakfast rule). Finally, remaining shares are matched against your Section 104 pool — a running weighted average cost of all your holdings in that stock.

    Is this calculator really free?

    Yes. whatsmycgt is completely free with no subscriptions, sign-ups, or hidden charges. All calculations happen in your web browser — your financial data never leaves your device and is discarded when you close the page.

    How does the bed and breakfast rule work?

    The bed and breakfast rule (also called the 30-day rule) prevents you from selling shares and rebuying them shortly after to create an artificial loss. If you sell shares and repurchase the same shares within 30 days, HMRC matches the sale against the repurchase rather than your original cost basis. This means the gain or loss is based on the new purchase price, not your historic holding. This calculator automatically detects and applies the bed and breakfast rule to all your disposals.

    Can I use this with Trading 212, Freetrade, or IBKR exports?

    Yes. The calculator accepts any CSV or Excel file with columns for date, ticker/symbol, buy or sell type, quantity, price per share, and brokerage fees. Most broker exports from Trading 212, Freetrade, Hargreaves Lansdown, Interactive Brokers (IBKR), and other UK platforms work with minimal adjustment. All amounts must be converted to GBP before uploading.

    What is a Section 104 pool?

    A Section 104 pool (or holding) is HMRC's method of averaging the cost of shares in the same company. Each purchase increases the pool's total cost and quantity. When you sell shares that aren't matched by the same-day or bed and breakfast rules, they're matched against the pool at its weighted average cost per share. This calculator tracks every pool automatically.

    How do I report capital gains on my self-assessment tax return?

    Capital gains from shares are reported on the SA108 supplementary page of your self-assessment tax return. This calculator maps your gains directly to SA108 boxes — including total disposals, gains, losses, and the annual exempt amount — so you can transfer the figures straight to your tax return or HMRC's online filing system.

    Is my data safe and private?

    Yes. All processing happens entirely within your browser using client-side JavaScript. No trade data, calculations, or personal information is ever transmitted to any server. There are no user accounts, no databases, and no tracking of your financial data. When you close or refresh the page, everything is permanently discarded.