Topic · Crypto losses and tax in Spain, 2026
Crypto losses in Spain: how to offset them on your tax return before 31 December 2026
In short
In Spain a fall in the price of bitcoin or any other cryptocurrency is not a tax loss until you sell or swap the coins. Income tax is counted by calendar year, so a loss reduces the 2026 return, filed in 2027, only if the sale happens on or before 31 December 2026. A realised loss is first set against the gains of the same year from crypto, shares, funds or property, with no limit. If losses are larger than gains, the difference is set against up to 25% of the year’s interest and dividends, and what is still left can be used in the four following years, 2027 to 2030 (article 49 of the income tax law). It never reduces tax on a salary. An example: with €6,000 of gains in 2026, selling coins that carry a €4,000 loss cuts the tax from €1,140 to €380. Buying the same coin back soon afterwards can delay the loss: the law postpones losses when the same asset is bought again, and the two-month period often quoted is written for listed shares, not for crypto.
Before 31 December: seven moves that cut the 2026 tax bill and what each saves. Pay less tax in Spain before 31 December 2026
Key facts
- Deadline
- Sell or swap on or before 31 December 2026 for the loss to count on the 2026 return (filed in 2027)
- What it offsets first
- Gains of the same year from crypto, shares, funds and other assets, with no limit
- If losses exceed gains
- Up to 25% of the year’s interest and dividends; the rest carries to 2027-2030
- What it never offsets
- Salary, pensions or self-employment income
- Example
- €6,000 of gains and a €4,000 loss: tax falls from €1,140 to €380
- Buying back
- Rebuying the same asset can postpone the loss; the two-month period is for listed securities
- Legal basis
- Articles 12, 33.5 and 49 of Law 35/2006 on income tax (IRPF)
Your own figure: paste your trades into the free crypto tax calculator and it works out each gain and loss with FIFO, the net result for 2026 and the tax by band. Nothing leaves your browser. Open the Spain crypto tax calculator
Crypto losses and tax in Spain, 2026
Why 31 December matters
Spanish income tax is counted by calendar year and accrues on 31 December (article 12 of the income tax law). A gain or loss on cryptocurrency belongs to the year in which the coins are handed over, the tax agency’s income tax manual says, whenever the money arrives. So a sale on 31 December 2026 goes on the 2026 return, and a sale on 1 January 2027 goes on the 2027 return, filed in 2028.
Only realised losses count. Coins that are worth less than you paid, but that you still hold, produce no loss for tax purposes. The loss appears when you sell for euros or swap for a different cryptocurrency. The manual treats a swap between two different cryptocurrencies as a disposal, and adds that a loss on a swap must be provable if the tax office asks.
What a crypto loss can offset
Gains and losses from selling assets go into the savings base. Article 49 of the income tax law sets the order. First, the gains and losses of the year are netted against each other, whatever the asset: a loss on bitcoin offsets a gain on shares, an investment fund or a flat, and the other way round. There is no limit at this step.
Second, if the result is negative, it is set against the year’s positive savings income from capital, such as interest and dividends, but only up to 25% of that income.
Third, whatever is left is carried forward for four years and used in the same order. A loss from 2026 can be used on the returns for 2027, 2028, 2029 and 2030. The law requires using as much as each year allows, so it cannot be saved for a better year, and after the fourth year it is gone.
A crypto loss from a sale never reduces the tax on a salary, a pension or self-employment income. Those are in the general base, and the two bases are not mixed.
How much tax it saves
| Gains in 2026 | Crypto loss sold before 31 December | Tax without the loss | Tax with the loss | Saving |
|---|---|---|---|---|
| €3,000 | €3,000 | €570 | €0 | €570 |
| €6,000 | €4,000 | €1,140 | €380 | €760 |
| €20,000 | €8,000 | €4,080 | €2,400 | €1,680 |
| €60,000 | €20,000 | €12,680 | €8,280 | €4,400 |
Gains from selling crypto, shares, funds or other assets in the same year. Savings-base scale for 2026 in the common regime: 19% up to €6,000, 21% up to €50,000, 23% up to €200,000. The personal allowance is assumed to be used up by salary or other general income. Calculated by this site; an estimate, not tax advice.
The saving comes at the taxpayer’s top savings rate. A loss that wipes out gains taxed at 19% saves 19 cents per euro; one that removes gains above €50,000 saves 23 cents per euro.
A second case: no gains in 2026, a realised crypto loss of €5,000 and €2,000 of interest and dividends. The loss offsets 25% of the €2,000, which is €500, and saves €95 of tax this year. The other €4,500 waits for the gains of 2027 to 2030.
If you buy the same coins back
Article 33.5 of the income tax law postpones some losses when the seller buys again. Many guides say that with crypto it is enough to wait two months. The two-month period, in letter f, is written for securities listed on official markets, which cryptocurrencies are not. For other assets, letter e postpones the loss when the seller buys the same asset again within the following year, and the tax agency’s manual repeats it: one year after the sale for other assets, and it must be the same asset.
The manual’s pages on cryptocurrency describe the units of one coin as interchangeable, but they do not say which period applies to a sale of crypto followed by a new purchase. No official text read for this guide settles the question, so the cautious reading is the one-year period.
A postponed loss is not lost. It still has to be declared in the year of the sale, and it counts when the coins bought back are sold. Anyone who plans to sell at a loss and buy the same coin again should ask a tax adviser before doing it.
Before 31 December: a short list
Work out the result of each sale made in 2026. Coins sold are matched with the oldest ones bought (FIFO), across all wallets and exchanges, so the loss on a sale can differ from what one exchange shows.
Add the gains of the year from other assets, and any losses still pending from 2022 to 2025. A loss from 2022 can be used for the last time on the 2026 return.
Keep the proof: purchase and sale records, dates, amounts in euros and fees. A loss that cannot be justified is not accepted.
Coins stuck on a platform that has failed follow different rules: that loss is not a sale, it goes to the general base and it can only be claimed in the cases the law lists, such as a year after starting court action.
Method
The rules come from the consolidated text of Law 35/2006 in the Boletín Oficial del Estado (articles 12, 14, 33, 46, 49, 66 and 76) and from the Agencia Tributaria’s income tax manual for 2025, both read on 28 November 2026. The table uses the 2026 savings-base scale for the common regime, state plus regional part, and is checked against this site’s crypto tax calculator. The Basque Country and Navarre have their own income tax rules. This guide gives general information and is not tax advice.
Borja’s view
Borja Burguillos has spent about 20 years on pay and people strategy: at Mercer and Howden in Madrid, as Global Head of Compensation & Benefits at Delta Partners (now FTI Consulting) in Dubai, and leading the global HR workstream of BASF’s sale of its Construction Chemicals business, before founding Valora Digital in 2023. He co-chairs the People & Organisation Committee at the Middle East Stablecoin Association (MESA) and sits on Concordium’s Governance Committee, elected by CCD token holders; the views here are his own. His view: a tax saving is a poor reason to sell something you want to keep, and a good reason to tidy up something you already wanted to leave. The decision about the investment comes first and the tax return second. What he would not skip is the record-keeping: every purchase and every sale, in euros, on the day it happens, because a loss that cannot be proved is worth nothing in a return. He explains what bitcoin is and why its price moves so much in Why Bitcoin Had to Exist.
Questions
Can I offset crypto losses against gains in Spain?
Yes. A realised crypto loss is set against the gains of the same year from crypto, shares, funds or other assets, with no limit. If losses are larger, the rest offsets up to 25% of the year’s interest and dividends and then carries forward four years.
Do I have to sell before 31 December for the loss to count in 2026?
Yes. Income tax is counted by calendar year, and the loss belongs to the year in which the coins are handed over. A sale on or before 31 December 2026 goes on the 2026 return, filed in 2027.
Can crypto losses reduce the tax on my salary?
No. Losses from selling crypto are in the savings base. They offset gains and, up to 25%, interest and dividends, but never salary, pension or self-employment income.
How many years can I carry crypto losses forward in Spain?
Four. A loss realised in 2026 that is not used that year can be used on the returns for 2027, 2028, 2029 and 2030. Each year you must use as much as that year allows.
Does the two-month rule apply to crypto in Spain?
The two-month period in article 33.5.f of the income tax law is written for securities listed on official markets. For other assets the law postpones the loss when the same asset is bought again within the following year. The tax agency’s manual does not say which period applies to crypto, so the cautious reading is one year.
Do I have to declare crypto losses if I owe no tax on them?
On the return, each sale or swap goes in the section for virtual currencies, with its gain or its loss. That is where a loss is set against gains, and the part not used is carried to the following four years.
Does swapping one crypto for another realise a loss?
Yes. The tax agency treats a swap between two different cryptocurrencies as a disposal, valued at market price, so it produces a gain or a loss. A loss on a swap must be provable.
Quote or link to this page
Free to quote. Please credit Borja Burguillos and link to this page. Copy the key figure, a ready-made link or a citation:
Key figure to quote
A crypto loss counts on Spain’s 2026 return only if you sell or swap by 31 December.
Link for your page (HTML)
Citation
Sources
- BOE, Ley 35/2006, del Impuesto sobre la Renta de las Personas Físicas, texto consolidado (artículos 12, 14, 33.5, 46, 49, 66 y 76)
- Agencia Tributaria, Manual práctico de Renta 2025: Compra y venta de monedas virtuales, tributación en el IRPF del inversor
- Agencia Tributaria, Manual práctico de Renta 2025: Pérdidas patrimoniales que no se computan fiscalmente como tales
- Agencia Tributaria, ayuda de Renta: Ganancias y pérdidas patrimoniales derivadas de la transmisión o permuta de monedas virtuales
Updated:




