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

  1. Miners hash block headers

    They try nonces until a header hash falls below the target. See Mining and Hash Rate.

  2. Count 2,016 blocks

    Bitcoin retargets once every 2,016 blocks.2

  3. Measure the time taken

    The ideal span is 1,209,600 seconds, which is two weeks, read from block header timestamps.2

  4. Compare actual with ideal

    Faster than two weeks means difficulty rises; slower means it falls, in proportion.2

  5. Apply the limits

    One adjustment can raise difficulty by at most 300% or lower it by at most 75%.2

  6. 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 up

Hypothetical: difficulty is 100T and the last 2,016 blocks took 12 days instead of 14, because more miners joined.

Example 1 — Blocks came too fast — calculation
Ideal span14 days
Actual span12 days
Adjustment factor14 ÷ 12 ≈ 1.167
New difficulty100T × 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 down

Hypothetical: difficulty is 100T and, after many machines went offline, the last 2,016 blocks took 16 days.

Example 2 — Miners switched off — calculation
Ideal span14 days
Actual span16 days
Adjustment factor14 ÷ 16 = 0.875
New difficulty100T × 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 applied

Hypothetical: difficulty is 100T and 2,016 blocks arrive in just 2 days.

Example 3 — The cap on one adjustment — calculation
Raw factor14 ÷ 2 = 7
Uncapped result100T × 7 = 700T
Largest allowed rise+300%, a factor of 4
Capped result100T × 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

AspectWhat it measuresHow it moves
DifficultyHow hard the current target isSteps once every 2,016 blocks
Hash rateTotal hashing power of minersChanges continuously. See Mining and Hash Rate
Block timeAverage minutes between blocksDrifts 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

  1. Treating difficulty as a price signal

    It follows hashing power, not demand. Price can move either way while difficulty rises.

  2. Confusing it with hash rate

    Hash rate is the power on the network; difficulty is the rule that responds to it.

  3. Expecting instant adjustment

    Bitcoin only retargets every 2,016 blocks, roughly every two weeks.

  4. 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.

Q1The last 2,016 Bitcoin blocks took 16 days instead of 14. What happens to difficulty at the retarget?
Q2What does a lower target mean for mining?

Key points to remember

  1. Difficulty measures how hard the current target is to hit.
  2. Bitcoin retargets every 2,016 blocks, aiming for two weeks per period.
  3. Fast blocks push difficulty up; slow blocks push it down.
  4. One retarget can raise difficulty by at most 300% or cut it by at most 75%.
  5. Difficulty reflects miner competition, not the coin’s price.

Frequently asked questions

How often does Bitcoin’s difficulty change?

Once every 2,016 blocks, which works out to about every two weeks when blocks average ten minutes.

Can difficulty go down?

Yes. If the last period took longer than two weeks, the protocol lowers difficulty in proportion, by at most 75% in one step.

Does higher difficulty mean bitcoin is more valuable?

Not directly. It means more hashing power is competing for blocks. Price and difficulty often move together over long periods, but one does not set the other.

Further learning

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.

  1. Bitcoin Project (developer.bitcoin.org). Glossary (opens in a new tab) Checked .
  2. Bitcoin Project (developer.bitcoin.org). Block Chain developer guide (opens in a new tab) Checked .
  3. Satoshi Nakamoto. Bitcoin: A Peer-to-Peer Electronic Cash System (opens in a new tab) Checked .
  4. Bitcoin Wiki. Difficulty (opens in a new tab) Checked .
  5. 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.