Hargreaves Lansdown Capital Gains Tax Calculator

    Upload the Capital Account Transaction Summary CSV—not your Portfolio Summary or tax certificate. Calculate free, then pay only if you need the HMRC report pack.

    Updated 17 July 20264 min read
    • Free calculation
    • Processed in your browser
    • £29.99 only for report downloads

    If you sold shares, funds, or ETFs in an HL Fund and Share Account, FiscalFox can calculate the UK capital gains from your transaction history. Start with the Capital Account Transaction Summary CSV. It contains the dated buys, sells, fees, and proceeds needed for HMRC share matching.

    The HL file you need for CGT

    Required: Capital Account Transaction Summary CSV. The Income CSV is optional and adds dividend information; it does not replace the Capital Account trade history.

    • Do not upload Portfolio Summary, valuation, tax certificate, PDF, or Excel files for CGT trades.
    • Use enough Capital Account history to cover the original purchases behind shares you sold.
    • Keep the tax certificate for income-tax records and cross-checking.

    Official context: GOV.UK publishes the SA108 capital gains summary and HMRC's HS284 shares and CGT helpsheet.

    Why your HL tax certificate does not solve CGT

    The Hargreaves Lansdown tax certificate is mainly an income document. It helps with dividends, interest, and other income entries for Self Assessment, but it is not the same as a full capital gains computation for listed shares, funds, and ETFs.

    For CGT you need the disposal proceeds, allowable acquisition costs, dealing costs, and the UK share matching rules applied in the right order. That means the same-day rule, the 30-day rule, and the Section 104 pool before you copy figures into the SA108 capital gains pages.

    Quick FAQ for HL investors

    Does HL tax certificate include CGT?

    Usually no. Treat it as an income-tax document, not as the complete CGT computation for your Fund and Share Account.

    What do I need instead?

    Download the Capital Account CSV so each taxable disposal can be matched to the correct acquisition cost. If you want income context in the FiscalFox report, download the Income CSV as well.

    When does SA108 come in?

    SA108 is the capital gains summary that sits behind Self Assessment. Enter SA108 figures after your HL transactions have been matched and summarised, not by copying a portfolio gain or income certificate.

    How to download your Hargreaves Lansdown transaction history

    The CGT calculation requires one download: the Capital Account Transaction Summary CSV. HL also offers a separate Income CSV for dividends and interest, but that file is optional and cannot replace the Capital Account trade history.

    One required file, one optional file

    Required for CGT: Capital Account Transaction Summary CSV. Optional for income context: Income CSV. Upload both only if you want dividend and interest information alongside the capital gains calculation.

    Capital Account download — required for CGT

    1. Log in to your Hargreaves Lansdown account at hl.co.uk.
    2. Select your Fund and Share Account, then open Transaction History.
    3. Choose Capital Account, not Income, Portfolio Summary, or valuation.
    4. Set the date range from your earliest relevant purchase through to 5 April of the tax year you are calculating.
    5. Download the file titled Transaction Summary in CSV format.

    Income download — optional

    1. Return to your Fund and Share Account overview.
    2. Click on Income (sometimes listed under the account sub-menu or as "Loyalty Bonus / Income").
    3. Set the same date range as above.
    4. Click Download CSV to export your dividend and income data.
    5. Save the .csv file to your computer.

    Once you have the Capital Account CSV, open the FiscalFox calculator with Hargreaves Lansdown already selected and upload it. Add the Income CSV only if you want FiscalFox to include dividends and interest in the summary.

    Have the Capital Account CSV?

    HL will already be selected. Upload the file and review your calculation for free.

    File format details

    Hargreaves Lansdown exports transaction data as CSV (comma-separated values) files. The Capital Account CSV typically contains:

    • Trade Date -- the date the deal was executed
    • Settlement Date -- the date the transaction settled
    • Reference -- HL's internal deal reference number
    • Transaction Type -- described as "Deal" for buy/sell transactions
    • Description -- details of the stock or fund, including buy/sell direction
    • Units/Shares -- the quantity traded
    • Price -- the execution price per unit
    • Value -- the total transaction amount in GBP
    • Charges -- dealing fees and stamp duty where applicable

    The Income CSV contains dividend payments, loyalty bonus credits, and interest. FiscalFox uses this to provide a complete picture of your investment activity, though dividends are reported separately under income tax rather than CGT.

    How FiscalFox processes your HL data

    When you upload your Hargreaves Lansdown files, FiscalFox applies the full set of HMRC share matching rules in the legally required order:

    1. Same-day rule -- shares sold on the same day as a purchase of the same security are matched first. The actual cost from that same-day acquisition is used to calculate the gain.
    2. 30-day bed and breakfast rule -- if you sell a holding and repurchase the same security within the following 30 days, the disposal is matched against that repurchase. This prevents the artificial crystallisation of losses.
    3. Section 104 pool -- any remaining shares sold are matched against the pooled average cost basis, which FiscalFox calculates and maintains from your full transaction history.

    FiscalFox combines data from both the Capital Account and Income CSV files into a unified timeline. The output includes a detailed disposal-by-disposal breakdown, the matching rule applied to each sale, and a summary of total gains, losses, and the resulting CGT liability for the tax year.

    Common issues with Hargreaves Lansdown files

    The Income file is optional for CGT

    The Capital Account CSV is enough to calculate capital gains from HL trades. The Income CSV adds dividends and interest to the wider summary, but uploading it by itself will not provide the buy and sell rows needed for CGT.

    Portfolio Summary is not transaction history

    Portfolio Summary, holdings, and valuation exports show what you own at a point in time. They do not contain the dated Capital Account buys and sells needed for same-day matching, the 30-day rule, and the Section 104 pool. Return to Transaction History and download the Capital Account Transaction Summary CSV instead.

    HL uses "Deal" terminology

    Hargreaves Lansdown labels buy and sell transactions as "Deals" rather than using the more common "Buy" or "Sell" labels. The direction (buy or sell) is typically embedded in the description field. FiscalFox parses this automatically and correctly identifies the transaction direction, so no manual editing of the CSV is required.

    Multiple account types

    If you hold investments in both an ISA and a Fund and Share Account with HL, make sure you download data only from the Fund and Share Account. ISA transactions are not subject to CGT. HL keeps these accounts separate in its interface, so selecting the correct account before downloading should prevent any mix-up.

    Accumulation funds and ERI

    Some funds and ETFs can also create income-tax reporting work, especially offshore reporting funds with excess reportable income. ERI is separate from the CGT disposal calculation, but amounts already taxed as income may affect your CGT base cost. See the ERI guide if your HL holdings include accumulation ETFs or offshore reporting funds outside an ISA or SIPP.

    Supported transaction types

    FiscalFox extracts and processes the following transaction types from your Hargreaves Lansdown files:

    Transaction TypeHow FiscalFox Uses It
    Buy (Deal)Added to the Section 104 pool for the relevant security
    Sell (Deal)Matched against acquisitions using HMRC rules to calculate gain or loss
    DividendRecorded for reference (taxed under income tax, not CGT)
    Loyalty BonusRecorded for reference as additional income
    Charges/FeesIncluded as allowable costs that reduce your taxable gain on disposals

    Hargreaves Lansdown is one of the most commonly used brokers by FiscalFox users. If you encounter any unusual transaction types or formatting issues in your HL files, please contact our support team and we will help resolve the issue.

    Ready to calculate your capital gains?

    Upload your broker CSV files and get HMRC-ready reports in minutes. Start free.