Mining Difficulty
Mining difficulty sets how hard it is to find a valid block in a proof-of-work blockchain. Bitcoin adjusts it every 2,016 blocks so blocks keep arriving about every ten minutes; rising difficulty squeezes miner profits, which analysts watch for signs of miner selling.
Bitcoin has no central clock and no one who decides how fast blocks appear. Instead, the protocol sets a target that a block’s hash must fall below, and it moves that target up or down depending on how quickly recent blocks were found. The number that describes how hard the current target is to hit is called the difficulty. This entry explains what it measures, how the adjustment works, why it matters to miners and traders, and where it is often misread.
- Category
- Cryptocurrency and Blockchain
- Reading time
- 6 min
- Also called
- Difficulty adjustment, Network difficulty, Bitcoin difficulty
- Updated
Mining difficulty in plain words
A block is only valid if the hash of its header is below a number called the target; the header stores this target in a compact form called nBits.1
Difficulty expresses how hard a block is to find compared with the easiest possible block, which has a difficulty of 1.1 A lower target means more hash attempts are needed on average, so difficulty goes up when the target goes down.2
The Bitcoin whitepaper already planned for this: difficulty follows a moving average aimed at a steady number of blocks per hour, and it rises if blocks come too fast.3
How the difficulty adjustment works, step by step
Miners hash block headers
They try nonces until a header hash falls below the target. See Mining and Hash Rate.
Count 2,016 blocks
Bitcoin retargets once every 2,016 blocks.2
Measure the time taken
The ideal span is 1,209,600 seconds, which is two weeks, read from block header timestamps.2
Compare actual with ideal
Faster than two weeks means difficulty rises; slower means it falls, in proportion.2
Apply the limits
One adjustment can raise difficulty by at most 300% or lower it by at most 75%.2
Mine at the new target
The next 2,016 blocks use the new target, and the cycle repeats. See Block Time and Block Height.
Worked examples
Example 1 — Blocks came too fast
Difficulty upHypothetical: difficulty is 100T and the last 2,016 blocks took 12 days instead of 14, because more miners joined.
| Ideal span | 14 days |
| Actual span | 12 days |
| Adjustment factor | 14 ÷ 12 ≈ 1.167 |
| New difficulty | 100T × 14 ÷ 12 ≈ 116.7T |
Blocks averaged 17,280 minutes ÷ 2,016 ≈ 8.57 minutes, so the protocol makes the next blocks harder to find.
Example 2 — Miners switched off
Difficulty downHypothetical: difficulty is 100T and, after many machines went offline, the last 2,016 blocks took 16 days.
| Ideal span | 14 days |
| Actual span | 16 days |
| Adjustment factor | 14 ÷ 16 = 0.875 |
| New difficulty | 100T × 0.875 = 87.5T |
Lower difficulty lets the remaining miners find blocks closer to the ten-minute pace again.
Example 3 — The cap on one adjustment
Limit appliedHypothetical: difficulty is 100T and 2,016 blocks arrive in just 2 days.
| Raw factor | 14 ÷ 2 = 7 |
| Uncapped result | 100T × 7 = 700T |
| Largest allowed rise | +300%, a factor of 4 |
| Capped result | 100T × 4 = 400T |
A single retarget cannot raise difficulty by more than 300%, so catching up can take several periods.2
Difficulty vs. hash rate vs. block time
| Aspect | What it measures | How it moves |
|---|---|---|
| Difficulty | How hard the current target is | Steps once every 2,016 blocks |
| Hash rate | Total hashing power of miners | Changes continuously. See Mining and Hash Rate |
| Block time | Average minutes between blocks | Drifts until the next retarget |
Why mining difficulty matters
Keeping issuance on schedule
Steady block times keep new coins arriving at the planned pace. See Block Reward.
Miner economics
Higher difficulty means each machine earns fewer coins for the same power bill. See Miner Metrics: Puell Multiple, Hash Ribbons and Miner Flows.
Reading network health
Difficulty is a public, rule-based number that reflects how much hashing competes for blocks.
Security context
More hashing behind the chain makes an attack that outpaces honest miners more costly. See Proof of Work and Proof of Stake.
Advantages and disadvantages
Advantages
- Keeps block times near ten minutes however much hardware joins or leaves.
- Fully rule-based and visible to anyone running a node.
- Lets the network absorb large swings in hash rate without a central operator.
- Gives analysts a clean, slow-moving series for miner competition.
Disadvantages
- Reacts only every 2,016 blocks, so block times can drift for days.
- Per-adjustment limits slow the response to extreme changes.
- Rising difficulty can squeeze smaller or less efficient miners.
- Says nothing directly about price or demand for the coin.
Going deeper
Read as far as you need. Each level builds on the one before it.
A lottery that rewrites its own odds
Beginner
Think of mining as a lottery where each hash is a ticket. Difficulty sets how unlikely a winning ticket is. When more people play, the protocol makes winning harder so that, on average, one winner still appears about every ten minutes.
Difficulty and hash rate
Intermediate
A common community formula defines difficulty as the difficulty-1 target divided by the current target.4 The same reference estimates network hash rate as difficulty × 2^32 ÷ 600 hashes per second.4
Because the estimate rests on block times, it is noisy over short windows. Difficulty itself only changes at retargets, which is why it lags real changes in hashing power.
Quirks in Bitcoin’s retarget
Advanced
Bitcoin Core measures each period using timestamps that cover only 2,015 block intervals rather than 2,016, an off-by-one error that causes a slight skew.2
Miner-set timestamps are also not exact clocks, so a single period’s block time is an approximation. Ethereum also used proof-of-work mining once, but mining has been switched off and the network is now secured by validators who stake ETH.5
Common mistakes
Treating difficulty as a price signal
It follows hashing power, not demand. Price can move either way while difficulty rises.
Confusing it with hash rate
Hash rate is the power on the network; difficulty is the rule that responds to it.
Expecting instant adjustment
Bitcoin only retargets every 2,016 blocks, roughly every two weeks.
Assuming difficulty only rises
It falls when blocks come slowly, for example after miners shut down.
Check your understanding
Test yourself before moving on. Each answer comes with an explanation.
Key points to remember
- Difficulty measures how hard the current target is to hit.
- Bitcoin retargets every 2,016 blocks, aiming for two weeks per period.
- Fast blocks push difficulty up; slow blocks push it down.
- One retarget can raise difficulty by at most 300% or cut it by at most 75%.
- Difficulty reflects miner competition, not the coin’s price.
Frequently asked questions
How often does Bitcoin’s difficulty change?
Can difficulty go down?
Does higher difficulty mean bitcoin is more valuable?
Further learning
- Mining and Hash Rate
How mining works and what hash rate measures.
- Block Reward
What miners earn for each block.
- Bitcoin Halving
The schedule that cuts new issuance.
- Miner Metrics: Puell Multiple, Hash Ribbons and Miner Flows
On-chain measures of miner behaviour.
Sources
This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.
- Bitcoin Project (developer.bitcoin.org). Glossary (opens in a new tab) Checked .
- Bitcoin Project (developer.bitcoin.org). Block Chain developer guide (opens in a new tab) Checked .
- Satoshi Nakamoto. Bitcoin: A Peer-to-Peer Electronic Cash System (opens in a new tab) Checked .
- Bitcoin Wiki. Difficulty (opens in a new tab) Checked .
- ethereum.org. Mining (opens in a new tab) Checked .
Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.