BrokerTax

How we calculate

This page explains exactly what we do with your statement and which provisions of the Polish Personal Income Tax Act (ustawa o PIT) we follow. We want you to be able to check every number in the result yourself. We are just as open about what we cannot do yet.

Last checked against the engine: 24 Nov 2026

1. What we start from

We calculate only from the statements you upload. We fetch nothing from your broker or from the tax office. 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 (e.g. 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: duplicates are dropped and sales are matched with purchases separately in each account (at each broker).

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. Combining several brokers in PIT-38 (in Polish).

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 separately for each security (by ISIN, or ticker) and separately for each securities account, as art. 24 ust. 10 of the PIT Act requires: a sale at one brokerage does not reach older purchases at another. When shares are transferred to another broker, their purchases move with them, with the original price and date. If a sale has no purchase in the same account (e.g. the transfer is missing from the uploaded statements), we match it with a purchase at another broker and flag it for checking. A partial sale draws proportionally from the oldest purchase. FIFO in PIT-38 (in Polish).

The cost is the purchase price plus the fees for the purchase and the sale. Everything is calculated to the grosz, with no rounding in between.

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

3. Exchange rates

Income and costs in a foreign currency are converted at the NBP average rate of the last working day before the transaction (art. 11a ust. 1 of the PIT Act, the D-1 rate).

We never estimate a rate. If the rate for a day and currency cannot be obtained, the calculation stops with an error instead of quietly giving a wrong number.

4. Tax and losses

Income from selling shares and ETFs is taxed at 19 % (art. 30b of the PIT Act, PIT-38, known as podatek Belki). Poland has no exemption for the holding period and no tax-free amount; gains and losses of the whole year offset each other. The 19 % capital gains tax (in Polish).

We split income and costs between row 1 of PIT-38 (brokers that issue PIT-8C) and row 2 (the others, mostly foreign) under art. 39 ust. 3 of the PIT Act.

Losses from the previous five years (art. 9 ust. 3) are deducted from the years you have in the uploaded statements; the result shows the income after the deduction (field 31). Deducting stock market losses (in Polish).

5. Dividends

Foreign dividends are taxed at 19 % of the gross amount. Tax withheld abroad is deducted under art. 30a ust. 9 separately for each source country, at most up to the Polish tax and the double tax treaty rate. Where we have not confirmed the treaty rate, we ask you to confirm it instead of guessing. Tax on foreign dividends and W-8BEN (in Polish).

6. CFDs and other derivatives

We calculate CFDs only from XTB statements, from closed positions: income is the position’s profit and credited swaps, costs are losses, debited swaps and fees, all at the rate of the closing date. Derivatives go into the same PIT-38 pool as shares (art. 30b ust. 1): 19 %, losses offset gains and carry forward to later years.

7. What we do not calculate

  • Options, futures, forex, crypto and bonds. If the statement contains them, we flag it in the result and leave them aside.
  • CFDs from brokers other than XTB.
  • Portfolio overviews without trade history (e.g. the DEGIRO “Portfolio” file). Tax cannot be calculated from them; the transaction history is needed.
  • Sales whose purchase is missing from the statements (see point 2).
  • Other income and reliefs in your return. We provide the data for PIT-38, not the whole return.

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

8. How to tell that something is off

The result contains check totals (income, costs, number of trades) to compare with your broker’s annual summary or PIT-8C. All warnings (missing purchase, missing rate, unconfirmed treaty rate, unsupported instruments) are listed right next to the result.

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

9. Sources

  • Ustawa o podatku dochodowym od osób fizycznych (Polish PIT Act): art. 9 ust. 3, art. 11a ust. 1, art. 30a ust. 9, art. 30b, art. 39 ust. 3.
  • PIT-38 information brochure of the Ministry of Finance.
  • NBP table A of average exchange rates.
  • Double tax treaties (list of the Ministry of Finance) and withholding tax rates of the source country.
How we calculate Polish tax on stocks and ETFs (PIT-38, FIFO, NBP D-1) | BrokerTax