Skip to content

Crypto Tax in Spain: Declare Safely and Efficiently

Specialist tax advisory on cryptocurrencies, NFTs, DeFi, and other digital assets for individuals and businesses.

Why crypto taxation in Spain is an unavoidable legal obligation

EUR 50k
Form 721 filing threshold: crypto assets held abroad at 31 December
FIFO
Mandatory Spanish cost basis method -- we calculate every transaction correctly
2026
DAC8 reporting start date -- AEAT will automatically receive exchange transaction data
4.8/5 on Google · 50+ reviews 25+ years experience 5 offices in Spain 500+ clients
Deadline 1 January 2026

DAC8 Automatic Crypto Reporting

Crypto service providers will automatically report to tax authorities

Quick assessment

Does this apply to your business?

Have you declared every crypto-to-crypto swap as a taxable event, not just fiat cash-outs?

Do you hold more than EUR 50,000 in crypto on foreign exchanges without having filed Form 721?

Are you tracking the acquisition cost and FIFO queue for every token across all wallets?

Are your DeFi activities -- staking, liquidity provision, yield farming -- being correctly classified and declared?

0 of 4 questions answered

Our approach

Our crypto tax declaration process: portfolio audit and FIFO calculation

01

Transaction inventory & classification

We compile and classify all transactions for the tax year: purchases and sales, swaps, staking, lending, airdrops, NFTs, play-to-earn, and DeFi operations. We classify each income item under current tax regulations.

02

Gains & losses calculation

We calculate capital gains and losses applying the FIFO method (mandatory in Spain) and analyse offsetting possibilities against other gains or losses.

03

Tax filing & reporting

We correctly include crypto asset income in the personal income tax (IRPF) or corporate tax return, and file Form 721 (virtual assets held abroad) where required.

04

Planning & ongoing compliance

We advise on how to structure future transactions to optimise the tax impact, and monitor regulatory changes (including the MiCA Regulation and the DAC8 directive) to maintain compliance.

The challenge

Crypto tax in Spain is complex, rapidly evolving, and subject to increasing scrutiny from the AEAT. Many investors do not know how to correctly declare their transactions, are unaware of reporting obligations (Form 721), or assume that DeFi or staking activities have no tax implications. Getting it wrong can mean significant penalties.

Our solution

We provide comprehensive tax advisory for investors and businesses with crypto asset exposure: from correctly classifying each type of income to filing all required declarations. We use specialist software to track transactions and calculate gains and losses under the FIFO method recognised by Spanish tax law.

In Spain, cryptocurrency and digital asset transactions are subject to Personal Income Tax (IRPF) under Law 35/2006, with capital gains and losses allocated to the savings base at progressive rates of 19–28%; every exchange, sale, or disposal — including crypto-to-crypto swaps — constitutes a taxable event calculated using the mandatory FIFO method. Law 11/2021 (anti-tax-fraud act) formalised crypto reporting obligations and introduced Form 721, which requires taxpayers holding more than EUR 50,000 in crypto assets on foreign platforms as at 31 December to file an informative declaration between January and March of the following year. From 2026, EU Directive DAC8 will require all crypto asset service providers to automatically exchange account-holder transaction data with tax authorities across member states.

Our digital tax team stays permanently up to date with the rapidly evolving regulatory landscape for crypto assets, both in Spain and across the European Union. We combine technical knowledge of digital assets with deep mastery of tax regulation to provide precise and reliable advisory.

Our digital tax team stays permanently up to date with the rapidly evolving regulatory landscape for crypto assets, both in Spain and across the European Union. We combine technical knowledge of digital assets with deep mastery of tax regulation to provide precise and reliable advisory.

Crypto investors in Spain face a combination of multiple and evolving tax obligations that are easy to breach inadvertently: capital gains declarations in the IRPF savings base using the mandatory FIFO method, Form 721 for portfolios held on foreign exchanges exceeding EUR 50,000, and the classification of staking, lending, and DeFi income without specific regulatory guidance. Ignorance is no defence: the AEAT has been cross-referencing data from EU-regulated exchanges since 2022 and has initiated thousands of reviews against investors who assumed their transactions went unnoticed. From 2026, the DAC8 directive will automate the exchange of information from all crypto service providers with European tax authorities, eliminating any remaining room for opacity.

