Investing Taxes in Spain (2026):
CGT, Modelo 720 & ETF rules
Spain’s investment tax system has features that catch ETF investors off guard — a progressive CGT scale, a mandatory foreign asset declaration (Modelo 720), a traspaso rule that benefits mutual funds but explicitly excludes ETFs, and an exit tax that affects long-term residents planning to relocate. This guide covers all of it.
Some of the links on this site are affiliate links, meaning we may earn a commission at no extra cost to you if you sign up through them. This does not affect our reviews or recommendations — we only feature products we genuinely believe are useful for investors. This site provides educational content only, not personalized investment advice. Investments can lose value and past performance does not guarantee future results. You are responsible for your own financial decisions and for confirming the tax and legal rules that apply in your country.
Seven things that define Spanish investment taxation
| Concept | What it is | Who it affects |
|---|---|---|
| Renta del ahorro (CGT) | Progressive 19–28% tax on investment gains and dividends | All investors |
| Traspaso rule | Tax-free fund switching — but only for qualifying mutual funds, not ETFs | Mutual fund investors |
| Modelo 720 | Mandatory annual declaration of foreign assets over €50,000 | Foreign broker users |
| Impuesto sobre el Patrimonio | Wealth tax above ~€700k — rates vary sharply by autonomous community | High-net-worth investors |
| Ley Beckham | Flat 24% rate + foreign income exemption for qualifying expat residents | Recent relocators |
| Impuesto de Salida | Exit tax on unrealised gains when leaving Spain after 10+ years of residency | Long-term residents with large portfolios |
| FIFO cost basis | First-in, first-out method — mandatory for ETFs, no lot selection | All ETF investors |
- No annual advance tax on accumulating ETFs (unlike Germany’s Vorabpauschale).
- Capital losses can offset dividends up to 25% — and carry forward 4 years.
- No wash-sale rule — tax loss harvesting is fully legal and effective.
- Beckham Law can effectively eliminate foreign ETF taxation for 6 years.
- Selling one ETF to buy another triggers CGT — no traspaso benefit.
- Foreign broker accounts above €50,000 require Modelo 720 every year.
- Wealth tax can exceed €40,000/year in Catalonia or Valencia on larger portfolios.
- Exit tax on unrealised gains applies when leaving Spain after 10+ years with a large portfolio.
Spain’s progressive savings income scale
Unlike Germany (flat 26.375%) or Italy (flat 26%), Spain taxes investment income progressively within the base imponible del ahorro. Capital gains from ETF sales, dividends, and interest income are all aggregated before applying the brackets.
| Net savings income | Marginal rate | Cumulative tax at top of band |
|---|---|---|
| €0 – €6,000 | 19% | €1,140 |
| €6,000 – €50,000 | 21% | €10,380 |
| €50,000 – €200,000 | 23% | €44,880 |
| €200,000 – €300,000 | 27% | €71,880 |
| Above €300,000 | 28% | — |
Total savings income: €22,000
- First €6,000 at 19% = €1,140
- Remaining €16,000 at 21% = €3,360
Total tax: €4,500 on €22,000 = 20.45% effective rate
Losses from investment sales offset gains in the same year, and up to 25% of dividend income. Excess losses carry forward for four years. This makes tax loss harvesting — deliberately realising losses to offset gains or dividend income — both legal and effective in Spain. Unlike Italy, Spain also allows capital losses to offset dividend income in the same year, a more flexible treatment. Crucially, there is no Spanish equivalent of the US wash-sale rule: you can sell an ETF to realise a loss and repurchase it immediately without forfeiting the tax benefit.
Why mutual funds beat ETFs for tax in Spain
The traspaso rule is arguably the most important structural tax difference Spanish investors face when choosing between ETFs and traditional investment funds.
The traspaso allows Spanish investors to switch from one qualifying fondo de inversión to another without triggering a taxable capital gains event. The cost basis and holding period transfer to the new fund; tax is deferred until final sale. This is extremely valuable for rebalancing, changing providers, or adjusting strategy over time.
| Investment type | Traspaso eligible? | Notes |
|---|---|---|
| Spanish-registered mutual fund (fondo de inversión) | Yes | Full CGT deferral on switch |
| EU UCITS mutual fund (non-ETF, CNMV-registered) | Yes | Must be registered with CNMV |
| UCITS ETF (exchange-traded) | No | Sale is a taxable disposal — no exception |
| Foreign mutual fund (not CNMV-registered) | No | Must sell and repurchase |
The exclusion of ETFs from the traspaso regime is a deliberate legislative choice. The Spanish tax authority (AEAT) treats ETFs as valores cotizados (listed securities) rather than investment funds — despite both being UCITS vehicles. For investors who want both ETF access and the traspaso benefit, one approach is to hold index mutual funds for the accumulation phase and switch to ETFs only for long-term buy-and-hold positions where switching is unlikely.
When do you become a Spanish tax resident?
Everything in this guide applies to Spanish tax residents. Understanding when you qualify — and when you stop — is the starting point for all planning.
| Criterion | What it means |
|---|---|
| 183-day rule | Spend more than 183 days in Spain during a calendar year. “Sporadic absences” (short trips abroad) count toward the total unless you can prove tax residency elsewhere via a tax residency certificate from another country. |
| Center of economic interests | Spain is where the majority of your business activity, professional work, or main income sources are located — even if you spend fewer than 183 days physically present. |
| Family presumption | Your non-separated spouse and/or underage dependent children habitually reside in Spain. This creates a legal presumption of Spanish tax residency that you can rebut with evidence, but the burden is on you. |
Once you are a Spanish tax resident, Spain taxes your worldwide income — all investment gains, dividends, and interest, regardless of where assets are held or which broker you use.
Modelo 720: mandatory declaration for foreign broker users
Modelo 720 is one of the most consequential obligations for Spanish tax residents investing through IBKR, DEGIRO, or any other non-Spanish broker.
| Detail | |
|---|---|
| Who must file | Spanish tax residents with foreign assets exceeding €50,000 in any single category |
| Category 1 | Foreign bank accounts (current, savings, deposit) |
| Category 2 | Foreign securities, ETFs, mutual funds, pension plans, life insurance |
| Category 3 | Foreign real estate |
| Threshold | €50,000 per category — accounts at the same broker are aggregated. €30k at IBKR + €30k at DEGIRO = €60k in Category 2 → must file |
| Filing window | 1 January – 31 March of the following year |
| Subsequent years | Re-file only if declared asset value changes by more than €20,000, or if new assets are added or disposed of |
- Download your end-of-year account statement in January (IBKR: Portfolio Analyst / Tax Forms; DEGIRO: Annual Account Statement).
- Check whether your total foreign securities holdings exceeded €50,000 on 31 December.
- If yes: file Modelo 720 via the AEAT electronic office before 31 March — requires a digital certificate or Cl@ve PIN.
- In subsequent years: re-file only if the declared value changed by more than €20,000, or if you opened or closed accounts.
- Keep your submission confirmation (acuse de recibo) and brokerage statements for at least 4 years.
Cost at a typical Spanish asesor fiscal: €100–200 for a single-broker declaration.
Modelo D-6 is a foreign investment declaration managed by Spain’s Ministerio de Economía (not AEAT), historically required for residents investing in foreign securities through foreign brokers. It is frequently confused with Modelo 720, but they are completely separate obligations handled by different authorities.
Following Spain’s liberalisation of capital movements, most retail investors holding standard ETF portfolios through regulated EU brokers like IBKR or DEGIRO are generally not required to file D-6. The form now primarily applies to strategic investments — such as holdings exceeding 10% in a non-EU company, or investments qualifying as foreign direct investment under specific regulatory definitions.
If you are unsure whether your specific portfolio structure triggers D-6 obligations, ask an asesor fiscal — the rules have changed repeatedly and the answer depends on the exact nature and size of your holdings.
How UCITS ETFs are taxed in practice
Gain (sale price minus cost basis) joins your savings income base and is taxed at the 19–28% progressive scale. Cost basis uses FIFO — the earliest units purchased are treated as sold first. You cannot choose specific lots.
Distributions (from VWRL, VUSA, etc.) are classified as rendimientos del capital mobiliario and taxed as part of the savings income base at the same 19–28% rates. At a foreign broker, received gross — declare in your IRPF return.
Unlike Germany’s Vorabpauschale, Spain imposes no annual advance tax on accumulating ETFs. There is no notional tax — gains in VWCE or VUAA compound entirely untaxed until you sell.
For Spanish investors, accumulating ETFs are meaningfully more tax-efficient than distributing equivalents. The full compound return grows uninterrupted; no annual dividend tax is triggered.
- Tax withheld at source on dividends.
- Broker reports transactions to AEAT automatically.
- Renta Web partially pre-fills capital gains data.
- Less manual work at year-end.
- No automatic reporting to AEAT — nothing pre-filled.
- Download annual activity / tax statement from the broker.
- All gains entered manually in Modelo 100 (base del ahorro).
- Convert all figures to EUR using ECB rates at trade date.
- IRPF declaration deadline: 30 June of the following year.
- If you hold ETFs at multiple foreign brokers, a portfolio tracker like Sharesight can centralise transaction history and simplify the P/L reconstruction needed for Modelo 100.
Foreign withholding tax on ETF dividends
When you invest in Irish UCITS ETFs holding US or other foreign stocks, a layer of withholding tax operates at the fund level — invisible to most investors but directly reducing net return.
Ireland has a tax treaty with the US that reduces US dividend withholding at the fund level from 30% to 15%. Spanish investors holding VWCE, VUAA, or CSPX benefit from this reduced rate automatically. This 15% is baked permanently into the ETF’s NAV — Spanish investors cannot reclaim it.
Even with accumulating ETFs, withholding operates inside the fund on every dividend paid by underlying holdings. The 15% is retained before NAV accumulation — meaning no cash distribution appears, but the return is permanently reduced by this drag regardless.
| Scenario | Withholding at source | Spanish investor can reclaim? |
|---|---|---|
| US dividends inside Irish UCITS ETF (e.g. VWCE) | 15% at fund level (Ireland–US treaty) | No — permanent drag |
| US stocks held directly (W-8BEN filed) | 15% (Spain–US treaty rate) | Partially — credit against Spanish tax |
| EU/EEA dividends (e.g. German stocks) | Varies by country (15–26.375%) | Yes — deducción por doble imposición |
| Distributing ETF dividends (VWRL at IBKR) | Withheld at source by custodian | Possibly — depends on treaty |
Impuesto sobre el Patrimonio: rates vary dramatically by region
Spain’s wealth tax applies to net assets above ~€700,000 nationally, but autonomous communities have the power to modify rates and grant full exemptions — creating a patchwork across the country.
| Autonomous community | Effective wealth tax | Notes |
|---|---|---|
| Madrid | 0% (100% bonificación) | Full exemption — effectively no wealth tax |
| Andalucía | 0% (from 2023) | Full exemption introduced 2023 |
| Galicia | 0% (from 2023) | Full exemption introduced 2023 |
| Cataluña | 0.21% – 2.75% | Progressive rates, no bonificación |
| Comunitat Valenciana | 0.25% – 3.12% | Among the highest rates in Spain |
| Islas Baleares | 0.28% – 3.45% | Highest top rate in Spain |
| País Vasco / Navarra | Foral regime | Separate tax rules — consult locally |
For portfolios below €700,000, national wealth tax is irrelevant. For larger portfolios, the autonomous community of residence matters enormously. An investor with €2,000,000 in assets in Madrid pays zero wealth tax; the same investor in Valencia could owe tens of thousands annually.
The Beckham Law: Spain’s most valuable expat benefit
The Régimen Especial de Trabajadores Desplazados — named after the footballer who famously used it — allows qualifying new residents to opt for a far more favourable tax treatment for up to six years.
| Feature | Treatment under Beckham regime |
|---|---|
| Spanish income up to €600,000 | Flat 24% (vs up to 47% under the general regime) |
| Spanish income above €600,000 | 47% |
| Foreign-source investment income | Generally exempt — foreign ETF gains and dividends may fall outside Spanish tax |
| Wealth tax scope | Spanish assets only (not worldwide) during the regime period |
| Modelo 720 | Not required during the Beckham period |
| Duration | Year of arrival + 5 subsequent years (max 6 years total) |
| Application deadline | Within 6 months of registration as Spanish resident — this deadline is hard |
| Eligibility (key condition) | Must not have been Spanish tax resident in the prior 5 years |
For high-income professionals with significant foreign ETF holdings, the Beckham Law can effectively eliminate Spanish CGT on those assets for up to six years. Confirm the precise scope with an asesor fiscal — the exact treatment depends on the source and nature of the income.
Impuesto de Salida: the tax on leaving Spain
Spain levies an exit tax under Article 95 bis of the IRPF law that can significantly affect long-term residents planning to relocate abroad. It is one of the least-discussed but potentially most expensive elements of Spanish investment taxation for investors with large portfolios.
When a Spanish tax resident moves abroad and ceases residency, Spain taxes unrealised capital gains on qualifying shareholdings — meaning you can owe tax on gains you have never actually received. The calculation is done as though you sold all qualifying positions on the day you left Spain.
| Condition | Detail |
|---|---|
| Minimum residency | Must have been Spanish tax resident for at least 10 of the prior 15 years |
| Portfolio trigger | Total value of shares and fund holdings exceeds €4,000,000 |
| Concentrated holding trigger | Holdings in a single entity exceed €1,000,000 with a stake of 25% or more |
| Tax charged | Spanish CGT rates (19–28%) applied to unrealised gains at the point of departure |
| Moving to EU/EEA | Tax deferred until assets are actually sold — no immediate payment |
| Moving outside EU/EEA | Tax immediately due — no deferral for moves to Switzerland, UAE, Singapore, US, etc. |
Practical tips to minimise tax drag in Spain
Spain imposes no annual advance tax on accumulating ETFs. Dividends compound untaxed until you sell — the single most effective annual tax deferral available to Spanish ETF investors. Using distributing ETFs (VWRL) instead creates an annual tax bill for no benefit in Spain.
Realising gains incrementally across multiple years keeps most of the gain below €50,000 and in the 19–21% range, materially below the 23–28% rates that kick in above that threshold.
Tax loss harvesting is fully legal and effective in Spain. Capital losses offset gains in the same year plus up to 25% of dividend income, and unused losses carry forward four years. Because Spain has no wash-sale rule, you can sell an ETF to lock in a loss and immediately repurchase the same ETF — the tax benefit is preserved and your market exposure is uninterrupted.
If flexibility to switch is important, a Spanish index mutual fund wrapper (MyInvestor, Indexa Capital) alongside your ETF holdings may be more tax-efficient long-term. ETF sales are always taxable disposals — plan accordingly.
If your foreign financial assets exceed €50,000, set a calendar reminder for the January–March window. Late filing is penalised; non-filing is penalised more severely. AEAT receives CRS data from foreign brokers automatically — non-disclosure is increasingly easy to detect.
The difference in wealth tax between Madrid (0%) and Catalonia or Valencia (up to 2.75–3.45%) amounts to thousands of euros annually for portfolios above €700,000. AEAT scrutinises artificial moves to lower-tax regions — genuine relocation requires genuine life change.
The six-month window from registration is hard. Missing it forfeits the regime for your entire Spanish residency. If you are newly relocating to Spain, consult an asesor fiscal before the deadline even if you are unsure whether the benefits apply.
Most common mistakes Spanish ETF investors make
The most costly structural mistake. ETFs are listed securities in Spain’s eyes, not investment funds. Switching VWCE for another ETF triggers full CGT on the unrealised gain — even with immediate reinvestment. The only tax-deferred route is a qualifying Spanish or EU mutual fund.
Many IBKR and DEGIRO users are simply unaware of the €50,000 foreign asset threshold. The 31 March deadline is hard. Penalties for non-filing are €5,000 per data item with a €10,000 minimum — and AEAT receives CRS data from foreign brokers, so non-disclosure is not as invisible as it once was.
Unlike Germany, Spain has no annual advance tax on accumulating ETFs. Holding VWRL instead of VWCE creates an annual dividend tax bill that compounds into significant drag over decades — for no benefit. Default to accumulating unless you have a specific income need.
Spain mandates FIFO — your oldest units are sold first, regardless of preference. Investors accumulating over years need to track every purchase with the exact date, price, and EUR equivalent. Relying solely on the foreign broker’s tax statement is insufficient for manual IRPF reporting.
Spanish brokers (MyInvestor, Renta 4) withhold tax and report automatically to AEAT. IBKR, DEGIRO, and Trade Republic do not. If you use a foreign broker, every gain, dividend, and disposal must be entered manually in Modelo 100 — AEAT’s Renta Web will not pre-fill it.
The six-month window from registration as a Spanish resident is hard — missing it forfeits the regime for your entire residency. Many expats discover the regime exists after the deadline has passed. If you are relocating to Spain, this is the first thing to address, not an afterthought.
Brokers for Spanish ETF investors
IBKR, DEGIRO, and XTB all give Spanish residents access to a full UCITS ETF catalogue. Read our full reviews and the dedicated Spain guide before opening an account.
Go deeper
Frequently asked questions
What is the capital gains tax rate in Spain for ETF investors?
Spain taxes investment gains progressively: 19% on the first €6,000, 21% on €6,000–€50,000, 23% on €50,000–€200,000, 27% on €200,000–€300,000, and 28% above €300,000. All savings income — capital gains from ETF sales, dividends, and interest — is aggregated before applying the brackets. Most retail investors realising modest annual gains pay an effective rate of 19–21%.
What is Modelo 720 and who needs to file it?
Modelo 720 is a mandatory annual declaration of assets held abroad, required for Spanish tax residents whose foreign assets exceed €50,000 in any single category: foreign bank accounts, foreign securities (including ETFs at IBKR or DEGIRO), or foreign real estate. Filed between 1 January and 31 March covering the prior year’s balances. The 2022 ECJ ruling revised the penalty regime — but the filing obligation remains fully in force. What matters is the broker’s custody jurisdiction, not the ETF’s domicile: holding VWCE at a Spanish broker does not trigger Modelo 720.
Does the traspaso (fund transfer) tax benefit apply to ETFs in Spain?
No. The traspaso rule allows tax-free switching between qualifying Spanish and EU mutual funds, deferring CGT until final sale. This benefit explicitly does not apply to ETFs — AEAT treats ETFs as listed securities, not investment funds. Selling one ETF to buy another is a taxable disposal in Spain regardless of whether you reinvest immediately. This is one of the most important structural tax differences between ETFs and traditional mutual funds for Spanish investors.
What is the Beckham Law and who can use it?
The Beckham Law (Régimen Especial de Trabajadores Desplazados) is a special tax regime for individuals who become Spanish tax residents due to employment relocation, entrepreneurship, or remote work. Qualifying individuals pay a flat 24% on Spanish-sourced income up to €600,000 and may be exempt from foreign-source investment income. The regime lasts up to six years and must be applied for within six months of registration. It was expanded in 2023 to cover digital nomads and self-employed professionals — who must register with Spanish Social Security (RETA) and typically need a university degree or three years of professional experience to qualify for the associated Digital Nomad Visa.
Is there a wealth tax in Spain on investment portfolios?
Yes. Spain’s Impuesto sobre el Patrimonio applies to net assets above €700,000. Rates and exemptions vary dramatically by autonomous community. Madrid and Andalucía residents effectively pay zero. Catalonia, Valencia, and the Balearic Islands apply full progressive rates up to 2.75–3.45%. A national solidarity tax also applies above €3,000,000 for all residents. Note the 60% cap: combined Wealth Tax and Personal Income Tax cannot exceed 60% of your PIT taxable base — if exceeded, Wealth Tax can be reduced by up to 80%.
When do I become a Spanish tax resident?
You become a Spanish tax resident if you spend more than 183 days in Spain during a calendar year — sporadic absences count toward the total unless you prove tax residency elsewhere. Residency also applies if Spain is the base of your main economic interests, or if your non-separated spouse and underage dependent children habitually reside in Spain. Once resident, Spain taxes your worldwide income — all investment gains and dividends regardless of where your broker is based.
Do I pay tax on accumulating ETFs in Spain if I don’t sell?
No. Spain does not impose any annual advance tax on accumulating ETFs — unlike Germany’s Vorabpauschale. An accumulating ETF like VWCE can grow for decades without triggering any Spanish tax liability. Tax is only due when you sell and realise a gain. For Spanish investors, this makes accumulating ETFs significantly more tax-efficient than distributing equivalents, which trigger dividend tax every year.
Does Spain have wash-sale rules like the US?
No. Spain does not have a US-style wash-sale rule that disallows a loss when you repurchase the same security within 30 days. You can sell an ETF to realise a capital loss and immediately repurchase it without losing the tax benefit. Tax loss harvesting — selling positions at a loss to offset gains or dividend income — is fully legal and effective in Spain. Unused losses carry forward for four years.
What is the exit tax in Spain for investors leaving the country?
Spain’s exit tax (Article 95 bis IRPF) taxes unrealised capital gains when a long-term resident leaves Spain. It applies to investors resident for at least 10 of the prior 15 years who hold total shareholdings above €4,000,000, or a stake exceeding 25% in a single entity above €1,000,000. Tax is charged at CGT rates (19–28%) on unrealised gains at departure. Moving to another EU/EEA country allows deferral until assets are sold; leaving for non-EU countries triggers immediate payment. Most retail investors do not meet the thresholds, but for large portfolios it is a critical planning consideration.
What happens if I miss the Modelo 720 deadline?
Late voluntary filing triggers fixed penalties of €20 per data item with a €200 minimum. Non-filing detected by AEAT is penalised at €5,000 per data item with a €10,000 minimum. Submitting voluntarily before AEAT opens a procedure results in lower penalties. The ECJ ruling in 2022 revised the original disproportionate regime, but penalties remain real and AEAT increasingly detects non-filing via automatic CRS data exchange with foreign tax authorities.
Does Trade Republic require Modelo 720?
Whether Trade Republic triggers Modelo 720 depends on where assets are held in custody — not where the ETF is domiciled. Trade Republic is a German-registered broker using German depositary banks. If your account balance exceeds €50,000, this is generally treated as foreign financial assets for Modelo 720 purposes, similar to IBKR or DEGIRO. If in doubt, filing is the lower-risk option. Consult an asesor fiscal if you are near the threshold.
QuantRoutine provides educational content only. Nothing on this page constitutes tax, legal, or financial advice. Spanish tax rules vary by autonomous community and are subject to change — consult a qualified asesor fiscal for advice specific to your situation. Always verify current rules with the AEAT (Agencia Tributaria) before filing.