Topic · Crypto losses and tax in Spain, 2026

Crypto losses in Spain: how to offset them on your tax return before 31 December 2026

By · Updated

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

What a crypto loss saves in tax, 2026
Gains in 2026Crypto loss sold before 31 DecemberTax without the lossTax with the lossSaving
€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

  1. 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)
  2. Agencia Tributaria, Manual práctico de Renta 2025: Compra y venta de monedas virtuales, tributación en el IRPF del inversor
  3. Agencia Tributaria, Manual práctico de Renta 2025: Pérdidas patrimoniales que no se computan fiscalmente como tales
  4. Agencia Tributaria, ayuda de Renta: Ganancias y pérdidas patrimoniales derivadas de la transmisión o permuta de monedas virtuales

Updated:

Free tools

Calculators built on the official rules, with their sources. Free, no sign-up.

See all free tools →

More books

Guides

Bitcoin from zero: a free course in six short lessonsA free course in six short lessons: what Bitcoin is, transactions, wallets, safety, scams and tax in Spain.What is Bitcoin, and why does it exist?What it is, who made it, and why a money with fixed rules had to exist.What are stablecoins, and why do they matter?Digital dollars: how they hold their value, why they matter and the rules arriving.Money and pay: why money loses value and how pay is changingInflation, total rewards, pay transparency and what digital money changes for HR.Web3 and the business of sportFan tokens, crypto sponsorship and prediction markets: how money is changing sport.Can you be paid your salary in crypto or stablecoins?Can your salary be paid in crypto or stablecoins? The rules in the UAE and Spain.The best books to understand Bitcoin, for beginnersThe best books to understand Bitcoin, from first steps to the technical detail.The best books on stablecoinsThe best books and reports to understand stablecoins, from inclusion to regulation.Which banks are launching stablecoins, and what does it mean for you?Qivalis, Santander, BBVA, CaixaBank: which banks are launching stablecoins, and what it means for customers.Books on Web3 and sport: what to read firstThe few books worth reading on Web3, fan tokens and the business of sport, and what each one is for.Stablecoins in the UAE: what is allowed, who issues them and what it means for youWhat the UAE allows, who regulates it, and the first dirham stablecoins: AE Coin, DDSC and RAKBank.Open lists in Spain: how Spaniards vote today, and what would changeHow Spaniards vote for Congress and the Senate today, and what open lists would change.How does the D’Hondt method work? Spain’s seat formula, step by stepHow Spain turns votes into seats, with a worked example, and why the province matters more than the formula.How to vote from abroad in Spain’s 29 November 2026 electionHow Spaniards living abroad vote on 29 November 2026: the consulate urn, postal vote and deadlines.How many votes does a seat cost in Spain? Province by province, 29 November 2026How many voters stand behind each seat in Congress, province by province, for 29 November 2026.Postal vote for 29 November 2026: send it by 25 NovemberPostal vote for 29 November 2026: the request closed on 19 November. If you requested it, send it at Correos by 25 November.Polling station duty on 29 November 2026: pay, hours and time offCalled to sit on a polling station on 29 November 2026? Pay, hours, time off work and what to do if you cannot go.Can stablecoins make sending money home cheaper?Do stablecoins make sending money home cheaper? What the World Bank and IMF data show.How pay works in the UAE: basic salary, allowances and gratuityBasic salary, allowances, gratuity, no income tax: what a UAE pay package really means.Can you pay salaries in stablecoins? What the law allows in the UAE, Spain, the US and the UKCan a company pay salaries in stablecoins? What the law allows in the UAE, Spain, the US and the UK, the models that work and who carries the currency risk.Take-home pay index 2026: how much of your salary you keep in nine countriesHow much of a $40,000 to $250,000 salary you keep in nine countries, under 2026 rules.Spain vs Dubai salary 2026: what you keep, and the Spanish salary that matches DubaiWhat the same salary leaves in Spain and in Dubai, and the Spanish salary that matches a Dubai one.How AI is changing the job market: what the major reports sayWhat the WEF, IMF, ILO, Stanford and PwC data say about AI, jobs and pay.Will Bitcoin be the money of AI agents? How machines pay, and what is still missingAI agents are starting to pay for things. Cards, stablecoins and Bitcoin compared as money for machines.Why does Bitcoin go up and down so much?Fixed supply, big funds, interest rates and leverage: why Bitcoin’s price swings so much.How a Bitcoin transaction works, step by stepWhat happens between pressing send and the payment being final: the queue, the fee, the block and the confirmations.What is a Bitcoin wallet? Keys, seed phrase and custodyA wallet does not hold coins: it holds keys. What the seed phrase is, and custody by an exchange versus your own.How to keep bitcoin safe: six habits for beginnersSix habits that protect bitcoin: the seed phrase on paper, never online, small tests, updates and a plan for your family.Bitcoin scams: the most common ones and how to spot themThe most common bitcoin scams, what they have in common, and how to check a platform before you send money.How bitcoin is taxed in Spain in 2026When bitcoin is taxed in Spain, the 19% to 30% scale, crypto-to-crypto swaps, FIFO and the Modelo 721.Token compensation explained: grants, vesting, lockups and taxHow token grants, vesting, cliffs and lockups work, how they differ from shares, and when they are taxed.Jobs in stablecoins and digital money: the roles, the levels and how to get hired (2026)The five job families stablecoins create, four levels each, what US, EU and UAE rules require, what the roles pay and how to get hired.Crypto salary 2026: what stablecoin and crypto jobs pay, and how to price them when there is no marketWhat stablecoin and crypto jobs pay in 2026, why the published numbers disagree, and a six-step method to set fair pay.The vanishing analyst: is AI really cutting junior finance jobs?Is AI really cutting junior finance jobs? The measured data, the claims nobody measured, and why the bigger cost comes later.Don’t retire your veterans: why risk judgement is the scarcest skill in digital moneyWhy stablecoins failed so far: reserves and risk, not code. And why the people who know those risks are the scarcest talent in digital money.Who owns the stablecoin? How a bank should organise the team that issues oneHow a bank should organise the company that issues its stablecoin: the legal vehicle, the org chart, the roles to keep in-house and a team that never closes.Measuring people when AI does the work: what performance reviews should reward nowPerformance reviews still count what AI agents now produce in seconds. What managers say, why self-reports mislead, and a five-part scorecard.Finance education is behind digital money: what bankers, lawyers, accountants and treasurers should learn by 2027The rules for digital money are now detailed; the syllabus is still introductory. What bankers, lawyers, accountants and treasurers should learn by 2027.The Gulf’s chance: why the UAE could train digital-money talent faster than London or New YorkThe UAE’s stablecoin rules came two to three years before London’s and the US federal regime. Why that head start could make it the place where people learn to run regulated money.The CHRO’s digital-money playbook: 10 questions to answer before 2027The 10 questions an HR leader should answer before 2027 on jobs, pay, payroll, pay transparency, AI and skills, with a free readiness check.What could go wrong with digital money? Three scenarios and what HR should do in eachThree scenarios for stablecoins and the people who run them: adoption stalls, AI hollows out the roles, the rules split. The signals to watch and what HR should do.Paid in a dollar stablecoin: who carries the exchange-rate risk?If part of the pay is a dollar stablecoin, who carries the exchange-rate risk: the employer or the employee? Four designs, with examples.Financial literacy at work: why digital money makes it HR’s jobOnly a third of adults reach the OECD’s minimum level of financial literacy. Why digital money makes it an HR question, and what a basic programme covers.Digital money for HR: the glossary (60 terms)60 terms in plain English, from stablecoin and multi-issuance to token grants and pay gap reports, each with why it matters for HR.Spain’s minimum wage in 2027: €1,286 a month, and how much you take home€1,286 a month in 14 payments from 1 January 2027, €18,004 a year, and no income tax. Gross to net, 12 or 14 payments, and who is affected.How much will Spanish pensions rise in 2027? 3.5%, with the CPI month by monthPensions rise with the average CPI from December 2025 to November 2026. With November’s flash estimate at 4.1%, that is 3.5%. Table and examples.Spain’s Christmas extra pay 2026: when it is paid, how it is calculated and the net amount by salaryWhen December’s extra payment arrives, how it is calculated and what is left after tax: €1,791 net on a €30,000 salary. Table by salary.How to pay less income tax in Spain before 31 December 2026: seven moves and what each one savesSeven moves that only count on the 2026 return if they happen by 31 December: pension plan, donations, pre-2013 mortgage, electric car, charger, energy works and solar.Does my employer in Spain have to raise my pay with inflation? The five cases, and how much you need in 2026No law ties pay to the CPI. The minimum wage, your collective agreement or your contract can. A table of the five cases, and what 4.1% inflation does to a €30,000 salary.What are fan tokens? How they work, what they give you, and what they have done to fans’ moneyA vote in small club decisions and some perks, bought with crypto. Not a share. Seven big tokens have lost more than 98% since 2021: the table, the rules and the tax.UAE gratuity after a salary cut: old or new basic salary? The five cases, and what a cut costsGratuity uses your last basic salary. A cut you signed and MoHRE registered lowers it for all your years; one you never agreed to may not count. The five cases and what a 20% cut costs.Can employees be paid in crypto or stablecoins in the UAE? (2026)Can employees be paid in crypto or stablecoins in the UAE? Labour law, the Wage Protection System, the Central Bank’s rules and the Dubai court rulings, in one table.Who is responsible when an AI agent gets it wrong?An AI agent cannot be held to account, so the company is. The Air Canada case, the UAE and EU rules, and five things every agent needs.Tax on salaries in 2026: what an employee keeps in 20 countriesHow much of €30,000, €60,000 and €120,000 an employee keeps in 20 countries, the full tax wedge, and the same comparison at purchasing power.AI makes everything cheaper. So why is your money worth less?AI is making almost everything cheaper to produce. So why does your money buy less every year? Spain and Dubai, in numbers.Insurance is a promise in money. What happens when the money changes?Is blockchain reinventing insurance? The first wave failed. What is new is bitcoin as the money of the promise, from Bermuda to Dubai.Your first HR hire in a UAE start-up: when you need one, what it costs, and what goes wrong without itWhen a UAE start-up needs its first HR person, what a full-time Head of People costs, and the legal duties that start at employee one.UAE vs UK: what an employee really costs the employer in 2026On the same salary, a UK employer pays about 16% on top and a UAE employer about 3.5% for an expat. Why the gap is smaller for a start-up’s first hires.Spain vs Portugal: what an employee costs the employer in 2026Portugal is cheaper to employ in up to about €80,000 a year; above that, Spain is, because only Spain caps contributions. Figures by salary, 2026.Germany vs Netherlands: what an employee costs the employer in 2026A German employer pays 21.3% on top of salary, a Dutch one 15.61%, and the Dutch ceiling is lower. On €100,000 the gap is €5,713 a year.US vs Canada: what an employee costs the employer in 2026Canada’s payroll charges stop at about CAD 6,219 a year per employee; the US charges 7.65% up to $184,500. On $150,000 the gap is $7,340.UAE vs Singapore: what an employee costs the employer in 2026For a foreign hire Singapore costs almost nothing on top; the UAE about 3.5%. For a local hire it flips above about USD 85,000. Figures for 2026.Spain vs UAE: what an employee costs the employer in 2026On a €60,000 salary a Spanish employer pays €18,390 a year on top; a UAE employer about €2,100 for an expat. Where the gap comes from, 2026.Employee health insurance in the UAE: what companies must pay in 2026, emirate by emirateWho a UAE employer must insure in Dubai, Abu Dhabi and the Northern Emirates, what it costs per employee, and the fines.How much does it cost to relocate an employee abroad? (2026)The move, the package and the tax: what moving an employee abroad really costs, with a London to Dubai example and what the mobility firms report.
Portrait of Borja Burguillos

Borja Burguillos

Borja writes for people who want to understand money and incentives without the jargon. Born in Madrid and based in Dubai since 2012, he has advised companies on people and pay, built tech startups, and co-chairs the People & Organisation Committee at the Middle East Stablecoin Association.

WorldatWork Total Rewards and CAIA certified, CFA Investment Foundations, executive programmes at Wharton and IE Business School.