Our Crypto Tax Declaration Process: Portfolio Audit and FIFO Calculation

Our digital tax specialists begin with a complete inventory of all portfolios, exchanges, and wallets. We use specialist software to reconcile transactions across any blockchain and calculate gains and losses correctly applying the FIFO method required by the AEAT. We classify each type of transaction — purchases and sales, swaps, staking, lending, airdrops, NFTs, DeFi — under the criteria of Law 35/2006 (LIRPF) and available administrative doctrine. We prepare and integrate all income into the IRPF or corporate tax return, file Form 721 on time, and document every interpretative criterion applied so the client is in a defensible position before any AEAT request.

Regulatory Framework: IRPF, Form 721, and DAC8

Law 11/2021 on tax fraud prevention incorporated crypto asset tax treatment into Spanish law: capital gains and losses in the IRPF savings base, and Form 721 — in force since 2023 — for crypto assets held abroad exceeding EUR 50,000. The EU’s MiCA Regulation, fully applicable from December 2024, requires providers to register and meet AML requirements. The DAC8 directive, with mandatory transposition by 1 January 2026, establishes automatic exchange of information between tax authorities of all member states on crypto portfolios and transactions. Current savings base IRPF rates range from 19% to 28%.

Real Results in Crypto Taxation: Zero Penalties and a Defensive Position

  • Correctly filed declaration with no classification or FIFO calculation errors, and full supporting documentation.
  • Form 721 filed in the January-to-March window with zero risk of non-declaration penalties.
  • Prior-period regularisation with the minimum possible surcharge where applicable.
  • Documented forward-looking optimisation strategy: disposal calendar, loss offset against up to four prior years, evaluation of alternative investment vehicles.
  • Fully prepared defensive position before the AEAT, before DAC8 comes into force.

Crypto asset taxation in Spain has matured rapidly in recent years. What was once a regulatory vacuum has become an enforcement framework the AEAT applies with increasing rigour: reporting obligations for exchanges and service providers, Form 721 for foreign-held crypto assets, and the imminent DAC8 implementation that will automate information exchange between European tax authorities. The margin for ignorance or negligence narrows with every tax year.

The first challenge is purely technical: correctly calculating gains and losses on a crypto portfolio with hundreds or thousands of transactions across multiple platforms. Spain requires the FIFO method for gains calculations, which means the acquisition cost of each unit sold must be traced back to the oldest available purchases. For an active investor with positions across several exchanges and staking, lending, and DeFi transactions, this calculation is virtually impossible without specialist software. We use the most advanced tools available to reconcile transactions across any blockchain and generate the detailed report that supports every figure included in the return.

The second challenge is the tax classification of non-standard transactions. Liquidity provision in a DeFi protocol, yield farming, airdrops, and play-to-earn have no specific regulation in current Spanish law, requiring the application of general IRPF principles with sound interpretative judgement. Our position is always prudent and documented: we classify each type of transaction following available administrative doctrine and analogy with more established categories, and record in writing the criteria applied to defend them in the event of an AEAT review.

Forward-looking tax planning delivers the greatest value for investors with significant portfolios. Before a major disposal, the timing and manner in which it is executed can have a material tax impact. Loss offsetting against prior years, the decision to sell before or after the year-end, and the evaluation of alternative investment vehicles are decisions with lasting tax consequences. We advise our clients with significant portfolios before each material transaction, acting in coordination with our tax compliance and tax planning teams to ensure every decision is consistent with the investor’s overall tax strategy.

Spanish cryptocurrency taxation: the regulatory framework

Spain has developed one of Europe’s most detailed regulatory frameworks for cryptocurrency taxation, combining specific AEAT guidance (Consultas Vinculantes issued since 2018), Ley 11/2021 (Ley de Medidas de Prevención y Lucha contra el Fraude Fiscal) provisions introducing crypto-specific reporting obligations, and MiCA (Markets in Crypto Assets Regulation, applicable from 2024) compliance requirements for professional crypto businesses.

