Bitcoin mining isn't what most people think it is. It's not digging for coins. It's a global guessing game where computers race to find one lucky number. Here's how it works and why it matters.
READING TIME: 8 MIN
Bitcoin mining is computers playing a lottery billions of times per second. The winner gets to add the next batch of transactions to the ledger and receives newly issued Bitcoin as a reward. The work required to win is what makes the ledger secure, because changing history would require redoing all that work.
Bitcoin's ledger has no central authority updating it. Thousands of computers maintain it together. Which creates a specific problem: if two computers try to add conflicting entries at the same time, which one wins?
More importantly: how do you prevent someone from going back and rewriting history in the ledger? Just editing an old transaction to say they still have Bitcoin they already spent?
Proof of work is the answer to both.
Here's how it actually works in plain terms.
Bitcoin groups transactions together into blocks. Batches of roughly 1,500 to 3,000 transactions, depending on their size 🔍 verify×DON'T TRUST, VERIFYClaim: Blocks typically contain 1,500-3,000 transactions.Verify at: mempool.space recent blocks ↗Varies with transaction size and weight. Block weight limit is 4 million weight units.. Before a block can be added to the ledger, a computer on the network has to solve a puzzle.
The puzzle is a guessing game. The Bitcoin software asks computers to find a specific number, one that, when combined with the transactions in the block and run through a mathematical function, produces an output that meets certain criteria.
There's no way to calculate that number directly. You can't work backwards from the answer. The only way to find it is to guess. Over and over and over, as fast as your hardware allows.
The first computer to find the right number gets to add the block to the ledger and receives newly issued Bitcoin as a reward. This is what Bitcoin mining is. Not digging. Guessing.
Finding the right number is deliberately difficult. The Bitcoin protocol adjusts the difficulty every 2,016 blocks (approximately two weeks) to ensure that, regardless of how much total computing power is on the network, a new block is found approximately every 10 minutes 🔍 verify×DON'T TRUST, VERIFYClaim: Bitcoin retargets difficulty every 2,016 blocks to maintain 10-minute average block time.Verify at: Bitcoin developer reference: block chain ↗ · mempool.space difficulty chart ↗2,016 blocks is approximately two weeks at 10-minute target. Retarget algorithm is part of the consensus rules..
More miners means harder puzzle. Fewer miners means easier puzzle. The difficulty floats to maintain the ten-minute target.
Why does this matter?
Because the work is what makes the ledger secure. Every block that gets added contains a fingerprint (a hash) of the block before it. Change anything in an old block and its fingerprint changes. Which breaks the fingerprint of the next block. Which breaks the next one after that.
To rewrite history, you'd have to redo the proof of work for every block from the one you changed all the way to the current block, faster than the rest of the network is adding new blocks.
With thousands of computers all working on the legitimate chain, the attack chain would fall further and further behind. The amount of computing power required to pull this off exceeds what any actor on earth currently controls. See Why Bitcoin Can't Be Shut Down for the full scale argument.
Bitcoin's rule for resolving disagreements is simple: the longest valid chain wins.
If two different miners find valid blocks at the same time, the network temporarily has two competing versions of the ledger. Within minutes, one chain will grow longer than the other as new blocks are added. All nodes switch to the longer chain. The shorter one is abandoned.
The honest chain, the one with the most legitimate miners working on it, always grows the fastest. This is what allows thousands of independent computers that don't trust each other to reach agreement on a single shared ledger.
Think of it like this: ten people rolling dice will hit snake eyes more often than one person over the same period. Any individual might get lucky once. But the majority always wins over time. The longest chain is where the majority is working. The longest chain is truth.
Proof of work uses real energy. This is intentional. The energy expenditure is what makes the security real. You cannot fake the work without actually doing it.
Bitcoin's energy usage is frequently criticized as wasteful. Two honest observations.
First, the energy used to secure a global, permissionless monetary network that settles billions of dollars in transactions without any central authority might be a reasonable trade-off. Every existing monetary system, from gold mining to banking data centers to the physical security around cash and gold vaults, uses enormous energy too. The comparison should be against the alternative, not against nothing 🔍 verify×DON'T TRUST, VERIFYClaim: Bitcoin energy usage is measurable and comparable to other monetary infrastructure.Verify at: Cambridge CBECI energy estimates ↗CBECI publishes annualized TWh estimates. Compare to gold mining and banking infrastructure independently..
Second, the mix of energy sources matters. Bitcoin mining is increasingly powered by energy that would otherwise be wasted. Stranded natural gas, curtailed renewable energy, excess hydro 🔍 verify×DON'T TRUST, VERIFYClaim: Bitcoin mining uses a significant share of sustainable or otherwise-wasted energy.Verify at: Bitcoin Mining Council quarterly reports ↗ · Cambridge CBECI ↗BMC is an industry association, so treat its figures as one input. Cambridge estimates cover the energy mix more conservatively..
See Bitcoin and Energy for the full debate, with both sides argued in detail.
Last updated 2026-04-22. Educational content, not financial advice. See Disclosures.