BrokerTax

How we calculate

This page explains exactly what we do with your statement and which rules we apply. We want you to be able to verify every number in the result yourself. We are equally open about what we cannot do yet.

Last checked against the engine: 14 November 2026

1. What we start from

We calculate only from the statements you upload. We fetch nothing from your broker or any tax authority. Whatever is missing from the statement is missing from the result.

Statements from XTB, DEGIRO, Trading 212, Interactive Brokers, Revolut are read by our own software, line by line. Statements from other brokers (for example Lightyear, eToro, Saxo) and PDFs we do not recognise are read by AI; before sending, we strip names, addresses, account numbers and other personal data from the text (details in the privacy policy). Always check an AI-read result against the statement.

From a statement we read purchases, sales, dividends, fees, withheld taxes and, for XTB, closed CFD positions. Several statements (several brokers, several years) are merged into one history: duplicate transactions are dropped and sales are matched with purchases across all brokers.

A transfer of securities between brokers is not a sale. The shares keep their original cost and purchase date when you upload both brokers' statements. Multi-broker consolidation.

2. Matching purchases and sales

Sales are matched with purchases on a FIFO basis: the first unit bought is the first unit sold. Matching is done per security (by ISIN, or ticker). A partial sale draws proportionally from the oldest lot. Capital gains tax rules.

Cost is the purchase price plus purchase and sale fees. Everything is calculated to the cent with no intermediate rounding.

A sale for which no purchase is found in the uploaded statements (usually an older statement is missing) does not enter the calculation. It is listed in the result.

3. Exchange rates

Amounts in other currencies are converted at the ECB reference rate of the transaction date (purchase at the purchase date, sale at the sale date). Multi-currency accounting.

We never estimate a rate. When no rate is available for a date and currency, the calculation stops with an error instead of silently producing a wrong figure.

4. Gains and losses

The global mode reports realised gains and losses per lot and in total, in euros. It applies no country-specific exemption, holding-period relief, allowance or tax rate: those depend on your country of residence. For the Czech Republic, Slovakia, Poland, Hungary and Italy use the local BrokerTax site, which applies the local rules in full.

5. Dividends

Dividends are reported gross, with the tax withheld at source shown next to them. The global mode applies no treaty limit and no domestic cap on the credit: how much of the foreign tax you can credit depends on your country of residence and its treaty with the source country.

6. CFDs and other derivatives

CFDs are calculated only from XTB statements, from closed positions: the position result and credited swaps as income, losses, debited swaps and commissions as cost, all at the rate of the closing day. The global mode shows their net result separately from shares; whether and how it is taxed depends on your country.

7. What we do not calculate

  • Options, futures, forex, crypto assets and bonds. If a statement contains them, the result says so and leaves them out.
  • CFDs from brokers other than XTB.
  • Portfolio snapshots without a trade history (for example the DEGIRO "Portfolio" file). No tax can be calculated from them; a transaction export is needed.
  • Sales whose purchase is missing from the statements (see point 2).
  • Your actual tax liability: the global mode gives you verified gains, losses and dividends to carry into your own return.

This list will never be complete. When you hit a case that is missing here, write to us; we either add it to the calculation or write here that we do not handle it.

8. How to tell something is off

The result includes control totals (proceeds, cost, number of trades) to compare with your broker's annual report. Every warning (missing purchase, unavailable rate, unverified treaty rate, unsupported instruments) is shown next to the result, not in a footnote.

The most common cause of a difference is an incomplete statement: an earlier year, a second broker or the account statement with dividends is missing. The second is an AI-read statement where a line was misread.

9. Sources

  • ECB euro foreign exchange reference rates.
  • Withholding tax tables of each source country and the applicable double tax treaties.
  • Local tax law as applied on brokertax.cz, brokertax.sk, brokertax.pl, brokertax.hu and brokertax.it.
How BrokerTax calculates capital gains tax | BrokerTax.app