Skip to content

Extra data and options

Most users can generate a report from a supported broker export without these files or options. Start with your broker guide. Return here only if cgt-calc asks for more information or one of the options below applies to your investments. The page has four parts:

  • Files cgt-calc keeps for you: the exchange rates it uses and saves, how to add a missing rate, and the temporary files an interrupted save can leave.
  • When cgt-calc asks for more: a share price your broker files do not give, and the old ticker a spin-off came from.
  • Tickers and ISINs: how cgt-calc matches tickers to securities and follows ticker renames, the messages it stops with when a ticker could stand for two securities, and how to calculate two such securities in separate runs.
  • Options for particular cases: estimates at current prices, bond-fund income, income reported in more than one currency, shares held before April 2008 and CGT-exempt instruments.

When you give cgt-calc a file described here, use its option rather than passing it beside your broker exports. A file passed that way, or found in a folder you pass, stops the run with a message naming the option to use.

Files cgt-calc keeps for you

cgt-calc creates and updates these local files itself. You do not need to create or select them for a normal calculation.

Exchange rates

cgt-calc converts other currencies to pounds at HMRC's monthly exchange rates.

  • April 2002 to April 2016: the rates come with cgt-calc. In those years HMRC also changed some rates during the month, and each change is used from the day it applied. For example, the US dollar rate for November 2008 was 1.6336 until the 18th and 1.5047 from the 19th.
  • May 2016 onwards: cgt-calc downloads each month's rates, from HMRC's legacy service up to 2020 and from the UK Trade Tariff API for 2021 onwards. It saves them to out/exchange_rates.csv.

Use --exchange-rates-file to select another file in the same format. An empty value disables the cache. Keep the completed file with the report to preserve the exchange rates used. cgt-calc may add missing months to the selected file, so retain the version used for the final report. Rates that come with cgt-calc are not written to the file. Keeping it does not preserve other fetched data, such as Yahoo Finance prices.

Rates you add or change

A row in the exchange rates file for a date from April 2002 to April 2016 is compared with the rate that comes with cgt-calc. Where the two differ, cgt-calc prints a warning naming the row and HMRC's rate, on every run until you remove the row:

  • Before February 2015 it uses your row. Nothing could be downloaded for those dates, so the row is one you typed in. Check it against HMRC's rate in the warning: a row typed from a month's table can miss a change HMRC made during the month.
  • From February 2015 to April 2016 it uses HMRC's rate. A file written by an earlier version of cgt-calc can hold such rows, because it saved the rate from before HMRC's change.

A row you add for a date from May 2016 is used as it stands, without a comparison. When that date needs another currency, cgt-calc downloads the month and saves the other currencies beside your row. To go back to HMRC's rate, remove the row: on the next run cgt-calc downloads HMRC's rate and saves it in the row's place.

The rates are HMRC's as published, and cgt-calc cannot tell when HMRC's own figure is wrong. HMRC's tables give some less common currencies another currency's rate, for example the Georgian lari at the Russian rouble's rate until September 2013 and the Liberian dollar at the US dollar's. For a transaction in a currency like these before February 2015, compare HMRC's rate with another source and add your own row if it is wrong. From February 2015 to April 2016 HMRC's rate cannot be replaced.

Missing rates

cgt-calc stops and names the currency and date when it has no rate for a transaction:

  • A date before April 2002. HMRC's archived rates start in April 2002.
  • A currency HMRC did not list that month, or listed under another code. HMRC's tables give the Russian rouble as RUR, the Turkish lira as TRL and the Mexican peso as MXV until December 2009, and the Romanian leu as ROL until February 2009. A few rows have no code at all, such as the Romanian leu in January 2010.
  • A currency and month for which HMRC's documents disagree or cannot be read, so the rate HMRC applied cannot be told. There are 44, including the Mexican peso in December 2009 under both of HMRC's codes (MXV, MXN). The others are minor currencies, mostly the UAE dirham (AED), the East Caribbean dollar (XCD) and the CFA and CFP francs (XOF, XPF) in some months from 2006 to 2013. Each year's file lists its own at the top, as in 2009.csv.

