Glossary·Technical

Nonce

The 32-bit field in a block header that a miner changes to get a different hash. It is the only part of the header whose sole purpose is to be varied, and it is far too small to search alone.

Mining is the search for a header that hashes below the target, and the nonce is the obvious thing to change. Thirty-two bits allows about four billion attempts, which modern hardware exhausts in well under a second — so the nonce by itself stopped being a sufficient search space more than a decade ago.

Miners therefore vary other fields as well. The timestamp can move within its permitted bounds, and the coinbase transaction’s input script holds arbitrary data whose change alters the Merkle root and so the header. That extra space is called the extranonce, and it is the reason the coinbase carries free-form bytes at all.

A common misreading is that the nonce is a secret or a key. It is neither. It is published in every block, means nothing on its own, and is interesting only as evidence that somebody tried many values before finding one that worked.

What the field proves is bounded. A valid nonce shows that a hash below the target was found; it says nothing about who found it, how long it took, or whether the block’s contents are valid — those are separate checks on separate data.

Where this comes up

Used in

Nearby terms

Reviewed Nov 2026