The AEAT has made cryptocurrency compliance a specific enforcement priority: from 2024, exchanges are required to report Spanish residents’ crypto holdings and transactions to the AEAT directly (Modelo 172/173), and Spanish resident holders of crypto assets on foreign platforms must file Modelo 721 (the crypto equivalent of Modelo 720). The enforcement environment makes accurate and complete crypto tax reporting not just a legal obligation but a practical necessity.

Taxation of crypto assets: by transaction type

Different crypto transactions have different Spanish tax treatment:

Sales and exchanges (including crypto-to-crypto): treated as capital gains or losses (ganancias o pérdidas patrimoniales) for IRPF purposes. The gain or loss is the difference between the sale price and the acquisition cost (FIFO — first in, first out — unless the taxpayer makes a specific election). Gains held for more than one year are taxed at the savings income rates (19-28%); short-term gains are taxed at general rates (up to 47%).

Staking income: treated as income from economic activity (rendimientos de actividades económicas) or, in some cases, as capital income (rendimientos del capital mobiliario), depending on whether the activity constitutes an organised economic activity. The AEAT’s position continues to evolve, and individualised advice is strongly recommended.

Mining income: consistently treated as economic activity income, with deductibility of mining equipment, electricity costs, and other direct expenses.

DeFi (liquidity provision, lending, yield farming): the tax treatment varies by specific mechanism and is not definitively resolved for all scenarios. Some DeFi transactions involve recognition events (taxable disposals) that are not intuitive from a user perspective — providing liquidity to an AMM pool may trigger a disposal of the contributed tokens, for example.

NFTs: treated consistently with other crypto assets — disposal is a capital gain event; creation and sale of NFTs for economic activity purposes triggers economic activity income treatment.

Airdrops and forks: the AEAT’s position is that hard fork tokens received are treated as a new acquisition at zero cost basis (creating a deferred gain for future disposal), while airdrops may be treated as donations (subject to ISD) or income depending on the circumstances.

Modelo 720 and Modelo 721: overseas asset declarations

Spanish tax residents holding crypto assets on foreign platforms above EUR 50,000 in aggregate must file Modelo 721 by 31 March of the following year. The penalties for non-compliance are severe: EUR 5,000 per item not declared (minimum EUR 10,000), though Constitutional Court challenges have reduced the extreme penalties previously applicable to Modelo 720 and may influence Modelo 721 enforcement. Our international tax team manages Modelo 721 filings as part of comprehensive crypto tax compliance.

Crypto business compliance: MiCA and AML

For businesses operating in the crypto sector — exchanges, wallet providers, DeFi protocols with a Spanish nexus, NFT marketplaces, crypto payment processors — MiCA registration with the CNMV (as of the Spanish transposition) is now required, along with AML obligations under the modified Ley 10/2010 framework. Our regulatory outsourcing team advises on the compliance programme required for crypto businesses operating in Spain.

Contact our crypto tax team for a review of your crypto holdings and transaction history.

DeFi, staking and NFT taxation: the emerging framework

Decentralised Finance (DeFi) activities present classification challenges that are not fully resolved in current Spanish tax guidance. The AEAT has provided some guidance through binding rulings (Consultas Vinculantes) but many specific scenarios remain without definitive administrative interpretation:

Liquidity provision and yield farming: providing liquidity to a DeFi protocol in exchange for governance tokens or protocol fees does not have a specific AEAT ruling. The most conservative treatment — treating each reward as income at the market value of the token received — aligns with the general principles of IRPF income recognition and is the position most likely to be accepted by the AEAT in an inspection.

Staking rewards: the AEAT’s position (Consulta V0475-23) treats proof-of-stake rewards as income from economic activity (rendimientos de actividades económicas) for the tax period in which they are received, valued at market price at the moment of receipt. This income is included in the IRPF general tax base (not the savings base), subject to the standard IRPF progressive rates rather than the lower capital gains rates.