To continue, add a row to the file yourself: the transaction's date in the month column, the currency code, and the rate as units of that currency per £1. Each date and currency needs one row. Offshore yuan (CNH) is converted at the CNY rate, so enter it as CNY. If the file does not exist yet, start it with the header line month,currency,rate. The header names each column once, in any order and letter case, and nothing else; each row gives its values in the header's order.

For a date from May 2016, cgt-calc also stops when HMRC's rates cannot be downloaded, and says why. Try again later first. Adding the rate yourself works too: read it from the HMRC pages linked under “May 2016 onwards” above. Each run stops at the first date and currency without a row, though, so a history with many dates needs as many rows before it completes.

Finding historical rates

HMRC does not prescribe which exchange rate to use, only that the method is reasonable and consistent (CG78310). HMRC's own figure for the date keeps the transaction in line with the rest of the report:

  • For a currency listed under an older code or without one, use HMRC's rate in that row. HMRC's TRL rates until 18 January 2005 are in old lira, a million of which make one new lira (TRY), and its ROL rates until 12 July 2005 are in old lei, 10,000 of which make one new leu (RON).
  • Where HMRC's documents disagree, look up the month in the archive below, use the figure you can best justify, and note why.
  • Before April 2002, the Bank of England publishes daily spot exchange rates against sterling.

HMRC's rates up to 2014 are kept in the UK Government Web Archive:

  • April 2002 to 2007: open HMRC's exchange rates for 2007 and change EXRATES_2007 in the address to the year you need. Until August 2006 each month's table is a PDF or Word download from its page.
  • 2008 to 2014: open HMRC's exchange rates for 2009 and choose “Rates of Exchange for Customs and VAT purposes” for the month. For another year, change EXRATES_2009 in the address to that year.

A month's table gives a “Date of change” and “New rate” where HMRC changed a rate during the month, and its “Weekly Rates of Exchange amendments” list every change.

Temporary cache files

An interrupted save can leave a .tmp file beside exchange_rates.csv, isin_translation.csv or spin_offs.csv, such as exchange_rates.csv.3f9a1c2b.tmp. Once cgt-calc has stopped, you can delete that temporary file. An existing cache stays complete, though it may not include the latest run's updates.

When cgt-calc asks for more

Missing share prices

cgt-calc sometimes needs a share's price on a date that your broker files do not give:

  • A vest without a price. A vest or other stock-plan acquisition needs a price per share to establish its cost. Broker files usually provide it, and cgt-calc includes some historical USD values in share_prices.csv. If cgt-calc stops with a No share price error, give the missing price in the currency of the transaction it is for.
  • A spin-off. cgt-calc splits the old holding's cost between the old and the new holding by their market values on the date of the spin-off row, using each holding's closing price that day from Yahoo Finance, as traded rather than adjusted for later dividends and splits. If it stops with a No market data found error, for example because Yahoo lists the ticker differently from your broker, give the closing prices of both holdings on that date as they traded then, not the split-adjusted figures on Yahoo's history page. The file has no currency column, so write both prices in the same currency; for London shares, do not mix pence and pounds. Prices you give are used instead of Yahoo's, and giving only one of the two stops the run.

Put the prices in a CSV file in the same format as share_prices.csv, under the tickers in your broker files, not Yahoo's, and pass it with --prices-file. Start it with the header line date,symbol,price. The header names each column once, in any order and letter case, and nothing else; each row gives its values in the header's order. For a spin-off of NEWCO from ACME on 1 April 2024:

date,symbol,price
"Apr 01, 2024",ACME,94.00
"Apr 01, 2024",NEWCO,17.50

Your file replaces the bundled prices rather than adding to them, so copy in any bundled rows you still need. A row under a ticker the company has since changed, such as FB, counts for its current ticker, META, over the dates given under Ticker renames: an FB row dated from 26 June 2025 prices the security that has traded as FB since then, not Meta. If two rows give the same share different prices on one day, cgt-calc stops and asks you to remove one.

Spin-off source mappings

A spin-off row may name the new holding without naming the old holding it came from. cgt-calc needs that link to divide the existing pooled cost between them. During an interactive run, it asks for the old ticker and saves the answer to out/spin_offs.csv.

