Difficulty
Difficulty states how hard a valid block is to find, relative to the easiest target.
Difficulty is a number that expresses how hard it is to find a valid Bitcoin block, relative to the easiest target the protocol allows. A higher difficulty means each hash attempt is less likely to succeed.
How it works
The protocol stores a threshold, the target, in the compact nBits field of every block header. A block is valid only if its hash, read as a number, is below that target. Difficulty is the easiest allowed target divided by the current target, so it moves in the opposite direction: a smaller target means a larger difficulty.
At a difficulty of D, a block takes about D x 2^32 hash attempts on average. Because the network keeps trying at its own pace, the difficulty is reset every 2,016 blocks to bring the average block interval back toward ten minutes. That reset is the difficulty adjustment.
A simple example shows the link to timing: with the same hashrate, doubling the difficulty doubles the average time per block, from ten minutes to twenty. That is why the rule that resets difficulty is needed at all, and why the number matters even though it is just a ratio.
Where you see it
Difficulty is quoted as a plain number, with no unit. Bitcoin Core reports it through the getdifficulty call, and our network hub shows it with its source and fetch time.
Every node derives the same value from the headers, so unlike hashrate it is an exact figure rather than an estimate.
Common confusions
- Difficulty is not hashrate. It sets how hard each attempt is. Hashrate counts how many attempts are made. Over many periods the two travel together because the adjustment ties one to the other.
- It does not change every block. It stays constant within a 2,016-block period.
- It does not measure profitability. Higher difficulty raises the work needed per block, but revenue also depends on fees, the subsidy and the price of electricity.
The full calculation, with a worked example, is in how difficulty retargeting works. This entry is educational and is not financial advice.
Sources
- RPC getdifficulty · Bitcoin developer documentation
- src/pow.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.