How investment gains are taxed in Spain
Capital gains (what you earn when you sell investments for more than you paid) are taxed under the savings taxable base, which has its own brackets. And here's a nuance many people overlook: the brackets aren't the same across the whole country. If you're a tax resident in Euskadi (Bizkaia, Gipuzkoa, or Álava), your regional government (Diputación Foral) applies its own scale:
| Annual gain | Common territory 2026 | Euskadi 2026 |
|---|---|---|
| €0 – €6,000 | 19% | 19% |
| €6,000 – €7,500 | 21% | 19% |
| €7,500 – €15,500 | 21% | 20% |
| €15,500 – €30,000 | 21% | 22% |
| €30,000 – €50,000 | 21% | 24% |
| €50,000 – €90,000 | 23% | 25.5% |
| €90,000 – €120,000 | 23% | 26% |
| €120,000 – €200,000 | 23% | 26.5% |
| €200,000 – €240,000 | 27% | 26.5% |
| €240,000 – €300,000 | 27% | 27% |
| Over €300,000 | 30% | 28% |
The regional scale has more brackets and a different progression from the state one: for very small gains (up to €15,500) it works out slightly better than the state scale, but in the middle range -roughly between €15,500 and €200,000- the regional marginal rate is higher. From €200,000 onward the regional scale becomes more favorable again, and at the top bracket the Euskadi maximum (28%) sits below the state one (30%). Always check the current Norma Foral for your historical territory, since these brackets are revised fairly often.
This applies to realized gains: when you sell. While you hold the investment, you pay nothing even if its value has risen a lot. The first lever for optimization is precisely this: defer taxation for as long as possible.
Mutual funds: the tax advantage many people don't know about
Mutual funds have a unique tax advantage in Spain: tax-free transfers (traspasos).
If you hold a fund and want to switch to another one, you can transfer it without being taxed. The transfer is not considered a sale for tax purposes.
A practical example:
- You buy a fund for €10,000
- It rises to €30,000 (€20,000 in unrealized gains)
- You want to switch to another fund
- With stocks or ETFs: you'd be taxed on the €20,000 (around €4,200 in taxes)
- With funds: you make the transfer and pay nothing. The full €30,000 keeps working for you
Over decades of investing, this advantage can amount to tens of thousands of euros in deferred taxes that keep generating returns.
ETFs: almost identical, but without the transfer benefit
ETFs are practically identical to index funds in composition and fees, but they don't have the tax-free transfer regime in Spain. Every ETF sale is taxed like a stock sale.
This makes them less tax-efficient for the Spanish investor over the long term.
When should you use ETFs?
- When the equivalent fund isn't available through your broker
- For strategies where real-time pricing matters
- In niche markets with no accessible equivalent mutual fund
When should you use index funds?
- For long-term investing (10+ years)
- When you want to rebalance between asset classes without being taxed
- As your main vehicle for systematic saving
Direct stock ownership: the cost of being your own manager
Investing directly in stocks has advantages (full control, direct dividends) but several tax drawbacks:
No transfers: every sale is taxed immediately.
Dividends are taxed every year, even if you don't need the money. If a stock pays €1,000 in dividends, you're taxed that year even if you reinvest the money.
If you're a tax resident in Euskadi, there's a relevant exception: all three regional governments (Álava, Bizkaia, and Gipuzkoa) apply a €1,500 annual exemption on dividends received, identical across the three territories. This exemption doesn't exist under the common tax regime: there, dividends are taxed from the first euro.
The two-month rule: if you sell shares at a loss and buy back the same (or similar) shares within the following two months, the Spanish tax agency (Hacienda) won't let you offset that loss immediately. It only counts the loss when you eventually sell for good. With funds, the same logic applies to funds of the same type.
Accumulation funds vs. distribution funds
There are two types of funds:
- Distribution: pay out dividends periodically, and you're taxed each time
- Accumulation: reinvest dividends within the fund, so you aren't taxed until you sell
For the long-term investor, accumulation funds are more efficient: the reinvested dividend keeps compounding without passing through the tax office. Over 30 years, the accumulated difference is very significant.
How to offset gains and losses
Regulations allow you to offset gains and losses within the tax year, and to use losses from up to 4 previous years to reduce current gains.
Year-end strategy: if you have significant realized gains, check whether you hold positions with unrealized losses that you could realize to reduce your tax bill. Always without falling foul of the two-month rule.
FIFO: the order of sales matters
When you sell part of your holdings, the tax agency applies the FIFO criterion (First In, First Out): you're deemed to sell the units you bought first.
If you've been accumulating for many years, your oldest units may carry a huge unrealized gain. You can't choose to sell the most recent ones to reduce that year's tax bill. With the fund-transfer mechanism, you can avoid this problem by not realizing the gain until you actually need it.
The most efficient strategy for most people
For the individual investor in Spain:
1. Vehicle: a low-cost accumulation index fund (MSCI World or similar)
2. Strategy: automated monthly DCA
3. Tax management: don't sell until you need the money; transfer rather than sell if you switch funds
4. Annual review: in December, assess whether there are unrealized losses worth realizing to offset gains
If you live in Euskadi, also consider the EPSV (a Basque regional pension savings vehicle) as a complementary vehicle: contributions are deductible from the general base of the regional (foral) IRPF, not the savings base, which can be even more advantageous depending on your income level.
Comparison summary
| Vehicle | Tax-free transfers | Dividends | Gains taxation |
|---|---|---|---|
| Mutual fund | Yes | Accumulation or distribution | On sale |
| ETF | No | Distribution (mostly) | On sale |
| Stocks | No | Taxed each year received | On sale |
| EPSV (Euskadi) | Between EPSVs | Accumulation | On withdrawal |
The most tax-efficient vehicle for long-term investing in Spain is the accumulation index fund, thanks to tax-free transfers and automatic dividend reinvestment.
Work out your own situation in our compound interest calculator to see the impact of taxation on your net return, or in the EPSV calculator if you live in the Basque Country.