If the run cannot ask you for the old ticker, put the mapping in a file, pass that file with --spin-offs-file, and rerun. The file starts with the header line dst,src, in either order and any letter case. Each row gives the new ticker under dst and the ticker it was spun off from under src. For NEWCO spun off from ACME:

dst,src
NEWCO,ACME

If two rows give the same new ticker different old tickers, cgt-calc stops and names both rows.

An empty --spin-offs-file value disables the cache, so cgt-calc does not read or save spin-off mappings. See Temporary cache files if an interrupted run leaves a .tmp file.

Tickers and ISINs

ISIN to ticker translation

When an ERI row identifies a fund only by its ISIN, cgt-calc maps it to ticker symbols. It checks existing mappings first and queries the Open FIGI API only if needed. It saves new mappings in out/isin_translation.csv by default; --isin-translation-file selects another path.

To add or correct a mapping yourself, edit that file, or create it if it does not exist yet. It is a CSV file that starts with the header line ISIN,symbol. Letter case does not matter, but ISIN comes first, because every column after it holds a ticker. Each row after it gives one ISIN, then every ticker that security is known by, each in its own column. For a fund listed under both VAPX and VDPX:

ISIN,symbol
IE00B9F5YL18,VAPX,VDPX

That row is already in the bundled list and only shows the format. When you write your own:

  • Write each ticker exactly as your broker file gives it, or the current ticker where cgt-calc reads an old ticker as the current one, such as META for FB. The report may show a supported pair under one ticker, which is not always the one in your file.
  • A Vanguard holding with no ticker goes under its fund name, on the row of its own ISIN. The no ISIN mapping was found warning lists the names as they must be written, each in double quotes where it contains a comma.
  • Give each ISIN one row. A row for an existing ISIN replaces its bundled symbols, so put every verified ticker for that ISIN on the same row. If two rows give the same ISIN different tickers, cgt-calc stops and names both rows.
  • Give each ticker to one ISIN only. A ticker under two stops the run; see already linked to ISIN.

Two tickers on one row are not combined into one holding

cgt-calc combines only the ticker pairs it already supports, and any other ticker keeps a holding of its own. The row also stops cgt-calc refusing transactions that give that ISIN both tickers, so check the report after adding it. If the report shows the security twice, do not rely on those holdings' calculated gains. Open a GitHub issue with the ISIN and both tickers so that the pair can be added.

cgt-calc can create or rewrite the file after a successful lookup. The file holds only the mappings you add and the ones a lookup finds. cgt-calc reads them on top of the bundled initial_isin_translation.csv, which is never copied into the file. Tickers read from your broker transactions are used for the run but never written to the file. A file written by an earlier version of cgt-calc can hold them; they are read like any other row, so remove one that is wrong.

The bundled list gives a fund from outside the US its London tickers. A transaction that cgt-calc knows to be from a US market, which is every Charles Schwab transaction and every RAW row whose market is US, is not matched to them, and nor is any other transaction in the run under the same ticker. Two kinds of bundled ticker are still matched, because they are the fund's own US symbol: the ticker of a fund with a US ISIN, and a US over-the-counter symbol of five letters ending in F. A row in your own file is matched whichever broker the transaction came from.

A transaction that carries its own ISIN, as Trading 212, Freetrade and Hargreaves Lansdown rows and Interactive Brokers dividend rows do, is not matched to a bundled ticker that belongs to a different ISIN either. The ISIN says which security it is, so cgt-calc uses it, and treats the run's other transactions under the same ticker that carry no ISIN as the same security. If one of them is in fact the bundled fund, held at a broker whose export gives no ISIN, the two would be pooled as one holding: calculate them in separate runs.

In both cases, a Vanguard transaction under the ticker is always Vanguard's own fund, so cgt-calc stops instead; see is a Vanguard fund's on this row. A RAW row whose market is LSE stops the run too when its London ticker belongs to a bundled fund and another transaction exports the ticker with a different ISIN; see is a London ticker on this row.

Tickers that are also US symbols

Some London tickers in the bundled list are also the symbols of other securities in the US. OPEN, for example, is an iShares fund in London and Opendoor in the US. A holding under one of these tickers may be either. When nothing in your files says which, because no transaction under the ticker carries an ISIN or a market, cgt-calc applies the bundled fund's excess reported income and warns. This happens with Interactive Brokers trades in a security that paid no dividend in your export, with Revolut, and with RAW rows whose market is blank. It does not happen with a holding that appears only in Vanguard exports, because Vanguard sells only its own funds.

