Extranjeros

Spain crypto tax: 19% to 30% on sales and swaps, staking, Modelo 721

Spain crypto tax: 19% to 30% on sales and swaps, staking, Modelo 721
Administración de la Agencia Tributaria en Alcorcón (Madrid). Foto: Zarateman / Wikimedia Commons, CC0 (recortada).

Reviewed against the official source: · Author: · How we check facts

In short: Spain crypto tax: if you are a tax resident, you pay income tax (IRPF) when you sell crypto or swap it for another coin, between 19% and 30% of the gain. Buying and holding is not taxed under IRPF. If on 31 December you hold more than €50,000 on platforms abroad, you also file the Modelo 721, which is an information return only.

Who this applies to

These rules are for tax residents of Spain, who are taxed here on their worldwide income, including what they earn on platforms in other countries (art. 9 LIRPF, the income tax law). How days are counted: tax residence and the 183 days. They apply to the common territory. The Basque Country and Navarre have their own income tax: if you live there, ask your regional tax office (hacienda foral).

If you are not a resident, Spain only taxes the gain on crypto located here, at 19% (arts. 13.1.i and 25.1.f of the non-residents income tax law). The Directorate-General for Taxes (DGT) treats crypto as located in Spain when the keys are held by an entity here (ruling V1069-19).

Which transactions are taxed

Transaction What it is for the tax office Where it goes
Buying with euros and holding No income Not declared in the Renta
Selling for euros or another legal tender currency, also between individuals (P2P) Capital gain or loss Savings base, 19% to 30%
Swapping one crypto asset for a different one, for example bitcoin for USDT Exchange (permuta): capital gain or loss at that moment Savings base
Staking Income from movable capital, at market price on the day you receive it Savings base
Interest for lending crypto or for putting it into a liquidity pool Income from movable capital Savings base
Airdrop Capital gain that does not come from a sale General base
Mining Business activity if it requires organising material or human resources; otherwise a gain that does not come from a sale General base
The platform goes bankrupt or does not return the coins The loss is not automatic: it is recognised when one of the conditions in art. 14.2.k LIRPF is met General base
Scam, phishing or theft of coins from your wallet, by an unknown person Capital loss that does not come from a sale, for the purchase price of the coins (or for the money you transferred to the scammer); you must be able to prove it General base
Scam where the perpetrators are identified, for example in a criminal case There is no loss yet: you have a claim (derecho de crédito) against them. The loss is recognised when a condition of art. 14.2.k LIRPF is met, for example one year after a court enforcement procedure starts without you being paid General base

Sources for the table: the AEAT Renta 2025 manual (the Tax Agency), its Informador de Renta and DGT rulings V1766-22 (staking), V0648-24 (lending, liquidity pools and airdrops) V0889-26 (P2P sale), and V1737-24, V1169-25, V5387-26 and V5346-26 (scam and theft).

How much you pay

Gains from selling or swapping and staking income go into the savings base. The year's amounts are added up and this scale applies in bands (arts. 66 and 76 of the LIRPF, state and regional parts together):

Part of the year's gain Rate
Up to €6,000 19%
From €6,000 to €50,000 21%
From €50,000 to €200,000 23%
From €200,000 to €300,000 27%
Above €300,000 30%

Example: with a gain of €10,000 in the year and no other savings income, you pay €1,140 on the first €6,000 and €840 on the remaining €4,000. In total, €1,980. This assumes your salary or other income already covers the personal minimum of €5,550 (art. 57 LIRPF). If you have no other income, that minimum is deducted here and you pay less (art. 56.2). Airdrops go into the general base, at the progressive scale of the rest of your income (salary, business).

How the gain is calculated

The gain is what you receive when you sell minus what the purchase cost you, counting the fees on the purchase and on the sale (art. 35 LIRPF). Everything is in euros. The purchase price is converted at the exchange rate of the day you bought, also if you paid in hryvnias or dollars.

When you sell only a part, the units you bought first are treated as sold first (FIFO). The order is worked out across all your platforms together, not platform by platform (AEAT; DGT ruling V1550-25). Example: you buy one unit for €2,000 and, later, another for €4,000. If you sell one for €6,000, the gain is €4,000, not €2,000.

The transaction is declared in the year you hand over the coins, not in the year you are paid.

If you lose

Losses from selling or swapping are set against gains of the same kind in the year. If some loss is left, it is set against your interest and dividends up to 25% of their amount. The rest is carried forward for the following 4 years (art. 49 LIRPF). To carry it forward you have to file the return for the year of the loss, even if you are not required to file. If you did not file it, file it now, even after the deadline (DGT rulings V0812-14 and V3725-16). You have to be able to prove a loss on a swap between two coins if the AEAT asks.

