Analysis of the IRNR taxation of non-residents with crypto-assets: connection with Spain
Let us look at what happens in the case of a person residing outside Spain who sells bitcoin held on deposit with a platform that has a commercial presence in this country, or in that of another who left years ago and keeps trading through the exchange where the account was opened while still living here. In both cases the same question arises: whether Spain can tax that income even though its recipient is no longer resident. To resolve it, two questions must be analysed: where the crypto-asset is deemed located, and whether the specific income can be characterised as obtained in Spanish territory under the consolidated text of the Non-Resident Income Tax Act (TRLIRNR) and, where applicable, the relevant double tax treaty.
It cannot be asserted, as a general rule, that the mere disposal of cryptocurrencies by a non-resident is taxed in Spain.
Nor can crypto-assets be deemed located in Spain simply because the holder operates through a platform with a commercial presence or technical support here. Moreover, the self-custody limb of the DGT criterion (ruling V1662-23), which locates the cryptocurrencies in Spain because their holder resides there, cannot apply to a non-resident; and the DGT itself warns that its location criterion applies exclusively for IRNR purposes, not for Wealth Tax.
Location of the asset and source of the income
For crypto-assets, the notion of location is unstable: the asset has no physical situs, and its territorial connection depends to a large extent on the legal relationship with a third-party custodian, a service provider, a business structure or a self-custodied private key. And even if a given location of the asset is provisionally accepted, the separate question of whether the income obtained by the non-resident is Spanish-source income remains unresolved.
The relevant DGT doctrine on location comes from two sources. On the one hand, from a ruling issued directly within the IRNR, V1069-19, concerning a non-resident who sells bitcoin, issued specifically for this tax. On the other, from the impatriate-regime rulings that apply that same location criterion, V1662-23 and V0376-24.
It is V1662-23, and not V1069-19, that distinguishes in detail between self-custody and third-party custody, since the 2019 ruling addressed only the latter case.
Capital gains of the non-resident: a prudent position
For a non-resident without a permanent establishment, the transfer of ordinary virtual currencies does not fit naturally within the classic categories of Spanish-source real-estate income, dividends, interest or royalties. For that reason, unless some further legally relevant circumstance is present, the IRNR liability of any gain obtained by selling or swapping crypto-assets from abroad should not be presented as settled. The argumentative burden for sustaining taxation in Spain has to be considerably heavier than the mere existence of a custodian or of an operational point of contact with Spanish territory.
To this it should be added that, where a treaty following the OECD Model Convention is in place, gains from the alienation of property other than immovable property or property forming part of a permanent establishment may be taxed only in the State of residence of the transferor. Save for a permanent establishment, this ordinarily shifts the taxing right outside Spain even if the asset were deemed situated here under the domestic criterion.
The permanent establishment
The above conclusion may change substantially if the non-resident carries on in Spain an economic activity connected with those crypto-assets through personal or material resources sufficient for a permanent establishment in Spain to be found. In that case the analysis ceases to be one of mere holding or passive transfer and comes to depend on the income attributable to that establishment.
Wealth Tax of non-residents
In Wealth Tax the reasoning is the same. That the law taxes non-residents on assets and rights located in, or exercisable in, Spanish territory does not mean that every cryptocurrency held in custody or traded through an operator with some connection to Spain must be deemed located here. The available doctrine offers useful criteria for specific cases, but does not yet allow a universal and safe rule to be built for custody structures with some Spanish component.
The same conclusion extends to the Temporary Solidarity Tax on Large Fortunes, which taxes, under limited tax liability, the net wealth located in Spain above certain thresholds (around €3.7 million).
- V1069-19 — issued directly within the IRNR (a non-resident selling bitcoin): cryptocurrencies are deemed located in Spain, for IRNR purposes alone, where the entity providing the service of storing or safeguarding the private keys is located in Spanish territory.
- V1662-23 — special impatriate regime (Article 93 LIRPF); develops the two custody scenarios: self-custody by the resident taxpayer, and custody by a third party resident in Spain or with a permanent establishment here.
- V0376-24 — applies that same location criterion within the special impatriate regime (Article 93 LIRPF).
Applicable legislation: Articles 13, 24 and 25 of the consolidated Non-Resident Income Tax Act (Royal Legislative Decree 5/2004) (location, tax base and rate); Article 5 of the Wealth Tax Act (Law 19/1991); Law 38/2022 on the Temporary Solidarity Tax on Large Fortunes.