WARNING: Excess reported income of fund IE00BD0B9B76 was added to OPEN because cgt-calc's bundled ISIN list gives that fund the ticker OPEN, which is also a US symbol, and no row in your files says which security OPEN is.
If your OPEN is not that fund, add this row to your ISIN translation file:
    IE00BD0B9B76,
If it is that fund, add this row instead:
    IE00BD0B9B76,OPEN
See https://cgt-calc.uk/extra-data-and-options/#tickers-that-are-also-us-symbols

If the holding is in a RAW file, write US or LSE in its market column and run cgt-calc again. Otherwise, check what you hold, then add the matching row to your ISIN translation file and run cgt-calc again. The fund's income is then added to the holding only if you confirmed the fund. Either row replaces the fund's entry in the bundled list and keeps its other tickers, so cgt-calc stops warning about all of them, not only the one in the warning. Two funds have a second ticker that is also a US symbol: RISE and WING, and WLDS and WSML. The warning then names the other ticker too; decide for both before adding the row, and leave out a ticker that is not the fund.

The warning appears only if a report changed a holding's cost, once for each ticker the holding took a report under, so a holding renamed between two reports can show it twice.

The tickers that warn are the ones that were also US exchange symbols in November 2026, and SPLG, a US symbol until October 2025. A US listing that takes one of the bundled tickers later, or a US over-the-counter symbol, does not warn. If the report shows fund income for a holding that is not a fund, take the ticker off that fund with a row as above.

Ticker renames

When a company changes its ticker, your history can show the same shares under both: bought as FB, for example, and sold as META. cgt-calc reads a known old ticker as the current one, so transactions under both names are one holding, shown under the current ticker in the report. The renames it knows are listed in ticker_renames.csv, with each company's ISIN, the 12-character code that identifies a security.

Another security can take a ticker after a company gives it up, so cgt-calc checks that a row is the renamed company's:

  • A row with an ISIN is renamed when the ISIN is the company's, whatever the row's date.
  • A row without an ISIN, such as a Schwab or RAW row, is renamed by its date when the table gives the rename no market: from the table's since date up to the day before its reused date, when another security started trading under the old ticker. A blank column sets no limit on that side. The until column, the day the company changed ticker, does not limit it, because a broker can keep the old ticker on later rows. FB rows are renamed from 18 May 2012 to 25 June 2025, so an FB row from 26 June 2025 is left as FB. A rename with a market is described in Renames kept to one market.

If one file has rows without an ISIN under an old ticker, some inside its renamed period and some outside it (for FB, before 18 May 2012 or from 26 June 2025), cgt-calc stops with Rows under <ticker> fall on both sides of <date>: nothing in the rows says whether they belong to one company or two. In a RAW file, write the current ticker on every row of the renamed company, as the message says. cgt-calc checks each file on its own, so rows in separate files are each read by their own date without an error.

Renames kept to one market

Some old tickers also belonged to another security on another exchange. RMG was Royal Mail's in London until it became IDS on 5 October 2022, and a US company's on the NYSE until 2020. MMC was Marsh & McLennan Companies' in New York until it became MRSH on 14 January 2026, and a London company's until 2020. The table's market column keeps such a rename to the company's market, LSE or US, and cgt-calc renames a row only when the row itself, or the rest of your files, shows that it is the company's:

  • A row with an ISIN is renamed when the ISIN is the company's.
  • A row that gives a market is renamed when it is the rename's market: a RAW row with that market, or a Charles Schwab row, which is always US. Schwab option contracts and award prices are renamed the same way. A row of the other market keeps its ticker.
  • A row with neither, such as an Interactive Brokers trade or a RAW row without a market, is read from the rest of your files. If the rows exported under the old ticker that do name their security all name the company, it is renamed too. If they all name another security, or none does, it keeps the old ticker. If they name both, cgt-calc stops, as described below. So an Interactive Brokers trade under RMG is read as Royal Mail's when a dividend under RMG gives Royal Mail's ISIN.

