🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Mining Economics

Bitcoin Deep DiveđŸŸĸ Free Lesson

Mining Economics

Mining hardware (ASICs, GPUs), mining pools, hashrate, energy consumption, profitability calculations, mining difficulty, and block rewards.

Overview

Mining is the process of validating transactions and adding blocks to the blockchain. Understanding mining economics is essential for network security and profitability analysis.

Mining Hardware

Mining Hardware ComparisonASICsâ€ĸ SHA-256 (Bitcoin)â€ĸ 100-300 TH/sâ€ĸ 20-30 J/THâ€ĸ 15,000â€ĸ Best efficiencyGPUsâ€ĸ Ethash, ProgPoWâ€ĸ 50-100 MH/sâ€ĸ 1-3 J/MHâ€ĸ 2,000â€ĸ Flexible algorithmFPGAsâ€ĸ Various algorithmsâ€ĸ 10-100 MH/sâ€ĸ 0.5-2 J/MHâ€ĸ 5,000â€ĸ ReconfigurableCPU Miningâ€ĸ RandomX (Monero)â€ĸ 5-20 KH/sâ€ĸ 10-50 J/KHâ€ĸ 2,000â€ĸ Accessible to allASIC Evolution2013: Butterfly Labs (10 GH/s) → 2016: Antminer S9 (14 TH/s) → 2019: S17 (56 TH/s)2021: S19 (110 TH/s) → 2023: S21 (200 TH/s) → 2024: S21 XP (270 TH/s)Efficiency improved 1000x in 10 years | Energy per hash dropped 99.9%

Mining Pools

Pool Types

TypeDescriptionProsCons
PPSPay Per ShareStable incomeHigher fees
PPLNSPay Per Last N SharesLower feesVariable income
SOLOSolo miningNo feesHigh variance
PROPProportionalFair sharePool hopping
FPPSFull PPSIncludes feesHigher fees

Pool Hashrate Distribution (2024)

PoolHashrate ShareRegionFee
Foundry USA30%USA2.5%
AntPool18%China2.0%
ViaBTC15%China2.0%
F2Pool12%China2.5%
Binance Pool10%Global2.5%
Others15%Various1-3%

Pool Selection Criteria

python
def calculate_pool_score(pool):
    """Score = (Reward × (1 - Fee)) / (Variance × Latency)"""
    reward_per_share = pool.block_reward / pool.difficulty
    expected_income = reward_per_share * pool.your_hashrate
    adjusted_income = expected_income * (1 - pool.fee)
    
    variance_factor = 1 / pool.variance
    latency_factor = 1 / (pool.latency_ms / 1000)
    
    return (adjusted_income * variance_factor * latency_factor) / 1000

Hashrate and Difficulty

Hashrate Calculation

Difficulty Adjustment

Bitcoin Difficulty Schedule

YearDifficultyHashrate (EH/s)Block Time
200910.00000110 min
20124M0.0110 min
20161T110 min
202020T12010 min
202480T60010 min
2025100T+800+10 min

Difficulty Target

Architecture Diagram
Target (hex): 0000000000000000000abc...
Target (bits): 0x1703a2b2

bits[0:3] = exponent (0x17 = 23 bytes)
bits[3:8] = coefficient (03a2b2)

Target = coefficient × 2^(8 × (exponent - 3))
Target = 0x03a2b2 × 2^(8 × 20)

Block Rewards

Bitcoin Halving Schedule

HalvingDateBlock RewardTotal Supply
0200950 BTC0
1201225 BTC10.5M
2201612.5 BTC15.75M
320206.25 BTC18.375M
420243.125 BTC19.6875M
520281.5625 BTC20.34375M
∞21400 BTC21M

Block Reward Formula

Revenue Breakdown

python
def calculate_block_revenue(block_height):
    # Block subsidy
    halvings = block_height // 210000
    subsidy = 50 / (2 ** halvings)
    
    # Transaction fees (variable)
    avg_fee_per_block = 0.5  # BTC (varies)
    
    total_revenue = subsidy + avg_fee_per_block
    
    return {
        "subsidy": subsidy,
        "fees": avg_fee_per_block,
        "total": total_revenue,
        "usd_value": total_revenue * btc_price
    }

Energy Consumption

Bitcoin Energy Statistics

MetricValue (2024)
Annual Energy~150 TWh
Global Share0.07%
Per Transaction~700 kWh
Carbon Footprint~65 Mt CO2
Renewable Share~55%
Stranded Energy~30%

Energy Comparison

ActivityEnergy (kWh)BTC Equivalent
1 BTC Transaction7001
Average US Home (year)10,50015
Gold Mining (1 oz)50,00071
Aluminum Smelting (1 ton)15,00021
Netflix Streaming (hour)0.080.0001

Mining Energy Mix

Bitcoin Mining Energy Mix (2024)Hydro: 25%Sichuan, NorwaySeasonalLowest cost~37.5 TWhNatural Gas: 30%Texas, AlbertaBaseloadFlared gas~45 TWhCoal: 20%KazakhstanDecliningHighest carbon~30 TWhNuclear: 10%USA, Canada24/7 baseloadZero carbon~15 TWhOther: 15%Wind, SolarGeothermal~22.5 TWh~55% renewable | Growing trend toward sustainable energy sources

Profitability Calculations

Basic Formula

Detailed Profitability Calculator

