Mining Economics
Module 4 of Bitcoin Deep Dive
What Is Bitcoin Mining?
Mining is the process of:
- Collecting pending transactions
- Assembling them into a block
- Finding a valid proof-of-work hash
- Broadcasting the block
- Earning the block reward + fees
Miners are the backbone of Bitcoin's security model.
The Mining Process
Step-by-Step
1. Collect transactions from mempool
2. Verify each transaction is valid
3. Assemble block header:
- Previous block hash
- Merkle root of transactions
- Timestamp
- Difficulty target
- Nonce (starts at 0)
4. Hash the header: SHA256(SHA256(header))
5. Is hash < target?
- No: Increment nonce, try again
- Yes: Broadcast block, collect reward!
The Numbers
- Hashrate: ~400 EH/s (400 quintillion hashes/second globally)
- Block time target: 10 minutes
- Attempts per block: ~10^21 (sextillion)
- Energy consumed: ~100 TWh/year
Block Rewards
The Subsidy
New bitcoins are created with each block:
| Period | Block Subsidy | Total Issued |
|---|---|---|
| 2009-2012 | 50 BTC | 10.5M |
| 2012-2016 | 25 BTC | 15.75M |
| 2016-2020 | 12.5 BTC | 18.375M |
| 2020-2024 | 6.25 BTC | 19.6875M |
| 2024-2028 | 3.125 BTC | 20.34M |
| ... | ... | ... |
| 2140+ | 0 BTC | 21M (cap) |
Halving: Every 210,000 blocks (~4 years), subsidy cuts in half.
Transaction Fees
In addition to subsidy, miners collect all transaction fees in their block.
Fee = Sum of inputs - Sum of outputs
Typical block revenue (2024):
Subsidy: 3.125 BTC (~$150,000)
Fees: 0.1-1 BTC (~$5,000-50,000)
Total: ~$150,000-200,000 per block
The Long-Term Transition
As subsidy shrinks, fees must replace it:
Now: |████████████████░░| ~95% subsidy, 5% fees
2030: |████████████░░░░░░| ~85% subsidy, 15% fees
2040: |████████░░░░░░░░░░| ~50% subsidy, 50% fees
2100+: |░░░░░░░░░░░░░░░░░░| 0% subsidy, 100% fees
Can fees alone secure the network? Open question.
Mining Hardware Evolution
The Arms Race
| Era | Hardware | Hash Rate | Efficiency |
|---|---|---|---|
| 2009 | CPU | ~10 MH/s | Poor |
| 2010 | GPU | ~100 MH/s | Better |
| 2011 | FPGA | ~1 GH/s | Good |
| 2013+ | ASIC | 100+ TH/s | Optimal |
What Is an ASIC?
Application-Specific Integrated Circuit — chip designed ONLY for SHA256 hashing.
Advantages:
- 10,000x more efficient than CPUs
- Optimized for one algorithm
Disadvantages:
- Expensive ($2,000-15,000 per unit)
- Only useful for Bitcoin mining
- Rapid obsolescence (new gen every 1-2 years)
Current Leading Miners
| Model | Hash Rate | Power | Efficiency |
|---|---|---|---|
| Antminer S21 | 200 TH/s | 3,500W | 17.5 J/TH |
| Whatsminer M60 | 186 TH/s | 3,422W | 18.4 J/TH |
| Antminer S19 XP | 140 TH/s | 3,010W | 21.5 J/TH |
Mining Economics 101
Revenue
Daily Revenue = (Your Hashrate / Network Hashrate) × Daily Block Rewards
Example:
Your hashrate: 100 TH/s
Network: 500 EH/s = 500,000,000 TH/s
Daily blocks: 144
Reward per block: 3.125 BTC
Daily revenue = (100 / 500,000,000) × 144 × 3.125
= 0.00009 BTC/day
= ~$4.50/day at $50k/BTC
Costs
| Cost | Type | Typical Range |
|---|---|---|
| Hardware | Capital | $2,000-15,000 per unit |
| Electricity | Operating | $0.03-0.10 per kWh |
| Cooling | Operating | 10-30% of electricity |
| Facility | Fixed | Rent, security, staff |
| Maintenance | Operating | 5-10% of hardware/year |
Breakeven Analysis
Breakeven electricity price = BTC price × (Daily BTC / Daily kWh)
Example:
Daily BTC: 0.00009
Daily kWh: 84 (3,500W × 24h)
BTC price: $50,000
Breakeven = $50,000 × (0.00009 / 84)
= $0.054/kWh
If your electricity < $0.054/kWh, you're profitable.
Mining Pools
Why Pools Exist
Solo mining has high variance:
With 100 TH/s, expected time to find a block:
Network: 500 EH/s
Your share: 0.00002%
Expected blocks/year: ~0.01
Average wait: ~100 years!
Pools combine hashrate and share rewards proportionally.
Major Pools (2024)
| Pool | Hashrate Share |
|---|---|
| Foundry USA | ~30% |
| AntPool | ~20% |
| F2Pool | ~15% |
| ViaBTC | ~10% |
| Binance Pool | ~8% |
Pool Payout Schemes
| Scheme | How It Works | Risk |
|---|---|---|
| PPS | Pay Per Share - fixed rate | Pool bears variance |
| PPLNS | Pay Per Last N Shares | Miner bears variance |
| PPS+ | PPS + share of fees | Hybrid |
| FPPS | Full Pay Per Share | Pool pays subsidy + avg fees |
Difficulty Adjustment
The Algorithm
Every 2,016 blocks (~2 weeks):
New Difficulty = Old Difficulty × (Actual Time / Target Time)
Target Time = 2,016 × 10 minutes = 20,160 minutes
If blocks came too fast: Difficulty increases
If blocks came too slow: Difficulty decreases
Why It Matters
- Maintains 10-minute average regardless of hashrate
- Adjusts to hardware improvements and price changes
- Limits adjustment to 4x per period (up or down)
Historical Trend
2009: Difficulty 1
2013: Difficulty ~10 million
2017: Difficulty ~1 trillion
2024: Difficulty ~80 trillion
Difficulty has only gone down during major miner capitulations.
Geographic Distribution
Where Miners Operate
Miners seek cheap electricity:
| Region | Electricity Source | Cost |
|---|---|---|
| Texas, USA | Natural gas, renewables | $0.02-0.05 |
| Kazakhstan | Coal | $0.03-0.04 |
| Russia | Hydroelectric | $0.03-0.05 |
| Iceland | Geothermal | $0.04-0.06 |
| Paraguay | Hydroelectric | $0.03-0.04 |
The China Ban (2021)
Before May 2021: ~65% of hashrate in China After: Hashrate redistributed globally
Result: More geographically decentralized network.
Environmental Debate
The Criticism
- ~100 TWh/year (0.5% of global electricity)
- Carbon footprint of a small country
- "Wasteful" computation
The Defense
- Security has a cost: Banking system uses more energy
- Renewable incentives: Miners seek stranded/cheap energy
- Grid stabilization: Flexible load helps balance grids
- Methane mitigation: Flared gas → mining
Current Energy Mix
Estimates vary, but approximately:
- 50-60% renewable/nuclear
- 40-50% fossil fuels
The Future of Mining
Challenges
- Halving pressure: Revenue cuts every 4 years
- Fee dependency: Must replace subsidy
- Hardware costs: Constant reinvestment
- Regulatory risk: Environmental concerns
Opportunities
- Stranded energy: Monetize otherwise wasted power
- Heat recovery: Use waste heat for heating
- Grid services: Demand response programs
- Vertical integration: Own generation + mining
Key Takeaways
- Mining secures Bitcoin through proof-of-work
- Revenue = subsidy + fees (subsidy dominates today)
- ASIC arms race makes mining highly competitive
- Pools reduce variance for individual miners
- Difficulty adjusts to maintain 10-minute blocks
- Economics are tight — electricity cost is key
Questions to Consider
- Is Bitcoin's energy use justified?
- Can fees alone secure the network long-term?
- Does pool concentration threaten decentralization?
- What happens to security as subsidy approaches zero?