Learn › How Bitcoin Works (High school and up)
Proof of Work and Mining
13 minute lesson · then a 4-question quiz
Add this lesson to a curriculum for a student, a group or a team.
A lottery with a hash
A miner collects pending transactions into a candidate block and runs the block's data through the SHA-256 hash function. The network sets a target: a valid hash must be below it, which means it starts with a certain number of zeros. The only way to find such a hash is to try many times, changing a number in the block called a nonce, over and over. Each try is a ticket in a lottery. The more computing power a miner has, the more tickets it holds and the better its odds of winning a block.
Why make it costly?
The work is expensive in equipment and electricity, but a result is quick for everyone else to check: one hash shows it is valid. The cost is what makes it hard to cheat. To rewrite history, an attacker would have to redo the work of a block and all the ones after it, faster than the honest network adds new ones. That is why proof of work solves the Sybil problem: voting power comes from work done, not from the number of identities.
The winner earns the block subsidy, newly created bitcoin, plus the fees in the block. This reward pays miners and is also how new coins enter circulation.
How mining looks today
Early on, people mined with ordinary computers. Over time, specialized chips called ASICs took over, and many miners join pools, sharing rewards in proportion to work contributed to smooth out luck. Mining is now an industrial business that seeks cheap electricity. Critics worry about its energy use and about concentration of hash power in a few pools. Supporters argue the cost is the security and that miners can use surplus energy. These debates are covered in a later lesson.
Key ideas
- Miners try many hashes to find one below the network's target.
- The work is hard to do but easy to check.
- Rewriting history would require redoing the work faster than everyone else.
- Rewards are the block subsidy plus fees.
Try it with the free tools: The CFO Dad book
Quiz
Get 75% or better to finish this lesson. You can try as many times as you like.
Educational only. Not tax, legal, or investment advice. Numbers and rules change, so check current sources.
