Kointax.ioKointax.io

Bitcoin mining: hash rate, difficulty and tax profitability

The profitability of Bitcoin mining depends on the hash rate and the difficulty of the network. Analyze how these factors affect your tax income and how to optimize the declaration.

Equipo declaracrypto·April 25, 2026·7 min read

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:

  1. Own hash rate: Computational power of your ASICs.
  2. Total network hash rate: Difficulty adjusted every ~2016 blocks.
  3. BTC Price: Value of the reward per block.
  4. 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:

ExpenseDeductibleConditions
ElectricityYes (100%)Amounts invoiced, justified
ASIC HardwareYes (amortization)Amortization table (usually 25% annually)
Cooling/HVACYesIf specific to the activity
Local/shipYes (or proportion)Rent or amortization if it is property
MaintenanceYesRepair/Spare Parts Invoices
Pool feesYesMining pool commissions
Monitoring softwareYesLicenses, subscriptions
Financial expenses (loans for hardware)YesFinancing 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

  1. Income when mining: price of BTC at the time of mining.
  2. 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

Ready to calculate your crypto taxes?

declaracrypto.es — FIFO, LIFO, HIFO or WAC method. 80+ compatible exchanges. Excel + PDF report ready for your tax return.

Start free — no card needed