<p>What's the relation between the difficulty and the number of zero bits in the hash?</p>
<p>For example, as of writing, the best hash is:</p>
<pre><code>000000000000000000028a424dde3445bfe99f5097b513b245c5a5a9bded20c4
</code></pre>
<p>This is (19 zeroes) × (4 bits) = 76 leading zero bits. The difficulty is 83126997340024.61.</p>

CC BY-SA 4.0
2024-04-01T10:18:03.620Z
[Leading zeroes are irrelevant in Bitcoin](https://bitcoin.stackexchange.com/a/121933/13866)
RedGrittyBrick
CC BY-SA 4.0
2024-04-01T22:12:11.680Z
If you just want a formula, then `N` leading zero bits corresponds to a difficulty of `2^(N - 32.000022)` approximately. But as pointed out in the other comment, "leading zero bits" is a simplification, and is not how Bitcoin works internally.
Pieter Wuille
<difficulty>
Relation between difficulty and number of leading zero bits in hash?
Geremia
# Relation between difficulty and number of leading zero bits in hash?

(Asked by: username_0 on 2024-04-01)

What's the relation between the difficulty and the number of zero bits in the hash?
For example, as of writing, the best hash is:
000000000000000000028a424dde3445bfe99f5097b513b245c5a5a9bded20c4

This is (19 zeroes) × (4 bits) = 76 leading zero bits. The difficulty is 83126997340024.61.

**Tags:** difficulty

> **Comments:**
> **username_1**: [Leading zeroes are irrelevant in Bitcoin](https://bitcoin.stackexchange.com/a/121933/13866)  
> **username_2**: If you just want a formula, then `N` leading zero bits corresponds to a difficulty of `2^(N - 32.000022)` approximately. But as pointed out in the other comment, "leading zero bits" is a simplification, and is not how Bitcoin works internally.  

---

## 0 answers

