Free tool · Spain, 2026
Spain crypto tax calculator: your gains with FIFO and the tax on them
In short
Paste your crypto trades, or open a CSV file, and the calculator works out the gain or loss on every sale and swap with the first-in, first-out (FIFO) method that Spain’s tax authorities apply across all wallets and exchanges. Crypto-to-crypto swaps count as disposals at market value, and fees add to the cost of a purchase and reduce the proceeds of a sale. It then applies the 2026 savings-base scale, from 19% to 30%, and checks whether crypto held with providers abroad must go on Modelo 721. Everything runs in your browser: your trades are not sent anywhere. The figure is an estimate for the common regime, not tax advice.
Calculate your crypto tax
Go deeper in the book
Key facts
- Method
- First in, first out (FIFO) per crypto, across all your wallets and exchanges
- What is taxed
- Sales for euros and crypto-to-crypto swaps, at market value; holding is not taxed
- Scale 2026
- 19% to €6,000; 21% to €50,000; 23% to €200,000; 27% to €300,000; 30% above
- Fees
- Add to the cost of purchases and reduce the proceeds of sales
- Modelo 721
- Crypto with providers abroad over €50,000 on 31 December; filed by 31 March
- Your data
- Calculated in your browser. Nothing is uploaded or stored
How to use it
1. Export your trades
Download the history of trades from each exchange, or use the template. You need, for every trade: the date, the type (buy, sell or swap), the crypto, the amount, its value in euros and the fee in euros.
2. Put them together
Paste all the trades from every exchange and wallet in one list. FIFO applies across all of them, so the oldest coins you bought anywhere are the first you sell.
3. Choose the year
The calculator shows the gains and losses of that year, the tax by band, what you still hold and, if you enter your balance abroad, whether Modelo 721 applies.
How the calculation works
Spain taxes a crypto gain when you dispose of the coins: when you sell them for euros, swap them for another crypto or pay with them. The gain is the value received minus what the coins cost. Fees on the purchase add to the cost and fees on the sale reduce what you received. In a swap, the crypto you receive starts with a cost equal to its market value on that day.
To know what the coins you sold cost, Spain’s Directorate General of Taxes (DGT), part of the Ministry of Finance, applies first in, first out across all your wallets and exchanges: the first coins you bought are the first you sell. The calculator keeps a queue of purchases per crypto and takes from the oldest. The Basque High Court has ruled that FIFO does not bind under Basque rules, so the calculator covers the common regime only.
Net gains go to the savings base, taxed in 2026 at 19% up to €6,000, 21% up to €50,000, 23% up to €200,000, 27% up to €300,000 and 30% above. Crypto held with providers outside Spain worth more than €50,000 on 31 December goes on Modelo 721, filed by 31 March, and again when the balance rises by more than €20,000. Spanish providers report your balances on Modelos 172 and 173, and from 2026 EU providers report them under DAC8.
The rules explained, step by step: How bitcoin is taxed in Spain in 2026 · Spain investment tax calculator
Sitting on a loss? What to do before 31 December for it to count on the 2026 return: Crypto losses and tax in Spain, 2026




