Is crypto mining legal in Spain?
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.
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.
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.
Regulator and sources
- Agencia Tributaria (AEAT). The Spanish tax authority that determines whether mining is an economic activity, sets how mined coins and later disposals are taxed, and administers self employed registration.
- CNMV. The financial markets authority for crypto asset services under MiCA in Spain. Mining is not in itself a service it authorises, but selling mined coins through a platform involves an authorised provider.
- Court of Justice of the European Union. Its Hedqvist judgment shaped how crypto transactions are treated for value added tax across the European Union, which informs the general understanding of mining and VAT.
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.