Back to blog
Taxation & Investment

Mining crypto and the Spanish tax agency: how mining is taxed and what your obligations are

Is crypto mining legal in Spain and how does the tax agency see it? When to register as self-employed, IAE heading, why there is no VAT, Modelo 130, deductible expenses and what happens when you sell what you mined.

E

Cleriontax Team

Crypto Tax and Data Analysis Experts

14 min read
Updated: 11/13/2026
Cryptocurrency MiningBitcoin MiningMining TaxationMining IAESelf-Employed CryptoAEATEconomic ActivityForm 036Form 130Activity IncomeSelf-Employment SchemeMining Deductions
Cryptocurrency mining in Spain: guide to taxation, IAE registration and self-employed obligations before the AEAT
30 de octubre de 2025
14 min de lectura
Fiscalidad e Inversión
Cryptocurrency MiningBitcoin MiningMining TaxationMining IAESelf-Employed CryptoAEATEconomic ActivityForm 036Form 130Activity IncomeSelf-Employment SchemeMining Deductions

Cryptocurrency mining has evolved from an activity accessible to enthusiasts into a professional industry that requires significant investment in hardware, electricity, and technical know-how.

Beyond the technological aspects, mining Bitcoin, Ethereum, and other cryptocurrencies has very specific tax implications in Spain that every miner should understand.

Unlike the buying and selling of cryptocurrencies—which is taxed as a capital gain—mining is considered an economic activity by the AEAT, which entails more complex tax obligations: IAE registration, self-employment (RETA) contributions, VAT, quarterly advance payments, and taxation in the IRPF general base.

In this complete guide we analyze every tax aspect of cryptocurrency mining in Spain in 2025, from the moment you start mining to the annual filing of your income.

Yes. Mining cryptocurrency is legal in Spain and you do not need any licence or financial authorisation to do it on your own account. What it does have is tax consequences: the Spanish tax agency treats mining as an economic activity, so rewards are taxed under income tax and, if you mine regularly, you will need to register in the business census and, usually, as self-employed.

If you set up an installation with many machines, also check the non-tax side: your contracted electrical power, noise and any activity licences your town hall requires.

What cryptocurrency mining is and why it is an economic activity

Concept of mining

Cryptocurrency mining is the process by which transactions are validated on blockchain networks using computing power, in exchange for rewards in the form of newly issued cryptocurrencies and transaction fees.

Main types of mining

1. Proof of Work (PoW) – Traditional mining:

  • Bitcoin (BTC)
  • Litecoin (LTC)
  • Dogecoin (DOGE)
  • Bitcoin Cash (BCH)
  • Monero (XMR)

Requires specialized hardware (ASICs or powerful GPUs) and consumes large amounts of electricity.

2. Pool Mining (group mining):

Instead of solo mining, miners join pools where they share computing power and split rewards proportionally.

Major pools:

  • Foundry USA Pool
  • AntPool
  • F2Pool
  • Binance Pool
  • Slush Pool

3. Cloud Mining:

Renting mining power from specialized companies without owning hardware. Less profitable but with lower technical complexity.

AEAT’s position: mining as an economic activity

According to the Dirección General de Tributos (among others, in binding ruling V3625-16), cryptocurrency mining is considered an economic activity when it is carried out:

  • ✅ Habitually: On an ongoing basis over time
  • ✅ In an organized manner: With your own production means (hardware, facilities)
  • ✅ For profit: With the aim of obtaining economic returns

This means that mining income is business income from an economic activity, not capital gains.

Key difference: If you buy Bitcoin, it is taxed as a capital gain (savings base). If you mine Bitcoin, it is taxed as an economic activity (general base with higher rates).

Professional miner vs. occasional miner: tax differences

Not all mining activity receives the same tax treatment. The AEAT distinguishes between professional and occasional mining.

Professional miner (economic activity)

Characteristics:

  • Continuous, habitual mining
  • Significant investment in equipment
  • Dedicated facilities (mining farm)
  • High and constant electricity consumption
  • Participation in professional mining pools

