English-language tax analysis in Spain of DGT binding rulings 2023-2026 on Other International Capital Gains Issues. Each cited ruling links to the original Spanish text on the DGT consultation database. Catch-all of DGT positions on international capital gains not fitting a more specific subtopic.
International capital gains outside the standard PE/no-PE binary include cryptoasset disposals, derivative instruments, foreign-listed shares, and the perpetual question of where exactly the gain is sourced.
Topics » International Capital Gains, Cross-Border Reinvestment and Exit Tax » Other International Capital Gains Issues
This subtopic groups 39 DGT rulings on the general treatment of international capital gains: treaty allocation, source-based withholding (3% on real-estate sales by non-residents), interaction with the foreign tax credit, and the Article 95 bis exit tax for emigrating Spanish residents with substantial portfolios.
Before turning to doctrine and worked examples, fix the technical terms that recur throughout the topic. Each has a precise meaning in Spanish tax law and EU jurisprudence; mastering the differences between them is the first line of defence vis-à-vis the AEAT:
Treaty allocation
Generally residence-State; real estate gains allocated to source (situs) State.
3% withholding
On Spanish real estate sales by non-residents (Art. 25.2 IRNR).
Article 95 bis exit tax
Spanish residents emigrating with portfolio over €4M (or €1M) face deemed disposal.
Foreign tax credit
Available for foreign tax on the same gain.
Theory makes more sense alongside real-world fact patterns. The cases below — built from DGT doctrine — show where the system grants relief and where it denies it:
📌 Case 1: Non-resident sells Spanish villa
3% withholding by buyer; net gain at 19% (EU/EEA) or 24% (third countries). Refund possible if 3% withheld exceeds final liability.
📌 Case 2: Spanish resident emigrating to Andorra with €5M portfolio
Article 95 bis exit tax: deemed disposal of substantial holdings; tax due on unrealised gains.
A visual summary of the doctrine. This table does not replace case-by-case analysis, but it allows the reader to identify quickly the general rule applicable to each situation:
| Situation | Rule | Notes |
|---|---|---|
| Non-resident sells Spanish real estate | 3% withholding + gain tax | Form 211 + 210 |
| Resident emigrates with >€4M portfolio | Exit tax under Art. 95 bis | Plan in advance |
The cards below summarise representative DGT binding rulings on this topic in English from a practical tax perspective in Spain. Each card links to the original Spanish text of the consulta on the DGT consultation database.
A taxpayer writes to the DGT on how the habitual-residence reinvestment doctrine applies to their facts as it affects habitual residence.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT positions on international capital gains consistently apply the Spanish-source rules of Article 13 TRLIRNR, treaty-allocation rules under DTT Article 13, and the residence-vs-source distinction.
A taxpayer writes to the DGT on whether habitual-residence reinvestment reach their situation as it affects habitual residence.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT positions on international capital gains consistently apply the Spanish-source rules of Article 13 TRLIRNR, treaty-allocation rules under DTT Article 13, and the residence-vs-source distinction.
An individual consults the DGT on the proper handling of habitual-residence reinvestment specifically regarding habitual residence.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT positions on international capital gains consistently apply the Spanish-source rules of Article 13 TRLIRNR, treaty-allocation rules under DTT Article 13, and the residence-vs-source distinction.
An individual consults the DGT on the proper handling of habitual-residence reinvestment specifically regarding habitual residence.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT positions on international capital gains consistently apply the Spanish-source rules of Article 13 TRLIRNR, treaty-allocation rules under DTT Article 13, and the residence-vs-source distinction.
The taxpayer asks the DGT on the treatment of habitual-residence reinvestment concerning habitual residence.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT positions on international capital gains consistently apply the Spanish-source rules of Article 13 TRLIRNR, treaty-allocation rules under DTT Article 13, and the residence-vs-source distinction.
An individual consults the DGT on how the habitual-residence reinvestment doctrine applies to their facts specifically regarding habitual residence.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT positions on international capital gains consistently apply the Spanish-source rules of Article 13 TRLIRNR, treaty-allocation rules under DTT Article 13, and the residence-vs-source distinction.
The taxpayer asks the DGT on the proper handling of habitual-residence reinvestment concerning habitual residence.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT positions on international capital gains consistently apply the Spanish-source rules of Article 13 TRLIRNR, treaty-allocation rules under DTT Article 13, and the residence-vs-source distinction.
The consultation brings to the DGT on how the habitual-residence reinvestment doctrine applies to their facts in respect of habitual residence.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT positions on international capital gains consistently apply the Spanish-source rules of Article 13 TRLIRNR, treaty-allocation rules under DTT Article 13, and the residence-vs-source distinction.
The topic comprises a total of 39 DGT binding rulings 2023-2026. The above are the most representative; the rest follows the same line and can be retrieved from the official DGT search at Petete.
The errors below are those we most often see in practice. Most are avoided with up-front planning and contemporaneous documentation:
❌ Ignoring exit tax when leaving Spain
Consequence: Liability arises automatically
How to avoid it: Plan emigration with tax adviser
International capital gains require dual analysis: domestic + treaty. The exit tax adds a further dimension for high-net-worth emigrants. Plan early.
From the practice
Notes from real cases · Jacob Salama, ICAMálaga 11.294
Spanish source taxation of capital gains generally follows the asset's situs (real estate) or the residence of the issuer (securities). Treaty allocation typically gives the gain to the residence state of the seller. The exceptions — most notably real estate gains — are jurisdictional traps.
Common pitfall: Cryptoasset disposals by Spanish-resident sellers are taxed in Spain on a worldwide basis, with the typical traps being basis tracking across many disposals, FIFO ordering, and the Form 720 / 721 reporting overlay.
Build the cost-basis and disposal records at the time of each transaction, not at the year-end IRPF preparation. Reconstruction across thousands of crypto trades is the most painful task in any tax season.
⚠️ Tax disclaimer: This content reflects Spanish DGT doctrine and Spanish/EU jurisprudence in force at the date of publication. DGT binding rulings only bind the Spanish tax authority on facts substantially identical to those of the consultation (Article 89 LGT); their application by analogy requires care. Treaty positions, the MLI, EU case-law and OECD MC Commentary may have evolved. Before filing any return, refund claim, appeal or position paper with the AEAT, please obtain individualised advice from a Spanish-licensed tax lawyer or registered tax adviser. SALAMA LEGAL SLP does not assume responsibility for decisions taken solely on the basis of this content.
Cross-border tax facts in Spain are fact-sensitive. We help US, UK, German, Israeli and other international clients structure operations, file returns and respond to AEAT enquiries.
Book a consultation← Back to topics · ← International Capital Gains, Cross-Border Reinvestment and Exit Tax