guest@tfb:~$ cat analysis/swapping to stablecoins tax.md
guest@tfb: ~/analysis — less

Swapping to stablecoins: capital gain or neutral transaction?

Barter (Article 37.1.h LIRPF) · V0999-18
Spanish income tax on crypto: how IRPF works 3 min · <1 blockReviewed 29 November 2026

The DGT’s position: an exchange between distinct assets

Bartering bitcoin for a stablecoin such as USDC or USDT is a common way of leaving the bitcoin market without leaving the crypto ecosystem.

The DGT treats the exchange between distinct crypto-assets as a barter, on the basis of Article 37.1.h of the Income Tax (IRPF) Act and of its own doctrine on crypto barters (among others, DGT ruling V0999-18). Nor has it confined itself to that starting doctrine, which concerned volatile cryptocurrencies. In ruling 0018-23 (2023), whose main subject matter was in fact evidentiary, it simply subsumes stablecoins, which it defines as cryptocurrencies whose value is referenced to one or more fiat currencies or other assets, within the category of virtual currencies, and applies to them the same barter treatment without recognising any special feature.

That ruling is not binding. It therefore operates as an administrative criterion, but not as binding doctrine.

In practice, bartering 1 BTC acquired for €10,000 for USDC when bitcoin trades at €80,000 realises a capital gain of €70,000, even though the crypto environment has not been left and not a single euro has been transferred to a bank account. The gain is allocated to the tax year of the swap. If the swap is made at a loss, the capital loss is computable and may be included in the savings base, provided that it is evidenced.

The counter-arguments: economic function and international comparison

The DGT’s position may be regarded as correct in light of the literal wording of the rule and, at the same time, economically arguable, for the following reasons.

The first is the function of monetary equivalent that the stablecoin performs. A stablecoin referenced to a legal-tender currency has, by design, a stable value. Acquiring it therefore produces no return different from that of holding the reference currency, so that bartering bitcoin for a stablecoin is economically equivalent to selling it for the reference currency (dollars, in the case of USDC or USDT).

The second is the international comparison. Other jurisdictions have debated treatments closer to neutrality for certain currency-referenced tokens. Spain, as things stand, has not introduced an exception of that kind.

Our position

Until there is a legislative amendment or a different judicial criterion, the prudent position remains to treat the move from bitcoin or ether into a stablecoin issued by a third party as a barter with tax effects.

It is a criterion the DGT has repeated in its binding rulings on the barter of crypto-assets (among others, V0999-18 and V1948-21) and applied expressly to stablecoins in ruling 0018-23 (2023).

DGT rulings — IRPF
  • V0999-18 — the exchange between distinct cryptocurrencies is classified as a barter and gives rise to a capital gain or loss; the ruling does not refer to stablecoins, but, as the stablecoin is another crypto-asset, the criterion reaches the barter of bitcoin or ether for USDC or USDT, as ruling 0018-23 confirms.
  • 0018-23 — in a ruling whose main subject matter was in fact evidentiary, the DGT subsumes the stablecoin (which it defines as a cryptocurrency whose value is referenced to one or more fiat currencies or other assets) within the category of virtual currency and applies to it the same barter treatment (Articles 33.1 and 37.1.h LIRPF): the exchange gives rise to a capital gain or loss, without recognising any special feature.

Applicable legislation: Articles 33.1 and 37.1.h) LIRPF.

The DGT criterion is clear (a barter with tax effects).