Key rules
| Rule | Effect |
|---|---|
| FIFO | The first shares bought are deemed the first sold |
| Fund switch (traspaso) | No tax if both funds qualify; cost carries over |
| ETFs | Taxed on every sale, no switch deferral |
| Two-month rule | Loss deferred if the same securities are repurchased within two months |
| Loss offsetting | Against gains, then up to 25% of interest and dividends |
| Carry forward | Four years |
Foreign brokers
Spanish brokers report your sales to the tax agency and the draft return includes them. Foreign brokers do not, so you must calculate and declare gains yourself, in euros, using the exchange rates of each purchase and sale date. Holdings with foreign brokers may also require the modelo 720.
Gains accrued before moving
Spain taxes the whole gain when you sell as a resident, including the part accrued before you arrived, using the original cost. Some people realise gains before becoming resident when their home country does not tax them.
Dividends and withholding
Dividends are savings income too, and foreign withholding is credited within treaty limits. See the foreign tax credit, savings income tax and our income tax return service.
An illustrative example
Based on situations we commonly see; not a specific client. A Danish investor in Palma held ETFs with an online broker abroad. We calculated the gains in euros for each sale with the historic exchange rates, applied FIFO and offset an earlier loss carried forward.
How Castell.tax can help in Mallorca, Ibiza and Menorca
We prepare the annual income tax return of foreign residents in the Balearic Islands, including foreign pensions, investments, rental income and the foreign tax credit, and we compare joint and individual filing every year. We explain the result in English or German before filing. See our income tax return service or contact us to review your situation before the next campaign.
This page is published by Castell.tax, the tax practice of Castell.law in Palma de Mallorca. It is general information; tax rules and rates change, so check your case with us before filing.
Not sure what you owe? Ask before the deadline
Send us your situation or the letter you received. A tax adviser will tell you what applies, what it could cost and what to file.
Common questions from clients in Mallorca, Ibiza and Menorca
At what rate are share gains taxed?
On the savings scale, from 19%.
Are fund switches tax-free?
Yes, between qualifying investment funds; ETFs do not qualify.
Do I include gains from a foreign broker?
Yes, you calculate and declare them yourself.
Can I sell at a loss and buy back?
If you buy back within two months, the loss is deferred.