Difficulty adjustment
The difficulty adjustment resets mining difficulty every 2,016 blocks to hold the ten-minute pace.
The difficulty adjustment, also called the retarget, is the consensus rule that recalculates mining difficulty every 2,016 blocks so that blocks keep arriving about ten minutes apart on average.
How it works
At each 2,016-block boundary, nodes compare how long the last period actually took with the intended 14 days, or 1,209,600 seconds. The new target equals the old target multiplied by actual time over 1,209,600. Blocks that came faster than planned shrink the target, which raises difficulty; slower blocks do the opposite.
A worked example: a period that took 12 days gives a ratio of 1,036,800 / 1,209,600, about 0.857, so difficulty rises by a factor of roughly 1.167. A period that took 16 days lowers it to 0.875 of the old value. These inputs are illustrative.
The code clamps the measured time to between a quarter and four times 14 days, so a single adjustment moves difficulty by no more than 4x either way. The rule sits in pow.cpp, and the constants are in the chain parameters.
Why it matters: the rule keeps the pace of new blocks, and therefore the timing of the issuance schedule, close to its design even as machines are added or removed. The 4x limit keeps any one step bounded. The retarget happens inside every node’s validation, so no one has to announce it.
Where you see it
The network hub carries data on the next adjustment.
The estimate is arithmetic on blocks found so far, not a result; it can change until the period closes.
Common confusions
- It is backward-looking. It describes the period that just ended, not the hashrate today.
- It is not every two weeks by the calendar. It occurs every 2,016 blocks, which takes longer or shorter than 14 days depending on hashrate.
- It carries no message about price or intentions. A rise only says blocks were fast on average.
See how difficulty retargeting works for the full walk-through. This entry is educational and is not financial advice.
Sources
- src/pow.cpp · Bitcoin Core
- src/kernel/chainparams.cpp · Bitcoin Core
Educational data only. Not financial, investment or tax advice; no licence is claimed. Bitcoin Prime publishes no forecasts, targets or trading signals.