Crypto and Taxes in Spain: How Gains Are Reported

Crypto and Taxes in Spain: How Gains Are Reported

You sold some Bitcoin, swapped a few altcoins, maybe earned staking rewards. Now the Spanish Renta campaign is coming and you have no idea which of those moves count as taxable events or where they go on the return. This guide explains how Spain treats crypto gains, which forms apply, and how residency decides whether Spain taxes them at all.

Disclosure: This post may contain affiliate links. We may earn a commission at no extra cost to you if you make a purchase through these links. Read full disclosure.

Why Crypto Taxes in Spain Feel So Confusing for Expats

In my first year here, I spent an evening at a kitchen table in Valencia with three other foreigners and a pile of exchange CSV exports. None of us agreed on what we owed. One friend was sure crypto-to-crypto swaps were invisible to the tax office. Another thought nothing was taxable until the money reached a Spanish bank. Both were wrong, and the misunderstanding cost them real stress later.

If you feel lost, you are not alone. The Spanish system makes sense once you see its logic, but nobody explains that logic in plain English when you arrive.

The Gap Between How Crypto Works and How Spanish Tax Law Thinks

Crypto moves fast. People trade across many platforms and jump between tokens in minutes. Spanish tax law sees most of this through older concepts written for shares and property. The key one is the ganancia patrimonial, a capital gain or loss that arises when the value of something you own changes and you dispose of it.

So Spain does not ask “did you cash out to euros?” It asks “did you dispose of an asset, and was its value at disposal different from what you paid?” That shift explains most of the surprises: swapping ETH for SOL is a disposal of ETH, even though no euros touched your bank account.

For a broad picture before the detail, see Are Crypto Gains Taxed in Spain? High‑Level Overview, which covers the essentials in a few minutes.

The Emotional Side Nobody Mentions

The worry is often worse than the tax itself. Many expats hold a few years of messy history: a wallet from a defunct exchange, trades from a past life, coins sent between apps. The fear of getting it “wrong” leads people to avoid the subject until it becomes urgent.

My advice from experience: start by gathering records, not by calculating tax. Once your history is in one place, the Spanish rules are fairly mechanical. Uncertainty is what keeps people up at night, not arithmetic.

What This Guide Will and Will Not Do

This guide explains the structure: which events count, how gains are measured, how residency affects things, and which forms are involved. It deliberately does not quote tax rates, thresholds or deadlines, because those are set in the annual budget and regional rules and can change. Always check the current figures on the Agencia Tributaria (AEAT) website or with a qualified advisor before filing.

Does Spain Even Have the Right to Tax Your Crypto? Residency First

Before you worry about cost basis, settle the bigger question: are you a Spanish tax resident for the year in question? Residents are taxed on worldwide income, crypto included. Non-residents generally pay Spanish tax only on Spanish-source income, and crypto gains are usually not treated that way.

The Two Tests That Decide Residency

Spain decides tax residency per calendar year. You are resident if either of these applies:

  1. You spend more than 183 days in Spain during that calendar year.
  2. Your main base of activities or economic interests is in Spain. This is presumed if your non-separated spouse and dependent minor children live in Spain.

Meet either test and you are resident for the whole calendar year. Spain has no “split year”: you are not resident from your arrival date onward, you are resident for the entire year or not at all.

That all-or-nothing approach is the most important idea in this article. Our guide Tax Residency in Spain: 183-Day Rule and Practical Tests goes further into how days are counted and which evidence matters.

A Worked Example: The August Arrival With a February Gain

This is where many people trip up, so let’s take it slowly.

Imagine Lena, a German software developer. In February she sells a chunk of Bitcoin at a large profit while living in Berlin. In August she moves to Málaga and stays through the end of the year.

From the start of August to 31 December, Lena can spend at most 153 days in Spain. That is fewer than 183, so the day-count test does not make her resident that year. If she has no other Spanish ties, she is not a Spanish tax resident for that calendar year, and her February gain does not belong on a Spanish return. Germany, where she lived when she sold, remains the relevant country for that gain under its own rules.

Now change one detail. Suppose Lena’s husband and their young daughter moved to Málaga the previous year and have lived there ever since, while Lena kept working in Berlin. The presumption that her main base of economic interests is in Spain could then make her a Spanish resident for that calendar year, despite fewer than 183 days. In that case she is resident for the whole year, and her February Bitcoin gain falls into her Spanish return for that year, even though she sold while still living in Berlin, before her move to Málaga.

So the August move by itself does not make her resident. Only the economic-interests or family test could. If you arrived partway through a year, read How to File Taxes in Spain If You Arrived Mid-Year for the filing side.

When Two Countries Both Claim You

Sometimes your old country also considers you resident for the same year. This is where double tax treaties come in, with tie-breaker rules based on permanent home, centre of vital interests, habitual abode and nationality. If both countries could tax the same crypto gain, the treaty and any foreign tax credit decide who goes first and who gives relief.

