Services
Beckham Law Tax Residency Spain Exit Tax Spain Wealth Tax (IP) Yacht & Marine Tax Cryptocurrency Tax Modelo 720 Non-Resident Income Tax Inheritance & Gift Tax Trusts & Foreign Structures Transfer Pricing Double Tax Treaties Voluntary Disclosure Tax Inspections & Defence Blog Contact Book a Free Call
Crypto Tax · Spain

Cryptocurrency Taxation in Spain

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.

Book Free Consultation → 💬 WhatsApp Jacob

The IRPF Treatment of Cryptocurrency

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:

Capital Gains (Ganancias y Pérdidas Patrimoniales)

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):

  • 19% on the first €6,000 of net gain
  • 21% on €6,000 – €50,000
  • 23% on €50,000 – €200,000
  • 27% on €200,000 – €300,000
  • 28% above €300,000

DeFi, Staking and Mining Income

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 and Hard Forks

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.

Modelo 721: Crypto Asset Declaration

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.

Loss Offset Rules

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.

Frequently Asked Questions

I swapped Bitcoin for Ethereum last year. Is this taxable in Spain?
Yes. In Spain, any crypto-to-crypto exchange is a taxable disposal. The AEAT treats the swap as a sale of the first asset at its market value on the exchange date, generating a gain or loss measured against its acquisition cost (FIFO basis). The gain is savings income, taxed at 19–28%. There is no 'like-kind exchange' equivalent in Spanish law that would defer the tax.
I moved to Spain two years ago with a significant Bitcoin holding. When do I owe tax?
You owe IRPF on gains arising from disposals made while you are a Spanish tax resident. Gains that accrued before you became resident — on a holding you have not yet sold — are not yet taxable, but the moment you sell, the full gain (calculated from your original acquisition cost) is taxable. We advise on the most tax-efficient timing of disposals and on valuation strategies for establishing the Spanish cost base.
Do I need to file Modelo 721 if I hold crypto on a Spanish exchange?
Modelo 721 applies to crypto held on overseas exchanges and in self-custodied wallets abroad. Crypto held on a Spanish-registered exchange is not reportable on Modelo 721 (the exchange itself reports to the AEAT). However, the gains and losses on disposals must still be included in your IRPF declaration regardless of where the assets are held.
How does Spain treat income from DeFi yield farming?
Yield farming income — tokens received from liquidity pools, lending protocols or yield aggregators — is treated as savings income (rendimientos del capital mobiliario) in Spain, taxed at the savings rates (19–28%). The income is recognised at the market value of the tokens on the date they are received into your wallet or become accessible. The DeFi protocol's country of domicile does not alter this treatment — Spanish IRPF applies to worldwide income of Spanish residents.

Modelo 721: Spain's Crypto Reporting Form Explained

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.

Who Must File Modelo 721?

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.

What Information Is Reported?

Modelo 721 requires declaration of:

  • The name and identification of each virtual currency (Bitcoin, Ether, stablecoin, etc.)
  • The name and country of each exchange or custodian where the assets are held
  • The number of units of each virtual currency held at 31 December
  • The acquisition value (in euros) of each holding at 31 December
  • The market value (in euros) of each holding at 31 December, using the exchange rate published by the relevant platform or, for unlisted tokens, a reasonable valuation methodology
  • For self-custodied wallets: the wallet address and type (hardware wallet, software wallet, etc.)

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.

Penalties for Late or Incorrect Modelo 721 Filing

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):

  • Failure to file: €5,000 per item of information omitted (minimum €10,000 per year for non-filing)
  • Incorrect filing: €500 per incorrect or incomplete data element (minimum €1,500)
  • Late filing without AEAT request: Surcharges of 5%, 10%, 15% or 20% depending on how late the filing is (within 3 months, 6 months, 12 months, or beyond 12 months respectively)

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.

DAC8: EU-Wide Crypto Reporting from 2026

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.

DeFi, Staking, Liquidity Pools and Yield Farming in Spain

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.

Staking Rewards

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.

Liquidity Pool Impermanent Loss

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.

Yield Farming

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.

Airdrop Taxation

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.

Crypto Custody and Reporting Obligations: At a Glance

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

Crypto Mining and Validator Income: Business Activity Treatment

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.

Autónomo Registration Requirement

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.

Income Recognition and Deductible Expenses

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:

  • Electricity costs attributable to mining (a major deductible item — miners should separate business electricity consumption with a dedicated meter or documented allocation methodology)
  • Hardware amortisation (ASICs, GPUs, server equipment) — typically over 5–8 years depending on the asset type
  • Internet and connectivity costs attributable to the activity
  • Hosting and colocation fees for off-site mining operations
  • Professional fees (accountancy, tax advice) related to the activity
  • Social Security contributions paid as autónomo

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.

VAT Implications of Crypto Mining

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.

Mining vs Staking: Key Tax Differences

  • Mining: Economic activity — autónomo registration required, expenses deductible, taxed at general IRPF rates (up to 47%), potential IVA implications
  • Staking (personal): Passive income — no autónomo requirement, taxed as rendimientos del capital mobiliario at savings rates (19–28%), no IVA
  • Staking-as-a-service: May be treated as economic activity if managed professionally with client relationships — requires individual analysis
  • Validator node operation (solo): Generally treated as economic activity if conducted systematically — autónomo registration advisable

Book a Free Consultation

Use the form below or book directly via Calendly. Jacob responds within one business day.

Handled under GDPR. Used solely to respond to your enquiry.

📅 Or book on Calendly →
Disclaimer: Content on this page is for general informational purposes only and does not constitute legal or tax advice. Tax law changes frequently. Always seek qualified professional advice. SALAMA LEGAL SLP — Colegiado nº 11.294 ICAMálaga.
Ask a question