Key Takeaways: Mining and Proof of Work
The Mining Puzzle
- Bitcoin mining is a brute-force search for a nonce value that, when included in the block header and double-hashed with SHA-256, produces a hash below the network's target value.
- The probability of any single hash attempt succeeding is astronomically small — approximately 1 in 10^23 at current difficulty. Mining success is essentially a lottery where tickets are purchased with electricity.
- SHA-256's pre-image resistance ensures there is no shortcut: miners cannot predict which nonce will produce a valid hash without computing it. This is what makes the puzzle fair.
- The nonce field is only 32 bits (4.3 billion values), insufficient for modern hashrates. Miners expand the search space by modifying the coinbase extra nonce and the block timestamp.
- Proof of Work provides Sybil resistance in a permissionless network: fake identities are free, but hash computations require real energy expenditure.
Difficulty Adjustment
- Bitcoin adjusts mining difficulty every 2,016 blocks (approximately two weeks) to maintain an average block time of 10 minutes.
- The adjustment formula is simple: new_target = old_target x (actual_time / expected_time), clamped to a 4x change in either direction.
- The difficulty has increased by a factor of approximately 60 trillion since Bitcoin's genesis block.
- The clamping mechanism prevents catastrophic scenarios where a sudden hashrate drop would make blocks impossibly slow to find.
- A known off-by-one error in the original code means the adjustment measures 2,015 intervals instead of 2,016, resulting in blocks that are very slightly faster than 10 minutes on average.
Block Rewards and Halving
- The block reward (coinbase subsidy) started at 50 BTC and halves every 210,000 blocks (approximately four years). The fourth halving in April 2024 reduced it to 3.125 BTC.
- The halving schedule creates a geometric series converging to exactly 21 million BTC total supply.
- As the subsidy approaches zero, transaction fees must replace the subsidy as the primary source of miner revenue — the "fee transition."
- The fee transition is an open research question. If fees do not grow sufficiently, the security budget (total miner revenue) could decline, reducing the cost of attacking the network.
Mining Hardware
- Mining hardware has evolved through four eras: CPU (2009-2010), GPU (2010-2013), FPGA (2011-2013), and ASIC (2013-present).
- Each generation delivered approximately 100x improvement in hash-per-watt efficiency. ASICs made all previous hardware obsolete within months of deployment.
- Modern ASICs at 3-5nm process nodes achieve approximately 10-15 J/TH efficiency. Further improvement is slowing as semiconductor fabrication approaches physical limits.
- Hardware market concentration (Bitmain at approximately 50-60% market share) creates supply chain risk and potential centralization pressure.
Mining Economics
- Mining profitability is determined by: revenue (block reward + fees, proportional to hashrate share) minus costs (electricity, hardware amortization, facilities, labor).
- Electricity price is the dominant variable. Most miners need prices below $0.08/kWh for healthy margins after all costs.
- Mining has migrated globally to follow cheap electricity: from China (pre-2021 ban) to the United States, Kazakhstan, Russia, Canada, and Nordic countries.
- The latest trend is co-location with stranded energy sources — flared natural gas, curtailed renewables, and behind-the-meter power generation.
Mining Pools
- Mining pools aggregate hashrate from thousands of miners, reducing the variance of individual mining income through risk pooling.
- Pool members submit "shares" (proofs of work at reduced difficulty) to demonstrate they are contributing hashrate. When the pool finds a block, rewards are distributed proportionally.
- The dominant reward scheme is Full Pay-Per-Share (FPPS), where the pool pays a fixed rate per share regardless of block-finding luck.
- Pool concentration is a monitored risk: the top two pools (Foundry USA and AntPool) control approximately 48% of hashrate as of 2026. However, pool operators do not own the hashrate — individual miners can and do switch pools.
The 51% Attack
- An attacker with majority hashrate CAN: double-spend their own transactions, censor other users' transactions, and orphan honest miners' blocks.
- An attacker CANNOT: steal bitcoin from other addresses, change the block reward rules, or permanently compromise the protocol.
- The cost of a 51% attack against Bitcoin is estimated at $10-15 billion in hardware alone, making it economically irrational. The attacker would earn more by mining honestly.
- Smaller Proof of Work chains are vulnerable — Bitcoin Gold ($18M double-spend in 2018) and Ethereum Classic (multiple attacks in 2019-2020) demonstrate this is not a theoretical risk.
- The key vulnerability factor is whether hashrate can be rented: chains with rental-accessible hash power (GPU-mineable algorithms) are far more vulnerable than chains with captive hash power (ASIC-only algorithms).
Selfish Mining and Advanced Attacks
- Selfish mining (Eyal and Sirer, 2013) allows miners with as little as 25-33% of hashrate to earn disproportionate revenue by withholding blocks and releasing them strategically.
- Fee sniping — attempting to re-mine a block to steal high fees — is a growing concern as the block subsidy declines and fees become a larger fraction of miner revenue.
- Block withholding attacks target mining pools: a malicious participant submits shares but discards valid blocks, reducing the pool's revenue while collecting payment.
- These attacks have not been conclusively observed on Bitcoin's mainnet but remain theoretically possible and are active areas of research.
The Energy Debate
- Bitcoin's annual electricity consumption is estimated at 150-170 TWh (approximately 0.6-0.7% of global electricity production), comparable to Poland or Egypt.
- This is less than the global banking system (~260-340 TWh), comparable to gold mining (~130-240 TWh), and far less than global data centers (~460-500 TWh).
- The renewable energy mix in Bitcoin mining is estimated at 50-60% and growing, driven by miners' economic incentive to find the cheapest energy (increasingly renewables).
- The strongest environmental argument for mining targets stranded energy (flared gas, curtailed renewables); the strongest argument against is the opportunity cost of renewable energy consumed and the absolute scale of consumption.
- The energy debate is ultimately a value judgment about whether a decentralized, censorship-resistant monetary system justifies its energy cost — a political and philosophical question, not purely a technical one.
One Sentence to Remember
Proof of Work converts real-world energy expenditure into a digital security guarantee, and the cost of attacking the network scales directly with the resources honest participants deploy to defend it — making Bitcoin's security budget both its greatest expense and its greatest asset.