Americans face an extra layer, because the United States taxes citizens wherever they live. A US citizen in Spain with crypto may report the same disposal on both a Spanish and a US return. Specialist firms such as Taxes for Expats focus on this kind of dual filing, and our guide Crypto Taxes for Americans in Spain: Two Regimes, One Portfolio walks through the overlap.

Which Crypto Events Are Taxable in Spain

Once you know you are resident, the next question is which transactions create something reportable. Holding is not taxable. Most kinds of letting go of a coin are.

Disposals That Create a Capital Gain or Loss

These are the events Spanish practice generally treats as disposals producing a ganancia or pérdida patrimonial:

  1. Selling crypto for euros or any other fiat currency.
  2. Swapping one crypto for another, including stablecoins.
  3. Paying for goods or services with crypto.
  4. Giving crypto away, which can create a gain for the giver and also involve gift tax for the recipient.

Swaps catch the most people out. If you bought ETH cheaply and later swapped it for a stablecoin when ETH had risen, you realised a gain at the moment of the swap, measured in euros at that time. Never cashing out to a bank does not change this.

Moving coins between your own wallets or exchanges is generally not a disposal, because ownership does not change. Keep records of those transfers anyway, so you can prove the coins arriving in one place are the same ones that left another.

Staking, Lending, Mining and Airdrops

Not all crypto income comes from selling. Earning new tokens is usually treated differently from selling existing ones, and here the rules are less settled.

The tax authority has generally treated rewards from staking and lending as investment income, valued in euros when you receive them. Mining done in an organised, business-like way may count as an economic activity, which brings in self-employment questions. Airdrops have been treated in some cases as a gain not arising from a transfer, which can place them in a different part of the return than ordinary trading gains.

The treatment can turn on the specific mechanics of a protocol, so if staking or mining makes up a meaningful share of your activity, get personalised advice. Whatever the category, the euro value at receipt usually becomes your cost basis when you later sell or swap those tokens.

Quick Reference Table: Events and Typical Treatment

Event Typical Spanish treatment Is it a disposal? Usual place on the return
Buying crypto with euros Not taxable on its own No Not reported as income, but record cost basis
Selling crypto for fiat Capital gain or loss Yes Savings base, virtual currency section
Crypto-to-crypto swap Capital gain or loss on the coin given up Yes Savings base, virtual currency section
Paying for goods with crypto Capital gain or loss Yes Savings base, virtual currency section
Transfer between your own wallets Not taxable No Not reported as income
Staking or lending rewards Generally investment income at receipt Not a disposal, but income Savings base, investment income
Organised mining May be an economic activity Not a disposal, but income General base, economic activity
Airdrops Treatment varies, often a gain not from a transfer Not a disposal, but income Depends on classification

Treat this table as orientation, not a final ruling. Edge cases such as wrapped tokens, liquidity pools and NFTs can be classified differently.

How Gains Are Calculated: Cost Basis, FIFO and Losses

This is the technical heart of crypto taxes in Spain. Spend your energy here, because a solid calculation makes the actual filing easy.

The FIFO Method Explained With a Real-Life Scenario

Spain uses FIFO, first in, first out, for homogeneous assets. When you sell part of your holding of a coin, the units you sell are deemed to be the oldest ones you bought.

Picture Marco, an Italian in Barcelona, who bought Bitcoin three times: a small amount years ago at a low price, more later at a higher price, and a final batch near a market peak. Later he sells part of his holding. Under FIFO, that sale first uses up the cheap early coins. His gain is large, because he is matched against his lowest-cost purchases, even if he felt he was “selling the expensive ones.”

You cannot pick the lot that gives the nicest result. Software showing “highest in, first out” or “specific identification” is using rules that do not match Spanish practice. Make sure any crypto tax tool is set to FIFO and euros.

Converting Everything Into Euros

Every acquisition and disposal must be valued in euros at the time it happened. For a crypto-to-crypto swap, you need the euro value of the coin given up and of the coin received at that moment.

Fees can usually be included in the calculation: purchase fees add to your cost, selling fees reduce your proceeds. Network fees paid in crypto are technically small disposals too, which is one reason tax software is so helpful for active traders.

If your history involves fiat other than euros, convert those amounts as well. Expats who move money between currencies with a service like Wise often find its statements a handy, clean record of when fiat entered or left their accounts and at what exchange rate. That is useful supporting evidence, even though it does not record the crypto trades themselves.

Using Losses Wisely

Losses are not just bad news, they are useful. A capital loss on crypto can generally be offset against capital gains in the savings base in the same year. Any unused excess can be carried forward for a limited number of years, under rules that also allow some offsetting against other savings income.

Two cautions. First, a loss only counts once realised by a disposal; a coin that fell in value but is still in your wallet produces nothing to deduct. Second, special rules can restrict losses when you dispose of an asset and reacquire the same asset shortly before or after. How these anti-avoidance rules apply to crypto is a question to raise with an advisor before you plan any year-end loss harvesting.

Where Crypto Goes on Your Spanish Paperwork

Now for the forms. Getting crypto into the right place on the right document matters as much as getting the numbers right.

The Annual Income Tax Return, Modelo 100

