Investment fund taxation in Spain: how it works

When you invest in investment funds, understanding how they are taxed can make a big difference to your net returns. In this guide you will find everything you need to know to optimise your tax position and meet your obligations without surprises.
The most repeated question every Spanish income tax (IRPF) season… How are my investment funds taxed? Do I have to pay anything if I don't redeem? And what if I receive dividends?
First of all, investment funds are collective investment schemes (Instituciones de Inversión Colectiva, IIC), and if you want to learn more about them in depth, take a look HERE.
Let's start at the beginning. A fund unitholder only pays tax when redeeming units, which generates a return (positive or negative) that for tax purposes is treated as a capital gain or loss, and as such must be included in the Spanish savings tax base (base imponible del ahorro, BIA) in the income tax return (IRPF).
1️⃣ Withholding tax
Profits from investment funds arise, essentially, when you sell your units in the fund and, in some cases, such as distributing funds, when dividends are paid out.
The potential result of an investment is treated as a capital gain and included in the Spanish savings tax base (BIA). At the time of sale, 19% of the gain is withheld from the unitholder as an advance payment of the tax to be settled when filing the income tax return (IRPF). If you make a loss, nothing is withheld.
2️⃣ Calculating the capital gain or loss
Gains or losses are calculated as the difference between the net asset value (NAV) of the units at the time of redemption (sale) and the NAV at subscription (purchase), adding or subtracting the associated costs.
These associated costs are costs linked to the purchase (for example, subscription fees) or to the sale (for example, redemption fees). They increase the acquisition value and/or reduce the transfer value.
If you hold units in the same fund acquired on different dates, the gain or loss on the sale of some (or all) of the units is calculated on the basis that the first units acquired are the first ones sold (the FIFO method, First In, First Out).
One thing to bear in mind is that intermediaries may charge recurring fees (custody fees, maintenance fees, etc.). These fees are considered deductible expenses and are subtracted from investment income (rendimientos del capital mobiliario). Important: if you have a discretionary portfolio management service, that fee is NOT deductible.
3️⃣ Tax rates (%) -> Updated 2026 🇪🇸 Spain
– Up to €6,000 -> 19%
– Between €6,000 and €50,000 -> 21%
– Between €50,000 and €200,000 -> 23%
– Between €200,000 and €300,000 -> 27%
– Over €300,000 -> 30%
These percentages apply in progressive brackets. Rates differ in the Basque Country and Navarre.
4️⃣ Tax deferral
Since January 2003, transfers between collective investment schemes (traspasos) do not count as a capital gain or loss: the new shares or units subscribed keep the value and acquisition date of those transferred or redeemed, provided certain requirements are met. Spanish law establishes that investors do NOT have to pay any tax as long as the money remains in an investment fund or is transferred to another one. That is why tax deferral gives investors an extra boost to their returns.
5️⃣ Offsetting losses from previous years
If you redeemed (sold) your units at a loss, the current rules allow you to offset those losses in your income tax return (IRPF) against other capital gains obtained during the past year from movable or
immovable assets. In the case of investment income (deposit interest, shares, dividends, etc.), losses can only be offset up to a limit of 25% (for real estate, 100% of the gains).
*BONUS: Exchange-traded funds (ETFs) are funds whose units are admitted to trading on stock exchanges. Tax is paid when the units are sold, a transaction that generates a capital gain or loss (sale price – purchase price – costs associated with the purchase and the sale). They are NOT subject to withholding tax and, unlike traditional investment funds, ETFs cannot be transferred without paying tax. The dividends they distribute are investment income and carry a 19% withholding.
If you want to get to know ETFs in depth, take a look HERE.
Do you have questions about your financial products? Do you want to optimise the management of your wealth? For all of this, the best option is to have a financial adviser you can TRUST, who helps and accompanies you on your investment journey. If you would like to get in touch with us, you can do so HERE.
Keep learning
¿Hablamos de tu patrimonio?
Si quieres que te ayudemos a gestionar tu patrimonio con criterio profesional, escríbenos. La primera conversación es sin compromiso.
Solicita tu primera reunión