Rows exported under the new ticker do not count: a dividend reported as IDS says nothing about whether earlier RMG trades were Royal Mail's.

If nothing in your files says which security the rows with neither are, they keep the old ticker, and cgt-calc warns Rows under <ticker> name no ISIN or market. They may be the company's or the other security's. If they are the company's and in your RAW file, write the market in their market column. A broker export's rows cannot be given a market. If the report then shows the company under both tickers, or stops with Tried to sell, the holding is split: see the end of Limitations of ticker renames.

If your files show both the company and another security under the old ticker, a row with neither cannot be placed, and cgt-calc stops with Ticker <ticker> names no ISIN or market on this row. The message shows a row of each security and the row it cannot place. If that row is in your RAW file and you know where its security is listed, write that in its market column. This includes a RAW row that replaces a row of a broker export. A row of a broker export needs the two securities calculated in separate runs.

Limitations of ticker renames

  • When the table gives a rename no market, a row without an ISIN is matched by its ticker and date alone. The table includes such a rename only when no other security is known to have used the old ticker in that period on an exchange a supported broker offers. If you held another security under the old ticker in that period, cgt-calc cannot detect it: it is reported under the new ticker, and pooled with the company's shares if you also held them. Check each holding and disposal in the report against your records.
  • A new ticker can have belonged to an earlier company. IDS was Ideal Shopping Direct's on AIM until 2011, so Royal Mail rows read as IDS join any Ideal Shopping Direct rows in your files. If your files show that holding sold in full before you bought Royal Mail, the figures are unchanged. If both companies' rows carry an ISIN, cgt-calc stops with is exported for ISIN. If your files leave the Ideal Shopping Direct holding open, its shares are pooled with Royal Mail's and the figures are wrong: add its disposal to your RAW file.
  • In a prices file, write the current ticker, such as MRSH for a Marsh & McLennan Companies vest. Price rows give no market, so a rename kept to one market does not apply to them.
  • A rename missing from the table leaves the old and new tickers as two holdings, except in a Vanguard export, whose NameChange rows record the change, and in Trading 212, which stops on a ticker change it cannot pair. cgt-calc may stop with Tried to sell, or with does not match when rows give one ISIN under both tickers, but a sale can also take its cost from the new ticker's purchases alone without an error. Check the portfolio section of the report: a holding left under a ticker the company no longer uses can mean a rename is missing.

If a rename is missing or wrong, or a broker export stops with the Rows under <ticker> message, first upgrade cgt-calc using the same method you used to install it. If the problem remains, open a GitHub issue with the old and new tickers, the ISIN and the dates involved. Do not edit a broker export to get past it. In a RAW file you write yourself, you can use the current ticker throughout instead.

Messages about a ticker or ISIN

Each of these messages stops the run because a ticker could stand for two different securities. Each entry is named after part of the message.

already linked to ISIN

Two rows, or a row and the bundled list, give the same ticker to different ISINs. The error names your row and says where the other ISIN is: on another row, or in the bundled list. Correct the row that is wrong. If the ticker is right for your ISIN and the clash is with the bundled list, also give the bundled ISIN a row that leaves that ticker out. If that was its only ticker, write the ISIN followed by a comma, such as IE00B42WWV65,.

If the error names no row, a lookup found a ticker that another ISIN already has. Add a row for the ISIN that was looked up, which is the second one in the error, with its correct ticker. If that ticker is the one in the error, also take it off the first ISIN: change its row if your file has one, or give it a row that leaves the ticker out.

is already used for ISIN

A transaction carries an ISIN, or takes one from another row under its ticker, and the ticker already stands for a different ISIN in this run: a row in your ISIN translation file, a lookup cgt-calc saved there, or another transaction gives it to that ISIN. cgt-calc would pool the two securities as one holding. If the row in your file is wrong, correct it, or give that ISIN a row that leaves the ticker out, as described under already linked to ISIN. If two of your exports really use one ticker for two securities, calculate them in separate runs.

is a US symbol on another row

One transaction, such as a Charles Schwab one, uses the ticker as a US symbol. Another uses the same ticker and carries the ISIN of the London fund that the bundled list gives the ticker to. They are two securities, and cgt-calc would pool them as one holding. Calculate them in separate runs.

is from market