NFT creation and sales: the tax treatment of NFTs depends on whether the creator is acting as a business or as an individual. For artists and creators selling NFTs as part of a business activity, revenue is subject to IRPF as professional income and to IVA (at 21% for digital services, with specific reduced rates applicable to original artworks under certain conditions). For investors buying and reselling NFTs, gains are capital gains in the IRPF savings base.

Wrapping and bridging: the AEAT’s general position is that any conversion or swap between different crypto assets is a taxable disposal event, realising any accrued gain or loss on the disposed asset. This includes wrapping (converting ETH to WETH), bridging between chains, and DeFi protocol token conversions. Comprehensive transaction logging across all wallets and protocols is therefore essential for accurate gain/loss calculation.

Our crypto tax practice manages the annual IRPF and IS declarations for clients with significant DeFi portfolios, using on-chain data analysis tools to reconstruct the full transaction history and apply the current AEAT interpretive position to each transaction type. For scenarios without binding ruling guidance, we prepare a technical position paper documenting the interpretation applied and its legal basis, which provides a defence against penalty imposition in the event of an AEAT challenge.

Record-keeping requirements: the foundation of compliant crypto tax reporting

Accurate crypto tax reporting requires comprehensive transaction records that most individual investors do not maintain from the beginning of their crypto activity. The AEAT requires that gains and losses be calculated on a FIFO (first-in, first-out) basis across all wallets and exchanges — a requirement that necessitates a complete chronological transaction history from the first acquisition.

For investors who have been active since 2015-2020 and have used multiple exchanges, hardware wallets, and DeFi protocols over the years, reconstructing the complete transaction history requires on-chain data analysis using blockchain explorers and exchange history exports. Our crypto tax practice uses professional-grade portfolio tracking software to import and reconcile transaction data from multiple sources, calculate gains and losses under the FIFO method, and classify each transaction type according to the current AEAT interpretive position. The output is a complete gain/loss schedule that feeds directly into the IRPF savings base calculation, supported by the underlying transaction documentation in a format that can be presented to the AEAT in a review.

Investors who have not maintained transaction records from the beginning of their activity face a specific reconstruction challenge. We advise on the approach to reconstructing incomplete histories — using blockchain data, exchange support requests, and estimated cost basis approaches where documentation is genuinely unavailable — and on the appropriate voluntary disclosure strategy for years in which crypto income was not declared. The AEAT’s position on voluntary regularisation of undeclared crypto income is evolving, and early engagement with a tax advisor experienced in this area is the best protection against the significant penalties that apply to non-voluntary disclosure.

Track record

Real results in crypto taxation: zero penalties and a defensive position before the AEAT

I had been active in DeFi for two years and had never declared any of it, assuming swaps between tokens were not taxable. BMC reconstructed the full history, calculated the correct position, and filed a voluntary disclosure that resolved everything with minimal surcharges.

Private client
Software Engineer & DeFi Investor

Experienced team with local insight and international reach

What our crypto asset tax service includes

Transaction history and classification

Full transaction history compilation and classification across CEX, DEX, DeFi protocols, NFT marketplaces, and gaming platforms.

FIFO gains and losses calculation

Capital gains and losses calculation applying the mandatory FIFO method using specialist crypto tax software.

IRPF and corporate tax filing

Correct allocation of each crypto income category to the savings base or general base of the IRPF, or to the corporate tax return.

Form 721 filing

Preparation and submission of the informative declaration for virtual currencies held abroad exceeding EUR 50,000.

Voluntary disclosure management

Regularisation of prior undeclared crypto activity through voluntary disclosure to minimise penalties.

DAC8 and MiCA compliance

Preparation for DAC8 reporting obligations and monitoring of MiCA regulatory developments affecting crypto tax.

Guides

Reference guides

The Germany–Spain business corridor, with advisors who know both sides

integrated advisory for German companies operating or establishing in Spain: corporate structuring, bilateral tax planning, transfer pricing, employment management and regulatory compliance with a bilingual DE/EN team.

View guide

Your American company in Spain: the right structure from day one

