Crypto Mining Explained: How Bitcoin Mining Works
Mining is the process that secures proof-of-work blockchains. Miners race to solve a cryptographic puzzle; the winner gets to add the next block to the chain and collects a reward. This competition is intentionally expensive, which is what makes rewriting blockchain history prohibitively costly.
The hash puzzle
At the heart of mining is a hash function — a mathematical operation that takes any input and produces a fixed-length, apparently random output. Bitcoin uses SHA-256. The properties that make hash functions useful for mining are:
- Deterministic: the same input always produces the same output
- One-way: given the output, you cannot reverse-engineer the input
- Avalanche effect: changing one bit of input completely changes the output
The mining puzzle requires finding a nonce — a number inserted into the block header — such that when the block header is hashed, the result starts with a minimum number of zero bits. The more leading zeros required, the harder the puzzle. Since outputs are unpredictable, the only way to find a valid nonce is brute force: hash the block millions of times per second, incrementing the nonce each time, until you hit a valid result.
Difficulty adjustment
Bitcoin's protocol automatically adjusts the puzzle difficulty every 2,016 blocks (roughly two weeks). If recent blocks were found faster than one per 10 minutes on average, difficulty rises; if slower, it falls. This ensures that no matter how much mining hardware joins or leaves the network, blocks arrive at a predictable cadence. The Bitcoin network's hash rate has grown by many orders of magnitude since 2009, yet the 10-minute block time has remained consistent.
Block rewards and halving
When a miner finds a valid block, they receive two things: the block subsidy (new bitcoin minted by the protocol) and the transaction fees from all transactions included in that block. The block subsidy follows a fixed schedule: it halves every 210,000 blocks.
Bitcoin halvings:
- 2009 (genesis): 50 BTC per block
- 2012: 25 BTC
- 2016: 12.5 BTC
- 2020: 6.25 BTC
- 2024: 3.125 BTC
The halving reduces the rate at which new bitcoin enters circulation, contributing to Bitcoin's fixed total supply cap of 21 million BTC. After the last halving cycle (around 2140), miner revenue will come entirely from transaction fees. Whether fee revenue alone can sustain adequate mining security is an open question in blockchain research.
ASIC vs GPU mining
Not all mining hardware is equal. In Bitcoin's early years, anyone with a CPU could mine. As competition intensified, miners moved to GPUs for parallel hashing power, then to FPGAs, and eventually to ASICs — chips with circuits etched to perform exactly one task: SHA-256 hashing.
Modern Bitcoin ASICs (Bitmain Antminer S21, MicroBT Whatsminer M60 series) achieve hash rates measured in petahashes per second (PH/s) while consuming 3–5 kilowatts. A modern GPU, by comparison, achieves megahashes per second on SHA-256 and is thousands of times less efficient. For Bitcoin, GPU mining is not economically viable.
Some proof-of-work coins use memory-hard algorithms (Equihash, RandomX, Ethash) that reduce the ASIC advantage by requiring large amounts of fast memory, which is expensive to include on a custom chip. Monero (XMR) uses RandomX specifically to maintain CPU competitiveness and resist ASIC centralization.
Mining pools
A single mining rig finding a Bitcoin block solo might take hundreds of years on average, given the current difficulty. Mining pools solve this by letting many miners combine hash rate. The pool finds blocks regularly and splits the reward proportionally — minus a pool fee of 1–3%.
Major pools — Foundry USA, AntPool, F2Pool, ViaBTC — each control significant percentages of Bitcoin's total hash rate. Pool concentration raises theoretical concerns: if a single entity controls 51% of hash rate, they can reorganize the chain. In practice, the economic incentives strongly disfavor such attacks — a 51% attacker would devalue the coin they spent billions to attack — but the theoretical risk drives ongoing debate about mining decentralization.
The energy debate
Proof-of-work mining consumes significant electricity — Bitcoin's network uses roughly as much power as a mid-sized country by some estimates. Critics argue this energy expenditure is wasteful; proponents argue it is the cost of trustless, sovereign digital money and that a growing share of mining uses stranded or renewable energy.
Ethereum switched from proof-of-work to proof-of-stake in September 2022 (the Merge), reducing its energy consumption by approximately 99.95%. Bitcoin has no announced plans to change its consensus mechanism, and most Bitcoin proponents view energy expenditure as a feature, not a bug — it makes the network's security physically costly to attack.
Mining on ChainClarity
- Proof of Work — the consensus mechanism underlying mining
- Blockchain — the chain of blocks miners compete to extend
- Bitcoin — the primary proof-of-work network
- Proof of Stake — the energy-efficient alternative to mining
Frequently asked questions
What is crypto mining?
Crypto mining is the process by which new transactions are verified and added to a proof-of-work blockchain. Miners compete to solve a cryptographic puzzle: find a number (the nonce) that, when added to the block header and hashed, produces an output below a target value. The first miner to find a valid nonce broadcasts the block to the network, collects the block reward in the network's native currency, and the process repeats for the next block.
What is a hash puzzle and why is it hard?
A hash function takes any input and produces a fixed-length output that appears random. SHA-256, used by Bitcoin, always outputs 256 bits. The output is unpredictable: change one character in the input and the output changes completely. The mining puzzle is: find an input (block header + nonce) whose SHA-256 output starts with a certain number of zero bits. There is no shortcut — miners must try billions of random nonce values per second until they get lucky. The network adjusts the difficulty every 2,016 blocks (roughly two weeks) to keep the average block time at 10 minutes regardless of total mining power.
What is the Bitcoin halving?
Bitcoin's block reward is programmed to halve every 210,000 blocks, approximately every four years. When Bitcoin launched in 2009, miners earned 50 BTC per block. After the first halving (2012), it became 25 BTC. After subsequent halvings: 12.5 BTC (2016), 6.25 BTC (2020), 3.125 BTC (2024). This programmatic supply reduction continues until roughly 2140, when the last fraction of a bitcoin will be mined and miners will be compensated solely by transaction fees. The halving is a central part of Bitcoin's fixed-supply design.
What is the difference between ASIC and GPU mining?
ASICs (application-specific integrated circuits) are chips designed exclusively to compute SHA-256 hashes as fast as possible. They vastly outperform GPUs on Bitcoin and have made GPU Bitcoin mining economically non-viable. GPUs remain competitive for mining coins that use memory-hard algorithms (like Ethereum used before its proof-of-stake transition, or Zcash) specifically designed to resist ASIC optimization. ASICs deliver higher hash rates per watt but are single-purpose: an Antminer S19 cannot mine Ethereum-family coins efficiently. GPUs are flexible but slower per unit of energy for SHA-256.
What is a mining pool?
Mining pools are cooperatives where miners combine their computing power. Solo mining means you might wait years between block wins; a pool finds blocks regularly and distributes rewards proportionally to each member's contributed hash rate. Most individual miners join pools to smooth out their income. The pool operator typically charges a 1–3% fee. Large pools — Foundry USA, AntPool, F2Pool — control significant shares of Bitcoin's hash rate, which draws scrutiny around potential centralization of mining power.