Taxes
How your ETFs and funds are taxed in income tax: a practical guide
If you invest in ETFs or investment funds, you need to know how to declare gains in income tax, what tax differences exist between both products and how to optimize your tax bill.
Key takeaways
Investment funds have a unique tax advantage in Spain: you can transfer between funds without paying taxes until you finally redeem.
- Gains from ETFs and funds are taxed in the savings base of income tax: 19% on the first €6,000, 21% from €6,000 to €50,000, and 23% from €50,000 to €200,000.
- Investment funds allow transfers between them without taxation; ETFs do not: each sale generates an immediate taxable event, just like stocks.
- You can offset losses against gains within the same year and in the following four tax years, thereby reducing your total tax bill.
The big tax difference between ETFs and investment funds
ETFs and index investment funds can track exactly the same indices, have similar management costs and even replicate the same asset portfolio, but their tax treatment in Spain is radically different. This distinction can have a huge impact on your net long-term returns, especially if you invest significant amounts or have a decades-long horizon.
Investment funds benefit from the transfer regime: you can move your money from one fund to another, even completely changing strategy, assets or management company, without that movement generating any immediate tax obligation. You only pay taxes when you make the final redemption and receive the money in your bank account. This tax deferral allows compound interest to act on 100% of the accumulated capital, without the annual reduction that comes from paying tax on each sale.
ETFs, on the other hand, trade on stock exchanges like stocks and are taxed the same way. Every time you sell ETF shares, you generate an immediate taxable event and must pay tax on the gain obtained. There is no possibility of transferring without paying tax between ETFs, even if they have the same underlying index. This difference seems minor in the short term, but becomes very relevant if you do periodic rebalancing or change strategy several times throughout your investing life.
Quick tips
- If your investment horizon is long (more than 10 years) and you plan to make strategy changes along the way, investment funds usually win in tax efficiency over ETFs. If, on the other hand, you have a passive buy-and-hold strategy without changes, the tax difference is greatly reduced.
How capital gain is calculated in income tax
When you sell fund units or ETF shares, the capital gain (or loss) is the difference between the transmission value —the price at which you sell— and the acquisition value —the price at which you bought plus purchase costs such as brokerage commissions—. If you bought on several different dates, the Tax Agency applies the FIFO method (First In, First Out): it is considered that you sell first the units you bought earliest.
This gain is integrated into the savings tax base and taxed at the following rates for the 2026 tax year: 19% for the first €6,000 of gain, 21% from €6,001 to €50,000, 23% from €50,001 to €200,000 and 27% above €200,000. The broker or management company automatically withholds 19% on account at the time of sale or redemption, which you then adjust in your income tax return.
It is important to distinguish between short and long-term gains: in Spain, regardless of how long you have held the investment, all capital gains go to the savings base. There is no US-style distinction between short-term and long-term capital gains with different rates. This simplifies the calculation, although it means there is no tax advantage for holding longer except the implicit deferral of not selling.
Quick tips
- Always keep the purchase receipts for your funds and ETFs, including commissions paid. Those commissions reduce the acquisition value and therefore the taxable gain when you sell. Over time, they can represent significant tax savings.
Loss offsetting: how to reduce your tax bill
If in a year you have gains in some funds or ETFs and losses in others, you can offset them against each other. Capital losses from the sale of investments can offset capital gains of the same nature without any amount limit. In addition, if the annual net result is negative, you can carry forward that negative balance and offset it against gains from the following four tax years.
A common technique among more advanced investors is the so-called 'tax loss harvesting': it consists of selling positions with latent losses before the end of the calendar year to materialize those losses, offset them against already realized gains from the same tax year and thereby reduce the tax bill. Afterwards, you can reinvest in similar —not identical— assets to maintain market exposure.
There is also the possibility of offsetting capital losses against capital income (such as interest from interest-bearing accounts or dividends), but with a limit of 25% of said income. For example, if you have €1,000 in interest and €500 in fund losses, you can offset €250 of those losses (25% of €1,000) against the interest, and the remaining €250 you carry forward to the following four tax years.
Quick tips
- Watch out for the wash-sale rule: if you sell a fund at a loss and repurchase the same fund or a substantially identical one within 2 months before or after the sale, the Tax Agency does not allow you to count that loss. For ETFs, the exclusion period is 1 year for listed homogeneous securities. Plan the timing carefully if you use this strategy.
Dividends in ETFs: another key difference
Some ETFs are distributing: they distribute dividends periodically to participants, usually quarterly or semi-annually. These dividends are taxed as capital income in income tax, with automatic 19% withholding applied at the time of payment, just like interest from an interest-bearing account or bond coupons. Although dividends are real income, they generate an immediate tax obligation that interrupts the effect of compound interest.
If you prefer to defer taxes and maximize compound interest, accumulating ETFs automatically reinvest dividends back into the fund itself, without that reinvestment generating any taxable event. You will only pay taxes when you sell the shares and realize the total gain. This modality is especially advantageous in accumulation phases, when you don't need dividends as current income.
Investment funds in Spain always reinvest dividends and coupons received in the portfolio (they are all accumulating for tax purposes, regardless of their commercial name), so they do not generate any intermediate withholding. This is another important tax advantage of funds over distributing ETFs for investors in the accumulation phase who do not depend on those dividends for income.
ETFs vs funds: which to choose based on your profile?
The choice between ETFs and funds has no single answer: it depends on your time horizon, your strategy, how frequently you plan to make changes and the amount you invest. For a young investor with a 30-year horizon following a simple buy-and-hold strategy with a single global index and no plans for frequent rebalancing, an ETF can be perfectly valid, especially if costs are lower.
For an investor with greater wealth, who performs periodic rebalancing between equities and bonds, who wants to change strategy over the years or who accumulates in several indices simultaneously, investment funds offer a clear tax advantage thanks to the transfer regime. The difference can materialize in thousands of euros of accumulated tax savings over long horizons.
Some investors opt for a combination: ETFs for the part of the portfolio they hold indefinitely without touching, and funds for the part with which they make tactical or allocation adjustments. There is no impediment to having both types of products simultaneously. The important thing is to understand the tax implications of each movement before executing it.
Quick tips
- Before selling any position with a significant gain, consult a tax advisor or calculate the impact on your return yourself. A poorly planned sale at the end of the year can push you into a higher tax bracket that could have been avoided by splitting the transaction across two different tax years.
Linked tools
April 9, 2026
Automated ETF investing: DCA for cautious investors
Combine monthly deposits, semiannual rebalancing and a 60/40 mix to sleep well at night.
May 18, 2026
Moving up IRPF brackets: strategies to optimize your tax return
Detect if you're close to changing brackets and apply legal strategies to reduce your tax bill without breaking the rules.
May 25, 2026
What compound interest is and why it completely changes how you see saving
Once you understand how compound interest works, it is very hard to leave your money sitting idle ever again.