guest@tfb:~$ cat analysis/crypto hacks losses tax.md
guest@tfb: ~/analysis — less

Hacks, scams and crypto-asset losses under IRPF

Capital loss · general tax base · V1828-24, V1169-25, V1098-20, V1134-25, Article 14.2.k LIRPF
Spanish income tax on crypto: how IRPF works 8 min · ≈1 blockReviewed 29 November 2026

Three situations are the most common: that of the bitcoiner who held their own keys and sees their wallet emptied, for whatever reason; that of the platform that suspends withdrawals and enters insolvency proceedings with the funds of thousands of customers inside; and that of the taxpayer who simply loses their keys or the hardware wallet on which their seed was stored. The question is how these situations are characterised for Income Tax (IRPF) purposes, that is, whether the losses arising from these bitcoiner misfortunes can be recognised as capital losses and set off against other income.

Ruling V1828-24 of the Directorate General for Taxes (DGT) resolves the case of cyber-frauds by an unknown perpetrator, in which no claim of any kind arises, and V1169-25 (01/07/2025) applies it to a case of phishing on a self-held wallet, with no responsible custodian. V1098-20 and, more recently, V1134-25 (27/06/2025) address the opposite case, the one in which the perpetrator or the debtor can be identified and what remains is, in reality, a claim against a third party or against a platform.

Let us now look at the conclusion the DGT reaches on the tax treatment of these situations.

Cyber-fraud by an unknown perpetrator: the DGT’s criterion in ruling V1828-24

In ruling V1828-24 the DGT analyses the economic loss arising from a cyber-fraud in which there is no identified solvent debtor against whom a claim could be enforced. If the perpetrator cannot be identified, no claim arises in favour of the victim. What takes place is therefore, according to the DGT’s criterion, a capital loss.

Since that loss does not arise from the disposal of an asset, it is included in the general tax base of IRPF, not in the savings base, under Articles 45 and 48 of the IRPF Act, a basis that ruling V1828-24 itself makes explicit. And it is subject to a condition the ruling underlines: for the loss to have any tax effect it must be substantiated, since Article 33.5.a) excludes unproven losses from recognition. The burden of proof lies with the taxpayer, and it is for the tax management and inspection bodies to assess the evidence provided.

Phishing on a self-held wallet

V1169-25, of 1 July 2025, is the most direct precedent for the bitcoiner who holds their own keys. The taxpayer had suffered a phishing attack (a deception by which a third party posed as a legitimate service to obtain their credentials) that emptied their wallet (Trust Wallet). They reported it at a police station and kept the screenshots of the transaction, with the origin and destination addresses and its on-chain identifier.

The DGT applies the same line of reasoning as in ruling V1828-24. A capital loss arises for tax purposes because the identity of the perpetrator is unknown, which prevents a claim against them from arising, and because the cryptocurrencies were not in the custody of a third party “whose liability in that custody could determine the existence of a claim” in favour of the victim. Had the bitcoin been on a platform, the conclusion would have been different, since there would be a claim against it. This loss is included in the general tax base, for which it must be properly substantiated.

Neither ruling turns any technical incident, sending error, undocumented hack or loss of access to a wallet or to certain UTXOs into a tax-deductible loss in itself. Their value lies in recognising that, where the facts are proven and the capital loss is real, the law allows it to be recognised as a capital loss.

Failed platforms and insolvency: when what remains is a claim

When a platform collapses, suspends withdrawals or enters insolvency proceedings (bankruptcy), the legal position may be very different from a pure cyber-fraud. In many of those cases the taxpayer has not immediately lost every economic right: they retain a claim, a right to restitution or an expectation of recovery against the bankrupt entity or against the insolvency estate.

For these cases the reference remains ruling V1098-20. That ruling resolved a case of investment in cryptocurrency channelled in 2019 through a company resident in Cyprus, in which the investor considered himself defrauded and, together with other victims, filed a criminal complaint. The DGT did not find a recognisable loss at that time, because a claim against an identifiable debtor still existed and none of the circumstances in Article 14.2.k) that allow the loss to be recognised had yet occurred.

