What Specific Formula Is Used to Calculate the Bitcoin Mining Difficulty Adjustment?

The Bitcoin difficulty adjustment is calculated by taking the expected time for 2016 blocks (two weeks) and dividing it by the actual time it took to mine the previous 2016 blocks. This ratio is then multiplied by the current difficulty level.

The formula is: New Difficulty = Current Difficulty (Target Time of 2016 Blocks / Actual Time of 2016 Blocks). This ensures a self-regulating network.

How Is the ‘Target’ Hash Value Calculated Based on the Difficulty?
How Does the Difficulty Adjustment Mechanism Relate to SHA-256’s Output?
How Is the ‘Difficulty’ Adjusted in the Bitcoin Mining Process?
How Does the Pool’s Software Communicate the Current Share Difficulty to the Mining Client?
How Is the “Target Hash” Calculated from the Difficulty Setting?
What Is the “Retarget Period” in the Bitcoin Difficulty Adjustment Mechanism?
How Does the Difficulty Adjustment Mechanism Respond to Changes in Total Network Hash Rate?
If the Hash Rate Suddenly Doubles, How Soon Will the Next Difficulty Adjustment Occur?

Glossar