Buying, selling, staking, airdrops, farming… crypto has a language of its own. And each transaction has a different consequence on your Spanish income tax return. Here is every crypto transaction explained in plain terms, with how it is taxed in Spain under the rules in force and the criteria set out by the Directorate-General for Taxation (DGT).
Quick index
| Transaction | Taxable? | Type of income |
|---|---|---|
| Buying | No | — |
| Selling | Yes | Capital gain/loss |
| Swap | Yes | Capital gain/loss |
| Staking | Yes | Investment income |
| Airdrop | Yes | Capital gain (general base) |
| Fork | No clear ruling | Depends on the case |
| Mining | Yes | Business income |
| Lending | Yes | Investment income |
| Yield farming | Yes | No clear ruling: depends on the operation |
| Liquidity pools | Yes | Fees: investment income; the rest, case by case |
| NFTs | Yes | Capital gain |
| Paying with crypto | Yes | Capital gain/loss |
| Gifting | Yes | Income tax (giver) and gift tax (recipient) |
| Inheritance | Yes | Inheritance tax |
Buying
What is it?
Acquiring crypto with fiat money (euros, dollars) through an exchange or platform.
Example
You buy 0.5 BTC on an exchange for €15,000.
Is it taxable?
No. Buying crypto does not trigger a taxable event. There is nothing to report at the moment of purchase.
What you do have to do
- Keep the proof of purchase (date, quantity, price in euros)
- If you hold them on a foreign exchange and the balance exceeds €50,000 → file Modelo 721
- If you do not report them properly, you are exposed to penalties from the Spanish tax agency
Selling
What is it?
Selling crypto in exchange for fiat money (euros).
Example
You bought 1 ETH at €1,500. You sell it at €3,000. Gain: €1,500.
Is it taxable?
Yes. Under article 33 of the Spanish income tax act, the difference between the purchase price and the sale price is a capital gain (or loss). It is calculated with the FIFO method (First In, First Out). You can read our complete guide to the FIFO method.
How much you pay
| Taxable base | Rate |
|---|---|
| Up to €6,000 | 19% |
| €6,000 - €50,000 | 21% |
| €50,000 - €200,000 | 23% |
| €200,000 - €300,000 | 27% |
| Over €300,000 | 30% |
Worked example
A gain of €10,000:
- First €6,000 × 19% = €1,140
- Next €4,000 × 21% = €840
- Total: €1,980
Swap
What is it?
Exchanging one cryptocurrency for another. For instance, swapping BTC for ETH.
Example
You hold 1 BTC bought at €20,000. You swap it for 10 ETH when 1 BTC is worth €40,000.
Is it taxable?
Yes. Under binding ruling V0999-18 of the DGT, the Spanish tax agency treats a swap as a sale followed by a purchase. In this example, you have a gain of €20,000 (€40,000 - €20,000).
What many people do not realise
Swapping USDT for BTC is also a swap. Exchanging any crypto for another triggers a taxable event, even if you never touched euros.
Staking
What is it?
Locking your crypto on a blockchain network to help validate transactions. In return, you receive rewards in the form of new coins.
Example
You stake 32 ETH on Ethereum. You receive 1.5 ETH in rewards over the year.
Is it taxable?
Yes. Under the DGT criterion (ruling V1766-22), staking rewards count as investment income. They are taxed when you receive them, valued at the market price at that moment. The DGT returned to the subject in ruling V0612-26 (17 March 2026), which distinguishes between centralised, native and liquid staking: how it applies depends on how you stake, and with liquid or DeFi staking it is worth having our specialists review your case. We have a detailed guide on how staking is taxed in Spain.
How much you pay
The same bands as capital gains (19%-30%).
What to keep in mind
- Every reward you receive has an acquisition cost = its value in euros at the moment you receive it
- If you later sell those rewards, you are taxed again on the difference (as a capital gain)
Airdrop
What is it?
Receiving crypto for free, usually as a marketing move by a project. The tokens land straight in your wallet without you asking for them.
Example
A DeFi protocol sends 500 AIRDROP tokens to your wallet for having been an early user. Value at the moment of receipt: €2,000.
Is it taxable?
Yes. The DGT (for instance, in ruling V1948-21) treats it as a capital gain not arising from a disposal, taxed in the general base (the progressive income tax scale, not the savings rates). You must report the market value of the tokens at the moment you receive them.
Acquisition cost
That market value on receipt becomes their acquisition cost (not zero). When you sell, the capital gain or loss is the difference between the sale price and that value. In the example: if you later sell the 500 tokens for €2,600, you are taxed on €600.
If the airdrop had no clear market value when you received it (tokens with no price or liquidity), the calculation gets harder: our specialists analyse your case and give it the right treatment. Message us on WhatsApp.
Fork (hard fork)
What is it?
A blockchain upgrade that creates a new cryptocurrency. If you held the original, you receive the new one automatically.
Example
You held 1 BTC when the Bitcoin Cash fork happened in 2017. You received 1 BCH for free.
Is it taxable?
There is no clear ruling from the DGT. Several readings are possible: treating it as income on receipt, like an airdrop, or splitting the cost of the original coin between the two and paying tax only on sale. Which one applies depends on how the fork happened and how you received the coins. Our specialists analyse your case and give it the right treatment: message us on WhatsApp.
Mining
What is it?
Using computing equipment to solve cryptographic problems and validate transactions on a blockchain. In return, you receive crypto as a reward.
Example
You run a mining rig that produces 0.01 BTC a month.
Is it taxable?
Yes, and differently from everything else. According to the DGT, mining is a business activity.
What that entails
| Obligation | Detail |
|---|---|
| Registration for business tax (IAE) | Heading 831.9 or similar |
| Registration as self-employed (RETA) | Monthly self-employment contribution |
| VAT | Not subject (DGT criterion): there is no VAT to report on mining |
| Income tax | Business income |
| Deductible expenses | Electricity, hardware, internet |
Lending
What is it?
Lending your crypto to a platform or to other users in exchange for interest. CeFi platforms such as Nexo, Celsius (now bankrupt) or BlockFi used to offer this service.
Example
You lend 10,000 USDT to a platform. You receive 5% a year: 500 USDT in interest.
Is it taxable?
Yes. The interest counts as investment income. It is taxed at the savings rates (19%-30%).
Yield farming
What is it?
A DeFi strategy that consists of moving your crypto between different protocols to squeeze out the highest possible return. The returns are paid in protocol tokens.
Example
You deposit ETH and USDC into a DeFi protocol. You receive reward tokens with a 15% APY.
Is it taxable?
Yes, but there is no clear ruling from the DGT. Depending on how each protocol works, rewards may fit as investment income or as a capital gain, and deposits and withdrawals can amount to swaps. There is no single answer: our specialists analyse your case and give it the right treatment. Message us on WhatsApp.
Why it is hard to report
Yield farming is one of the hardest activities to report. Every move between protocols can amount to a swap, and rewards accrue constantly.
Liquidity pools
What is it?
Depositing a pair of cryptocurrencies (e.g. ETH/USDC) into a decentralised exchange (DEX) so that other users can trade between them. In return, you receive a share of the fees.
Example
You deposit 5 ETH + 10,000 USDC into Uniswap. You collect fees every time someone uses that pair.
Is it taxable?
Yes. There are three moments, and only one has a clear ruling from the DGT:
| Moment | Tax treatment |
|---|---|
| On deposit | Depends on the interpretation: no DGT ruling |
| Fees received | Investment income (ruling V0648-24) |
| On withdrawal | Depends on how the deposit was treated |
Impermanent loss
Impermanent loss happens when the ratio of the pair changes while your funds sit in the pool. How it affects your tax return depends on the approach applied to the whole operation, and it is one of the cases our specialists review. We cover it in depth in what is a liquidity pool.
Is your case a complicated one? We can help
If you use DeFi, liquidity pools or yield farming, working out the tax on your crypto gets messy fast. At CryptoImpuestos we go through every transaction and prepare your return.
Talk to us on WhatsApp — no strings attached.
NFTs
What is it?
A non-fungible token. It is a unique digital asset representing ownership of a digital item (art, music, collectibles and so on).
Example
You buy an NFT for 0.5 ETH and sell it for 2 ETH.
Is it taxable?
Yes. Buying and selling NFTs is taxed just like any other crypto: as a capital gain or loss.
Special case: creators
| Situation | Tax treatment |
|---|---|
| Buying and selling NFTs | Capital gain |
| Creating and selling NFTs | Depends on the case: may be a business activity |
| Royalties on resales | No clear DGT ruling |
If you create NFTs or earn royalties, the classification depends on how regularly you do it, which rights you transfer and how you are paid. Our specialists analyse your case and give it the right treatment: message us on WhatsApp.
Paying with crypto
What is it?
Using crypto to pay for goods or services. Buying a coffee, a car or a flight with Bitcoin.
Example
You bought 1 BTC at €10,000. You pay for a €2,000 laptop with 0.05 BTC (when 1 BTC is worth €40,000).
Is it taxable?
Yes. The Spanish tax agency treats it as a sale. If your 0.05 BTC cost you €500 (at the original price) and you “sell” them for €2,000, you have a gain of €1,500.
What many people do not realise
Every payment made in crypto is a taxable event. It makes no difference that you are buying a €3 coffee. Technically, you have to work out the gain or loss on those satoshis.
Gifting
What is it?
Giving crypto to another person without receiving anything in return.
Example
You gift 0.1 BTC to your brother.
Is it taxable?
Yes, for both. The giver has a capital gain or loss in their income tax for the difference between the market value of the crypto on the day of the gift and what it cost them. If the result is a loss, it does not count (article 33.5.c of the Spanish income tax act). The recipient pays inheritance and gift tax (Impuesto sobre Sucesiones y Donaciones), with allowances that vary by region.
| Who | What they pay |
|---|---|
| Giver | Income tax on the capital gain (savings base) |
| Recipient | Gift tax |
Acquisition cost for the recipient
The recipient does not inherit the giver’s cost. Their acquisition cost is the value declared for gift tax (article 36 of the Spanish income tax act). If they later sell, the gain is calculated from that value.
Inheritance
What is it?
Receiving crypto as an inheritance after the holder’s death.
Example
Your father dies and leaves 2 BTC on a Ledger.
Is it taxable?
Yes. The heir pays inheritance tax (Impuesto de Sucesiones, which varies by region and by degree of kinship).
The practical problem
If the deceased kept the keys on a Ledger and nobody knows them, the crypto is lost for good. Having a digital inheritance plan matters.
Tax summary table
| Transaction | Tax rate | When it is reported |
|---|---|---|
| Buying | Not taxable | — |
| Selling | 19%-30% | Income tax (Renta) |
| Swap | 19%-30% | Income tax (Renta) |
| Staking rewards | 19%-30% | Income tax (Renta) |
| Airdrops | General scale (general base) | Income tax (Renta) |
| Forks | No clear ruling | Income tax (Renta) |
| Mining | At your income tax band | Income tax (business activity); no VAT |
| Lending | 19%-30% | Income tax (Renta) |
| Yield farming | No clear ruling | Income tax (Renta) |
| NFTs | 19%-30% | Income tax (Renta) |
| Paying with crypto | 19%-30% | Income tax (Renta) |
| Gifting | Giver: 19%-30%; recipient: varies by region | Giver: income tax; recipient: gift tax |
| Inheritance | Varies by region | Inheritance tax |
Frequently asked questions
Do I have to report if I have only bought and never sold?
No, buying does not create a tax charge. But if you hold more than €50,000 on foreign exchanges, you must file Modelo 721.
Is swapping BTC for USDT taxable?
Yes. Any exchange between cryptocurrencies is a swap and creates a capital gain or loss.
How do I calculate the gain if I bought several times?
With the FIFO method (First In, First Out). The first coins you bought are the first ones “sold”. You cannot pick another method. We walk you through it in our FIFO method guide.
Are staking rewards taxed on receipt or on sale?
On receipt (as investment income) and again on sale if there is a gain (as a capital gain).
What if I do not know what I paid for my crypto?
You need to rebuild your history. Without a purchase price, the Spanish tax agency can treat the cost as zero, which means paying tax on the full sale value. If you have been the victim of a scam or have lost access to your crypto, see our guide on what to do if you have been scammed.
Need help reporting your crypto transactions?
Every transaction has its own tax nuances. At CryptoImpuestos we go through your history, work out every gain and loss and prepare your return.
Message us on WhatsApp and we will tell you how to handle your case.
Víctor Lázaro
Marketing Director, Cryptoimpuestos.es