Topic · Bitcoin from zero · Lesson 6

How bitcoin is taxed in Spain in 2026

By · Updated

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.

Sources

  1. Guía Fiscal, Cómo sabe Hacienda que tienes criptomonedas (modelos 172, 173 y 721, DAC8, consultas DGT)
  2. Guía Fiscal, Tramos del IRPF 2026: escala de la base del ahorro
  3. Ley 35/2006 del IRPF, texto consolidado (BOE)

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: request it by 19 NovemberHow to vote by post from Spain on 29 November 2026: request by 19 November, send 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.Paying employees in stablecoins: what employers need to know in the UAE and SpainWhat employers in the UAE and Spain can and cannot do when they pay staff in stablecoins.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.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 skills and the talentThe roles stablecoins and tokenisation create in banks, issuers and corporates, the skills they need and where the talent comes from.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.
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.