Why Is the Nonce Limited to 32 Bits and What Happens When It Is Exhausted?

The nonce field in the Bitcoin block header is 32 bits, allowing for over 4 billion possible values. This limit was chosen for simplicity and historical reasons.

When miners exhaust all 32-bit nonce values for a given block header configuration, they must modify the 'extranonce' field, which is part of the Coinbase transaction, to generate new Merkle Roots. This changes the block header entirely, allowing the nonce search to start over.

If the Nonce Space Is Exhausted, What Is the Miner’s Next Step?
Where Is the Merkle Root Stored in a Blockchain Block?
What Is the Role of the Merkle Root in a Block Header?
What Is the Difference between a Nonce and an Extranonce?
How Does a Change in the Merkle Root Affect the Block’s Nonce and the Subsequent Mining Process?
How Does a Merkle Root Verify a Transaction without Exposing the Entire Block?
How Does a Lightweight Wallet Use the Merkle Root for Verification?
What Is the Purpose of a “Block Header” in a Blockchain?

Glossar