Tax obligations:

  • ✅ Registration in the IAE (Impuesto sobre Actividades Económicas – Economic Activities Tax)
  • ✅ Enrollment in RETA (Régimen Especial de Trabajadores Autónomos – Self-Employed Scheme)
  • ✅ No Modelo 303 or 390 if you only mine: mining is not subject to VAT
  • ✅ IRPF advance payments (Modelo 130)
  • ✅ Annual return in Modelo 100 (general base)
  • ✅ Income and expense ledgers

Occasional miner (individual)

Characteristics:

  • Sporadic or experimental mining
  • Home equipment (personal PC, gaming GPU)
  • No dedicated facilities
  • Secondary activity without professional profit motive

Tax obligations:

  • ✅ No need to register as self-employed
  • ✅ Mined cryptocurrencies are valued at €0 upon receipt
  • ✅ Taxation only upon sale (capital gain in the savings base)
  • ✅ Report in Modelo 100 if sold

When are you required to register as self-employed?

Guiding criteria:

IndicatorOccasional minerProfessional miner
Equipment1–2 home GPUsMultiple ASICs or a GPU farm
Initial investment< €3,000> €5,000
Monthly electricity use< 300 kWh extra> 500 kWh dedicated
Estimated monthly income< €300> €500
ContinuityIntermittentContinuous (24/7)
FacilitiesPersonal homeDedicated premises/warehouse

If you meet several “professional miner” criteria, you should register as self-employed.

How to register as a self-employed cryptocurrency miner

Census registration (Modelo 036 or 037)

You must register in the Business Census using Modelo 036 (full) or 037 (simplified).

Main fields to complete

IAE heading:

The Directorate General for Taxation classifies mining under heading 831.9, “Other financial services n.e.c.” (binding ruling V2831-21). You have to register under that heading, but if your turnover is below one million euros you are exempt from paying the tax.

VAT regime:

Mining is not subject to VAT and, if it is your only activity, you will not have to file VAT returns (explained below).

Economic activity description:

Description: “Cryptocurrency mining using blockchain technology”

Filing deadline

File Modelo 036/037 before starting the activity or, at the latest, in the month you begin operating.

Where to file?

  • Online: AEAT e-office (requires digital certificate or Cl@ve PIN)
  • In person: Tax Agency office with an appointment

Enroll in the Self-Employed Scheme (RETA)

At the same time as your census registration, you must enroll in RETA (Self-Employed Social Security Scheme).

Self-employed contributions

Since 2023, self-employed workers pay contributions based on their actual net income, on a scale of 15 brackets. The monthly contribution ranges from about €200 in the lowest bracket to more than €590 in the highest, and Social Security updates the table every year. You choose your bracket based on what you expect to earn and, when the year closes, it is adjusted to your actual income.

Flat rate for new self-employed:

If this is your first registration (or at least two years have passed since your last one, three if you already had the flat rate), you pay a reduced contribution of about €80 a month for the first 12 months. You can extend it for another 12 months if your net income does not exceed the national minimum wage.

Self-employed contributions are a deductible expense of the activity.

RETA enrollment process

Deadline: Within 30 calendar days from the start of activity.

Channels:

  • Online: Social Security e-office (Import@ss)
  • In person: Social Security office

Required documents:

  • DNI/NIE
  • Form TA.0521 (enrollment request)
  • Proof of census registration (Modelo 036)

IRPF taxation: income from an economic activity

Inclusion in the IRPF general base

Income from cryptocurrency mining is taxed in the IRPF general base, with progressive rates significantly higher than the savings base.

General base rates (state plus regional)

Taxable base bracketIndicative total rate
Up to €12,45019%
€12,450–€20,20024%
€20,200–€35,20030%
€35,200–€60,00037%
€60,000–€300,00045%
Over €300,00047%

Note: half of the rate is set by the state and the other half by your autonomous community, so actual rates vary somewhat depending on where you live. The ones in the table are the reference rates.

Comparison with savings base (crypto trading):

Savings baseTax rate
Up to €6,00019%
€6,000–€50,00021%
€50,000–€200,00023%
€200,000–€300,00027%
Over €300,00030%

As you can see, taxation as an economic activity is higher, especially for middle-to-upper incomes.

Calculating net income

Net income from mining is calculated as:

Net income = Total income − Deductible expenses

Valuing income

Income is determined by the market value of the cryptocurrencies mined at the time you receive them.

Example:

You mine 0.5 BTC on March 15, 2024:

  • BTC price that day: €55,000/BTC
  • Income to report: €27,500