Two transactions give one ticker different markets: RAW rows with market LSE and US, or an LSE row and a Charles Schwab row, which is always US. The error shows both rows. If one market is wrong, correct it in the RAW file. If they really are two securities, cgt-calc would pool them as one holding: calculate them in separate runs.

is a London ticker on this row

A RAW row's market is LSE and its ticker is one the bundled list gives a London fund, such as OPEN. Another transaction exports the ticker with a different ISIN, for example a Trading 212 transaction. cgt-calc cannot tell whether the RAW row is the fund or the security the export names. If they are two securities, calculate them in separate runs. If the RAW row is the security the export names, leave its market blank: it then takes that ISIN.

has no ISIN on this row and no market

A row without an ISIN, such as an Interactive Brokers trade or a RAW row whose market is blank, uses GDX, SMH, WCLD or DFNS. Another transaction, usually a Trading 212 one, exports the ticker with the ISIN of General Dynamics or of a fund whose London dollar line it is. The same letters are also the US symbol of another security, such as the VanEck Gold Miners ETF, and no row in your files gives the ticker a market, so cgt-calc cannot tell which of the two the row is. The error shows the row that exported the ticker.

If the row is in your RAW file, write its market: US for the security listed in the US under those letters, or LSE for the one listed in London. An LSE row under SMH, WCLD or DFNS joins the Trading 212 holding. A GDX row of either market stays a holding of its own, because GDX is a gold miners fund in both places. If the row is General Dynamics, write its ticker as GD instead. A market on one row applies to the ticker's rows with a blank market too. A row of another broker's export cannot be given a market: move those trades from a working copy of the export into your RAW file and write their market there, or, if they are another security, calculate the two in separate runs.

is a Vanguard fund's on this row

A Vanguard transaction uses a ticker that the bundled list gives a Vanguard fund, such as VERX. Another transaction exports the same ticker with a different ISIN, such as Vertex's, or uses it as a US symbol, as a Charles Schwab one does. Vanguard sells only its own funds, so they are two securities, and cgt-calc would pool them as one holding. Calculate them in separate runs.

Two securities in separate runs

Some errors, such as is exported for ISIN and is a US symbol on another row, stop a run that has two different securities under one ticker and ask you to calculate them in separate runs. cgt-calc can then calculate each security, but you need to choose each run's files with care and add up the two reports yourself.

Do this only for two different securities. One security whose ISIN changed, as happens at some share splits, can also stop the run with is exported for ISIN, but it is one holding. Separate runs would split it and give the wrong cost, so work that holding out by hand (consider professional advice).

cgt-calc pools and matches each security across all the files in a run, so every security, not only these two, needs all of its transactions in one run. Give one of the two securities a run of its own:

  • That run gets the security's transactions from every file that has any, whichever broker it comes from.
  • The other run gets everything else.
  • Both runs need the same --year and tax settings, and the same extra data files, such as your exchange rates file and any custom ERI file. Each needs its own --output, or the second run replaces the first one's PDF.
  • The exception is a row in your ISIN translation file that gives the shared ticker to one of the two securities. It also applies in the run that does not hold that security, so give that run a copy of the file with --isin-translation-file, and in the copy take the ticker off that row. Keep every other row, and leave the ISIN followed by a comma if the row had no other ticker.

You can pass whole files when that already keeps every security in one run and the two securities apart: for example, the Charles Schwab export alone in one run, and the Vanguard export with all your other files in the other, when you hold none of the Schwab shares at another broker.

Otherwise, keep the downloaded files unchanged and make two working copies of each file that holds the security with a run of its own and anything else. Delete that security's rows from the first copy, and every other row from the second. Pass the second copies to that security's run. That run then has none of the deposits that paid for the purchases, so it usually stops with Reached a negative balance: add --no-balance-check to it, which turns the check off for every file in that run. The first copies lose the cash of the deleted rows too. If money those rows brought in paid for later purchases, the other run stops the same way: use --no-balance-check there only once you have checked that the shortfall is only that money.

To combine the reports for a tax year, add up the capital gains figures in their terminal summaries, from Disposals to Total gain. Deduct the annual exempt amount once, from the combined Total gain, and work out the tax on the rest, as Tax estimates explains. Do not add the reports' Taxable gain or tax figures: each report deducts the whole annual exempt amount and taxes its gain as if it were your only one, so adding them counts the allowance twice.