The law defers a loss when you buy back what you sold: you cannot deduct it until you sell what you bought back (art. 33.5 LIRPF). Letter f) sets two months for securities listed on regulated markets. Letter e) sets one year for other assets. The DGT has not said which of the two applies to crypto. If you sell at a loss and buy the same coin again, ask the AEAT before you offset that loss.

Who has to file a return

The €22,000 salary limit only exempts you if all your income is on the list in art. 96.2 LIRPF. Of capital gains, only those subject to withholding and certain public grants are on that list. A gain from selling or swapping crypto is not. So with a salary and any crypto gain, that limit does not help you.

The general rule of the same article remains: you do not file if all your income together (work, capital, business and gains) is no more than €1,000 a year and your losses are below €500. Anyone who was self-employed (autónomo) for even one day in the year always files. Deadlines and how to file: tax return for foreign residents.

According to the AEAT Informador de Renta, in Renta 2025 sales and swaps went in the section «Ganancias y pérdidas patrimoniales / Monedas virtuales» (box 1804). Staking went in box 0027 and airdrops in box 304. Check the boxes in the program for the year you declare.

The crypto warning in Renta WEB

In the Renta 2025 campaign the AEAT placed 1,243,000 crypto warnings in taxpayers' tax data. According to its campaign presentation, those initial warnings only remind you that certain income has to be declared. The warning does not change what you have to declare. The rule is the usual one: holding or buying is not declared in the Renta; selling, swapping or receiving staking rewards is.

If you came to Spain with crypto

  • Bought before you came. If you are a tax resident in the year of the sale, you are taxed here on the whole gain, counted from the real purchase price. There is no step-up to the value on your arrival date. Losses from years when you were not a resident are not offset (DGT ruling V3203-23).
  • The year you move. Residence is decided for the whole calendar year, not from the day you arrive. With more than 183 days in Spain, you are a resident for that whole year, also for a sale made before you arrived.
  • No proof of the purchase price. The acquisition value is the real amount and you are the one who proves it (art. 35 LIRPF). In addition, the tax office can treat assets that do not match what you have declared as an unjustified gain, in the general base, unless you prove you have owned them since before the four-year limitation period (art. 39 LIRPF).
  • Ukraine. The 1985 treaty with the USSR, which Spain applies to Ukraine, leaves the gain on other property to the country where the seller resides (art. 11.6), that is, to Spain if you are a tax resident here.

If you are under the impatriates regime (Beckham law)

Under this regime you are taxed on income obtained in Spain; the exception is work income, which is taxed in full. The DGT treats crypto as located in Spain when the keys are held by you or by a custodian resident here: its sale is taxed at 19% to 30% (art. 93.2.e LIRPF). If the keys are held by a custodian abroad, that gain is not treated as obtained in Spain and is not taxed here while you are under the regime (ruling V1662-23). More on the regime: Beckham regime and Modelo 149.

What the tax office knows

Platforms and custodians resident in Spain report their clients' balances (Modelo 172) and transactions (Modelo 173) to the AEAT every year (arts. 39 bis and 39 ter of RD 1065/2007).

Platforms in other EU countries report 2026 data to the tax administration of their country. That administration sends it to each user's country of residence within nine months after the end of the year. Each country applies this rule through its own law. For 2026 data, the period ends on 30 September 2027 (art. 8 bis quinquies of Directive 2011/16/EU, added by Directive (EU) 2023/2226). The bill adapting these rules for Spanish platforms lapsed on 6 October 2026, when parliament was dissolved. Modelos 172 and 173 remain in force.

The duty to declare does not depend on the tax office already having the data.

Modelo 721: crypto on platforms abroad

It is an information return, not a tax. You file it if on 31 December the total of your crypto with platforms or custodians abroad is above €50,000 (art. 42 quater of RD 1065/2007). In later years you file again only if that total rises by more than €20,000 compared with your last return. The filing period runs from 1 January to 31 March of the following year: for 2026, until 31 March 2027. Coins in a wallet whose keys you hold yourself are not reported, according to the AEAT frequently asked questions.

If you do not file on time, the fine is €20 per data item, with a minimum of €300 and a maximum of €20,000. If you file late on your own, before the AEAT asks you to, everything is halved: €10 per item, minimum €150 and maximum €10,000 (art. 198 of the General Tax Law). Procedure: Modelo 721 on the AEAT website. Accounts, securities and real estate go separately: Modelo 720. How to fill in the 721 step by step: Modelo 721 for crypto.

Wealth Tax (Impuesto sobre el Patrimonio)

Crypto counts at its market value on 31 December. The general exempt minimum is €700,000, unless your region has set a different one (art. 28 of Law 19/1991). Ask your region's tax office which minimum and which tax rebates (bonificaciones) apply.