That amount (€27,500) will also be your tax acquisition value when you sell those BTC in the future.

Valuation frequency

Option 1 (recommended): Value each reward individually when received

Option 2: Aggregate valuation (e.g., monthly), computing the monthly average value

Tip: Use tracking tools like Koinly or CryptoTax that automatically record each mining reward with its exact quote.

VAT on cryptocurrency mining: NOT subject to VAT

One tax advantage of mining is that it is NOT subject to VAT, according to the AEAT’s criteria.

Why is there no VAT on mining?

Under Spain’s VAT Law (Law 37/1992), for a transaction to be subject to VAT it must:

  1. Be a supply of goods or a provision of services
  2. Have a direct link between the service and the consideration
  3. Clearly identify supplier and recipient

In cryptocurrency mining:

  • ❌ There is no specific recipient of the service
  • ❌ There is no direct link between the validation work and a specific reward
  • ❌ The reward comes from the blockchain protocol, not from a client

Therefore, the activity is NOT subject to VAT.

Practical consequences

Advantages:

  • ✅ You do not charge VAT (21%) on your mining income
  • ✅ Administrative simplification

Disadvantages:

  • ❌ You cannot deduct input VAT on purchases related to the activity (electricity, equipment, etc.)

Do you have to file Modelo 303?

Not if mining is your only activity. Because mining does not make you a business for VAT purposes, you do not have to file the quarterly Modelo 303 or the annual Modelo 390 summary. If you also carry out another activity subject to VAT, you file for that activity as usual.

The VAT you pay on electricity, equipment or hosting cannot be recovered through any VAT return, but it is not lost either: it is part of the cost and is deducted as an expense in your income tax.

Subsequent sale of mined cryptocurrencies

When you sell the cryptocurrencies you mined:

  • If you sell to individuals (P2P): No VAT
  • If you sell via exchanges: No VAT (exempt operations)
  • The gain/loss compared to the acquisition value (value when mined) is taxed as a capital gain

Deductible expenses in mining activity

As an economic activity, you may deduct all expenses directly related to mining.

Main deductible expenses

1. Electricity (energy consumption)

The most important expense for miners.

  • ✅ 100% deductible if you have a separate meter for mining equipment
  • ✅ Deductible proportionally if it’s a mixed meter (home + mining)

Calculating the deductible percentage:

% Deductible = (Mining equipment consumption / Total consumption) × 100

Example:

  • Total monthly home consumption: 400 kWh
  • Estimated mining equipment consumption: 300 kWh
  • Deductible percentage: 75%
  • Monthly electricity bill: €150
  • Deductible expense: €112.50

2. Mining hardware

Specific equipment:

  • ASIC miners (Antminer, Whatsminer, etc.)
  • High-performance GPUs
  • Power supplies
  • Cooling systems (fans, air conditioning)
  • Racks and shelving

Tax treatment:

  • If the cost is < €300: Directly deductible expense
  • If the cost is > €300: Depreciation per official tables

Depreciation table:

AssetMax. coefficientMax. periodEstimated useful life
IT equipment25%8 years4–5 years
Technical installations10%20 years10 years

Depreciation example:

You purchase an Antminer S19 Pro for €5,000:

  • Annual depreciation: €5,000 × 25% = €1,250/year
  • You can deduct €1,250 per year for 4 years

3. Dedicated premises or space

If you mine from home (primary residence):

  • Deductible proportionally according to m² used exclusively
  • Maximum: 30% of expenses (AEAT commonly accepts 20–30%)

Deductible premises expenses:

  • Rent or depreciation (if owned)
  • Property tax (IBI)
  • Homeowners’ association fees
  • Home insurance (proportionally)
  • Repairs and maintenance

Example:

100 m² home, 15 m² room dedicated to mining:

  • Percentage: 15%
  • Monthly rent: €800
  • Deductible monthly expense: €120

4. Connectivity and communications

  • ✅ Internet (100% if exclusive, proportional if shared)
  • ✅ Business mobile phone
  • ✅ Servers and hosting (for pools or own nodes)

5. Software and subscriptions

  • ✅ Monitoring software licenses (Hive OS, MinerStat, Awesome Miner)
  • ✅ Mining pool subscriptions (fees)
  • ✅ Tax management tools (Koinly, CryptoTax)
  • ✅ Cloud services for analytics