In 2010/11 and 2024/25 the rates changed during the year, so the tax also depends on how much of the combined Gain was made after the change. To find it, run each of the two again with --no-report for that part of the year, as Report part of a tax year shows, and add up their Gain.

Add the dividend Proceeds and the interest figures as they are, but not the dividends' Taxable proceeds: each report deducts the whole dividend allowance from them.

Options for particular cases

Estimate unrealized gains

Use --unrealized-gains to add current-price estimates to the portfolio and summary printed in the terminal. For each holding left at the report's end date, cgt-calc uses the latest usable price returned by Yahoo Finance, converts it to GBP and subtracts its Section 104 pooled cost. It asks for the holding's ISIN if known, then its ticker, then the ticker's London listing, so a price can come from another listing of the same security and a ticker can match a different security. If no usable price is returned, the holding is shown as unknown, omitted from the numeric Unrealized gains total and covered by a warning. Check unknown or unexpected estimates against your broker.

This is a portfolio estimate, not the gain from an actual sale. It does not include selling costs or change the report's capital gains, losses or taxable figures. For an older report, the ending portfolio may not be what you hold today. See Privacy and data security for details of the Yahoo lookup.

Bond-fund income

Some offshore bond funds have income that must be reported as interest rather than dividends. After checking the fund's classification, pass the fund to --interest-fund-tickers exactly as its income names it; upper or lower case does not matter. Use a comma-separated list for several funds. A cash distribution is classified by the symbol on its income row, which the terminal's Dividends list shows, and ERI by the ticker the holding has on the reporting period end date. Both are usually the fund's ticker, but not always: a Sharesight income row can name the fund FOO.NASDAQ while the holding is NASDAQ:FOO. A fund renamed part-way through the history has to be listed under both names, because its income before and after the rename carries different names. This setting applies to both cash distributions and ERI; see the offshore-fund checklist. It reports the income as foreign interest, so do not use it for a UK fund. If cgt-calc reports a UK bond fund distribution as a dividend, adjust the income figures outside cgt-calc.

If a value you pass matches no cash distribution or ERI, cgt-calc warns that it changed nothing. The warning names any income whose symbol is the same apart from its market, such as FOO.NASDAQ for FOO or NASDAQ:FOO. If the fund had no distribution or ERI in the period your files cover, nothing needs changing. Otherwise correct the value and run cgt-calc again. cgt-calc cannot warn when a fund needs two names and you list only one, because that name still matches some of its income.

Tax withheld from the distributions of a fund you pass to --interest-fund-tickers is left out of the report. The report's interest tax paid counts only tax recorded as tax on interest, such as tax on cash interest, and the report gives these distributions no treaty relief. cgt-calc prints a warning for each distribution with tax withheld. The terminal's Dividends list printed after Final balance still shows the distribution and its tax, but the tax summary counts the distribution only under Interest. Take the tax from your broker's statement. The notes to HMRC's Foreign pages (SA106) say how to enter it with the interest, and Relief for foreign tax paid (HS263) explains how much relief you can claim for it.

Income reported in more than one currency

Two payments of the same dividend in different currencies, such as one to each of two accounts, or a dividend and its withholding tax in different currencies, stop the calculation with Cannot combine amounts in different currencies or Dividend and withholding tax currencies do not match.

If the rows are separate payments of the same dividend, or a dividend and its tax whose currencies are both right, and they use GBP plus one foreign currency, pass --autoconvert-currency:

cgt-calc --year 2024 revolut.csv trading212/ --autoconvert-currency

cgt-calc then reports them as one figure, converting the foreign amounts at the HMRC rate for the date of the dividend. Withholding posted in a later month is converted at that same rate, not the rate for the month it posted in. Amounts already in GBP are used as they are.

The option is off by default, and it cannot tell whether two rows with the same ticker and date are the same security, or whether one row repeats the other. Compare the ISIN and payment details on each broker's statement before enabling it. Two different non-GBP currencies remain an error: the option does not convert between foreign currencies. If your broker cannot provide a verified amount in one currency, report that dividend outside cgt-calc.

