Capital Gains in Spain: Taxing ETFs, Stocks, and Investment Accounts
Sandor Farkas
Mallorca expert and author
If you are a tax resident on Mallorca and hold an investment account abroad, you are coordinating two tax worlds at once. The bank in your home country may already withhold a local tax on interest, dividends, and capital gains - but that does not exempt you from declaring those same earnings in the Spanish income tax return. This article explains how it works, what Modelo 720 has to do with it, and what to consider if you are thinking about moving your portfolio to Spain.
At a glance
As a tax resident in Spain you must declare all worldwide capital gains in the Spanish IRPF return. Spain taxes interest, dividends, and capital gains using its own progressive rate. Foreign assets above EUR 50,000 trigger a reporting obligation via Modelo 720. Withholding tax already paid abroad can be credited against your Spanish liability under the applicable double-taxation treaty.
How Spain Taxes Capital Gains
Spain groups capital gains under a separate category called "rentas del ahorro" (savings income). This includes:
- Interest from savings accounts, bonds, or fixed deposits
- Dividends from shares or funds
- Realised gains from selling ETF units or shares
- Returns from structured products
Losses from sales can be offset against gains - but only within the same income category, and up to a maximum of 25% of the balance of the other category.
Spanish tax rates on capital gains (as of 2026) are tiered by amount:
- Up to EUR 6,000: 19%
- EUR 6,001 to EUR 50,000: 21%
- EUR 50,001 to EUR 200,000: 23%
- EUR 200,001 to EUR 300,000: 27%
- Above EUR 300,000: 28%
These rates apply to standard tax residents. Anyone under the Beckham Law (Regimen especial de impatriados) is taxed differently.
Where Double-Taxation Treaties Apply
Many countries have a double-taxation treaty (DTT) with Spain. If yours does, you will not pay full tax in both countries on the same income.
In practice it works like this: your home-country bank or broker withholds local tax on your investment income. You then declare this as "impuesto soportado en el extranjero" (foreign tax already paid) in the Spanish return, and it is credited against your Spanish liability - up to the amount due in Spain. If your home country's rate is lower than Spain's, you pay the difference in Spain. If the credit covers the full Spanish amount, you owe nothing more.
Tip: Annual tax certificate from your bank
Ask your bank or broker abroad for an annual tax certificate. This document lists all withheld taxes and is the basis for claiming the credit in your Spanish return. Many banks provide it automatically; some only send it on request.
Modelo 720 - Reporting Foreign Assets
Modelo 720 is a pure information declaration to the Spanish tax authority (AEAT) - it is not a tax payment. You must file it if you hold foreign assets above certain thresholds:
- Bank accounts abroad: total balance above EUR 50,000
- Securities, funds, shares, and derivatives abroad: total value above EUR 50,000
- Real estate abroad: total value above EUR 50,000
Each of the three categories is assessed separately. If you hold an investment account abroad worth EUR 60,000, you must file Modelo 720 - regardless of whether you also have foreign bank accounts or property.
Note: Initial filing and subsequent years
The initial filing must cover all positions in full. In subsequent years you only need to file again if a value has increased by more than EUR 20,000 compared to the prior year, or if you have fully disposed of a position. Even so, it is worth reviewing this annually with a tax adviser.
The deadline for Modelo 720 is 31 March of the following year. Missing or late filings can result in significant fines. Following a European Court of Justice ruling, the originally severe penalties were substantially reduced, but missing the deadline is still not something to take lightly.
ETF Taxation: What You Need to Know About Accumulating Funds
With accumulating ETFs the fund reinvests returns rather than distributing them. In Spain there is no equivalent to the annual "Vorabpauschale" (advance lump-sum tax) that some countries apply to accumulating funds.
For Spanish tax residents the rule is: capital gains from ETF sales are only taxed when you actually sell the units. No annual deemed distribution applies under the Spanish system. This can be an advantage - you pay nothing while you hold. When you do sell, however, you must declare the full capital gain (sale price minus purchase price) in your IRPF return.
For calculating the gain, Spain generally uses the FIFO method (First In, First Out): units acquired first are treated as sold first.
Moving Your Portfolio to Spain - Is It Worth It?
Some expats consider moving their investment account from abroad to a Spanish broker. There are pros and cons:
Advantages of a Spanish account:
- Capital gains tax is handled directly in Spain, no cross-border coordination needed
- Annual tax certificate is in Spanish and ready to use for the IRPF return
- No Modelo 720 obligation (the account is already in Spain)
Disadvantages:
- The range of Spanish online brokers is considerably smaller than in many other countries
- Fees and product selection may be less favourable
- A portfolio transfer is not itself a taxable event, but you need to ensure the historical cost basis transfers correctly
A transfer alone does not trigger a tax liability - it is treated as neutral for tax purposes. That said, it is worth discussing with a Spanish tax adviser before acting.
Conclusion
As a tax resident on Mallorca you must declare capital gains from investment accounts held abroad in your Spanish income tax return. Spain taxes this income at a progressive rate between 19% and 28%. Withholding tax already paid in your home country is credited against your Spanish liability, so you are not paying double - but you do need to actively declare the income and file correctly.
Modelo 720 adds a separate reporting obligation for foreign assets above EUR 50,000, due by the end of March each year. If you invest regularly in ETFs or shares, it is worth engaging a specialist Spanish tax adviser. Getting the setup right from the start avoids unpleasant surprises down the line.
For more background on taxation as a resident, see the guide to tax residency on Mallorca and the article on filing your Spanish tax return.