6. Advisory and professional services

  • ✅ Tax advisory and accounting
  • ✅ Legal advice
  • ✅ Specialized technical services
  • ✅ Audits

7. Insurance

  • ✅ Equipment insurance against theft/damage
  • ✅ Liability insurance
  • ✅ Business interruption insurance

8. Financing

  • ✅ Interest on loans to acquire equipment
  • ✅ Bank fees related to the activity

9. Training

  • ✅ Courses on mining, blockchain, optimization
  • ✅ Technical books and specialist subscriptions
  • ✅ Attendance at industry conferences and events

Mandatory documentation

For each deductible expense you must keep:

  • ✅ Invoice or receipt (with supplier’s tax ID)
  • ✅ Proof of payment (transfer, bank statement)
  • ✅ Clear relation to the economic activity
  • ✅ Entry in the expense ledger

Quarterly obligations: Modelo 130

Modelo 130: IRPF advance payments

Modelo 130 is a quarterly self-assessment through which you prepay 20% of your profit to the Tax Agency.

Who must file it

You are required to file if:

  • You are self-employed under the direct assessment regime
  • More than 70% of your income does not bear IRPF withholding

(In crypto mining, 100% of your income has no withholding, so you are required.)

Calculating the advance payment

Advance payment = (Cumulative income − Cumulative expenses) × 20%

Minus:

  • Prior quarterly advances in the same year
  • Withholdings borne (if any)

Filing deadlines

QuarterPeriodFiling window
Q1Jan–Mar1–20 April
Q2Apr–Jun1–20 July
Q3Jul–Sep1–20 October
Q4Oct–Dec1–30 January of the following year

Practical example: first quarter

Using the figures from the practical case further below:

First-quarter activity:

  • Mined crypto (market value when received): €8,250
  • Deductible expenses for the quarter: €2,985 (a quarter of the annual expenses, self-employed contributions included)

Calculation:

Income for the quarter = €8,250 − €2,985 = €5,265
Advance payment (20%) = €1,053

You must pay €1,053 between 1 and 20 April. In the following quarters, the calculation is made on the year-to-date figures and the payments already made are deducted.

Filing

  • Online: AEAT e-office
  • Payment via bank direct debit or NRC (Número de Referencia Completo)

What about Modelo 303?

If you only mine, you do not have to file it: mining is not subject to VAT and does not make you a business for VAT purposes. The same goes for the annual Modelo 390. Your quarterly obligation is Modelo 130.

Annual return (Modelo 100): inclusion in your income tax

At the end of the fiscal year, you must include all mining income in your IRPF income tax return (Modelo 100).

Relevant section

Income from economic activities under direct assessment: in the economic activities section of the return, under the heading you registered with.

Information to include

Total annual income:

  • Sum of all cryptocurrencies mined, valued at market price at the time obtained

Deductible expenses by category:

  • Operating consumables (electricity)
  • Leases (premises)
  • Repairs and maintenance
  • Independent professional services (advisory)
  • Other external services (internet, software)
  • Depreciation
  • Other expenses

Net income:

Net income = Total income − Deductible expenses

Integration with other income

Net mining income is added to:

  • Employment income (if you are also an employee)
  • Other income from economic activities
  • Imputed income, etc.

Forming the IRPF general base on which progressive rates are applied.

Deducting advance payments

Quarterly payments (Modelo 130) are deducted from the final tax due:

Full-year example:

Annual net income: €45,000
Calculated IRPF (approximate): €11,300

Less:
- Advance payments (Modelo 130): €9,000
- Withholdings (if any): €0

= Amount to pay: €2,300

Filing window

From April to late June of the following year. The 2025 return was filed from 8 April to 30 June 2026; the exact dates of each filing season are set by the AEAT.

Taxation when you sell the cryptocurrencies you have mined

After mining cryptocurrencies and being taxed on their receipt, when you sell them you will face a second layer of taxation on the capital gain or loss.

Double taxation: mining + sale

Moment 1: When mining (economic activity)

  • Market value is taxed as business income
  • IRPF general base (up to 47%)

Moment 2: Upon sale (capital gain)

  • The difference between sale price and value at mining is taxed
  • IRPF savings base (19%–30%)