python
def mining_profitability(
    hashrate_th,  # TH/s
    power_watts,  # Watts
    electricity_cost,  # $/kWh
    btc_price,  # USD
    pool_fee=0.02,  # 2%
    difficulty=80e12  # Current difficulty
):
    # Daily revenue
    hashrate_ths = hashrate_th * 1e12
    blocks_per_day = 144  # Bitcoin
    
    your_share = hashrate_ths / (difficulty * 2**32 / 600)
    btc_per_day = your_share * (3.125 + 0.5) * (1 - pool_fee)
    
    revenue_usd = btc_per_day * btc_price
    
    # Daily cost
    energy_kwh = power_watts * 24 / 1000
    electricity_cost_daily = energy_kwh * electricity_cost
    
    # Profit
    profit = revenue_usd - electricity_cost_daily
    roi_days = (hardware_cost / profit) if profit > 0 else float('inf')
    
    return {
        "btc_per_day": btc_per_day,
        "revenue_usd": revenue_usd,
        "electricity_cost": electricity_cost_daily,
        "profit_usd": profit,
        "roi_days": roi_days
    }

Example Calculations

HardwareHashratePowerElec CostRevenue/DayCost/DayProfit/Day
Antminer S21200 TH/s3500W2823.80
Antminer S19110 TH/s3250W1511.10
GPU Rig (8x)0.6 GH/s1200W86.56
Antminer S21200 TH/s3500W2819.60

Mining Farm Economics

Cost Structure

Cost CategoryPercentageNotes
Electricity60-70%Largest variable cost
Hardware15-20%Depreciation over 3-5 years
Cooling5-10%Depends on climate
Rent/Facility3-5%Location dependent
Maintenance2-3%Hardware replacement
Staff1-2%24/7 operations

Location Analysis

RegionElec CostClimateInfrastructureRegulatory
Texas, USA$0.04-0.06HotExcellentFavorable
Kazakhstan$0.03-0.05ExtremeLimitedUncertain
Iceland$0.03-0.04ColdGoodFavorable
Norway$0.04-0.06ColdExcellentFavorable
Paraguay$0.01-0.02ModerateLimitedUncertain
Russia$0.03-0.05ExtremeGoodUncertain

Mining Farm ROI

Network Statistics

Bitcoin Mining Metrics (2024)

MetricValue
Total Hashrate600+ EH/s
Difficulty80+ T
Block Time10 minutes
Blocks/Day144
Total Miners~1M
Solo Miners<1%
Pool Miners>99%

Mining Revenue History

YearBlock RewardBTC/DayUSD/DayRevenue/Hash
201225 BTC3,600$10KHigh
201612.5 BTC1,800$1MMedium
20206.25 BTC900$15MLow
20243.125 BTC450$30M+Very Low

Trade-offs

Solo vs Pool Mining

AspectSolo MiningPool Mining
VarianceVery HighLow
FeesNone1-3%
Reward FrequencyRareRegular
IndependenceFullShared
Setup ComplexitySimpleModerate
Recommended ForLarge minersMost miners

ASIC vs GPU Mining

AspectASIC MiningGPU Mining
HashrateVery HighMedium
EfficiencyVery HighLow
FlexibilityAlgorithm-lockedMulti-algorithm
Lifespan3-5 years5-7 years
Resale ValueDepreciates fastHolds value
Initial CostHighMedium
Best ForBitcoinAltcoins

Energy Cost vs Capital Expenditure

StrategyOpEx FocusCapEx Focus
Low Elec + Expensive HWLow profit marginHigh profit margin
High Elec + Cheap HWNegative profitBreak-even
Moderate Elec + Moderate HWBalancedBalanced
Cheap Elec + Expensive HWHigh profitHighest profit

Interview Questions

  1. How does Bitcoin's difficulty adjustment maintain 10-minute block times?

    • Answer: Every 2016 blocks (~2 weeks), difficulty adjusts based on actual vs expected time. If blocks are faster, difficulty increases; if slower, difficulty decreases. This self-correcting mechanism ensures consistent block times.
  2. Why do mining pools exist and how do they benefit miners?

    • Answer: Pools combine hashrate to find blocks more frequently, reducing variance. Miners receive proportional shares of rewards. This provides steady income instead of rare large payouts.
  3. What happens to mining economics after Bitcoin reaches 21 million supply?

    • Answer: Miners will rely solely on transaction fees. If Bitcoin has high usage and demand, fees could be sufficient. Some argue fees alone won't incentivize mining, potentially reducing security.

Quiz Questions

  1. What is the current Bitcoin block reward after the 2024 halving?

    • A) 6.25 BTC
    • B) 3.125 BTC ✓
    • C) 1.5625 BTC
    • D) 0.5 BTC
  2. Which mining hardware is most energy-efficient for SHA-256?

    • A) GPUs
    • B) FPGAs
    • C) ASICs ✓
    • D) CPUs
  3. What percentage of Bitcoin mining uses renewable energy?

    • A) 25%
    • B) 40%
    • C) 55% ✓
    • D) 75%

Practice

  1. Build a mining profitability calculator in Python
  2. Simulate Bitcoin difficulty adjustment algorithm
  3. Analyze historical mining revenue and difficulty correlation
  4. Design a mining farm business plan with cost projections
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-09-22

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Related Tutorials

Content with similar topics across other courses

Need Expert Blockchain Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement