Difficulty and target
A valid Bitcoin block header must hash to a value at or below the target threshold encoded in nBits. A lower target is harder to hit. Difficulty expresses that target relative to the easiest mainnet target; it is not a miner’s speed and it is not a direct count of all hashes produced by the network.
The adjustment relationship
Mainnet adjusts every 2,016 blocks. The intended period is 1,209,600 seconds, or fourteen days, corresponding to an average of 600 seconds per block. Conceptually, the new target equals the previous target multiplied by actual elapsed time and divided by target elapsed time. Faster blocks therefore tighten the target, while slower blocks loosen it.
Limits and interpretation
A single adjustment is bounded so an exceptional period cannot change the target without limit. Difficulty also changes only at period boundaries, whereas estimated hash rate may move throughout a period and is affected by random block timing. Analysis should record the start and end heights, timestamps, target and network. Test networks may use different rules, so mainnet explanations should not be copied blindly.
Sources
Prepared with AI assistance. This guide explains protocol behavior for educational use.
This content is for learning and risk education only and does not constitute investment advice.
Editorial policy (Chinese)