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 income | Rate |
|---|---|
| €0 to €6,000 | 19% |
| €6,000 to €50,000 | 21% |
| €50,000 to €200,000 | 23% |
| €200,000 to €300,000 | 27% |
| Above €300,000 | 30% |
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.
AllInvestView
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.
AllInvestView
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.
AllInvestView
- 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
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.