Skip to content
Bitcoin Beat Proof of Work, LiveOpen live experience ↗

How Bitcoin proof of work becomes a block

Updated · Bitcoin Beat

Bitcoin proof of work is a search for a block-header hash that meets the network’s target. Finding such a hash takes repeated attempts; checking a proposed result is much cheaper. Nodes still validate the block’s other consensus rules.

From transactions to a candidate block

A miner chooses transactions and builds a candidate block. Transaction hashes combine into a Merkle root. The block header commits to that root and to the previous block, along with fields such as time, the encoded target and a nonce. Changing a transaction changes the commitment, so a different candidate requires different work.

Why try another nonce?

The header is hashed twice with SHA-256. The resulting number must be at or below the target. A smaller target makes qualifying hashes harder to find. Miners change the nonce and other permitted inputs to make fresh attempts. Progress is not a percentage toward a known winning answer: no attempt promises that the next will succeed.

What the chapters mean

Is my browser mining Bitcoin?

The browser does a small amount of trial hashing for the explanation, using a demonstrative candidate. It is not connected to a mining pool, does not submit shares or blocks, and offers no payout or withdrawal. Its attempt count describes this page’s own work, not the network’s total work.

Check the protocol

Read the Bitcoin block-chain developer guide and the block-header reference for the fields and proof-of-work rule. See the data guide for how this visualization obtains network observations.