integrated advisory for US companies establishing or operating in Spain: entity structuring, transfer pricing, FATCA compliance, Beckham Law for US executives and US-Spain tax treaty optimisation.

View guide

Agricultural tax in Spain — the specialist regime most generalist advisors get wrong

Spain agricultural tax 2026: objective estimation modules, IRPF exemptions, VAT regime for farmers, and AEAT compliance calendar. Free consultation with BMC.

View guide

Beckham Law in Marbella — pay 24% income tax for up to five years on the Costa del Sol

Beckham Law advice in Marbella for expats, remote workers and professionals relocating to the Costa del Sol. Flat 24% tax rate for up to five years. Application, management and optimisation.

View guide

Beckham Law Spain 2026 — pay a flat 24% tax rate in Spain for up to six years

Beckham Law Spain 2026 guide: 24% flat tax rate, Modelo 149 deadline, family extension, digital nomad eligibility, and how BMC handles your full application.

View guide

How much does it cost to apply for the Beckham Law in Spain? Fees and cost variables

Fee ranges for processing the Spanish impatriate special regime (Beckham Law). What is included, which variables determine the price, and when the regime is worth applying for.

View guide

Service Lead

Lucia Mendez Ortega

Associate - Tax Division

Master in Tax Advisory, ICADE Law Degree, University of Salamanca
FAQ

Frequently asked questions about cryptocurrency declarations in Spain

Yes. Any crypto transaction (sale, swap, crypto payment, staking, lending, airdrops) can trigger tax obligations in Spain. Additionally, if you hold more than EUR 50,000 in crypto assets on exchanges or wallets outside Spain, you must file Form 721.
Capital gains are taxed in the savings base of the IRPF at progressive rates: 19% up to EUR 6,000; 21% from EUR 6,000 to 50,000; 23% from EUR 50,000 to 200,000; 27% from EUR 200,000 to 300,000; and 28% above EUR 300,000.
Staking and lending returns are generally classified as capital income and taxed in the savings base. However, depending on the type of operation and the relationship with the platform, the classification may differ. We analyse each case individually.
NFT transactions generate capital gains or losses if sold at a price different from acquisition cost. If NFTs are created and sold as an economic activity, the income will be taxed as business income.
Form 721 is the informational declaration for virtual currencies held abroad. It must be filed by taxpayers who hold more than EUR 50,000 in crypto assets custodied outside Spain as at 31 December of the tax year. The filing deadline is January to March of the following year.
Yes, we have experience classifying and declaring transactions in DeFi protocols: liquidity provision, yield farming, decentralised lending, bridges, and on-chain derivatives. Each type of transaction has specific tax implications.
DAC8 is the EU directive that extends automatic exchange of tax information to crypto asset service providers. From 2026, exchanges and platforms operating in the EU must report account holders' transaction data to tax authorities, who will share this information across member states. This significantly increases the AEAT's visibility into crypto holdings and transactions. We advise clients on getting ahead of their compliance position before reporting begins.
In Spain, every exchange of one cryptocurrency for another -- including swapping BTC for ETH, or trading any token for a stablecoin -- is treated as a disposal of the first asset and an acquisition of the second. A capital gain or loss arises at the moment of the swap, calculated as the difference between the market value of the received asset (treated as the proceeds) and the acquisition cost of the disposed asset under the FIFO method. This applies regardless of whether fiat currency was involved.
Yes. Capital losses from crypto disposals can be offset against capital gains from other sources (shares, property, other assets) in the savings base of the IRPF. Unused losses can be carried forward for four years. Careful timing and ordering of disposals -- particularly in years with mixed gains and losses across different asset classes -- can generate significant tax savings through deliberate loss-harvesting strategies.
BMC Tax Alert

Stay ahead on tax matters

Receive tax analysis, regulatory changes and tax-saving opportunities directly in your inbox.

Quarterly · No spam · Unsubscribe at any time

First step

Start with a free diagnostic

Our team of specialists, with deep knowledge of the Spanish and European market, will guide you from day one.

Crypto & Digital Asset Tax

Tax

Talk to the partner in charge

Response within 24 business hours. First meeting free.

Services
Contact
Insights