TeachMeBitcoin

Nonce Distribution Analysis

From TeachMeBitcoin, the free encyclopedia Reading time: 2 min

Nonce Distribution Analysis

If mining is truly random and honest, the winning Nonces found in the blockchain should be uniformly distributed. This means that if you look at thousands of blocks, you should see as many blocks with low nonces as with high nonces.

1. Uniform Distribution

Mathematically, for an honest miner, any nonce between 0 and 4,294,967,295 has an equal probability of being the winner. When we plot the nonces of all blocks in Bitcoin history, we generally see a "white noise" pattern—a flat distribution across the entire range.

2. Nonce LSB Biases

In the early days of Bitcoin, researchers discovered "Nonce LSB" (Least Significant Byte) biases in some blocks.

3. Patoshi Pattern (Satoshi's Nonces)

The most famous nonce distribution analysis is the "Patoshi Pattern." Researcher Sergio Lerner analyzed the nonces of the very first blocks (mined in 2009).

4. Modern ASIC Entropy

Modern ASICs are highly optimized. Because they exhaust the 4-billion range so fast, they often treat the 4 bytes as a "fast-loop." The winning nonces found by ASICs today are almost perfectly uniform, as the chips are essentially sampling a random slice of a multi-dimensional search space.

[!TIP] Analyzing nonces is a form of "On-Chain Forensics." It can reveal which mining pools are using custom hardware and even help identify clusters of blocks mined by the same entity.

In the final section, we will build a Python Nonce Brute-Forcer to find a winning hash ourselves.

☕ Help support TeachMeBitcoin

TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:

Ethereum: 0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin: bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana: 4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J
Address copied to clipboard!