Residents report crypto gains, losses and income on the annual personal income tax return, known as the Renta or Modelo 100. Gains from virtual currencies have their own section within capital gains from transfers, separate from shares and funds. Each disposal, or each grouped category depending on the form’s layout, is entered with acquisition value, transmission value and the resulting gain or loss.

Most expats file online through the AEAT’s Renta Web service. You will need a way to identify yourself, typically Cl@ve or a digital certificate; see Cl@ve and Digital Certificate: Accessing AEAT (Tax Agency) Online if you have not set one up. For your first filing, our step-by-step guide How to File a Spanish Tax Return (Renta) as a New Resident is a good companion.

Do not rely on the pre-filled draft. The tax office receives some information from Spanish platforms, but the draft rarely captures foreign exchanges, DeFi activity or self-custody wallets accurately. You are responsible for completing it.

Informative Returns: Modelo 721, Modelo 720 and Wealth Tax

Beyond the income tax return, Spain has informative returns that disclose assets rather than calculate tax.

Modelo 721 is the informative declaration for virtual currencies held with custodians or providers located outside Spain, above a value threshold set by regulation. It is about holdings, not gains, so you may need to file it even in a year where you sold nothing. Full detail is in Modelo 721: Declaring Crypto Held Abroad as a Spanish Resident.

Modelo 720 is the older informative return for foreign bank accounts, securities and property. Crypto now has its own form, but many expats with crypto also hold foreign accounts and investments, so both may apply. See Modelo 720 and Foreign Asset Reporting: A Practical Overview.

Crypto also counts as an asset for wealth tax and the solidarity tax on large fortunes, where your total net assets exceed the applicable thresholds. Regional rules vary considerably here. Read Wealth Tax and Solidarity Tax in Spain: Overview for Foreigners if your portfolio is substantial.

Forms at a Glance

Form What it covers Calculates tax? Who typically needs it
Modelo 100 Annual personal income tax, including crypto gains, losses and income Yes Spanish tax residents with reportable income
Modelo 721 Crypto held with providers outside Spain No, informative only Residents whose foreign-held crypto exceeds the regulatory threshold
Modelo 720 Foreign bank accounts, securities and property No, informative only Residents whose foreign assets exceed the regulatory thresholds
Wealth tax return Total net assets, including crypto Yes Residents whose net assets exceed the applicable threshold, depending on region

Thresholds, filing windows and penalties for these forms are set by regulation and can change, so check the AEAT site each year rather than relying on what a friend did last year.

Records, Banks and Avoiding Trouble With the Tax Office

The final piece is practical: keep the paper trail that lets you prove everything, and understand how visible crypto already is to Spanish authorities.

What the Tax Office Can Already See

Assuming that crypto is invisible to the tax office is risky. Spanish exchanges and custodians have reporting obligations, and EU-wide rules on crypto-asset service providers are expanding information exchange between member states. Banks also watch for large inflows.

That last point matters when you cash out. If you withdraw a large amount from an exchange into a bank account, whether a traditional Spanish bank or a digital bank like N26, expect questions about the source of funds. This is routine anti-money-laundering practice, not an accusation. Being able to hand over exchange statements, your original purchase records and your tax calculation quickly makes the process far smoother.

Building a Records System That Survives an Inquiry

The tax authority can review past years, so your records need to last. Here is the system I wish I had built from day one:

  1. Export full transaction histories from every exchange you have ever used, including closed accounts, and store them in one folder.
  2. Keep a list of your self-custody wallet addresses, with notes on which are yours.
  3. Record every transfer between your own wallets so coins can be traced from purchase to disposal.
  4. Save euro valuations for each transaction, either from tax software or from a consistent price source.
  5. Keep bank statements showing fiat going into and coming out of exchanges.
  6. Store a copy of each year’s filed return alongside the calculation behind it.

If an exchange you once used has shut down, write down what you remember and keep any emails or screenshots. Partial evidence is far better than none.

When to Bring in a Professional

Plenty of people with a few simple buys and sales handle crypto reporting themselves with good software. Get help if any of these apply: heavy DeFi use, liquidity pools, NFTs, mining, large gains, a residency situation that is not clear-cut, US citizenship, or a special regime such as the one described in Beckham Law Explained: Spain’s Special Expat Tax Regime.

Look for an advisor who has handled crypto before. A gestor who mainly processes payroll may not know FIFO across multiple exchanges. Our guide Choosing a Gestor or Tax Advisor in Spain: What to Look For covers questions to ask and red flags. For a second walkthrough of how these gains are taxed, see How Are Crypto Gains Taxed for Residents of Spain?.

Crypto taxes in Spain look intimidating, but the logic holds together: work out residency for the whole calendar year, identify the disposals, apply FIFO in euros, use your losses, and report on the right forms. Do the record-keeping now, and the rest stops feeling like a monster under the bed.

Disclaimer

This article is for general informational purposes only and does not constitute professional advice. Laws, prices and regulations vary by location and change over time. Consult a qualified professional for guidance on your specific situation.

✅ Before You Go: Spain Essentials Checklist
Did you sort out the basics? Make sure you're ready for your new life in Spain.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *