Applicable Period: Tax Year 2026Last Updated: November 6, 2026Getting Started7 min read

Starting to invest: what you need to know about taxes

When you start investing, you think about where and how to buy. Taxes come up at filing time, when most decisions are already made. A few rules are worth knowing from your first purchase: what actually triggers tax, how holding periods work in some countries, what Form W-8BEN does, what changes with a foreign broker and why you should keep every statement. The details depend on your country of tax residence, so this guide sticks to the principles and gives examples.

BrokerTax editorial team

Based on each country’s tax law · sources at the end

Executive Summary & Key Takeaways
  • Your country of tax residence sets the rules, not the broker’s country.
  • In most countries only realized gains are taxed: nothing is due until you sell.
  • Some countries exempt gains after a holding period (Czech Republic 3 years, Slovakia 1 year); others tax every gain at a flat rate (Poland 19%, Hungary 15%, Italy 26%).
  • Gains and losses within a tax year usually offset each other; carrying losses forward depends on the country.
  • Form W-8BEN cuts US dividend withholding to the treaty rate, usually 15%, where a tax treaty applies.
  • With a foreign broker you usually do the conversion and reporting yourself, so keep statements from day one.

1. Tax comes when you sell

The most common worry: if my ETF rises 10% this year, do I owe tax? In most countries, no. Tax is charged on realized gains, the difference between the sale price and your cost when you sell. A rising balance on its own is not taxed.

So two events usually matter: selling and receiving dividends. Buying and holding on its own normally needs no tax return entry, though some countries have annual reporting duties for foreign accounts (Italy’s Quadro RW is one example).

2. Holding periods and flat rates

Countries take very different approaches. Some exempt gains after you hold each purchase long enough; others tax every gain at the same rate regardless of how long you held it.

Where a holding period exists, it is usually checked for each purchase separately. If you invest monthly, each monthly purchase has its own date and qualifies on its own schedule. When you sell part of a position, rules such as FIFO (oldest shares first) or LIFO decide which shares you sold.

CountryGains on shares and ETFs (examples)
Czech RepublicExempt after 3 years, or if yearly sale proceeds are at most CZK 100,000; otherwise 15%
SlovakiaExempt after 1 year for listed securities; otherwise 19% plus health insurance, with €500 of profit exempt per year
Poland19% on every gain, no holding period exemption
Hungary15% on qualifying exchange trades, no social tax; long-term account (TBSZ) exempt after 5 years
Italy26% on every gain; ETF gains cannot be offset by losses

3. Losses

In most countries, gains and losses from sales in the same tax year are netted, so a loss on one position reduces the tax on another. Whether an unused loss carries into later years varies: it does in Poland (5 years) and Italy (4 years), it does not in the Czech Republic or Slovakia, and Hungary uses a three-year offset window.

If you have accounts at several brokers, you combine them: a loss at one broker can reduce a gain at another.

4. Dividends and Form W-8BEN

Dividends are usually taxed every year, without a holding period exemption. The company’s country often withholds tax at source, and your home country may give credit for it under a tax treaty.

For US shares, Form W-8BEN, filled in at your broker when you open the account, certifies that you are not a US person and lowers US withholding from 30% to the treaty rate, typically 15%, if your country has a treaty with the US.

After opening an account, check that your W-8BEN is complete and valid. Without it, US withholding is 30%.

5. Accumulating and distributing ETFs from a tax point of view

Distributing ETFs (Dist) pay dividends to your account, and each payment is income you usually have to report.

Accumulating ETFs (Acc) reinvest dividends inside the fund. In many countries you then have no income to report while you hold, and tax comes only when you sell. Some countries tax funds differently, so check your country’s rules.

The choice is yours and depends on whether you want regular income. From a tax point of view, the difference is mainly when you pay tax and how much paperwork you have each year.

6. Foreign brokers mean more paperwork

A local bank or broker often prepares tax documents for your country or withholds tax for you. A foreign broker (for example Interactive Brokers, Trading 212, XTB or Degiro) usually does not: you convert each trade into your home currency at the official exchange rate your country requires, match sales to purchases using the required method and report the result yourself.

Broker tax reports are often built for another country’s rules or show figures that do not match your country’s method, so they are a starting point, not your final numbers.

  • How to download the right statements from each broker is covered in the BrokerTax broker tax profiles.
  • If you hold the same ETF at two brokers, the matching usually runs across both accounts in date order.

7. Tax-advantaged accounts

Many countries have accounts or products that reduce tax on long-term investing, usually in exchange for keeping the money invested for years or until retirement. Examples include the Czech DIP, Polish IKE and IKZE, the Hungarian TBSZ, Italian PIR and the UK ISA.

They are worth a look for money you really will not need for a long time. Early withdrawal usually cancels the benefit, so check the current conditions in your country.

8. Keep your statements from the first purchase

Tax is calculated from the difference between sale price and cost. When you sell years from now, you will need the date and price of every purchase, including years in which you sold nothing. Brokers do not always keep history forever, and it is easy to lose when you switch brokers.

Download the annual transaction statement once a year and save it. It takes five minutes and saves hours on the day you sell.

This guide is general information, not tax advice. Tax rules depend on your country of residence and personal circumstances, and they change. Check the official sources listed below or ask a tax adviser before you file.

Sources

  1. Czech Income Tax Act No. 586/1992 Coll. (§ 4 time test, § 10), e-Sbírka
  2. Slovak Income Tax Act No. 595/2003 Coll. (§ 8, § 9), Slov-Lex
  3. Polish Personal Income Tax Act of 26 July 1991 (art. 9, 11a, 24, 30b), ELI
  4. Hungarian Personal Income Tax Act CXVII of 1995 (§ 67/A), Nemzeti Jogszabálytár
  5. Italian TUIR, D.P.R. 917/1986 (art. 44, 67, 68), Normattiva
  6. IRS – About Form W-8BEN
Universal Multi-Broker Tax EngineNo sign-up, statements not stored

Stop wrestling with broker spreadsheets and multi-currency exchange rates

Drop your statement CSVs or PDFs into BrokerTax. Get audit-ready capital gains summaries, FIFO lots, and foreign dividend withholdings in seconds.

Strict FIFO lot matching & fractional shares
Central bank historical rate conversions
Interactive Brokers, Degiro, XTB, Trading 212
Calculate Capital Gains Free⚡ Instant calculation in 15s • No registration needed

Frequently Asked Questions

?Do I need to file anything if I only buy and never sell?

In most countries, not for the purchases alone. You report when you sell or receive dividends. Some countries also require annual reporting of foreign accounts.

?Which country’s rules apply if my broker is abroad?

The rules of your country of tax residence. The broker’s location affects the paperwork, not which tax law applies.

?Does holding longer reduce my tax?

Only in countries with a holding period exemption, such as the Czech Republic (3 years) and Slovakia (1 year), or inside tax-advantaged accounts.

?Are fractional shares taxed differently?

Generally no. Fractional shares follow the same rules as whole shares.

More in: Basics and calculation

Related Guides

Starting to Invest: Taxes on Stocks and ETFs for Beginners (2026) | BrokerTax