How Bitcoin Mining Works: A Beginner's Explainer
How does Bitcoin mining work? A plain-English guide to proof-of-work, hash competition, and how new blocks get added to the blockchain.
Bitcoin mining is the process by which specialized computers compete to solve a cryptographic puzzle in order to add the next block of transactions to the blockchain, earning newly created bitcoin and transaction fees as a reward. It's both how new bitcoin enters circulation and how the network agrees on transaction history without a central authority.
The problem mining solves
Bitcoin is a decentralized ledger with no central bank or administrator. Thousands of independent computers (nodes) hold copies of the transaction history, and there needs to be a way for them to agree on which transactions happened and in what order — without trusting each other. This is called the consensus problem, and it's explained in more depth in our blockchain glossary entry.
Bitcoin solves it with proof-of-work: miners must expend real computational effort to earn the right to propose the next block, making it costly to cheat and easy for others to verify.
How proof-of-work actually works
Miners gather pending transactions from the mempool into a candidate block. They then repeatedly hash the block's contents combined with a changing number called a nonce, using the SHA-256 algorithm, hoping to produce a hash output below a specific target value.
There's no way to predict which nonce will produce a valid hash — miners can only guess, trillions of times per second, until one succeeds. This "hash competition" is why more computing power (hashrate) improves your odds, but never guarantees a win on any given attempt.
Step by step
- A miner assembles unconfirmed transactions into a block template.
- The miner repeatedly hashes the block header with different nonce values.
- The first miner to find a hash below the network's target broadcasts the block.
- Other nodes independently verify the block follows all rules and the hash is valid.
- If valid, nodes add the block to their copy of the chain, and the miner receives the block subsidy plus fees.
This process repeats roughly every 10 minutes, forming the ongoing chain of blocks that gives Bitcoin its name.
Why verification is cheap but solving is expensive
A key design feature is asymmetry: finding a valid hash takes enormous trial-and-error computation, but checking that a submitted hash is valid takes a fraction of a second. This means any node, even a laptop, can independently verify that miners followed the rules, without trusting them.
What miners actually earn
Miner revenue currently comes from two sources: the block subsidy (newly issued bitcoin) and transaction fees paid by users who want their transactions included quickly. Over time, as explained in our article on what happens when the mining subsidy runs out, the balance shifts increasingly toward fees.
Mining hardware evolution
Early Bitcoin mining happened on ordinary CPUs, then moved to GPUs, then FPGAs, and now almost exclusively runs on ASICs — chips custom-built for nothing but SHA-256 hashing. We cover this progression in detail in our hardware explainer.
Individual miners vs pools
Because ASICs are so powerful and competition is global, an individual miner's odds of finding a block alone are extremely low unless they run enormous amounts of hardware. Most miners join mining pools, combining hashrate with others and splitting rewards proportionally, which smooths out payouts. We compare the tradeoffs in solo mining vs pool mining.
Comparison: key mining concepts
| Term | What it means |
|---|---|
| Hashrate | Total guessing speed of a miner or the network, measured in hashes per second |
| Difficulty | How hard the target is to hit, adjusted periodically to keep block times stable |
| Block subsidy | Newly created bitcoin awarded to the block finder |
| Nonce | The changing number miners vary while searching for a valid hash |
Common misconceptions
Mining doesn't involve "solving equations" in a mathematical sense — it's brute-force guessing, not clever computation. There's also no way to mine "faster" through smarter algorithms; SHA-256 is designed so the only real advantage comes from raw computing speed and efficient energy use. Mining also isn't the same as buying or trading bitcoin; it's a separate, capital- and energy-intensive business.
Bottom line
Bitcoin mining is the mechanism that lets a decentralized network reach agreement on transaction history without a central authority, using computational competition to make cheating expensive and verification cheap. Understanding proof-of-work is foundational to understanding Bitcoin itself — for a broader picture of how it compares to alternative consensus models, see our guide to proof-of-work vs proof-of-stake, and for the basics of Bitcoin as an asset, read what is Bitcoin.
Related articles
This article is for educational purposes only and is not financial advice. DeFi involves significant risk, including total loss of funds. Always do your own research.