Glossary

Mining (Bitcoin)

Bitcoin mining is the process of using computational power to validate transactions, secure the network, and mint new bitcoins.

Key Takeaways

  • Bitcoin mining secures the network through proof of work: miners expend computational energy to find valid block hashes, making it prohibitively expensive to attack or rewrite the blockchain.
  • Miners earn revenue from two sources: the block subsidy (currently 3.125 BTC after the April 2024 halving) and transaction fees paid by users competing for limited block space.
  • The difficulty adjustment every 2,016 blocks ensures that blocks are found roughly every 10 minutes regardless of how much hashrate joins or leaves the network.

What Is Bitcoin Mining?

Bitcoin mining is the process by which new transactions are validated, added to the blockchain, and new bitcoins are brought into circulation. It is the mechanism that enforces Bitcoin's consensus rules without any central authority. Miners compete to solve a computational puzzle, and the winner earns the right to append the next block of transactions to the chain.

The term "mining" is an analogy to gold mining: just as extracting gold requires energy and equipment, producing new bitcoins requires electricity and specialized hardware. Unlike gold, however, Bitcoin's issuance follows a predictable schedule. The total supply is capped at 21 million BTC, and the rate of new issuance halves approximately every four years through the halving mechanism. The final bitcoin is projected to be mined around 2140.

Mining serves a dual purpose: it creates new coins and it secures the network. Even after all bitcoins have been issued, miners will continue to process transactions and earn revenue from fees, ensuring the network remains operational.

How It Works

At its core, mining is a race to find a number that, when combined with block data and hashed, produces an output below a specific threshold known as the difficulty target. This process involves several steps:

  1. Miners collect unconfirmed transactions from the mempool, typically prioritizing those with the highest fee rates (satoshis per virtual byte)
  2. These transactions are organized into a block template and hashed into a Merkle tree, producing a single Merkle root that commits to every transaction in the block
  3. A block header is assembled containing: the protocol version, the previous block's hash, the Merkle root, a timestamp, the difficulty target bits, and a nonce
  4. The miner repeatedly changes the nonce and computes the double SHA-256 hash of the block header, checking whether the result falls below the difficulty target
  5. If no valid hash is found after exhausting the 4-byte nonce space (about 4.3 billion attempts), the miner modifies the extraNonce field inside the coinbase transaction and restarts
  6. Once a valid hash is found, the block is broadcast to the network where other nodes verify it independently before adding it to their copy of the chain

The Coinbase Transaction

Every block begins with a special coinbase transaction that has no inputs. This transaction creates new bitcoins by paying the block subsidy plus all transaction fees in the block to the miner's address. Newly minted coins have a 100-block maturity period before they can be spent, which prevents miners from spending rewards from blocks that may later be orphaned during a chain reorganization.

The coinbase transaction also contains an extraNonce field that miners use to expand the search space beyond the 4-byte header nonce. This is critical because modern ASICs can exhaust the entire nonce range in under a second.

Difficulty Adjustment

Bitcoin's difficulty adjustment is a self-regulating feedback loop. Every 2,016 blocks (roughly two weeks), the protocol compares how long those blocks actually took to mine against the target of 20,160 minutes (2,016 blocks at 10 minutes each). If blocks came too fast, difficulty increases; if too slow, it decreases.

This mechanism ensures that Bitcoin's block production rate remains stable regardless of changes in total network hashrate. As of mid-2026, the mining difficulty sits around 125 trillion, and the network hashrate has surpassed 1 ZH/s (zettahash per second): a milestone reached in January 2026.

Block Header Structure

The 80-byte block header is what miners actually hash. Its fields are:

Field            Bytes   Description
─────────────────────────────────────────────────
Version            4     Protocol version
Previous Hash     32     Hash of the prior block
Merkle Root       32     Root of the transaction Merkle tree
Timestamp          4     Unix time (seconds)
Bits               4     Compact encoding of difficulty target
Nonce              4     Value miners iterate to find valid hash

The miner's job is to find a nonce (and extraNonce) such that SHA-256(SHA-256(header)) < target. Because hash functions are deterministic but unpredictable, the only way to find a valid hash is brute-force trial and error.

Hardware Evolution

Mining hardware has undergone four major generations, each delivering orders-of-magnitude improvements in hash rate per watt:

EraTechnologyPeriodCharacteristics
1CPU2009 to 2010Satoshi mined using a standard desktop processor
2GPU2010 to 2011Graphics cards offered 50 to 100x speedup through parallel processing
3FPGA2011 to 2012Programmable chips improved energy efficiency over GPUs
4ASIC2012 to presentPurpose-built SHA-256 chips dominate all mining today

Today, three manufacturers control the vast majority of the ASIC market: Bitmain (Antminer series), MicroBT (Whatsminer series), and Canaan (Avalon series). Flagship 2026 models like Bitmain's Antminer U3S23H reach 1,160 TH/s at 9.5 J/TH, while hydro-cooled and immersion-cooled units push efficiency even further.

CPU and GPU mining of Bitcoin is no longer economically viable. The specialization of ASICs means that general-purpose hardware cannot compete, as a single modern ASIC performs the equivalent work of millions of CPUs.

Mining Economics

