How Is a Change in Bitcoin’s Difficulty Calculated and Implemented?
Bitcoin's difficulty adjusts every 2,016 blocks, which is approximately every two weeks, assuming a 10-minute block time. The adjustment algorithm compares the actual time taken to mine the previous 2,016 blocks against the target time (20,160 minutes).
If the blocks were mined faster, difficulty increases; if slower, it decreases. This ensures a consistent issuance schedule regardless of the total hash power on the network.