Taxation of DeFi and Staking in Spain
- vissumlex

- 1 hour ago
- 8 min read

In 2026, cryptocurrency taxes in Spain are regulated by strict fiscal authority standards. Tax residents of the country must maintain accurate records of digital assets. Declaring income from decentralized finance requires a deep understanding of tax legislation.
The Spanish tax system has adapted to the digital economy realities. The State Agency of Tax Administration (AEAT) has developed clear criteria for evaluating virtual currencies. Any operation with digital assets leaves a digital footprint. Ignoring accounting rules leads to severe financial sanctions. Residents of Spain often make the mistake of believing that not withdrawing funds to fiat money exempts them from fiscal obligations. This misconception leads to the accumulation of hidden tax debt.
The 2026 legislative framework relies on the updated Personal Income Tax Law (IRPF). Cryptocurrency taxes in Spain are calculated based on the worldwide income principle. An investor must report profits earned on any platform. Decentralized finance (DeFi) presents a particular accounting challenge. Smart contracts generate numerous microtransactions. Each such transaction can constitute a taxable event.
Legal practice shows an increase in audits of crypto investors. Automatic information exchange between EU countries has stripped digital asset owners of anonymity. Proper crypto declaration requires the use of specialized software. Manual calculation of hundreds of blockchain transactions is practically impossible. The taxpayer must prove the origin of funds and correctly calculate the tax base.
Deanonymization of Crypto Assets: DAC8 Directive and Modelo 721
The implementation of European transparency standards has completely eliminated the anonymity of crypto investors. Tax authorities automatically receive user balance and transaction data from service providers.
The European DAC8 directive has entered into full force, obliging all cryptocurrency exchanges and custodial services to transmit client information to EU tax authorities. This means that AEAT receives direct reports from Binance, Kraken, Coinbase, and other platforms. The data includes account balances, trading volumes, and facts of withdrawals to non-custodial wallets. The DAC8 directive closed loopholes that allowed hiding assets on foreign platforms.
The internal control instrument in Spain is Modelo 721. This is an informational declaration about virtual currencies held abroad. The form was introduced to ensure transparency in digital asset ownership. Filing this declaration does not entail immediate tax payment. Its purpose is to record the resident's financial status. Cryptocurrency taxes in Spain are paid during the annual Renta campaign, but Modelo 721 serves as a basis for future audits.
Who Must File Form 721 in 2026
Form 721 must be filed by Spanish tax residents holding significant foreign crypto assets. The total balance on foreign exchanges must exceed 50,000 euros as of December 31.
The obligation arises for both individuals and legal entities. The 50,000 euro limit calculation is based on the total value of all virtual currencies. If an investor has 30,000 euros on one exchange and 25,000 euros on another, the limit is exceeded. Declaring crypto via this form requires specifying public keys, asset names, and their euro valuation at year-end. The valuation uses the average exchange rate of major platforms on December 31.
An important nuance concerns non-custodial wallets (Ledger, Trezor, Metamask). If the taxpayer holds the private keys and is physically located in Spain, such assets are technically not considered "held abroad". However, if funds are placed in smart contracts of foreign DeFi protocols, the situation becomes complicated. Lawyers recommend declaring such positions to avoid disputes with inspectors. In subsequent years, Modelo 721 is filed only under specific conditions. The balance must increase by more than 20,000 euros compared to the previous declaration, or the assets must be fully sold.
Penalties for Hiding Wallets
Failure to provide data on foreign crypto assets entails fixed fines for each hidden position. Sanctions can reach tens of thousands of euros and be accompanied by tax assessments.
Crypto fines in Spain are notably severe. A fine is provided for each incorrect or missing entry in Modelo 721. The minimum sanction amount is 300 euros. If the declaration is filed late but voluntarily (without a prior tax demand), fines are reduced. However, intentional concealment of assets is classified as a serious offense.
The main danger lies not in the form penalties, but in the income tax consequences. If AEAT discovers undeclared assets, it can classify them as unjustified capital gains (Ganancia patrimonial no justificada). In this case, the entire asset amount will be taxed at the general IRPF scale (up to 47%). Additionally, a fine of up to 150% of the unpaid tax amount will be imposed. Timely crypto declaration protects capital from state confiscatory measures.
Classification of DeFi Operations by the Tax Agency (AEAT)
The Spanish tax agency divides crypto operations into capital gains and savings income. Each blockchain transaction requires separate tax accounting and qualification.
Cryptocurrency taxes in Spain are based on a strict income classification. AEAT does not view cryptocurrency as a single monolithic asset. Tax consequences depend on the economic essence of the operation. The investor must clearly distinguish between trading, passive income, and network consensus participation. Incorrect classification leads to the wrong choice of the tax base (Base imponible) and, consequently, to tax arrears.
Permuta: Tax on Token-to-Token Exchange
Exchanging one cryptocurrency for another is recognized as a taxable event. Profit realization occurs at the moment of the transaction, regardless of fiat money withdrawal.
This is a fundamental rule ignored by many residents. Permuta de criptoactivos (asset exchange) generates Ganancia patrimonial (capital gain). When an investor exchanges Bitcoin for Ethereum, two operations legally occur. First, Bitcoin is sold for euros. Second, Ethereum is immediately purchased with those euros. The difference between the Bitcoin acquisition cost and its value at the exchange moment constitutes the taxable base.
Example: An investor bought 1 BTC for 20,000 euros. A year later, he exchanged this 1 BTC for 15 ETH. At the time of the exchange, the market value of 1 BTC was 60,000 euros. The investor received a Ganancia patrimonial of 40,000 euros. Tax must be paid on this amount, even if the ETH remained in the wallet. Cryptocurrency taxes in Spain require applying the FIFO (First In, First Out) method. When selling or exchanging part of the assets, the earliest purchased coins are considered the first to leave. This complicates calculations during active trading.
Staking and Liquidity Pools: Income from Movable Capital
Rewards for locking tokens are classified as capital income. These receipts are taxed according to the progressive savings scale at the moment of their receipt.
Staking (delegating tokens to ensure network operation) brings regular income. AEAT equates the staking tax to the tax on dividends or bank deposit interest. This is Rendimientos del capital mobiliario. The income is fixed in euros at the exchange rate on the day the reward is received. If an investor receives 0.1 SOL every day, he must calculate the euro value of these 0.1 SOL daily.
Participation in Liquidity Pools has a dual tax nature. First, providing a token pair to a pool often requires exchanging one asset for another to balance the proportion. This triggers Permuta de criptoactivos. Second, the fees received from the pool (LP tokens) are considered capital income. When withdrawing liquidity from the pool, a new Ganancia patrimonial calculation arises. The investor receives back a different amount of tokens due to Impermanent Loss. The staking tax and pool income are paid at rates from 19% to 28% in 2026.
Compliance Matrix: Taxation of Various Crypto Operations in Spain (2026)
Operation Type (DeFi / Crypto) | AEAT Classification | Tax Base (Base imponible) | Tax Rate (2026) |
Buying cryptocurrency with fiat | Not taxed | None | 0% |
Selling cryptocurrency for fiat | Ganancia patrimonial | Savings base (Ahorro) | 19% - 28% |
Crypto-to-crypto exchange (Permuta) | Ganancia patrimonial | Savings base (Ahorro) | 19% - 28% |
Staking (receiving rewards) | Rendimiento de capital | Savings base (Ahorro) | 19% - 28% |
Liquidity Pools (fees) | Rendimiento de capital | Savings base (Ahorro) | 19% - 28% |
Airdrops (free distribution) | Ganancia patrimonial | General base (General) | Up to 47% (IRPF scale) |
Paying for goods with crypto | Ganancia patrimonial | Savings base (Ahorro) | 19% - 28% |
Transfer between own wallets | Not taxed | None | 0% |
Cryptocurrency taxes in Spain: Frequently Asked Questions
Answers to technical questions on the taxation of digital assets. Practical explanations of the 2026 legislative norms for Spanish residents.
Do I need to pay tax if I haven't withdrawn crypto to euros?
Yes, tax is paid upon any exchange of assets. Withdrawal to fiat is not a mandatory condition for a tax obligation to arise.
Spanish legislation considers cryptocurrencies as intangible assets. Any exchange operation (Permuta de criptoactivos) fixes a financial result. If you sold Bitcoin for USDT (Tether), you fixed a profit or loss in euros at the time of the transaction. The fact that USDT remained on the exchange or a cold wallet does not cancel the obligation to pay tax. Cryptocurrency taxes in Spain are accrued on the mere fact of realizing an economic benefit. Declaring crypto is mandatory for all such transactions in the annual IRPF form.
How to declare Airdrops and hard forks?
The free distribution of tokens is considered income not related to the transfer of assets. It is taxed according to the general progressive IRPF scale.
Unlike trading, Airdrops do not generate a savings base (Base del ahorro). AEAT classifies them as Ganancia patrimonial not originating from the transfer of property elements. This means that the euro value of the received tokens at the time of crediting is added to your salary, business income, or pension. The tax is calculated on the general base (Base general). Rates can reach 47% depending on the autonomous community. Upon subsequent sale of these tokens, the cost base will be the amount already declared upon receiving the Airdrop.
What to do if the DeFi transaction history is lost?
In the absence of a purchase history, the tax base is considered zero. The entire sale amount will be considered net profit subject to taxation.
The burden of proving the acquisition cost lies with the taxpayer. If you cannot provide exchange statements or blockchain data confirming the asset's purchase price, AEAT will apply a zero value. For example, when selling assets for 10,000 euros, the entire 10,000 euros will be taxed. To restore data, lawyers use on-chain analysis methods. We restore transaction chains through hashes in public ledgers. Declaring crypto without supporting documents is a direct path to overpaying taxes.
Is transferring crypto between my own wallets taxed?
No, moving assets between your own addresses does not change their owner. This action does not generate a taxable base.
Transferring funds from the Binance exchange to a Ledger hardware wallet is a simple movement of property. Ganancia patrimonial does not arise. However, it is important to keep evidence that both addresses belong to you. Network fees (Gas fees) paid for such transfers cannot be deducted as expenses when calculating the tax base. They are considered personal expenses. Only those commissions directly related to the purchase or sale of an asset are deductible.
How will the tax office know about my Metamask or Ledger?
Non-custodial wallets are tracked through blockchain analysis and connections to centralized exchanges. The DAC8 directive obliges platforms to transmit data on fund withdrawals.
When you buy cryptocurrency on a regulated exchange (having passed the KYC procedure) and withdraw it to your Metamask, the exchange records the recipient's address. The DAC8 directive ensures the transmission of this information to AEAT. The tax service sees that a Spanish resident transferred assets to a specific address. Further, using blockchain analytics tools (Chainalysis and analogues), inspectors can track all subsequent fund movements in DeFi protocols. Anonymity in public blockchains is an illusion. Crypto fines are often assessed precisely to those who believed in the invisibility of their decentralized wallets.
Can I offset losses from a crypto project scam?
Losses from fraud can only be accounted for with a court decision. Without official confirmation, it is impossible to write off the loss of assets.
Losing access to a wallet, theft of funds by hackers, or exchange bankruptcy (e.g., FTX) does not grant an automatic right to reduce the tax base. AEAT requires strict evidence. To record a loss (Pérdida patrimonial), the taxpayer must file a police report and initiate legal proceedings. The investor has the right to reflect this loss in the declaration only under specific conditions. One year must pass since the start of the debt collection lawsuit, or the company must be officially declared bankrupt. Until that moment, the assets are considered to be owned by the taxpayer.
Crypto Asset Audit and Filing Modelo 721/100 Declarations
The taxation of digital assets does not tolerate an amateur approach. Errors in FIFO calculations, incorrect classification of staking rewards, or ignoring form 721 lead to account blockages and devastating fines. The VissumLex team of lawyers provides full-cycle services. We handle everything from technical smart contract audits to capital legalization before AEAT. Book a consultation to protect your assets within the 2026 Spanish legal framework.



