guest@tfb:~$ cat analysis/non-residents-crypto-spain.md
~/analysis/non-residents-crypto-spain.md

Non-residents with crypto-assets and their connection to Spain

TRLIRNR (Royal Legislative Decree 5/2004) · location and tax treaties · V1069-19, V1662-23, V0376-24

The taxation of a non-resident holding crypto-assets is fertile ground for knee-jerk assumptions, and they are worth resisting. The first question is not whether there is an exchange, a custodian or a wallet connected in some way to Spain, but whether the specific income under analysis can be legally characterised as obtained in Spanish territory, under the consolidated text of the Non-Resident Income Tax (IRNR) and, where applicable, the relevant double tax treaty. Transposing to this area location criteria designed for other taxes or regimes readily leads to error.

The assumptions worth avoiding

It cannot be asserted, as a general rule, that the mere sale of cryptocurrencies by a non-resident is taxed in Spain at 19%. And, in any event, where the gain were indeed Spanish-source, that capital gain on a transfer is taxed at 19% regardless of the non-resident’s State of residence (Article 25(1)(f) TRLIRNR); the 24% in Article 25(1)(a) is the residual general rate —reduced to 19% for EU/EEA residents— and does not apply to these gains. Nor that crypto-assets are located in Spain simply because they are traded through a platform with a commercial presence or technical support here. And, in particular, the location criterion that the DGT has used in the special regime of Article 93 LIRPF (the impatriate regime) cannot be carried over without more to the IRNR or to non-residents’ Wealth Tax (IP).

Location of the asset and source of the income: two distinct questions

For crypto-assets, the notion of location is conceptually unstable: the asset has no physical situs, and its territorial connection depends largely on the specific legal relationship with a third-party custodian, a service provider or a corporate structure. But even if a given location of the asset is provisionally accepted, that does not resolve the distinct question of whether the income obtained by the non-resident is Spanish-source income. The characterisation of the income, the role of the intermediary, the possible existence of a permanent establishment and the applicable treaty remain decisive.

The useful administrative doctrine on location comes from two places. On one hand, from a ruling issued directly within the IRNR —V1069-19, on a non-resident selling bitcoin—, which is authority of its own for this tax. On the other, from the impatriate-regime rulings applying that same location criterion —V1662-23 and V0376-24. It is V1662-23, and not V1069-19, that draws the detailed distinction between self-custody and third-party custody, since the 2019 ruling addressed only the latter scenario; that said, carrying the reasoning specific to Article 93 LIRPF over to the IRNR calls for caution, and the characterisation of each item of income must be analysed separately.

Capital gains of the non-resident: a prudent position

For a non-resident without a permanent establishment, the disposal of ordinary virtual currencies does not fit naturally within the classic categories of Spanish-source income —real-estate income, dividends, interest or royalties. For that reason, unless a further, legally relevant circumstance is present, the IRNR taxation of any gain obtained on 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 stronger than the mere existence of a custodian or an operational point of contact with Spanish territory.

In addition, where an OECD-Model treaty 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 (Article 13(5) OECD Model). Save for a permanent establishment, this ordinarily shifts the taxing right outside Spain even if the asset were deemed situated here under domestic law.

The permanent establishment: the decisive factor

The above conclusion may vary substantially if the non-resident carries on in Spain an economic activity connected to those crypto-assets through human or material resources that allow a permanent establishment to be found. In that case, the analysis is no longer that of a mere passive holding or disposal and comes to depend on the income attributable to that establishment. It is therefore appropriate to distinguish clearly between passive investment, the provision of services, organised trading and crypto business activity: they do not receive the same treatment.

Non-residents’ wealth tax: reinforced caution

In Wealth Tax (IP), the risk of overstatement is similar. That the law taxes non-residents on assets and rights located 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 any custody structure. The prudent course is to keep the question open, except where the legal configuration of the custodian and the safeguarding service supports a well-founded conclusion.

The same caution as to location carries over to the Temporary Solidarity Tax on Large Fortunes (Law 38/2022), which taxes, on a limited-liability basis, net wealth located in Spain above its thresholds (a tax-free allowance of €700,000, with effective taxation only above €3,700,000 of net wealth), so that the uncertainty over the situs of crypto-assets transfers identically to this tax.

DGT rulings — location context
  • 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 established in Spanish territory. It should be noted that the more technical formulation —a custodian third party resident in Spain or with a permanent establishment here— stems from the later refinement of this criterion in V1662-23 and V0376-24.
  • 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.

A question not resolved head-on for the IRNR. The useful doctrine combines V1069-19 (issued within the IRNR) with the impatriate-regime rulings, and must be handled with caution. The permanent establishment and the specific characterisation of the income are the decisive factors.