Bitcoin mining: hash rate, difficulty and tax profitability
Bitcoin mining is a regulated economic activity with clear tax obligations in Spain. However, the variable nature of the revenue (dependent on hash rate, network difficulty and BTC price) creates specific complexities.
The economic cycle of mining
A miner's income depends on:
- Own hash rate: Computational power of your ASICs.
- Total network hash rate: Difficulty adjusted every ~2016 blocks.
- BTC Price: Value of the reward per block.
- Transaction fees: Especially relevant after halvings.
Revenue = (Own_Hash / Network_Hash) × Block_Reward × BTC_Price − Costs
Taxation as an economic activity
The AEAT considers mining an economic activity, not a passive investment. This implies:
- Registration in the Treasury: Heading of the corresponding IAE (computer activities or virtual currency production).
- Register as self-employed: If you are a natural person, self-employed quota.
- VAT: Since the resolution of the CJEU (C-264/14, Hedqvist), mining is not subject to VAT. However, the purchase of hardware and electricity does generate deductible input VAT if you are in exempt economic activities.
- IRPF in modules or direct estimation: In Simplified Direct Estimation, income minus expenses = net return.
Deductible mining expenses
This is the tax advantage of mining over passive investing: you can deduct real expenses:
| Expense | Deductible | Conditions |
|---|---|---|
| Electricity | Yes (100%) | Amounts invoiced, justified |
| ASIC Hardware | Yes (amortization) | Amortization table (usually 25% annually) |
| Cooling/HVAC | Yes | If specific to the activity |
| Local/ship | Yes (or proportion) | Rent or amortization if it is property |
| Maintenance | Yes | Repair/Spare Parts Invoices |
| Pool fees | Yes | Mining pool commissions |
| Monitoring software | Yes | Licenses, subscriptions |
| Financial expenses (loans for hardware) | Yes | Financing interests |
Halvings: impact on tax revenues
Bitcoin halves every ~4 years (210,000 blocks). The halving halves the block reward:
- 2020: 6.25 BTC per block.
- 2024: 3,125 BTC per block.
- 2028: ~1.5625 BTC per block.
Tax Implication: After a halving, your BTC income is halved if everything else is equal. The valuation remains the price of BTC at the time of receiving each reward.
Mining pool vs. just mining
Mining pool: You receive frequent partial rewards (based on your contribution to the shared hash).
- Each pool payment = income from economic activity on that date and price.
- The frequency can be daily or even more frequent.
Mining only: You only receive a reward when the pool or you alone find a block.
- More irregular but full income.
- Same taxation: BTC price at the time of resolving the block.
The valuation of rewards: market price
At the moment the mined BTC reaches your wallet (or is credited to the pool), you must note:
- Amount of BTC received.
- Market price of BTC at that time (in euros).
- The product is income from economic activity.
Sale of mined BTC: double tax event
- Income when mining: price of BTC at the time of mining.
- Profit/loss when selling it: selling price − price at which you mined (= acquisition cost).
If BTC rises between mining and selling it: additional capital gain.
Cloud Mining: is it an economic activity or an investment?
Cloud mining (contracts with companies that mine for you) is more diffuse:
- If you compare hash power: it can be considered capital investment, not own activity.
- The returns could be income from movable capital.
- Verify if the company is legitimate (many cloud mining are fraudulent schemes).
Recommended accounting record for miners
Keep a journal with:
- Pool payment/reward date.
- Amount of BTC received.
- BTC spot price in euros.
- Amount in euros of the income.
- Expenses for the period (electricity, etc.).
Tools: Koinly in "mining income" mode, or custom spreadsheets.
Updated: April 2026 | Fiscal year: 2025


