Is crypto mining legal in Spain?

Legal
Regulator
Agencia Tributaria
As of
June 2026
Last reviewed
5 June 2026

This is general information, not legal, tax, or financial advice. Crypto rules change often. Verify the current position with a qualified local professional and the official regulator, the CNMV and the Agencia Tributaria, before acting.

Quick answer

Crypto mining is legal in Spain. As of June 2026 there is no ban, but mining done in a regular, organised way is generally treated as an economic activity, which means registering as self employed and declaring the mined coins as income in the general tax base. The Agencia Tributaria is the tax authority, and mining itself is not a service the CNMV authorises.

Is crypto mining legal in Spain?

Yes. As of June 2026 there is no law in Spain that bans crypto mining, and operating mining hardware is lawful. Mining is not a regulated financial service in itself, so the CNMV does not authorise miners the way it authorises exchanges. What matters in practice is how the activity is taxed and the ordinary obligations that come with running it, such as electricity contracts and, where relevant, business registration.

Mining sits outside the core of MiCA, which regulates the issuance and the service of crypto assets rather than the act of validating a network. That said, if you mine and then sell or exchange the coins, the disposal is treated like any other crypto disposal for tax, and if you provide mining related services to others you may bring yourself within other rules. Confirm your specific situation, because the boundary between a hobby and a business can be unclear.

How mining is taxed in Spain

As of June 2026 the Agencia Tributaria, the AEAT, generally treats mining carried out in a regular and organised way as an economic activity rather than passive investment. In practice that means registering as self employed, an autonomo, under the appropriate activity heading, and declaring the activity. The coins you mine are valued in euro at the moment you receive them and that value counts as income from the activity, taxed in the general base at progressive rates that can reach about 47 percent, separate from the savings base used for ordinary capital gains.

When you later sell or swap the coins you mined, any change in value between receipt and disposal is a separate capital gain or loss in the savings base. Genuinely occasional or trivial mining may fall outside the economic activity treatment, but where the line sits depends on scale, regularity, and organisation, and the position is not always clear cut. On indirect tax, block rewards are widely understood to fall outside value added tax because there is no identifiable customer, following the reasoning the European Court of Justice used for crypto in the Hedqvist case, but this is a contested area. This is general tax information, not tax advice. Verify your obligations with the Agencia Tributaria or a qualified adviser before filing.

How to act legally

Compare available exchanges in Spain

If you sell mined coins, doing it through an authorised platform keeps clear euro records for tax. These platforms serve Spain residents under the MiCA framework as of June 2026. We list a platform here only where it is genuinely available to this country.

KrakenCoinbaseBitpandaBit2Me
Browse all exchange profiles

Regulator and sources

Rules change. How Spain taxes mining depends on whether it is a hobby or an organised activity, and the boundary is not always clear. The positions here carry an as of date of June 2026. Confirm your registration and tax obligations with the Agencia Tributaria or a qualified adviser before acting.

Frequently asked questions

Is crypto mining legal in Spain?
Yes. As of June 2026 there is no law banning crypto mining in Spain. It is lawful to run mining hardware, subject to ordinary obligations such as electricity contracts and, where the activity is organised, business registration and tax.
Do I have to register as self employed to mine in Spain?
As of June 2026 the Agencia Tributaria generally treats regular, organised mining as an economic activity, which means registering as an autonomo and declaring it. Genuinely occasional mining may fall outside this, but the boundary depends on scale and regularity, so verify your case.
How are mined coins taxed in Spain?
As of June 2026 coins you mine are valued in euro when received and that value is income from the activity, taxed in the general base. A later sale or swap is a separate capital gain or loss in the savings base. This is general information, not tax advice.
Does the CNMV regulate crypto mining?
No. Mining a network is not in itself a crypto asset service, so the CNMV does not authorise miners. The CNMV authorises platforms that provide services such as exchange and custody under MiCA.
Is mining subject to VAT in Spain?
Block rewards are widely understood to fall outside value added tax because there is no identifiable customer, drawing on the European Court of Justice reasoning in the Hedqvist case, but this is a contested area. Confirm with the Agencia Tributaria or an adviser.
Spain topics
RegulationTaxBest exchangesBuy bitcoinMiningStakingStablecoinsNFTsDeFiPeer to peerWallets
Available exchanges
Kraken in SpainCoinbase in SpainBitpanda in SpainBit2Me in Spain
Related countries
PortugalFranceItalySpain hub

Subscribe to The Compliance Ledger

A short weekly note when a crypto rule changes in the markets you follow. Information, not advice.