English and German-speaking tax advisers for Spain and the Balearic Islands · part of Castell.lawTax advice in English · Deutsch · Español · +34 680 464 800
Income tax for residents

Capital gains on shares, ETFs and funds for residents of Mallorca, Ibiza and Menorca

When a Spanish resident sells shares, ETFs or investment funds, the gain is taxed on the savings scale, from 19%. The rules on how gains are calculated, when fund switches are tax-free and how losses work differ from other countries, so investors moving to Mallorca or Ibiza should know them before rebalancing a portfolio.

  • English, German and Spanish
  • Residents and non-residents
  • Written quote before we start

Key rules

RuleEffect
FIFOThe first shares bought are deemed the first sold
Fund switch (traspaso)No tax if both funds qualify; cost carries over
ETFsTaxed on every sale, no switch deferral
Two-month ruleLoss deferred if the same securities are repurchased within two months
Loss offsettingAgainst gains, then up to 25% of interest and dividends
Carry forwardFour 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.

Talk to a tax adviser about your situation

Call, WhatsApp or email us in English, German or Spanish. Tell us where you live, what you own and what you earn, and we will explain what you must file, when, and how to pay no more than you owe.