Topic · Bitcoin from zero · Lesson 6
How bitcoin is taxed in Spain in 2026
In short
In Spain, simply holding bitcoin is not taxed as income. Tax arises when you dispose of it: when you sell it for euros, swap it for another cryptocurrency or pay with it. The gain, the difference between what you got and what you paid, goes into the savings base of income tax (IRPF) and is taxed on a scale from 19% on the first €6,000 to 30% above €300,000 in 2026. Swapping one crypto for another counts as a disposal even if no euros change hands. Coins sold are matched with the oldest ones bought (FIFO), across all your wallets and exchanges. And crypto held with providers outside Spain worth more than €50,000 at 31 December must be reported on the Modelo 721.
Put a number on it: the free calculator applies the 2026 savings-base scale to your gains from crypto, shares or funds. Open the investment tax calculator
This page is part of Bitcoin from zero, a free course in six short lessons. See all the lessons
Key facts
- When tax arises
- When you sell, swap or spend bitcoin, not while you hold it
- Scale 2026 (savings base)
- 19% to €6,000; 21% to €50,000; 23% to €200,000; 27% to €300,000; 30% above
- Crypto-to-crypto swaps
- Taxable, even without euros (DGT binding rulings V0999-18 and V1149-18)
- Which coins you sold
- First in, first out (FIFO), across all wallets and exchanges (DGT V1604-18)
- Modelo 721
- Crypto with providers outside Spain over €50,000 at 31 December; filed 1 January to 31 March
- What Hacienda already sees
- Spanish exchanges report balances and operations every January (Modelos 172 and 173)
Bitcoin from zero · Lesson 6
When you pay tax, and how much
Buying bitcoin and holding it is not taxed as income. A gain or loss appears when you sell for euros, swap for another cryptocurrency or use it to pay for something. The gain is the value you received minus what you paid, including fees, and it is added to your other savings income for the year, such as interest, dividends and gains on shares.
The 2026 scale for the savings base is 19% on the first €6,000, 21% up to €50,000, 23% up to €200,000, 27% up to €300,000 and 30% above. Losses can be set against gains of the same year, with the limits of the income tax law.
Swaps and FIFO
Swapping bitcoin for another cryptocurrency, or for a stablecoin, is a disposal for tax purposes even if you never touch euros. Spain’s tax directorate (DGT) has said so in binding rulings since 2018. To work out the gain, the coins you dispose of are matched with the oldest ones you bought (first in, first out), counting all your wallets and exchanges together, not each one separately.
Reporting: what Hacienda knows
Exchanges and custodians based in Spain report to the tax agency every January the balances at 31 December (Modelo 172) and every operation of the year (Modelo 173). If you keep crypto with providers outside Spain and it is worth more than €50,000 at 31 December, you must file the information return Modelo 721 between 1 January and 31 March; after the first year, only if the balance grows by more than €20,000. Coins in your own wallet (self-custody) are outside the Modelo 721, according to the tax agency’s FAQs, but gains on them are taxed the same way.
This lesson explains the general rules; your own case may differ, so check with a tax adviser before you file.
Borja’s view
Tax is where Bitcoin meets the ordinary financial system. Borja’s book Why Bitcoin Had to Exist explains why the two work so differently, and this course closes here because every reader in Spain eventually has to deal with both.
Questions
Do I pay tax on bitcoin I have not sold?
Not as income. Tax arises when you sell, swap or spend it.
How much tax do I pay on bitcoin gains in Spain?
Between 19% and 30% in 2026, on a scale: 19% on the first €6,000 of savings income, 21% up to €50,000, 23% up to €200,000, 27% up to €300,000 and 30% above.
Is swapping bitcoin for another crypto taxed?
Yes. It counts as a disposal even if no euros are involved, according to binding rulings of the DGT.
Do I have to file Modelo 721?
Only if you hold crypto with providers outside Spain worth more than €50,000 at 31 December. Self-custody is outside it, according to the tax agency’s FAQs.
Which coins count as sold if I bought at different prices?
The oldest ones first (FIFO), across all your wallets and exchanges.




