CryptaTax
🌐 EN
EnglishENDeutschDEEspañolESFrançaisFRItalianoIT日本語JA한국어KONederlandsNLPolskiPLPortuguêsPT
Sign In Get Started Free

Crypto Capital Gains Tax in Spain: How to Calculate and File

If you hold or trade cryptocurrency in Spain, you have a legal obligation to declare your gains to the Agencia Tributaria. Many people are still unsure whether their crypto activity counts as taxable, and even those who know it does are often uncertain about which rates apply, which transactions trigger a liability, and how to prepare an accurate crypto tax report. The answer to most of that uncertainty starts in the same place: understanding how Spanish capital gains tax works for crypto, and using a reliable crypto tax calculator to turn your transaction history into a defensible figure before the filing deadline arrives. This guide walks through every part of that process in plain terms.

Does Spain Tax Cryptocurrency Gains?

Yes, Spain taxes cryptocurrency as a capital asset. The Agencia Tributaria, Spain's tax authority, has consistently treated crypto disposals as giving rise to capital gains or losses that must be included in your annual income tax return, filed through Modelo 100. A disposal happens any time you sell crypto for euros or another fiat currency, exchange one cryptocurrency for another, use crypto to pay for goods or services, or transfer crypto in a way that triggers a change of beneficial ownership. Simply holding crypto, sometimes called HODLing, does not create a taxable event on its own.

This matters because a lot of people assume that only cashing out into euros counts. Under Spanish rules, swapping Bitcoin for Ethereum is itself a taxable event at the moment of the swap. The gain or loss is calculated by comparing what you received against what you originally paid for the Bitcoin you sold. If you have been swapping tokens frequently without tracking each trade, your actual tax liability may be very different from what you expect.

Spain also requires residents who hold crypto on foreign platforms above a certain threshold to file Modelo 720, the overseas asset declaration. Failure to declare can carry significant penalties, so it is worth checking both obligations separately.

Spanish Capital Gains Tax Rates for Crypto

Crypto gains in Spain fall under the savings tax base, known as the base del ahorro. This is a separate rate schedule from general income, and it uses a tiered structure. The table below shows the current bands that apply to capital gains, including those from cryptocurrency disposals.

Taxable Gain (EUR) Spanish State Rate Approximate Combined Rate
Up to 6,000 19% 19%
6,001 to 50,000 21% 21%
50,001 to 200,000 23% 23%
200,001 to 300,000 27% 27%
Over 300,000 28% 28%

The combined rate includes both the state portion and the autonomous community portion, which can vary slightly by region. The figures above represent the general state-level rates that apply across Spain. If you live in Catalonia, the Basque Country, or another community with its own scale, your total rate may differ slightly at higher bands. The key point is that crypto gains are not taxed at a flat rate. Your total gain is sliced across the bands, so only the portion above each threshold is taxed at the higher rate.

How to Calculate Crypto Taxes Using the FIFO Method

Spain requires taxpayers to use the FIFO method, which stands for First In, First Out, when calculating crypto gains. This means that when you dispose of a cryptocurrency, the tax authority treats you as selling the oldest coins you acquired first. You cannot choose to sell your most expensive coins first to minimise a gain. The cost basis applied to each disposal is determined by the purchase price of your earliest-acquired units of that asset.

To calculate crypto taxes correctly under FIFO, you need a complete record of every acquisition, including the date, the amount, and the price you paid in euros at the time. You then match each disposal against your oldest holdings in order. The gain or loss on each disposal is the difference between the disposal proceeds and the FIFO cost basis for that specific lot.

Doing this manually across dozens or hundreds of trades is where most people run into trouble. A single DeFi wallet active for a year can generate thousands of individual transactions. A good crypto tax calculator handles the FIFO matching automatically once you import your transaction data, and it produces a gain and loss summary ready for Modelo 100.

Step What You Need Why It Matters
1. Gather all transaction history CSV exports or API connections from all exchanges and wallets Missing transactions lead to incorrect cost basis and overstated gains
2. Convert to EUR at acquisition and disposal Historical EUR price at each transaction date Spanish rules require EUR values; USD-denominated records must be converted
3. Apply FIFO matching Chronologically ordered acquisition records Spain mandates FIFO; using another method will produce an incorrect return
4. Separate trading gains from income Records of staking rewards, airdrops, mining income Income events are taxed differently under the general income base
5. Generate your crypto tax report Crypto tax software with Spanish rule support Your report must reconcile with the figures entered in Modelo 100

