🇪🇸Interactive Brokers · Spain

Interactive Brokers taxes in Spain

A Spanish bank or broker reports your account to the Agencia Tributaria, so the figures are already sitting in your datos fiscales when Renta Web opens. Interactive Brokers reports nothing to Spain. Nothing is prefilled, and every sale, every dividend, the tax withheld abroad and the Modelo 720 are yours to work out.

Build my Spanish figures
2025 and 2026 tax years FIFO and the two-month rule Modelo 720 file

The work has a fixed shape: euros at the rate on the day of each trade, FIFO matching across all your accounts, the two-month rule on any loss, and a valuation at 31 December if you cross the €50,000 threshold.

AllInvestView reads your Interactive Brokers history and produces those figures, ready for your renta or for your asesor.

19-30%

Savings income tax

Gains, dividends and interest pool into the base del ahorro and are taxed across five rising bands.

Trade date

The euro rate that counts

The buy and the sale are converted on their own days. One year-end rate for both gives a different gain.

2 months

The repurchase rule

Buy the same security back within two months either side of a loss and the loss has to wait. Every account you hold counts.

€50,000

Modelo 720 threshold

Assets abroad above €50,000 in a category are declared between 1 January and 31 March.

What Interactive Brokers gives you

Interactive Brokers keeps a complete record. The Activity Statement covers whatever period you ask it for, and a Flex Query pulls the same trades, dividends, withholding and cash movements out as a file. Missing data is not the problem here.

The Spanish side is. Every amount sits in the currency the trade settled in, the lots come matched the way the broker matches them, and no line tells you what belongs in the base del ahorro. Turning that into IRPF figures is the job nobody does for you.

What Hacienda asks for

Spain pools capital gains, dividends and interest into the savings income base and taxes them on a rising scale rather than one flat rate. The tax year is the calendar year. For 2025 and 2026 the bands are:

Savings incomeRate
€0 to €6,00019%
€6,000 to €50,00021%
€50,000 to €200,00023%
€200,000 to €300,00027%
Above €300,00030%

Losses offset gains in the same year and what is left carries forward for four. Separately from the return itself, foreign assets above €50,000 in a category trigger the informational Modelo 720, filed between 1 January and 31 March. Securities held at a broker abroad count as one of those categories.

The five conversions that decide your number

Between the Activity Statement and the figure you file, five things happen to your trades. Each one of them can move the result.

  • Euros at the rate on the trade date. A purchase in dollars and a sale in dollars are two separate conversions, each at the rate that applied on its own day. Using one year-end rate for both changes the gain, and not by a little when the euro has moved.
  • FIFO, across every account at once. Homogeneous securities are matched first in, first out. If you hold the same ISIN in two Interactive Brokers accounts, or at a second broker as well, there is still only one queue.
  • The two-month rule. A loss is not deductible if you buy the same security back within two months either side of the sale. The loss is not gone, it waits until you close the repurchased position, but it cannot go in this year’s return.
  • Tax already withheld abroad. Foreign dividends arrive net. Spain credits the tax paid at source, generally up to the lower of the foreign tax or the Spanish tax on that income. Whatever was taken beyond the treaty rate you claim back from the country that took it.
  • Options, and the shares they turn into. A premium collected on a put that expires worthless is one thing. A put that gets assigned is another: the premium reduces the cost of the shares you now own, and the result only appears when you sell them.

How AllInvestView produces the figures

Connect Interactive Brokers read only, or upload the Activity Statement, and the history becomes a ledger the reports can compute on. Stocks, ETFs, bonds and options all land in it, which is why the capital gains report is built from the whole account rather than from the equity part of it.

Capital gains report with portfolio, period and cost basis selectors above per-position gains, dividends and estimated tax. AllInvestView
The capital gains report: the portfolio, period and cost basis selectors, the jurisdiction pill, and each position with its unrealized and realized figures, dividends and estimated tax. The jurisdiction reads US in this capture.

See the tax report

With the jurisdiction set to Spain, the report applies the Spanish rule set: the progressive bands from 19 to 30, four years of loss carryforward, and the sixty-day repurchase window, which flags the disposal while you can still do something about it.

Jurisdiction templates listing country presets with their rates and their special matching rules. AllInvestView
The jurisdiction templates: thirteen country presets with their rates and their special matching rules, Spain among them. US is the one selected here.

Every disposal is converted with the euro rate of its own trade date. You can switch the cost basis method between FIFO, LIFO, HIFO and average cost and watch the whole report recompute, which is how you find out what a sale costs before you make it. The figure Spain wants is the FIFO one.

