Difficulty Adjustment
Every 2,016 blocks, roughly two weeks, Bitcoin recalibrates the mining difficulty so that blocks continue to arrive approximately every ten minutes regardless of how much hash power joins or leaves the network. This mechanism keeps issuance predictable without a committee setting the schedule.
What a block header actually carries is not a difficulty number but nBits, a compact encoding of a 256-bit target. A block is valid when the hash of its header, read as an integer, falls below that target. Difficulty is the ratio between the easiest target the network permits and the current one, so it is a readout rather than a setting.
The retarget divides the time the last 2,016 blocks actually took by the fourteen days they were supposed to take, and rescales the target by that ratio. The ratio is clamped to a factor of four in either direction, so no single adjustment can move difficulty further than that however extreme the period was. Recovery from a large hash-power loss therefore takes several consecutive retargets rather than one.
Two readings are common and wrong. Difficulty is not hash rate: hash rate is inferred from difficulty and observed block times, with all the variance that implies. And difficulty is not a forecast. It follows mining profitability, which follows price, so a rising difficulty records what already happened rather than predicting what comes next.
What difficulty does measure is the cost of rewriting recent history, because reorganising blocks means redoing their work at the prevailing target. That is the quantity the energy argument is actually about.
Used in
- researchThe Cost Structure of a Mining Business →
- glossaryDifficulty Target →
Nearby terms
- UTXO
- Private Key
- Digital Signature
- Full Node
- Mempool
- Confirmation
- Fee Market
- Hash Rate
- Consensus Rules
- Lightning Network
- Multisignature
- Proof of Work
- Output Descriptor
- Partially Signed Transaction
- Coinbase Transaction
- Reorganisation
- Dust
- Weight Unit
- Replace-by-Fee
- Witness
- Taproot
- Schnorr Signature
- Soft Fork
- Hard Fork
- Merkle Root
- Derivation Path
- Cold Storage
- Block Header
- Segregated Witness
- Stale Block
- Watch-Only Wallet
- Coin Control
- Pruning
- Nonce
- Difficulty Target
- Change Output
- Address Reuse
- Light Client
- Mining Pool
- Script
- Assumeutxo
- Seed Phrase
- Timelock
- Covenant
- Sidechain
- Fee Rate
- Signature Hash
- Inscription
- Hot Wallet
Reviewed Nov 2026