Where an ISIN is available, cgt-calc uses it to determine the dividend's source country. Without an ISIN, it falls back to the currency of the dividend itself, never that of the tax. For a dividend your broker reports already converted to GBP, cgt-calc therefore cannot determine a treaty automatically: it warns that the source country is unknown and leaves the relief out of the report.

A payment currency does not prove where the paying company is resident, especially when a broker converts payments into your account currency. HMRC's dividend treaty guidance bases treaty treatment on the residence of the company paying the dividend. Check that residence and the tax deducted on your broker's tax voucher. If the fallback is wrong or missing, add a verified mapping under ISIN to ticker translation; if you cannot, calculate the relief outside cgt-calc rather than relying on the treaty figure in the report.

An ISIN does not always show where the company is resident either. cgt-calc reads the country from its first two letters, and a company based elsewhere can have an ISIN that starts US, as with the New York shares of a Dutch company or a depositary receipt. Where the tax on its dividend was withheld at 15%, which is also the US rate, the report applies the US treaty and shows 15% relief without a warning. The treaty with the company's own country may allow less, such as 10% for the Netherlands (DT14005). Check the treaty figure for any share whose company is not based in the country its ISIN starts with, and calculate the relief outside cgt-calc if it is wrong.

Shares held before April 2008

Since 6 April 2008, all your shares in one company are pooled at what they cost, whenever you bought them (CG51550). cgt-calc applies these rules to your whole history, so purchases from before 2008 count towards the cost of shares you sell now. Two kinds of earlier history are refused, with an error naming the transaction:

  • A sale, gift or other disposal before 6 April 2008. Earlier disposals followed different rules, which decided which shares you still held, and cgt-calc does not implement them. Replace that holding's rows before 6 April 2008 with one BUY in a RAW file dated 5 April 2008, for the shares you still held and their total cost from your records of the time. Enter the cost in sterling, with the currency GBP: a cost in another currency would be converted at the 5 April 2008 rate, but each purchase's cost converts at the rate on the day it was made (CG78310). Use the cost without indexation: an old pool statement may show an indexed figure beside it. A BUY with no deposit to pay for it fails the cash balance check, so add a TRANSFER row for the same amount on the same date, or run with --no-balance-check.
  • Anything before 6 April 1982. Shares held on that date are pooled at their 31 March 1982 market value, which cgt-calc cannot know.

A transaction in another currency before April 2002 also needs its rate added by hand; see Exchange rates.

CGT-exempt instruments (advanced)

Most users should not use --cgt-exempt-tickers. Pass a comma-separated list only when you have established that each instrument is exempt under TCGA 1992 s115.

  • This is your own unverified assertion. The calculator does not identify or validate gilts or qualifying corporate bonds (QCBs), and QCB status cannot be inferred from a ticker or name.
  • The override disregards both gains and losses on disposals. Do not use it where a disposal can still produce a charge: disposing of a QCB acquired on a takeover or reorganisation can bring a deferred gain back into charge, and the profit on a deeply discounted security is taxable as income. Neither is calculated here.
  • The per-disposal breakdown in the PDF applies the ordinary same-day, 30-day and Section 104 share identification rules. Those are not the identification rules HMRC gives for gilts, QCBs and other relevant securities, so read the breakdown as workings for the quantities only. It has no effect on the figures reported, because the gain or loss is disregarded.
  • Coupon and accrued interest remain taxable income. The calculator does not implement the Accrued Income Scheme.
  • The importers for Freetrade, Hargreaves Lansdown and Interactive Brokers are documented as unvalidated for bonds and gilts. This override does not validate them either.
  • The override changes the capital gains calculation only. A coupon is reported in whichever box its broker rows put it in. --interest-fund-tickers reports as foreign interest, so it is not a fix for a UK gilt coupon. Check the interest and dividend figures against your own records.
  • Matching uses the ticker at the disposal, so an instrument renamed part-way through the history has to be listed under both names.
  • A gift of a listed instrument is reported as an exempt disposal and does not also appear in the Gifts at market value section.
  • Listing an instrument does not lift the restrictions on disposing of it in more than one way on a single day. A sale and a gift to a connected person on the same day are still refused, even though the loss they cannot apportion would be disregarded.