How to Rebalance Without Paying Taxes: The Spanish Fund Advantage
Rebalancing is the only active task that a passive investor must perform on a recurring basis. Its main objective is to keep the original risk profile of a portfolio under control by correcting the drift caused by market movements.
However, in classical international finance theory, rebalancing means selling assets that have grown too much to buy those that have fallen behind. In many countries, this immediately triggers an obligation to pay tax on the realised capital gains.
Fortunately for Spanish tax residents, there are powerful and entirely legal strategies that allow you to rebalance your investment fund portfolio without paying any tax. In this article we explain the three techniques to achieve this, simulate the real long-term financial impact of this tax advantage, and show you how to calculate it step by step.
1. The Spanish Tax Advantage for Investment Funds
In Spain, the IRPF (Personal Income Tax) law grants an exclusive tax deferral regime to investment funds, known as traspasabilidad (fund transferability), set out in Article 94 of Law 35/2006.
This means that when you move money from one fund to another via a traspaso (fund transfer) instruction, the operation is exempt from taxation. The Spanish Tax Agency (Hacienda) does not consider this a realised capital gain — it simply treats it as a change in the investment vehicle, keeping the original acquisition date and cost basis intact.
This tax exemption does not apply to equities or most ETFs (which trigger a taxable event at the point of sale). For this reason, index funds are the preferred investment vehicle for passive investors looking to optimise their tax costs.
2. Three Techniques to Rebalance Without Paying Tax
There are three main ways to return your portfolio to its original asset allocation while avoiding tax withholdings.
Technique 1: Rebalancing via Periodic Contributions (Cash-Flow Rebalancing)
This is the ideal technique for investors in the accumulation phase (saving and investing money periodically, for example monthly).
- How it works: Instead of selling your overweighted assets, you use your new monthly savings to buy exclusively those funds that have fallen below their target percentage.
- Advantage: Zero transaction costs and zero tax impact, since you are only making fund purchases, not sales or transfers.
Technique 2: Rebalancing via Internal Fund Transfers
If the drift in your portfolio is very large, or your accumulated capital is high, your monthly savings may not be sufficient to restore the portfolio to its original balance.
- How it works: You instruct your platform to execute a fund transfer, moving an exact sum of money from the overweighted fund to the underweighted fund.
- Advantage: Allows you to correct extreme deviations instantly without paying between 19% and 28% capital gains tax on the gains from the selling fund.
Technique 3: Rebalancing at Withdrawal Stage via Smart Disinvestment
When you stop accumulating and start living off your investments, tax-efficient rebalancing works in reverse.
- How it works: Instead of rebalancing by selling and buying, you make your monthly withdrawals by selling only units from the overweighted funds (the ones that have risen the most).
- Advantage: In addition to rebalancing the portfolio, you apply the FIFO tax principle or offset losses against gains to minimise your annual IRPF taxable base.
3. Simulation: The Real Impact of Tax Deferral Over 20 Years
To illustrate the power of tax deferral, let’s compare two investors — Carlos and Sofía — who both start with an identical €50,000 portfolio with an asset allocation of 80% Equities (global stocks) and 20% Fixed Income (global bonds).
We assume:
- Equities return an average of 8% per year.
- Fixed income returns an average of 2% per year.
- Each year they rebalance their portfolios back to 80/20.
Carlos: Classic Rebalancing (Sell and Buy)
Every year, Carlos sells the surplus portion of his equity fund to buy bonds. On selling, he pays Hacienda an average tax rate of 19% on the first €6,000 of gain and 21% on the next €4,000 (a total of roughly €1,980 in taxes).
- Estimated result after 20 years: Carlos’s net cumulative return is dragged down annually by tax withholdings. His final portfolio is approximately €192,000.
Sofía: Tax-Efficient Rebalancing (via Fund Transfers)
Every year, Sofía executes fund transfers to rebalance her asset allocation back to 80/20. She pays no tax on rebalancing throughout those 20 years.
- Estimated result after 20 years: Because her entire gains remain invested and compounding year after year, Sofía’s final portfolio reaches approximately €214,000.
[!TIP] Simply by changing the rebalancing method (fund transfers instead of direct sales), Sofía ends up with an additional €22,000 in net wealth at the end, thanks to the multiplier effect of compound interest on deferred taxes.
4. How to Automate Tax-Efficient Rebalancing with CoreBalance
Keeping track of your index funds and calculating to the cent exactly what contribution or transfer is needed to rebalance your portfolio can quickly become complex if you hold 3 or 4 different funds.
CoreBalance simplifies this task optimally:
- Calculates the deviation instantly: Enter your current balances and see the exact drift from your original plan.
- Prioritises contributions (Technique 1): If you are making a monthly purchase, enter the amount and CoreBalance will tell you how to distribute it to correct the deviation without selling anything.
- Calculates tax-efficient transfers (Technique 2): If contributions are not enough, the tool will show the exact amount in euros to transfer between your index funds to restore the risk structure without triggering a tax event.
- Guaranteed privacy: Everything is processed locally in your browser. Your financial data never travels to any external server, ensuring your financial security and privacy.
Ready to rebalance your portfolio?
Enter your funds or ETFs, set your target percentages, and get the exact calculation instantly. Free, no signup required, and 100% private in your browser.