How Does the ‘Difficulty Adjustment’ Mechanism Work?

The difficulty adjustment mechanism automatically changes the mining difficulty of a cryptocurrency network, like Bitcoin, to ensure that the average time between blocks remains constant (e.g. 10 minutes for Bitcoin).

It adjusts approximately every two weeks (2016 blocks). If more computing power joins the network, difficulty increases; if power leaves, it decreases.

What Specific Formula Is Used to Calculate the Bitcoin Mining Difficulty Adjustment?
How Does the Difficulty Adjustment Mechanism Relate to SHA-256’s Output?
What Is the Target Block Time for Bitcoin?
How Does the Difficulty Adjustment Mechanism Respond to Changes in Total Network Hash Rate?
How Many Blocks Trigger a Difficulty Adjustment in Bitcoin?
How Is the Difficulty Adjustment Mechanism a Defense against a Rapid Hashrate Drop?
What Metric Is Used to Measure the Total Computing Power of the Network?
How Does Mining Difficulty Adjust Based on the SHA-256 Hashing Rate?

Glossar