BrokerTax

How we calculate

This page explains exactly what we do with your statement and which Italian rules 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: 14 Nov 2026

1. What we start from

We calculate only from the statements you upload. We fetch nothing from your broker or from the Agenzia delle Entrate. 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: duplicates are dropped and sales are matched with purchases across all brokers.

A transfer of securities between brokers is not a sale. The securities keep their original price and purchase date when you upload both brokers’ statements. Combining several foreign brokers (in Italian).

2. Matching purchases and sales

For shares, ETCs and ETNs we use LIFO (art. 67 c. 1-bis TUIR): the security bought last is treated as sold first. Matching is done separately for each instrument (ISIN or ticker). The LIFO method (in Italian).

For EU/EEA harmonised funds and ETFs the cost is the weighted average of all units held (art. 26-quinquies D.P.R. 600/73); LIFO is used only to set the holding period for IVAFE.

The cost includes the purchase price and the fees for the purchase and the sale. We calculate to the cent, 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

Amounts in a foreign currency are converted at the ECB reference rate of the trade date. For Quadro RW and IVAFE we use the monthly average rates instead, as the Agenzia delle Entrate requires.

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

4. Tax, Quadro RT and Quadro RM

The calculation applies to the regime dichiarativo (a foreign broker, where you declare the income yourself). Gains on shares, ETCs and ETNs are redditi diversi (art. 67 c. 1 lett. c-bis TUIR): Quadro RT, section II-A, rows RT11, RT52 and RT72, 26 % substitute tax (RT73, tax code 1100). Regime dichiarativo vs amministrato (in Italian).

Gains on harmonised funds and ETFs are redditi di capitale (art. 44 c. 1 lett. g): row RM31 at 26 % (code 1242). Losses on funds, however, are minusvalenze in Quadro RT; fund gains cannot be offset against losses. ETF taxation and RM31 (in Italian).

Losses (minusvalenze) carry forward for four tax years (RT13, RT102); we use the oldest of those in the uploaded statements first. Offsetting losses (in Italian).

Non-harmonised funds (for example US ETFs) are taxed under ordinary IRPEF: we exclude them from the calculation and flag them.

5. Dividends

Foreign dividends go into RM31 at 26 % of the gross amount; the foreign withholding tax cannot be credited under the regime dichiarativo. Dividends of Italian companies (ISIN IT) are taxed at source at 26 % and do not go into RM31.

6. IVAFE and Quadro RW

For the positions held we calculate IVAFE, the tax on financial assets held abroad (art. 19 c. 18-20 D.L. 201/2011): 0.2 % of the value at 31 December, or at the sale for positions sold during the year, in proportion to the days held (0.4 % in tax havens from 2024). For cash accounts €34.20 if the average balance exceeds €5,000. Nothing is paid if the total does not exceed €12. Without the value at 31 December the purchase cost is only an estimate: the result asks for the value shown by the broker. Quadro RW and IVAFE (in Italian).

We prepare an RW (or W) row for each securities account at each broker (code 20) and for cash accounts (code 1).

7. CFDs and other derivatives

We calculate CFDs only from XTB statements, from closed positions: income is the result of the position and credited swaps, costs are losses, debited swaps and fees, all at the rate of the closing date. They are redditi diversi (art. 67 c. 1 lett. c-quater TUIR) and go into Quadro RT together with the gains, at 26 %.

8. What we do not calculate

  • Options, futures, forex, crypto assets and bonds. If the statement contains them, we flag it in the result and leave them out.
  • CFDs from brokers other than XTB.
  • Non-harmonised funds (ordinary IRPEF taxation): excluded and flagged.
  • Portfolio overviews without trade history (for example the DEGIRO “Portfolio” file). Tax cannot be calculated from them; the transaction statement is needed.
  • Sales whose purchase is missing from the statements (see point 2).
  • The regime amministrato, and the other income and deductions in your return. We provide the data for RT, RM and RW, 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 write here that we do not handle it.

9. How to tell that something is off

The result contains check totals (proceeds, costs, number of trades) to compare with your broker’s annual summary. All warnings (missing purchase, unavailable rate, missing value at 31 December, unsupported instruments) are written right next to the result.

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

10. Sources

  • TUIR (D.P.R. 917/1986): art. 44 c. 1 lett. g, art. 67 c. 1 lett. c-bis and c-quater, c. 1-bis, art. 68.
  • D.P.R. 600/1973, art. 26-quinquies; D.L. 201/2011, art. 19 c. 18-20 (IVAFE).
  • Instructions for Redditi PF, Fascicolo 2 (Quadri RT, RM, RW), Agenzia delle Entrate.
  • ECB reference rates and the monthly average rates published by the Agenzia delle Entrate.
How we calculate Italian tax on stocks and ETFs (LIFO, 26 %, Quadro RT/RM/RW) | BrokerTax