Full cycle example

March 15, 2024: You mine 0.5 BTC

  • BTC price: €55,000/BTC
  • Value mined: €27,500
  • 2024 taxation: €27,500 as business income
  • Estimated IRPF (30%): €8,250

Tax acquisition value for those 0.5 BTC: €27,500

October 20, 2024: You sell the 0.5 BTC

  • BTC price: €62,000/BTC
  • Sale price: €31,000
  • Acquisition value: €27,500
  • Capital gain: €3,500
  • IRPF (19%): €665

Total taxation:

  • For mining: €8,250
  • For sale: €665
  • Total: €8,915

Capital losses: offset opportunities

If you sell at a loss, you may offset it:

  • ✅ Against other capital gains in the same year
  • ✅ Against investment income (up to 25%)
  • ✅ Against prior-year losses (4 years)

Loss example:

You mine 1 ETH at €2,500 → Sell at €2,000 → Loss: €500

That loss reduces your savings base.

Complete practical case: professional miner in 2025

Let’s look at a realistic example of a professional miner over a full year.

Miner profile: Alberto

  • Activity: Bitcoin mining in a pool
  • Equipment: 4 Antminer S19 Pro
  • Initial investment: €20,000
  • Premises: 20 m² room in a 100 m² home
  • Dedicated electricity consumption: 350 kWh/month
  • First time self-employed: Yes (flat rate available)

2025 annual income

Mining rewards:

  • Q1: 0.15 BTC → €8,250 (avg. €55,000/BTC)
  • Q2: 0.14 BTC → €8,260 (avg. €59,000/BTC)
  • Q3: 0.13 BTC → €7,800 (avg. €60,000/BTC)
  • Q4: 0.12 BTC → €7,680 (avg. €64,000/BTC)

Total income: €31,990

2025 deductible expenses

Electricity:

  • Monthly consumption: 350 kWh × €0.30/kWh = €105/month
  • Annual: €1,260

Equipment depreciation:

  • 4 ASICs: €20,000 × 25% = €5,000/year

Internet:

  • €50/month × 12 = €600

Premises (20% of home):

  • Rent: €700/month × 20% = €140/month
  • Annual: €1,680

Utilities (20% of home):

  • HOA, insurance, IBI: €1,200 × 20% = €240

Professional services:

  • Accounting and tax advisory: €1,500

Software and subscriptions:

  • Hive OS + tools: €300

Training:

  • Mining optimization course: €400

Self-employed contributions (flat rate):

  • €80/month × 12 = €960

Total expenses: €11,940

Net income

Income: €31,990
Expenses: €11,940
Net income: €20,050

To keep the example simple, we do not apply the 5% reduction for hard-to-justify expenses under simplified direct assessment, which would lower the result a little further.

Advance payments (Modelo 130)

Each quarter you calculate 20% of the income accumulated since January and deduct the payments already made. Expenses are spread evenly: €2,985 per quarter.

Q1: 20% × (€8,250 − €2,985) = €1,053 → you pay €1,053
Q2: 20% × (€16,510 − €5,970) = €2,108 − €1,053 → you pay €1,055
Q3: 20% × (€24,310 − €8,955) = €3,071 − €2,108 → you pay €963
Q4: 20% × (€31,990 − €11,940) = €4,010 − €3,071 → you pay €939

Total advances: €4,010

Income tax return (Modelo 100)

General taxable base:

  • Mining activity income: €20,050
  • Other income (employment): €0
  • Total general base: €20,050

Approximate IRPF calculation (with the reference rates):

Rates applied to the base:
  Up to €12,450: €12,450 × 19% = €2,365.50
  €12,450 to €20,050: €7,600 × 24% = €1,824.00
  Total: €4,189.50

Less the rates applied to the personal allowance (€5,550 × 19%): €1,054.50

Gross tax due: €3,135

Minus:

  • Advance payments (Modelo 130): €4,010

Result: refund of €875

The advance payments exceeded the final tax due because the quarterly 20% does not take into account the personal allowance or the progressive rates.

Year-end financial summary

Gross mining income:          €31,990
Business expenses:            −€10,980
Self-employed contributions:     −€960
Final IRPF:                    −€3,135  (€4,010 paid in advance − €875 refunded)

