21 BTC

Difficulty adjustment

Updated Reviewed articleRandom article
In plain words

Every 2,016 blocks (about two weeks) Bitcoin makes mining harder or easier so that a block still arrives about every ten minutes on average.

Short definition

How hard it is to find a block; adjusts every 2,016 blocks to keep ~10-minute blocks.

The rule

At each multiple of 2,016 blocks every node compares how long the last period took with the intended two weeks (2,016 × 10 minutes) and scales the target accordingly. The change is clamped to a factor of four in either direction.

If hashrate grows, blocks come faster and the next adjustment raises difficulty; if miners switch off (as after China's 2021 mining ban), blocks slow down until difficulty drops. This feedback loop keeps the issuance schedule predictable.

Next adjustment countdown Glossary on the Learn page

See also

References

  1. Bitcoin Core source: pow.cpp github.com
  2. Bitcoin Wiki: Difficulty en.bitcoin.it