Spain has one of Europe's most detailed crypto tax regimes. Whether you trade Bitcoin, earn DeFi yields, hold NFTs or operate a staking business, your obligations to the AEAT need careful management.
Spain's tax authority (AEAT) treats cryptocurrency as a financial asset — specifically as a bien de naturaleza financiera. Gains and losses on crypto are categorised as follows:
Any disposal of cryptocurrency — including sale for fiat, exchange for another crypto, use to pay for goods or services, and NFT sales — is treated as a taxable disposal for IRPF purposes. The gain (or loss) is calculated as the difference between the disposal value and the acquisition cost, using the FIFO method (first in, first out) for identifying which units were disposed of.
Capital gains from crypto are savings income, taxed at the following rates (2024 scale):
Income from staking, liquidity provision, mining and lending protocols is treated as ordinary income (rendimientos del capital mobiliario) and taxed at the same savings income rates. The income is recognised at the market value of the tokens received at the date of receipt.
Airdrops of new tokens are treated as income at the market value on receipt. Tokens received in a hard fork are generally treated as having a zero cost basis — any subsequent disposal triggers a gain equal to the full disposal proceeds.
Since 2024, Spanish tax residents must file Modelo 721 — a new annual declaration of cryptocurrency assets held on overseas exchanges or wallets. The declaration is required when the total value of crypto held abroad exceeds €50,000 at 31 December of the relevant year.
Modelo 721 is analogous to Modelo 720 (foreign financial assets) but specifically covers virtual currencies. It must be filed between 1 January and 31 March each year for the preceding tax year. Self-custodied wallets, hardware wallets and overseas exchange accounts are all within scope.
Separately, Spanish exchanges and custodians are required to report clients' crypto holdings and transactions to the AEAT automatically from 2024 — and from 2026, overseas exchanges with European clients will be subject to similar reporting requirements under the DAC8 directive.
Crypto losses can be offset against crypto gains in the same tax year. Net losses can be carried forward for four years and offset against future savings income gains. However, Spain's wash sale equivalent rule applies: a loss cannot be claimed if the same (or substantially similar) asset is repurchased within two months (listed assets) or one year (unlisted assets) of the disposal.
⚠️ AEAT enforcement: The AEAT has increased crypto enforcement significantly since 2022. Discrepancies between exchange-reported transactions and declared IRPF gains are flagged automatically. We strongly recommend a full reconciliation of your transaction history before filing.
Modelo 721 entered into force for the 2022 tax year (first filing deadline: 31 January 2023) and has been mandatory ever since. It is the crypto-specific counterpart to Modelo 720 and was introduced by the Ley 11/2021 de medidas de prevención y lucha contra el fraude fiscal. Understanding its exact scope is critical — errors or omissions carry the same enforcement weight as failures on the general income tax return.
Any Spanish tax resident — individual or legal entity — who holds virtual currencies (monedas virtuales) in overseas exchanges, foreign custodians, or self-custodied wallets abroad must file Modelo 721 if the aggregate value of all such holdings exceeded €50,000 at 31 December of the relevant year. The €50,000 threshold is assessed across all crypto holdings combined, not per asset or per platform. The filing window is 1 January to 31 March of the year following the tax year in question.
Like Modelo 720, Modelo 721 requires an initial filing whenever the threshold is first exceeded. Subsequent annual filings are mandatory only when the total value has increased by more than €20,000 relative to the previously declared amount, or when previously undeclared platforms or wallet types are brought within scope. A zero-value year does not require a filing if the previous filing already captured the relevant assets.
Modelo 721 requires declaration of:
The AEAT uses Modelo 721 data primarily for cross-referencing against IRPF returns — to verify that declared gains and losses correspond to asset movements reported via the form, and to flag taxpayers who show large holdings but report minimal gains income.
Failure to file Modelo 721, or filing an incorrect or incomplete declaration, attracts fixed penalties under the general tax penalty regime (Ley 58/2003 General Tributaria):
Critically, unlike the original Modelo 720 penalty regime (which was struck down by the ECJ), Modelo 721 penalties are not calculated as a percentage of the undeclared asset value — they are fixed-amount penalties per data item. This means that for taxpayers with large portfolios, the per-item penalties may actually be less severe than the original Modelo 720 structure, but the minimum penalty of €10,000 for non-filing remains a significant deterrent.
From 2026, the EU's DAC8 directive will require all crypto-asset service providers (CASPs) operating within the EU — including overseas exchanges serving EU clients — to report client account information directly to national tax authorities. This means the AEAT will receive automatic information on Spanish residents' crypto holdings abroad, substantially reducing the information asymmetry that currently exists. Taxpayers with undeclared overseas crypto should consider voluntary regularisation before DAC8 reporting commences.
Decentralised finance presents some of the most complex tax questions in the Spanish crypto regime. The AEAT has issued binding tax consultations (consultas vinculantes) on several DeFi scenarios, and the general principles from these consultations are now reasonably well established — though many edge cases remain unresolved. The following treatment reflects current AEAT doctrine as of 2024–2025.
Tokens received as staking rewards — whether from proof-of-stake validators, delegated staking, or liquid staking protocols — are treated as rendimientos del capital mobiliario (savings income from movable capital). The income is recognised at the market value of the tokens at the date of receipt into the taxpayer's wallet or staking account. The savings income tax rates (19% to 28%) apply. The recognised market value also becomes the cost basis for any future disposal of those reward tokens — meaning that if the tokens subsequently fall in value before sale, the taxpayer may generate a capital loss offsettable against other savings income gains.
The taxation of liquidity pool participation involves two distinct events under current AEAT doctrine. When tokens are deposited into a liquidity pool (e.g., on Uniswap, Curve, or a similar AMM), the AEAT treats this as a taxable disposal of the deposited tokens at their market value on the date of deposit — generating a gain or loss against the original cost basis. When the LP position is unwound and the underlying tokens (which may have changed in proportion due to price movements and impermanent loss) are received back, a second taxable disposal is triggered.
This treatment means that impermanent loss is crystallised into an actual tax loss at the point of withdrawal — which can be offset against gains. However, it also means that even entering a liquidity pool triggers a disposal event, which many taxpayers are unaware of. LP tokens received in exchange for deposited assets are treated as new assets with a cost basis equal to the market value of the deposited tokens at the time of the swap.
Tokens received through yield farming protocols — including governance tokens distributed as incentives, farming rewards from aggregators, and protocol fees distributed to liquidity providers — are taxed as rendimientos del capital mobiliario at the market value of the tokens on the date of receipt. Each reward distribution constitutes a separate taxable event, which creates significant record-keeping obligations for active DeFi participants who may receive hundreds of micro-distributions over a tax year. The AEAT expects full reconciliation of all yield events in the IRPF declaration.
Airdrops are treated differently depending on whether they are conditional or unconditional. An unconditional airdrop — tokens distributed to wallet holders simply by virtue of holding another token — is treated as ganancia patrimonial (capital gain) at the market value of the received tokens on the date of receipt, incorporated into the savings income base. A conditional airdrop — where the recipient must perform a task (e.g., registering on a platform, completing a transaction, participating in a governance vote) — may instead be treated as income from economic activity if the conditions are sufficiently onerous, which would make it subject to progressive general income tax rates rather than savings rates. The distinction requires case-by-case analysis.
In both cases, the market value at receipt becomes the cost basis for any future disposal. Tokens received in hard forks are treated as having a zero cost basis per the AEAT's general position — meaning the full disposal proceeds are taxable as a capital gain.
Where you hold your cryptocurrency determines what reporting obligations apply and how visible your holdings are to the AEAT. The following table compares the three main custody scenarios.
| Custody Type | Spanish Exchange (registered VASP) | Foreign Exchange (non-Spanish VASP) | Self-Custody Wallet (hardware/software abroad) |
|---|---|---|---|
| Modelo 721 obligation | No — Spanish exchange reports directly to AEAT | Yes, if aggregate value >€50,000 at 31 Dec | Yes, if aggregate value >€50,000 at 31 Dec |
| Modelo 720 obligation | No (crypto is not covered by Modelo 720) | No (covered by Modelo 721 instead) | No (covered by Modelo 721 instead) |
| AEAT visibility (current) | High — automatic exchange reporting | Low to medium — limited until DAC8 (2026) | Very low — no automatic reporting |
| AEAT visibility (post-DAC8 2026) | High | High — EU CASPs will report | Low (non-custodial wallets outside DAC8 scope) |
| IRPF gains declaration | Required — all disposals must be reported | Required — all disposals must be reported | Required — all disposals must be reported |
| Penalty for non-declaration (Modelo 721) | N/A | Min. €10,000 per year (non-filing) | Min. €10,000 per year (non-filing) |
| Practical risk | AEAT already has the data — mismatch with IRPF is flagged automatically | Risk increases from 2026 — regularise now if undeclared | On-chain analytics increasingly used by AEAT to detect undeclared holdings |
Mining cryptocurrency and operating blockchain validators occupies a distinct tax category in Spain — one that is significantly more onerous than simply holding or trading crypto. The AEAT classifies mining and validation income as rendimientos de actividades económicas (income from economic activity), provided the activity is conducted with the intention of generating profit, using the individual's own means of production, and in a regular manner. This classification has substantial practical consequences.
Individuals who mine cryptocurrency or operate validator nodes as a regular economic activity must register as self-employed (autónomo) with the Spanish Social Security system. This obligation applies regardless of the scale of the activity — even a solo miner operating a single ASIC rig on a consistent basis may be required to register. Registration triggers monthly Social Security contributions: the base contribution in 2024 starts at approximately €230/month for the minimum contribution base and rises to over €500/month for higher income tiers under the reformed contribution system introduced in 2023. The AEAT and Social Security (TGSS) increasingly share data, so unregistered mining income that appears in IRPF can trigger a Social Security inspection.
Mining and validator income is recognised at the market value of the tokens at the date of receipt. However, unlike passive crypto income, mining income as an economic activity allows the deduction of business expenses against the gross income:
The net income after deductions is added to the taxpayer's general income base and taxed at progressive IRPF rates — which range from 19% to 47% (and up to 54% in regions with a high surcharge). This is materially higher than the 19–28% savings income rate that applies to crypto trading gains.
The VAT treatment of crypto mining in Spain follows EU case law, in particular the CJEU's Hedqvist decision (Case C-264/14). Under this doctrine, the provision of mining services — where a miner receives a block reward directly from the protocol rather than from an identifiable customer — is considered to fall outside the scope of VAT because there is no direct link between the service and identifiable consideration. Mining rewards from proof-of-work protocols (Bitcoin, Litecoin, etc.) are therefore generally not subject to Spanish IVA.
However, if a miner provides mining capacity to a third party in exchange for payment (e.g., operating a mining pool or providing hashing power under a contract), that service constitutes a taxable supply of services and is subject to IVA at 21%. Similarly, staking-as-a-service arrangements — where a validator charges a fee for managing delegated stakes — may be subject to IVA on the fee component. VAT registration (alta en el Registro de Operadores Intracomunitarios for cross-border services) may be required where the services are provided to clients in other EU member states.
Use the form below or book directly via Calendly. Jacob responds within one business day.
📅 Or book on Calendly →