Which Crypto Events Are Taxable in Spain?

Not every interaction with a crypto asset is a taxable disposal, but more events qualify than most people realise. Taxable events in Spain include selling crypto for fiat, trading one crypto for another, spending crypto on purchases, and receiving crypto as payment for services rendered. Each of these creates a gain or loss that must be reported.

Staking rewards and mining income are treated differently. They are generally brought into the general income base at the fair market value in euros on the date they are received, not the savings base. This means they can be taxed at your marginal income rate rather than the capital gains rates shown above. When you later sell those staking rewards, any further gain from the receipt price to the sale price falls under capital gains rules again.

Airdrops and hard fork tokens also carry a value at receipt in most interpretations under Spanish guidance, though the precise treatment can depend on the specific circumstances. Transfers between your own wallets that you can demonstrate are yours alone should not be taxable events, but you need clear evidence that both wallets belong to you to support that position if questioned.

Filing Deadlines and the Modelo 100 Return

Crypto gains are reported as part of your annual personal income tax return in Spain, filed through Modelo 100. The standard filing window for income earned in the previous calendar year runs from April to June of the following year. Trading activity from January to December of one year is therefore reported in the Modelo 100 submitted the following spring.

Spain also offers an early direct debit payment option if you owe tax, splitting the liability across two instalments. If you file late, penalties and interest apply from the deadline date. The Agencia Tributaria has been increasingly active in cross-referencing crypto exchange data with tax returns, and a number of Spanish crypto holders have already received information requests asking them to explain discrepancies.

Knowing how to file crypto taxes in Spain is not just about accuracy. It is also about having documentation that supports your figures if you are ever asked. A properly generated crypto tax report from reliable crypto tax software gives you exactly that: a transaction-by-transaction audit trail with FIFO matching, EUR valuations, and a net gain figure that ties directly to your Modelo 100 entry.

Crypto Losses and How They Offset Gains

One of the most valuable aspects of proper record-keeping is that losses count too. If some of your trades resulted in losses, those can be offset against gains from other crypto disposals in the same tax year. If your losses exceed your gains for the year, Spain allows you to carry forward the net loss and offset it against gains in the following four tax years.

This makes accurate loss tracking just as important as gain tracking. If you do not record your losing trades correctly, you may end up overpaying tax by ignoring offsets you were entitled to claim. Using a crypto capital gains calculator that imports all trades, not just the profitable ones, ensures that your net position is calculated correctly rather than just your gross gains.

Illustrative Scenario

To illustrate how this applies in practice, consider the following scenario:

Carlos is a freelance graphic designer based in Madrid. During the previous tax year, he bought and sold Bitcoin and Ethereum across two exchanges and also received a small amount of staking rewards from a DeFi protocol. He had never formally tracked his crypto activity and assumed that because he had not withdrawn euros to his bank account, he had no tax liability.

When he finally sat down to review his trades ahead of the Modelo 100 deadline, he discovered he had made over forty individual transactions across the year. Several were crypto-to-crypto swaps he had not considered taxable. He used CryptaTax to import his transaction history via CSV, and the platform applied FIFO matching automatically, converted all values to EUR using historical rates, and separated his staking income from his capital gains. The resulting crypto tax report showed a net capital gain and a modest staking income figure. Carlos was able to enter both into his Modelo 100 with confidence, knowing the figures were defensible and his loss carry-forward from a previous year had been correctly applied to reduce his liability.

Frequently Asked Questions

Do I need to declare crypto if I only made a small gain in Spain?

Yes. Spain does not have a blanket de minimis exemption for small crypto gains. Any gain from a crypto disposal must be included in your Modelo 100. Even if the amount is small, failing to declare it can trigger penalties if the Agencia Tributaria identifies the transaction through exchange reporting.

Is crypto-to-crypto trading taxable in Spain?

Yes. Swapping one cryptocurrency for another is treated as a disposal of the first asset under Spanish tax rules. The gain or loss is calculated at the moment of the swap, based on the euro value of the asset you gave up compared to its original cost basis.

What is the best way to calculate crypto taxes for a Spanish return?