Miners earn revenue from two sources: the block subsidy and transaction fees. The subsidy dominates today, but as it continues to halve, fees will become increasingly important for miner revenue. For a deeper analysis, see Bitcoin Mining Economics in 2026 and Bitcoin Fee Market Dynamics.

Block Subsidy Schedule

The halving cuts the subsidy in half every 210,000 blocks (approximately four years):

HalvingBlock HeightYearSubsidy (BTC)
0 (launch)0200950
1st210,000201225
2nd420,000201612.5
3rd630,00020206.25
4th (current)840,00020243.125
5th1,050,000~20281.5625

Profitability Factors

Mining profitability depends on a handful of critical variables. Electricity cost is the single largest factor, accounting for 60 to 80% of operating expenses. Profitable operations typically require electricity rates below $0.05 per kilowatt-hour.

  • Electricity cost: the dominant expense, with global average miner rates rising from $0.041/kWh in 2024 to $0.081/kWh in 2025
  • Hardware efficiency: measured in joules per terahash (J/TH), where lower is better. Machines above 25 J/TH became largely unviable after the 2024 halving
  • Bitcoin price: directly determines the dollar value of mined rewards
  • Network difficulty: as more hashrate joins, each miner's share of block rewards decreases
  • Transaction fees: contribute variable supplemental revenue, especially during periods of high demand

Solo Mining vs. Pool Mining

In the early days, individual miners could find blocks regularly with a single CPU. As network hashrate grew, the variance in solo mining became extreme: a solo miner might wait months or years between finding a block. Mining pools emerged to solve this problem.

A mining pool coordinates thousands of miners who combine their hashrate and split rewards proportionally. This smooths out income from a high-variance lottery into a more predictable stream. As of 2026, the largest pools include Foundry USA (approximately 26 to 37% of network hashrate), AntPool (14 to 19%), F2Pool (10 to 12%), ViaBTC (8 to 13%), and SpiderPool (around 11%).

The concentration of hashrate in a few large pools raises centralization concerns. If the top two pools coordinated, they could approach the threshold needed for a 51% attack. However, individual miners within a pool can switch pools at any time, providing a check on pool operators acting maliciously.

The Stratum Protocol

Miners communicate with pools using the Stratum protocol. The original Stratum V1 has been the standard for over a decade, but Stratum V2 is gaining adoption with encrypted connections, roughly 70% bandwidth reduction, and a job negotiation feature that lets miners construct their own block templates rather than relying on the pool. By mid-2026, seven of the largest pools have joined the Stratum V2 Working Group, representing approximately 75% of global hashrate.

Energy and Environmental Impact

Bitcoin mining consumes an estimated 138 TWh of electricity annually (as of early 2025), roughly 0.5% of global electricity production. This energy expenditure is not a side effect: it is the security mechanism. Proof of work requires that real-world resources be spent to produce blocks, making it economically infeasible to rewrite history without re-doing all of that work. For a detailed breakdown, see Bitcoin Mining Energy Mix in 2026.

The energy mix is shifting. According to a 2025 Cambridge CCAF survey of mining companies representing 48% of global hashrate, 52.4% of mining electricity now comes from sustainable sources (hydropower, wind, solar, and nuclear), up from 37.6% in 2022. Natural gas has replaced coal as the dominant fossil fuel source, with coal's share falling from 36.6% to 8.9% over the same period.

Why It Matters

Mining is the foundation of Bitcoin's trustless security model. Without miners, there would be no mechanism to prevent double-spending, enforce consensus, or issue new coins in a decentralized manner. Every layer built on top of Bitcoin: from the Lightning Network to Layer 2 protocols like Spark: ultimately inherits its security from the mining process that anchors the base chain.

For builders and users of Bitcoin Layer 2 solutions, understanding mining is essential. Concepts like block confirmations, fee estimation, and block time variance all stem from the mining process and directly affect how Layer 2 protocols design their settlement and security guarantees.

Risks and Considerations

Centralization Pressure

The economics of mining favor scale: large operations negotiate cheaper electricity, buy hardware in bulk, and amortize infrastructure costs. This creates a centralizing tendency where small miners are pushed out during low-margin periods, especially after halvings. The 2024 halving triggered significant industry consolidation, with publicly traded miners like Marathon and CleanSpark growing their share while smaller operators shut down.

Geographic and Regulatory Risks

Mining operations are subject to local regulations, energy policies, and political decisions. China's 2021 mining ban caused the largest hashrate migration in Bitcoin's history, temporarily reducing network hashrate by over 50%. Miners must navigate evolving regulatory frameworks around energy use, emissions reporting, and licensing requirements in jurisdictions worldwide.

Environmental Criticism

Bitcoin's energy consumption remains a focal point of public debate. Critics argue that the energy expenditure is wasteful, while proponents counter that mining incentivizes renewable energy development, monetizes stranded energy sources, and provides grid-balancing services. The ongoing shift toward sustainable energy sources is a meaningful trend, though the debate is far from settled.

Post-Halving Viability

Each halving cuts miner revenue from the subsidy in half overnight. Miners who were profitable before a halving may suddenly be operating at a loss. For the long-term health of the network, transaction fees must eventually compensate for declining subsidies. Whether Bitcoin's fee market will generate sufficient revenue to sustain security spending remains one of the most important open questions in Bitcoin's design. For analysis of this dynamic, see Bitcoin Halving Economics.

This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.