Non-payment, or failure to repay on maturity, does not by itself give rise to a capital loss. What matters is to determine when that claim can be regarded as uncollectible for tax purposes, under the timing rule in Article 14.2.k) of the IRPF Act, which allows the loss to be recognised where certain circumstances concur, such as a write-down under a refinancing or insolvency agreement, or the lapse of one year from the start of judicial enforcement proceedings to collect the claim without its having been satisfied.

That same logic (a claim exists and the loss can be recognised only when it becomes uncollectible) is the one that, by analogy, should be carried over to cases of platforms that suspend withdrawals or enter insolvency proceedings, of the FTX, Celsius or similar type, even though the ruling did not directly resolve an insolvency case. Thus, the loss does not arise when the exchange goes bankrupt, but when it can be shown that the claim against it has become uncollectible. That will normally happen after long and painful court proceedings, which will lead the unfortunate bitcoiner taxpayer to the perverse effect of a deferred allocation of the loss.

The DGT had already applied this reasoning to a purely crypto case in ruling V1979-15, of 25 June 2015: bitcoins deposited with a platform that lent them out at interest and whose administrator, alleging a “theft”, ceased to return them. The conclusion was that the depositor retains a claim and that the loss is recognised only when that claim becomes judicially uncollectible, with inclusion in the general tax base. The DGT takes the same view in ruling V1134-25 (issued on a fraud outside the crypto field): as long as the claim exists, there is no loss recognisable for tax purposes.

Once that claim becomes uncollectible and the loss can be recognised, it is likewise included in the general tax base, on the same basis as in the fraud by an unknown perpetrator: it does not arise from the disposal of an asset.

Loss of the seed or private key: no doctrinal criterion

Loss of the seed phrase, the passphrase, the device or exclusive technical access to a wallet is one of the most frequent problems for the self-custodying bitcoiner and, at the same time, one of the areas least well resolved by Spanish tax law (and by the DGT’s interpretation of it). The economic irrecoverability may be total, because the asset still exists on the chain but is inaccessible for ever, and yet its tax treatment is not settled by any specific, directly applicable binding ruling.

There is no doctrine on this point. There are arguments to defend a capital loss in extreme and duly proven cases, but there is no sufficient basis to present that conclusion as a settled question.

The evidential dimension: without proof there is no defensible loss

In all these cases, evidence proves decisive. For a hack, a cyber-fraud or a theft, a minimum body of evidence must be gathered: the police or court report, communications with the platform, on-chain traceability of the outflow of funds, the purchase history that allows the acquisition value to be established and, where applicable, the documentation of the insolvency proceedings or of the civil claim.

DGT rulings — IRPF
  • V1828-24 — cyber-fraud by an unknown perpetrator (with no identifiable claim) constitutes a capital loss not arising from a disposal, included in the general tax base and subject to proof (Article 33.5.a LIRPF).
  • V1169-25 (01/07/2025) — phishing of cryptocurrencies on a self-held wallet: with an unknown perpetrator and no custodian whose liability gives rise to a claim, there is a capital loss that may be included in the general tax base, recognisable if substantiated.
  • V1979-15 (25/06/2015) — bitcoins deposited with a platform that ceased to return them: a claim still exists and the loss is recognised only when it becomes judicially uncollectible, likewise included in the general tax base (Articles 45 and 48 LIRPF).
  • V1098-20 — where a claim against a platform or a third party still exists, non-payment does not give rise to an automatic loss: the question is when it becomes uncollectible for tax purposes.
  • V1134-25 (27/06/2025) — issued on a fraud outside the crypto field: where the perpetrator of the fraud can be identified there is a claim, and the loss is recognised only when it becomes uncollectible for tax purposes (Article 14.2.k); pending criminal proceedings are not equivalent to the judicial enforcement required by paragraph 3.

Applicable legislation: Articles 33.1, 33.5.a), 14.2.k), 45 and 48 LIRPF.

There is a DGT criterion for cyber-fraud by an unknown perpetrator (capital loss in the general tax base, V1828-24), also for phishing on a self-held wallet with no custodian (V1169-25), and for a claim against an identifiable perpetrator or debtor, recognisable only when it becomes uncollectible for tax purposes (V1098-20 and V1134-25, Article 14.2.k LIRPF). There is no doctrine on the loss of the private key.