After-tax result: €16,915

The expenses include €5,000 of depreciation, which is not a payment made during the year: it is the part of the equipment cost that is spread over four tax years.

Additionally, he keeps:

  • 0.54 BTC mined, with a tax cost equal to the value at which he declared them as income
  • If sold, only the difference between the sale price and that value will be taxed

Common mistakes miners make (and how to avoid them)

Not registering as self-employed

Problem: Mining habitually without registering.

Consequence:

  • Penalties for undeclared economic activity
  • Retroactive regularization of self-employment contributions
  • Tax assessments with surcharges

Solution: Register BEFORE starting professional activity.

Not valuing cryptocurrencies correctly when mined

Problem: Using the sale value instead of the value at the time of mining.

Consequence: Incorrect calculation of business income and capital gains.

Solution: Record the exact market value of each mining reward at the moment you receive it.

Not keeping expense documentation

Problem: Claiming deductions without invoices or supporting docs.

Consequence: In an audit, the AEAT may deny deductions and assess differences.

Solution:

  • Always request an invoice with your tax ID (NIF)
  • Keep proof of payment
  • Maintain an organized archive for 4–6 years

Confusing the taxation of mining with buying crypto

Problem: Thinking mining is taxed the same as buying and selling.

Reality:

  • Buying/selling: Capital gain (savings base, 19–30%)
  • Mining: Economic activity (general base, up to 47%)

Solution: Clearly separate both activities in your bookkeeping.

Not filing Modelo 130 quarterly

Problem: Thinking the annual return is enough.

Consequence:

  • Surcharges and late-payment interest
  • Penalties for not filing advance payments

Solution: Set reminders to file Modelo 130 every quarter (April, July, October, January).

Deducting 100% of mixed expenses

Problem: Deducting the full electricity/internet bill when also used personally.

Consequence: Unjustified expense that may be disallowed.

Solution: Proportionally calculate mixed expenses and document your method.

Not declaring cryptocurrencies on foreign exchanges

Problem: Holding over €50,000 in mined crypto on exchanges outside Spain without filing Modelo 721.

Consequence: a penalty under the general regime: €20 per item of data, with a minimum of €300 and a maximum of €20,000, or half that if you file late on your own initiative before the tax agency asks. We explain it in which Spanish tax forms affect crypto.

Solution: File Modelo 721 in March if you exceed the thresholds.

Tax comparison: Is mining or buying crypto more profitable?

From a tax perspective, here are the differences:

Cryptocurrency mining

Tax advantages:

  • ✅ Deductible expenses (electricity, equipment, premises, etc.)
  • ✅ Depreciation of investments
  • ✅ Not subject to VAT
  • ✅ Potential self-employed flat rate

Tax disadvantages:

  • ❌ Taxed in the general base (up to 47%)
  • ❌ Self-employment contributions (about €960 in the first year with the flat rate)
  • ❌ Administrative obligations: Modelo 130, accounting records
  • ❌ Double taxation: at mining + at sale

Buying and selling (trading)

Tax advantages:

  • ✅ Taxed only on sale (savings base, 19–30%)
  • ✅ No self-employed obligations
  • ✅ No monthly contributions
  • ✅ Administrative simplicity

Tax disadvantages:

  • ❌ No deductible expenses
  • ❌ Investments cannot be depreciated
  • ❌ Immediate taxation of gains upon sale

Comparative example

Scenario: Invest €20,000 in crypto

Option A: Buy Bitcoin directly

  • Investment: €20,000 in BTC
  • BTC rises 50% in 1 year → Value: €30,000
  • You sell: Gain €10,000
  • IRPF (savings base): €6,000 × 19% + €4,000 × 21% = €1,980
  • Net profit: €8,020

Option B: Buy mining equipment

  • Investment: €20,000 in ASICs
  • You mine €31,990 in 1 year (practical case above)
  • Deductible expenses, self-employed contributions included: €11,940
  • Net income: €20,050
  • IRPF: €3,135
  • After-tax result: €16,915
  • You also keep the equipment, which still has three years of depreciation left

Conclusion: In this scenario, mining is fiscally more profitable if:

  • BTC’s price remains stable or rises moderately
  • You make full use of deductible expenses
  • Mining difficulty does not spike dramatically

