Difficulty adjustment
Terms used in this lesson
- Hash rate
- The number of mining hash attempts performed per second.
- Proof-of-work target
- The maximum header-hash value accepted for a block; lowering it makes valid hashes harder to find.
Bitcoin retargets periodically to keep average block production near ten minutes despite changing hash rate.
Loading lesson visuals...
Learn the idea
Bitcoin adjusts proof-of-work difficulty every 2,016 blocks. Nodes compare the period's actual timestamp span with the two-week target span, clamp extreme adjustment, and derive a new target. The rule aims for a long-run average near ten minutes per block, not an exact schedule for each block.
Complete an adjustment period
The target normally remains constant within a 2,016-block interval, subject to network-specific exceptions.
Inspect every idea above to open it.
Mainnet retargets every 2,016 blocks. Individual block times remain highly variable even at the correct expected rate.
The questions unlock after every required learning activity
Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.