Nonce
A 4-byte number in the block header that miners change over and over during proof of work until the hash of the block header is less than or equal to the target. Each new value is a new attempt.
Alsonumber used oncenonce fieldextra nonce
On the learning path: Stage 1 · Step 3 – How does Bitcoin work?
The nonce (usually explained as ‘number used once’) is a 4-byte field in the header of every Bitcoin block. In proof of workGlossaryProof of workThe method by which miners prove that they have done real computing work for a new block. It lets the network agree on the valid chain without a central authority, and makes rewriting old blocks extremely expensive.On the learning path: Stage 1 · Step 3 – How does Bitcoin work? →In the glossary →, it is the dial that miners turn.
What the nonce is for
A block is only valid if the hashGlossaryHash (hash value)A fixed-length digital fingerprint that a hash function calculates from any data. Even the tiniest change produces a completely different value, and the original data can’t be worked out from the hash.On the learning path: Stage 1 · Step 3 – How does Bitcoin work? →In the glossary → of its header is less than or equal to a target. So miners change the nonce and compute the hash again: each value gives a completely different hash, and therefore a new attempt.[1]
The right nonce can’t be predicted, only found by trial and error. The more a miner computes, the better their chances – but there’s no guarantee. Checking a find, on the other hand, takes any node a single hash calculation.
When the values run out
4 bytes are 32 bits, or around 4.3 billion possible values. A mining device with an assumed 200 TH/s (200 trillion hashes per second) would run through them in about 21 microseconds (own calculation). Miners then change the timestamp or a free field in the block’s first transaction (the ‘extra nonce’), which changes the Merkle root in the block header. After that, the search starts again.[1]
More under Mining & proof of work.
Related terms
These terms are closely connected.
- This termNonce
- Proof of workThe method by which miners prove that they have done real computing work for a new block. It lets the network agree on the valid chain without a central authority, and makes rewriting old blocks extremely expensive.
- Hash (hash value)A fixed-length digital fingerprint that a hash function calculates from any data. Even the tiniest change produces a completely different value, and the original data can’t be worked out from the hash.
- MiningThe process in which specialised computers create new blocks using proof of work. In doing so, miners confirm transactions and are rewarded with newly created bitcoin plus the fees of the transactions in the block.
- BlockA bundle of transactions added to the blockchain roughly every ten minutes on average. Each block refers to its predecessor by its hash and contains the reward for the miner.
- SHA-256A standardised cryptographic hash function that calculates a 256-bit fingerprint from any data. Bitcoin uses it for mining and identifiers – and even hashes the block header twice in a row.
Explained in depth
These articles go into more detail:
- Deep dive · Stage 1Mining & proof of workHow Bitcoin mining works: the hash puzzle, difficulty adjustment, rewards, pools and energy – and why mining at home doesn’t pay in Germany.
- Stage 1 · Step 3How does Bitcoin work?Blockchain, transactions, nodes, miners and consensus: how Bitcoin’s building blocks fit together – with a payment’s journey, step by step.
More from „Technology“
Sources1 sources · 1 publishers
The superscript numbers in the text refer to these sources.
- Developer Reference: Block Chain (Block Headers) – bitcoin.org Developer Documentation (accessed 28/09/2026)
This entry is for education only and is not investment, tax or legal advice.