intermediate lesson • 12 min
Proof of Work: How Blockchains Use Computation for Consensus
What you will learn
By the end of this lesson, you should be able to explain what Proof of Work is, describe how Bitcoin miners search for a valid block hash, explain why block headers link blocks together, distinguish cumulative proof of work from simple block count, describe difficulty adjustment, and identify the main security and resource considerations.
Evidence & citations11 sources
Proof of Work is a consensus model in which a participant earns the opportunity to publish the next block by solving a computationally difficult problem that other participants can verify relatively easily. (supported)
In Bitcoin, mining repeatedly changes block-header data such as a nonce until the resulting hash is below the network's target threshold. (supported)
Bitcoin block headers include the previous block's header hash and the Merkle-root hash, and the header is hashed as part of Bitcoin's proof-of-work algorithm. (supported)
Bitcoin nodes resolve competing valid chains by following the chain with the greatest cumulative proof of work, not simply the chain containing the greatest number of blocks. (supported)
Bitcoin adjusts its proof-of-work difficulty periodically to compensate for changes in hashing capacity and maintain an approximately stable target block-production interval. (supported)
Rewriting a confirmed Bitcoin block requires reproducing that block's proof of work and the proof of work of subsequent blocks, while competing with the honest chain's continuing growth. (supported)
Proof-of-work networks can consume substantial computational and energy resources because miners repeatedly attempt cryptographic hashes to produce a valid block, in addition to transaction and block validation. (supported with limitations)
Proof of Work in simple terms
Imagine a contest in which everyone may try to solve a difficult puzzle, but checking a proposed answer takes only a moment. The first participant to produce a valid answer earns the opportunity to publish the next block. In Bitcoin, participants repeatedly change data in a block header and calculate hashes until one hash is below the network’s target. Other participants can check the result much more easily than it was found.
Evidence & citations4 sources
Proof of Work is a consensus model in which a participant earns the opportunity to publish the next block by solving a computationally difficult problem that other participants can verify relatively easily. (supported)
In Bitcoin, mining repeatedly changes block-header data such as a nonce until the resulting hash is below the network's target threshold. (supported)
The core idea
Proof of Work is a consensus model. A participant spends computation to solve a problem that is difficult to solve but relatively easy for other participants to verify. A valid solution gives that participant the opportunity to publish the next block. The work creates a measurable basis for choosing between competing histories without relying simply on the number of blocks in each history.
Evidence & citations6 sources
Proof of Work is a consensus model in which a participant earns the opportunity to publish the next block by solving a computationally difficult problem that other participants can verify relatively easily. (supported)
Bitcoin nodes resolve competing valid chains by following the chain with the greatest cumulative proof of work, not simply the chain containing the greatest number of blocks. (supported)
How Bitcoin’s puzzle works
In Bitcoin, mining repeatedly changes block-header data, such as a nonce, and hashes the resulting header. The goal is to obtain a hash below the network’s target threshold. The header includes the previous block’s header hash and the Merkle-root hash, so the header connects the proposed block to both the preceding chain and the transactions represented by that Merkle root. Because changing relevant data changes the hash, miners can try many candidate values until one satisfies the target.
Evidence & citations4 sources
In Bitcoin, mining repeatedly changes block-header data such as a nonce until the resulting hash is below the network's target threshold. (supported)
Bitcoin block headers include the previous block's header hash and the Merkle-root hash, and the header is hashed as part of Bitcoin's proof-of-work algorithm. (supported)
Choosing and maintaining the chain
When valid chains compete, Bitcoin nodes follow the chain with the greatest cumulative proof of work. This is not necessarily the chain with the greatest number of blocks, because blocks can represent different amounts of work depending on their difficulty targets. Bitcoin also adjusts its proof-of-work difficulty periodically in response to observed block-production speed and changes in hashing capacity, helping maintain an approximately stable target interval for producing blocks.
Evidence & citations5 sources
Bitcoin nodes resolve competing valid chains by following the chain with the greatest cumulative proof of work, not simply the chain containing the greatest number of blocks. (supported)
Bitcoin adjusts its proof-of-work difficulty periodically to compensate for changes in hashing capacity and maintain an approximately stable target block-production interval. (supported)
Example: two competing Bitcoin chains
Suppose two valid branches appear after a shared block. Nodes do not decide solely by counting which branch currently has more blocks. They compare the cumulative proof of work represented by the branches and follow the chain with the greater total work. If someone tries to rewrite an earlier confirmed block, they must reproduce the proof of work for that block and every later block in the rewritten history while competing with the honest chain as it continues to grow. This makes rewriting increasingly demanding, although the claim describes the requirement rather than guaranteeing that it is impossible.
Evidence & citations4 sources
Bitcoin nodes resolve competing valid chains by following the chain with the greatest cumulative proof of work, not simply the chain containing the greatest number of blocks. (supported)
Rewriting a confirmed Bitcoin block requires reproducing that block's proof of work and the proof of work of subsequent blocks, while competing with the honest chain's continuing growth. (supported)
Costs and limitations
Proof-of-work networks can consume substantial computational and energy resources. Miners repeatedly attempt cryptographic hashes to produce a block, in addition to the computation used for transaction and block validation. Security also depends on the work represented by the chain: changing history requires redoing work for the altered block and subsequent blocks while trying to keep up with the honest chain’s continuing growth.
Evidence & citations3 sources
Proof-of-work networks can consume substantial computational and energy resources because miners repeatedly attempt cryptographic hashes to produce a valid block, in addition to transaction and block validation. (supported with limitations)
Rewriting a confirmed Bitcoin block requires reproducing that block's proof of work and the proof of work of subsequent blocks, while competing with the honest chain's continuing growth. (supported)
Common misconceptions
**“The longest chain always wins.”** More precisely, Bitcoin nodes follow the chain with the greatest cumulative proof of work, not simply the greatest block count. **“Mining is mainly checking transactions.”** Transaction and block validation are necessary, but Proof of Work also requires repeated hash attempts to meet a target. **“A valid hash is hard for everyone to check.”** The puzzle is designed so finding a qualifying result is computationally difficult, while checking a proposed result is relatively easy. **“Difficulty never changes.”** Bitcoin adjusts difficulty periodically to compensate for changes in hashing capacity and observed production speed.
Evidence & citations8 sources
Bitcoin nodes resolve competing valid chains by following the chain with the greatest cumulative proof of work, not simply the chain containing the greatest number of blocks. (supported)
Proof-of-work networks can consume substantial computational and energy resources because miners repeatedly attempt cryptographic hashes to produce a valid block, in addition to transaction and block validation. (supported with limitations)
Proof of Work is a consensus model in which a participant earns the opportunity to publish the next block by solving a computationally difficult problem that other participants can verify relatively easily. (supported)
Bitcoin adjusts its proof-of-work difficulty periodically to compensate for changes in hashing capacity and maintain an approximately stable target block-production interval. (supported)
Key takeaways
Proof of Work uses computational effort to decide who may publish the next block. In Bitcoin, miners vary block-header data and search for a hash below a target. Headers link each block to the previous block and summarize its transactions. Nodes select the chain with the greatest cumulative proof of work, while periodic difficulty adjustment helps stabilize block production. The model can strengthen resistance to rewriting history, but it can also require substantial computational and energy resources.
Evidence & citations11 sources
Proof of Work is a consensus model in which a participant earns the opportunity to publish the next block by solving a computationally difficult problem that other participants can verify relatively easily. (supported)
In Bitcoin, mining repeatedly changes block-header data such as a nonce until the resulting hash is below the network's target threshold. (supported)
Bitcoin block headers include the previous block's header hash and the Merkle-root hash, and the header is hashed as part of Bitcoin's proof-of-work algorithm. (supported)
Bitcoin nodes resolve competing valid chains by following the chain with the greatest cumulative proof of work, not simply the chain containing the greatest number of blocks. (supported)
Bitcoin adjusts its proof-of-work difficulty periodically to compensate for changes in hashing capacity and maintain an approximately stable target block-production interval. (supported)
Rewriting a confirmed Bitcoin block requires reproducing that block's proof of work and the proof of work of subsequent blocks, while competing with the honest chain's continuing growth. (supported)
Proof-of-work networks can consume substantial computational and energy resources because miners repeatedly attempt cryptographic hashes to produce a valid block, in addition to transaction and block validation. (supported with limitations)
Knowledge check
Test what you just learned.
Complete this short assessment for Proof of Work. You will get explanations immediately after grading.
Reference library