Network and blocks
Difficulty adjustment
A difficulty adjustment, or retarget, is the automatic reset of mining difficulty at the end of each 2,016-block period.
- Interval on Bitcoin
- 2,016 blocks
- Planned length
- 14 days
- Largest single step
- Four times up, or down to a quarter
- Adjustments a year
- About 26
- Decided by
- Every node, from block timestamps
What it means in practice
The protocol compares how long the last 2,016 blocks took with the two-week target of 1,209,600 seconds and scales difficulty by that ratio. If blocks came faster than ten minutes on average, difficulty rises; if slower, it falls. A single adjustment is capped at a fourfold change in either direction.
Estimating the next one halfway through
You do not need to wait for the last block. Compare how long the period should have taken so far with how long it has. Blocks so far times ten minutes, divided by the real time, gives the change if the rest goes the same way.
Example figures: 1,000 blocks have arrived in 6.6 days. At ten minutes each they should have taken 6.944 days. 6.944 / 6.6 = 1.052, so the estimate is a rise of about 5.2%. Early in a period the estimate swings; in the last few hundred blocks it barely moves.
What it changes on your side
The adjustment takes effect at one block, for everyone. Your machine keeps the same hashrate and the same watts. What changes is how many coins each hash is worth on average.
The arithmetic is a division, so rises and falls are not mirror images. A rise of 7.7% leaves 1 / 1.077 = 92.9% of the coins per hash, which is 7.1% less. A fall of 20% leaves 1 / 0.80 = 125%, which is 25% more.
Pools that pay per share change the value of a share at that block, so a payout that crosses the change blends two rates.
Who calculates it
No one announces it. Each node reads the timestamps of the first and last block of the period and does the same sum. A block that carries the wrong target is refused by every other node, however much work went into it.
The original code measures 2,015 gaps and not 2,016, a counting quirk from the beginning that every node has kept. The effect is about 0.05%, too small for any miner to notice.
Reading a run of adjustments
One adjustment mixes real change with luck. Several in the same direction show machines arriving or leaving. A string of rises after a hardware launch is normal, and so are falls in a hot summer when large sites cut load.
When you plan, use a range. A flat line, a moderate rise and a steeper rise for the next year show you how sensitive a machine’s income is, and the calculator lets you enter each one.
Adjustments also drift through the calendar. Because growth makes periods shorter than fourteen days, the date moves forward a little each time, and some months contain three.
Worked example
The last epoch took 13 days (1,123,200 seconds) at a difficulty of 140T. New difficulty = 140T × 1,209,600 / 1,123,200 ≈ 150.77T, a rise of about 7.7%.
Example figures, not live data.
Common mistakes
- Expecting a fixed weekday; the date depends on when block number 2,016 of the period arrives.
- Subtracting the percentage from income and forgetting that it divides.
- Trusting an estimate made on the first day of a period.
Common questions
How often does Bitcoin difficulty change?
Every 2,016 blocks, which is close to every two weeks.
Can the adjustment be skipped?
No. It is a rule of the protocol, checked by every node.
Should I do anything on the day?
The machine carries on by itself. It is a good moment to read your breakeven power price again.