Crypto-asset taxation in Spain is no longer an area of elastic interpretation, and information reaches the AEAT through several channels. Service providers with reporting obligations in Spain file Form 172 (balances) and Form 173 (transactions). Taxpayers holding crypto-assets with non-resident custodians file Form 721 when their combined value exceeds €50 000 on 31 December. And since 1 January 2026 the DAC8 Directive requires EU providers to report data on customers resident in other Member States. On top of that come the DGT's criteria, which define taxable events with considerable precision.

Legal basis and tax classification

The Directorate-General of Taxes, in a consistent line of binding rulings, treats crypto-assets as intangible assets: they are neither legal tender nor negotiable securities. That classification is what makes each swap a disposal. Law 11/2021 on measures to prevent and combat tax fraud introduced the reporting obligations now embodied in Forms 172, 173 and 721. Regulation (EU) 2023/1114 (MiCA) regulates service providers and Directive (EU) 2023/2226 (DAC8) organises the exchange of tax information. Spanish personal income tax applies its ordinary rules on capital gains (art. 33 LIRPF), investment income (art. 25 LIRPF) and business income (art. 27 LIRPF).

Taxable events under personal income tax

Five distinct operations can trigger taxation in the same portfolio in the same year. A crypto-to-fiat sale produces a capital gain or loss equal to sale price minus acquisition cost. A crypto-to-crypto swap —BTC for ETH, ETH for USDC, any swap on a centralised exchange or DEX— is a disposal and produces a capital gain or loss valued at the market price of the received asset at the time of the exchange. Using crypto to pay for goods or services is treated as a disposal. Staking and lending rewards qualify as investment income. Active mining and NFTs produced as a profession go to the general-income base with IAE registration. That said, five taxable events demand five separate accounting circuits from the first operation.

Savings base 2026 and FIFO method

Capital gains on disposals of crypto-assets feed the savings base and are taxed at the 2026 savings scale (state plus regional): 19 % up to €6 000, 21 % from €6 000 to €50 000, 23 % from €50 000 to €200 000, 27 % from €200 000 to €300 000 and 30 % on the excess, the rate in force since 2025. Where successive lots of the same asset coexist, the DGT applies the FIFO method (first in, first out) by analogy with homogeneous securities. The calculation requires lot-by-lot traceability consolidated per asset across every platform the taxpayer uses. That is why reconstructing a history of thousands of operations after the fact is the most frequent source of error and over-taxation.

Staking, lending and yield farming

The DGT's general criterion is that rewards earned by locking or lending crypto-assets (staking, lending) are investment income, taxed in the savings base at the market value of the asset received when it is received. Not every product marketed as "staking" works the same way —delegation, liquid staking, exchange yield programmes—, so the terms of each should be reviewed before classifying the income. Selling the asset received later is a second taxable event: a capital gain or loss equal to the sale price minus the market value at receipt, which becomes its acquisition cost.

Mining, masternodes and business activity

Active mining —proof of work with owned hardware— constitutes business activity: gross revenue at market value of the mined crypto-asset at generation, with equipment depreciation, electricity and direct expenses deductible. It goes to the general-income base, with IAE registration under heading 831.9 and, depending on scale, self-employed registration or a company. The same treatment applies to masternodes and professional validators in staking networks where organised means are present. The DGT has clarified that mining as a service to the network is outside the scope of VAT. The resulting income, however, counts for the purposes of personal-income-tax operating volume and social security.

Airdrops, forks and NFTs

Under the DGT's criterion, an airdrop received without consideration is a capital gain not arising from a disposal: it is taxed in the general base at the market value of the token when received. If the airdrop requires active consideration —product testing, promotional tasks— it may become employment or business income. Hard forks lack an equally settled criterion and are analysed case by case. NFTs are also classified case by case: regularly creating and selling one's own work generates business income, occasional trading of third-party collections generates capital gains, and licensing an NFT with recurring utility can generate investment income.

Loss offset and tax-loss harvesting

Capital losses on disposals of crypto-assets offset first against savings-base capital gains of the same year and, if a negative balance remains, against the positive balance of investment income up to 25 % of that balance. The excess is carried forward four years. Losses on crypto-to-crypto swaps offset in the same way, which allows year-end planning. Tax-loss harvesting —realising losses to offset gains— is technically valid, but immediately reacquiring the same asset without real economic change may be challenged. The two-month repurchase rule of art. 33.5.f LIRPF is designed for homogeneous listed securities and its extension to crypto-assets is not settled, so the reason for each operation should be documented.

Form 721, 172, 173 and Wealth Tax

Four reporting and tax pieces coexist in 2026. Form 721 is filed by the taxpayer when crypto-assets held with non-resident custodians exceed €50 000 in aggregate on 31 December; the filing window runs from January to March of the following year. Forms 172 (balances) and 173 (transactions) are not filed by the investor but by service providers with obligations in Spain. In parallel, crypto-assets enter the Wealth Tax base at market value on 31 December and, above €3 M of net wealth, the Temporary Solidarity Tax on Large Fortunes. Failing to file Form 721, or filing it incorrectly, falls under the general penalty regime for information returns (arts. 198 and 199 LGT); the specific regime of the 18th additional provision LGT was repealed in 2022 (Law 5/2022) after the CJEU judgment of 27 January 2022.

MiCA, DAC8 and cross-border exchange

The MiCA Regulation, fully applicable since 30 December 2024, harmonises the regulation of crypto-asset service providers across the EU and tightens customer identification. The DAC8 Directive applies from 1 January 2026: providers must report to their tax administration the transactions of customers resident in other Member States, and administrations exchange that information automatically. The first exchanges, scheduled for 2027, cover 2026 data. So what a Spanish resident trades from 2026 on an exchange established in another EU State will reach the AEAT regardless of what they declare.

Where the firm stands

Our reading is that the main cost of a crypto case is not the tax charge but the after-the-fact accounting reconstruction. The standard engagement starts with a full inventory of exchanges, wallets and protocols, continues with historic data downloads and asset-by-asset reconciliation using specialised software, computes the savings base lot by lot under FIFO, separates staking and investment income, classifies airdrops and NFTs, reviews losses before year-end and ends with Form 721 where applicable and the Wealth Tax. Where a procedure is already open, we assess the available documentation and, depending on the stage, file allegations or an economic-administrative claim. Setting aside investment advice —which we do not give— our work focuses on ensuring the existing activity is correctly declared and defensible.