— —
Follow on X
LESSONS

The difficulty adjustment

Every 2,016 blocks the network retunes the target so blocks keep arriving every ten minutes, whatever the hash rate. This keeps issuance on schedule.

5 MIN READ
Two panels: when blocks are too fast difficulty rises; when too slow it falls.
LEVEL · Intermediate
IN THIS LESSON · 6 OF 9
BY THE END YOU WILL BE ABLE TO ANSWER
  • How often is difficulty adjusted?
  • What happens if a large share of miners suddenly stops?
  • The last 2,016 blocks took 16,128 minutes instead of 20,160. By what factor does difficulty increase? (Expected ÷ actual.)

Then prove it: a 2-question quiz · a challenge. The lesson marks itself complete at 100%.

If supply is tied to blocks and blocks are found by hashing, then more hash power would mean more blocks and faster issuance. Bitcoin prevents that with a thermostat.

The rule

Every 2,016 blocks (about two weeks at ten minutes each), nodes compare how long those blocks actually took with the expected 20,160 minutes. If they came in 18,000 minutes, the target is lowered by that ratio so the next 2,016 take longer. Any single adjustment is capped at a factor of four up or down. Every node computes this independently from the block timestamps; no one sets it.

Difficulty versus target

The target is the number a hash must be below. Difficulty is a human-friendly way of saying how far the target has moved from the original: difficulty = max target ÷ current target. Block 100,000 had a difficulty of about 14,484; today it is in the tens of trillions.

What it gives Bitcoin

  • Issuance on schedule regardless of how much hardware exists.
  • Resilience. If half the miners vanished, blocks would slow for a while and then difficulty would fall and restore ten-minute blocks.
  • Security that scales with price. Higher prices attract more miners, raising difficulty and the cost of attack.

Watch it live on the Bitcoin Charts dashboard under Mining.

MINI CHALLENGERetune the target

The last 2,016 blocks took 16,128 minutes instead of 20,160. By what factor does difficulty increase? (Expected ÷ actual.)

×
CHECK YOURSELF
1/2 How often is difficulty adjusted?
2/2 What happens if a large share of miners suddenly stops?
pick an answer for each question

SOURCES

  1. Learn Me A Bitcoin: How does Bitcoin work?
Progress is saved in this browser only.