For the foreign asset side there is a dedicated Modelo 720 tool. It values your holdings by category at 31 December, applies the official exchange rates, tells you whether you are over the threshold, and exports the BOE format .720 file you load into the Sede Electrónica, plus a PDF and an Excel for your own records.

There is also a Modelo 100 filing pack for the savings base. Every disposal of the year is listed in euros, with the FIFO matching run across all your accounts, the losses the repurchase rule suspends linked to what suspended them, and your earlier years of losses applied. It then adds the other savings income you enter, applies the 25% cross-compensation limit, and ends on an estimated savings base and the tax on it. The disposals section carries casilla 0326. The pack exports as PDF, Excel and CSV and is part of the paid plans.

What you hand your asesor

The report leaves as a PDF, an Excel, a CSV or a printout.

Export menu open over the capital gains report showing PDF, Excel, CSV and print options. AllInvestView
The export menu open over the report it will export: PDF, Excel, CSV and print.
  • The realized gain and loss for the year, disposal by disposal, with the matched lots behind each one.
  • Proceeds and cost already in euros, each at the rate of its own date.
  • Dividends and interest with the tax withheld at source beside the gross and the net.
  • The disposals the two-month rule touches, marked.
  • The Modelo 720 amounts by category, and the .720 file itself.
  • The Modelo 100 pack, as a PDF, an Excel or a CSV.

What AllInvestView does not do is file for you. The Modelo 100 pack gives you the savings-base figures and the disposals behind them. You or your asesor carry them into the return, and nothing is submitted to the Agencia Tributaria on your behalf.

Frequently asked questions

Does Interactive Brokers report my account to the Spanish tax office?
No. A Spanish bank or broker sends its data to the Agencia Tributaria and you find it waiting in your datos fiscales. Interactive Brokers does not, so nothing about the account is prefilled in Renta Web. You take the figures from the Activity Statement, or from the connected account, and declare them yourself.
I am Spanish but I live abroad. Does any of this apply to me?
Not for a year in which you are not tax resident in Spain. The renta and the Modelo 720 follow residence, not nationality. It matters for the year you come back, because the cost of everything you bought while you were away still has to be in euros at the rate of its own trade date. Keeping the lots dated and converted from the start saves rebuilding them later.
Do I pay Spanish tax on an Interactive Brokers account?
If you are tax resident in Spain, yes, on your worldwide investment income. Where the broker sits changes nothing. Gains, dividends and interest go into the savings income base at 19% to 30% for 2025 and 2026.
Does my Interactive Brokers account trigger a Modelo 720?
If the securities and cash you hold abroad pass €50,000 in a category at 31 December, yes, between 1 January and 31 March. After the first filing you leave that category alone unless it grows by over €20,000, or you sell something you had already declared.
Which exchange rate applies to a trade in dollars?
The rate on the day of each trade, not one rate for the year. The buy and the sale are converted separately, so the euro gain is not the dollar gain converted once at the end.
How does the two-month rule work across several accounts?
It applies to you, not to the account. Sell at a loss and buy the same security back within two months either side and the loss waits, whether the repurchase sits in another Interactive Brokers account or at a different broker entirely.
How are option premiums taxed in Spain?
Premiums on options you close or let expire are capital gains and losses like any other disposal. Assignment works differently: the premium adjusts the cost of the shares you take on, and the result appears when you sell them. Both are booked into the same report.
Can I use a cost basis method other than FIFO?
Not for the return. Homogeneous securities are matched in purchase order. The report does let you compare FIFO, LIFO, HIFO and average cost side by side, which is useful when you are deciding what to sell, but the number you file is the FIFO one.
Does it fill in the Modelo 100?
It produces the figures, not the filing. The Modelo 100 pack gives you the savings-base numbers with every disposal behind them in euros, the repurchase losses still suspended, the losses you are carrying from earlier years, and an estimated base and tax, with casilla 0326 on the disposals section. You or your asesor put the result into Renta Web. Nothing is sent to the Agencia Tributaria from here.
I have several IBKR accounts and another broker. Can I get one report?
Yes. The accounts combine into one portfolio and the lot queue for an ISIN runs across all of them, which is the only way the FIFO matching comes out right.
Do I have to connect the account, or can I upload a file?
Either. The connection is read only and keeps itself up to date. If you would rather not connect anything, export the Activity Statement and upload that instead.

Not tax advice. This page describes the Spanish rules for the 2025 and 2026 tax years: the 19 to 30 percent savings income bands, the two-month repurchase rule, the four-year loss carryforward and the €50,000 Modelo 720 threshold. Rates and thresholds move, and no two situations are identical. Check yours with the Agencia Tributaria or a Spanish adviser before you file.

Your Interactive Brokers year, in euros

Connect the account or upload the statement, and the IRPF figures are waiting when the renta opens.

Start free