What to keep

  • The full history of purchases, sales and swaps from each platform, downloaded before you close the account.
  • Proof of the price and date of each purchase, including those made before you came to Spain.
  • The exchange rate to euros for each date and your calculation.
  • Receipts for transfers between your bank and the platform. The bank can ask you where the money comes from under the anti-money-laundering rules (Law 10/2010).

Free calculation: the crypto calculator for the Renta applies FIFO to your trade history and works out the gain or loss for each year. Your file never leaves your browser.

If your case does not fit

The DGT has ruled on staking, lending and airdrops. For handing over and getting back liquidity pool tokens, buying back after selling at a loss, or the Modelo 721 under the impatriates regime, ask for a ruling on your case: how to request a binding ruling from the DGT.

Official source: AEAT, Renta 2025 manual, crypto assets, Law 35/2006 on IRPF, BOE, RD 1065/2007, BOE and DGT rulings.

Informational only, not tax or investment advice; check the official source and a professional for your specific case. Figures and rules checked on 15 November 2026.

Frequently asked questions

A crypto warning shows up in Renta WEB and I sold nothing: do I have to declare?

Not for holding or buying crypto: the AEAT states that merely holding or buying is not included in the return. The initial warnings in your tax data only remind you that certain income has to be declared. If you sold, swapped one coin for another or received staking rewards that year, you do declare it.

Do I have to declare crypto if I made a small gain or a loss?

If you have a salary and also a crypto gain, the €22,000 limit does not exempt you. It only applies when all your income is on the list in art. 96.2 of the income tax law, and that gain is not. The general rule remains: you do not file if all your income together is no more than €1,000 a year and your losses are below €500. If you want to offset a loss in later years, file the return for the year of the loss even if you are not required to (DGT ruling V3725-16).

Spain crypto tax: how much do you pay?

A gain from selling or swapping crypto goes into the savings base: 19% up to €6,000; 21% up to €50,000; 23% up to €200,000; 27% up to €300,000; 30% above that (arts. 66 and 76 of the income tax law). With a €10,000 gain in the year, no other savings income and a salary that already covers the personal minimum (€5,550), that is €1,980.

Is swapping bitcoin for USDT taxed in Spain?

Yes. Swapping one crypto asset for a different one is an exchange (permuta) and produces a capital gain or loss at that moment, even if you never touch euros (art. 37.1.h of the income tax law and the AEAT Renta manual). The gain is the higher of two market values, that of the coin you hand over or that of the coin you receive, minus what the coin you hand over cost you.

Does the Spanish tax office know what crypto I hold?

Platforms resident in Spain report balances and transactions to the AEAT every year (Modelos 172 and 173). Platforms in other EU countries report 2026 data to their own tax administration, which sends it to the user's country of residence within nine months after the end of the year (Directive 2023/2226). The duty to declare does not depend on the tax office already knowing.

What about crypto I bought before moving to Spain?

If you are a tax resident in the year you sell, you pay tax in Spain on the whole gain, counted from the real purchase price in euros at the exchange rate of the purchase date. There is no step-up to the value on your arrival date, and losses from years when you were not a resident are not offset (DGT ruling V3203-23). Keep proof of the purchase price and date.

How are staking and airdrops taxed?

Staking is income from movable capital: it is valued at market price on the day you receive it and goes into the savings base, 19% to 30% (DGT V1766-22). An airdrop is a capital gain that does not come from a sale and goes into the general base, at the progressive scale of the rest of your income (DGT V0648-24).

Do I have to declare crypto I keep in my own wallet?

Not in the Modelo 721: according to the AEAT, coins whose keys you hold yourself are not reported. The 721 is for more than €50,000 on 31 December with platforms or custodians abroad. In the Renta, holding coins is not taxed; selling or swapping them is, wherever they are.

Official source: sede.agenciatributaria.gob.es

Order a guide or ask a question

Tell us which guide you need or your question — we’ll get it and reply on Telegram.

No spam. This is not individual legal advice.

General information, not individual legal advice. Check the official source and consult a professional for your case.

Want to keep up with changes for foreigners in Spain?

One email every Tuesday. Free gift: the «Arraigo in Spain: the 5 types» guide (PDF). No spam · privacy

Have a question about your case?

Describe your situation and your questions — we study them and reply in writing. The first look is free.

Leave my questions →

If you prefer, also directly to @spain_asesor on Telegram (the form is better).

Get the free guide

Guide «Arraigo in Spain: the 5 types» (PDF), instantly

No spam · privacy

or on Telegram
Get it on Telegram

Can’t find what you need? Message us on Telegram →