Podatek GiełdyKalkulator PIT
Features
Pricing
Supported Brokers
Knowledge Base
FAQ
Home/Knowledge Base/Brokers/XTB/PIT-38

How to file PIT-38 from XTB for tax year 2026

Updated guide for people filing XTB activity in Poland: data export, tax calculation, and how to complete PIT-38.

Last updated: October 30, 2026•Reading time: ~15 minutes

Author: Podatek Giełdy Team

Capital gains tax specialists

Table of contents

  • Why does XTB require PIT-38?
  • How to export data from XTB?
  • How to calculate the tax?
  • How to fill in PIT-38?
  • Frequently asked questions

Why does XTB require PIT-38?

XTB is a Polish broker, so it issues you a PIT-8C — for 2026, by 1 Mar 2027 (art. 39 ust. 3 and art. 42g ust. 1 of the PIT Act). The PIT-8C amounts go in PIT-38 on the line “Przychody wykazane w części D informacji PIT-8C” (revenue shown in part D of PIT-8C) — Twój e-PIT fills it in itself from 15 February. If you calculate in our calculator, compare the result with the PIT-8C and do not enter the same trades a second time on the “Inne przychody” (other revenue) line.

PIT-38 is the annual return for income from selling shares, ETFs, bonds, derivatives and crypto (art. 30b of the PIT Act); the rate is 19% (the so-called Belka tax). Foreign dividends and interest go to part G of the same return. Polish dividends on which the payer already withheld the tax are not reported.

Read the complete PIT-38 guide →

How to export data from XTB?

To file PIT-38, you need to export the full transaction history from XTB for the entire tax year.

Step by step:

  1. 1Log in to the xStation 5 platform on your computer
  2. 2Go to the "History" tab in the bottom panel
  3. 3Select the date range by clicking the calendar (e.g., from January 1 to December 31)
  4. 4Right-click on any transaction from the list
  5. 5From the context menu select "Export to Excel (XLSX)" — recommended. You can also pick CSV if your version of the platform offers that option
  6. 6Save the generated report to your disk and upload it to the calculator — the broker will be detected automatically

Tip: For FIFO method, export history from the first purchase of shares that you still hold or sold in the reporting year.

Read detailed export instructions for XTB →

How to calculate PIT-38 tax for XTB?

PIT-38 tax calculation consists of several steps:

  1. 1Import file from XTB: Use our calculator to import the exported file.
  2. 2System automatically: Applies FIFO method, converts currencies to PLN using NBP rates, calculates tax.
  3. 3You will receive a summary: Ready to transcribe to the PIT-38 form.

Use our calculator

Our calculator automatically performs all calculations for you. Just import the file from XTB.

Start calculations
Read more about calculations →

How to fill in the PIT-38 form?

Filling in PIT-38 form with data from XTB:

  1. 1File PIT-38 through Twój e-PIT (e-Urząd Skarbowy) or e-Deklaracje.
  2. 2Enter personal data and tax year.
  3. 3Enter income and costs from the summary generated by the calculator.
  4. 4Calculate tax (19% of income).
Read more about filling in the form →

Frequently asked questions

Do I have to report all transactions from XTB?

Yes. In PIT-38 you report all sales and closed positions at XTB for the year — including those at a loss: a reported loss can be deducted in later years.

Are XTB commissions deductible?

Yes, commissions are a cost of revenue and reduce taxable income. The calculator automatically includes commissions.

Other popular broker tax calculators

Compare broker pages with step-by-step PIT-38 and PIT-ZG filing guides.

  • Interactive Brokers PIT-38
  • Revolut PIT-38
  • Trading 212 PIT-38
  • DEGIRO PIT-38

Related guides

Export guide for XTB

Step-by-step guide to exporting transactions from XTB.

Complete PIT-38 guide

Ultimate guide to filing PIT-38 - everything you need to know.

Ready to file PIT-38 from XTB?

Use our calculator to automatically compute your tax. Just import the file from XTB - the system will automatically apply FIFO, convert currencies and generate a summary ready to transcribe to PIT-38.

Start calculationsView pricing

Up to 50 transactions free • No credit card

Podatek GiełdyKalkulator PIT

Automatic capital gains tax calculation for Polish investors. Stocks, ETFs, crypto, and dividends.

Product

  • Home
  • Sign in
  • Pricing

Calculators

  • Calculators
  • PIT-38 calculator
  • Stock tax calculator
  • Crypto calculator

Brokers

  • All brokers
  • XTB
  • Interactive Brokers
  • DEGIRO

Help

  • Knowledge base
  • Broker exports
  • Forms
  • PIT-38 guide

Legal

  • Terms
  • Privacy Policy
  • Legal disclaimer
  • Cookie policy
Secure SSL connectionGDPR compliant

© 2026 Podatek Giełdy. All rights reserved.

Auxiliary tool for tax calculations. Not legal or tax advice. Consult a tax advisor.