But trading is simpler and requires no technical skills or infrastructure.

Future of mining tax regulation in Spain

The taxation of cryptocurrency mining is constantly evolving.

Regulatory trends 2025–2026

1. MiCA regulation (Markets in Crypto-Assets)

  • EU framework that may affect crypto service providers
  • Possible mandatory registration for professional miners
  • Greater oversight and transparency

2. Environmental criteria

  • Debate over mining’s energy consumption
  • Possible tax incentives for mining with renewable energy
  • Restrictions in some autonomous communities

3. Reporting obligations

  • DAC8 directive: Automatic exchange of tax information
  • Mining pools may have to report users’ income
  • Greater data matching across jurisdictions

4. Evolution of the economic-activity criteria

  • Possible updates to thresholds distinguishing occasional/professional miners
  • Clarification regarding cloud mining and staking

Recommendations for the future

  • ✅ Keep all documentation up-to-date and accessible
  • ✅ Always file, even where there are grey areas
  • ✅ Work with advisors specialized in crypto
  • ✅ Proactively adapt your activity to regulatory changes

Conclusion: tax compliance in cryptocurrency mining

Cryptocurrency mining in Spain is a perfectly legal and regulated economic activity, but with complex tax obligations that require specialized attention.

Key points to remember

  • ✅ Mining = Economic activity: Taxed in the IRPF general base (up to 47%)
  • ✅ Mandatory registration: IAE (heading 831.9) + RETA from the start
  • ✅ Not subject to VAT: You don’t charge VAT, but you can’t deduct input VAT either
  • ✅ Quarterly Modelo 130: 20% advance payments every 3 months
  • ✅ Broad deductible expenses: Electricity, equipment, premises, advisory, etc.
  • ✅ Double taxation: At mining (business income) + at sale (capital gain)
  • ✅ Flat rate available: €80/month for the first 12 months for new self-employed
  • ✅ Valuation upon mining: Market price at the exact time of each reward
  • ✅ Essential documentation: Keep all invoices, proofs, and records

When is mining tax-efficient?

Professional mining may be tax-attractive if:

  1. You have access to cheap electricity (< €0.10/kWh)
  2. You can deduct significant expenses (dedicated premises, equipment)
  3. You keep the activity continuous to amortize investment and contributions
  4. The price of the mined crypto stays stable or rises
  5. Network difficulty does not increase drastically

If these conditions are not met, trading (buy/sell) may be more tax-efficient.

Cleriontax: experts in crypto mining taxation

Are you mining cryptocurrencies or planning to start? Don’t leave your taxes to chance. At Cleriontax we specialize in the taxation of crypto-related economic activities.

Our services for miners include:

  • ✅ Guidance for self-employment registration (IAE and RETA)
  • ✅ Feasibility analysis of your mining project from a tax perspective
  • ✅ Calculation of all deductible expenses
  • ✅ Preparation and filing of Modelos 130 and 100
  • ✅ Management of income and expense ledgers
  • ✅ Valuation of mined cryptocurrencies (full historical record)
  • ✅ Reporting of subsequent sales and capital gains
  • ✅ Defense against AEAT information requests
  • ✅ Tax planning for your mining activity

If, as well as mining, you buy, sell or move crypto between platforms, we prepare your crypto tax report with FIFO per asset, and help you declare your crypto on your income tax return.

Request your specialized tax consultation →

Our team of crypto tax experts will help you meet all your tax obligations professionally, efficiently, and with full legal certainty.

Unsure whether you must register as self-employed? Contact us for an initial no-obligation assessment.

Disclaimer: This article is for informational and educational purposes only. It does not constitute personalized tax advice or investment advice. Tax rules are subject to change and every personal situation is unique. Always consult a licensed tax professional before making tax decisions related to cryptocurrency mining.

Published by: Cleriontax Team – Experts in Cryptocurrency Taxation and Data Analysis

Topic

Cryptocurrency Taxation

Complete guide on cryptocurrency taxation in Spain: tax forms, obligations to the AEAT, capital gains calculation and digital asset declaration.

cryptocurrency taxationform 100form 721form 714AEATcrypto tax return
See all articles on this topic →

Does this sound like your case?

If the above matches your situation, see how we handle it before deciding anything. Or tell us about it directly, if you prefer.