The most reliable approach is to use a crypto tax calculator that supports Spanish FIFO rules and can handle EUR conversions automatically. You import your full transaction history from all exchanges and wallets, the software applies the correct cost basis methodology, and you get a crypto tax report ready to transfer to Modelo 100.

What happens if I have losses from crypto trading in Spain?

Capital losses from crypto can be offset against capital gains from crypto or other assets in the same tax year. If net losses remain after offsetting, you can carry them forward for up to four years to reduce future gains. Accurate loss records are essential to claiming this relief correctly.

Do staking rewards count as capital gains in Spain?

No. Staking rewards are generally treated as income under the general tax base in Spain, meaning they are taxed at your marginal income rate when received. When you later sell those tokens, any additional gain from the value at receipt is then subject to capital gains treatment under the savings base.

What is Modelo 720 and does it apply to crypto?

Modelo 720 is a declaration of overseas assets held above certain thresholds. Spanish tax residents who hold cryptocurrency on foreign exchanges may be required to file this form. It is a separate obligation from Modelo 100, and the rules around which crypto holdings trigger it are subject to ongoing regulatory development.

How far back can the Agencia Tributaria investigate undeclared crypto gains?

The general statute of limitations for tax inspection in Spain is four years from the tax filing deadline for the year in question. However, if the authority considers the undeclared amount to constitute tax fraud, longer periods can apply. This makes catching up on past years sooner rather than later a sensible approach.

Can I use crypto tax software to generate a report accepted by Spanish authorities?

Crypto tax software generates a transaction-level report with cost basis calculations, gain and loss summaries, and EUR valuations. This report supports the figures you enter into Modelo 100 and provides documentation if the Agencia Tributaria queries your return. The software itself does not file directly, but the output it produces is what you or your accountant use to complete the filing accurately.

Source: CryptaTax

FAQ

Do I need to declare crypto if I only made a small gain in Spain?

Yes. Spain does not have a blanket de minimis exemption for small crypto gains. Any gain from a crypto disposal must be included in your Modelo 100. Even if the amount is small, failing to declare it can trigger penalties if the Agencia Tributaria identifies the transaction through exchange reporting.

Is crypto-to-crypto trading taxable in Spain?

Yes. Swapping one cryptocurrency for another is treated as a disposal of the first asset under Spanish tax rules. The gain or loss is calculated at the moment of the swap, based on the euro value of the asset you gave up compared to its original cost basis.

What is the best way to calculate crypto taxes for a Spanish return?

The most reliable approach is to use a crypto tax calculator that supports Spanish FIFO rules and can handle EUR conversions automatically. You import your full transaction history from all exchanges and wallets, the software applies the correct cost basis methodology, and you get a crypto tax report ready to transfer to Modelo 100.

What happens if I have losses from crypto trading in Spain?

Capital losses from crypto can be offset against capital gains from crypto or other assets in the same tax year. If net losses remain after offsetting, you can carry them forward for up to four years to reduce future gains. Accurate loss records are essential to claiming this relief correctly.

Do staking rewards count as capital gains in Spain?

No. Staking rewards are generally treated as income under the general tax base in Spain, meaning they are taxed at your marginal income rate when received. When you later sell those tokens, any additional gain from the value at receipt is then subject to capital gains treatment under the savings base.

What is Modelo 720 and does it apply to crypto?

Modelo 720 is a declaration of overseas assets held above certain thresholds. Spanish tax residents who hold cryptocurrency on foreign exchanges may be required to file this form. It is a separate obligation from Modelo 100, and the rules around which crypto holdings trigger it are subject to ongoing regulatory development.

How far back can the Agencia Tributaria investigate undeclared crypto gains?

The general statute of limitations for tax inspection in Spain is four years from the tax filing deadline for the year in question. However, if the authority considers the undeclared amount to constitute tax fraud, longer periods can apply. This makes catching up on past years sooner rather than later a sensible approach.

Can I use crypto tax software to generate a report accepted by Spanish authorities?

Crypto tax software generates a transaction-level report with cost basis calculations, gain and loss summaries, and EUR valuations. This report supports the figures you enter into Modelo 100 and provides documentation if the Agencia Tributaria queries your return. The software itself does not file directly, but the output it produces is what you or your accountant use to complete the filing accurately.