What is Mining Difficulty?

Mining difficulty measures how hard it is to find a valid block on a proof-of-work blockchain. Bitcoin recalculates it every 2,016 blocks to keep the average time between blocks close to ten minutes.

On this page 6
  1. How does mining difficulty work?
  2. How does Bitcoin’s difficulty adjustment work?
  3. Difficulty vs. hashrate
  4. What do difficulty changes mean for miners?
  5. Frequently asked questions
  6. Source

Mining difficulty is a measure of how hard it is to find a valid block on a proof-of-work blockchain. The higher the difficulty, the more guesses miners need on average to find an acceptable hash. Bitcoin adjusts difficulty on a fixed schedule so that blocks keep arriving roughly every ten minutes, no matter how much computing power joins or leaves the network.

How does mining difficulty work?

Bitcoin miners repeatedly hash a block header, looking for a result below a target number set by the network. The smaller the target, the harder it is to hit. The difficulty figure expresses how much harder the current target is than the easiest possible target used at the start of the network. Difficulty was 1 at the genesis block; today it is measured in the trillions.

Difficulty is not the Bitcoin price or a miner’s power bill, but it is one of four inputs that decide whether mining pays: the coin price, hardware efficiency, energy cost and difficulty.

How does Bitcoin’s difficulty adjustment work?

Bitcoin recalculates difficulty every 2,016 blocks. At ten minutes per block, 2,016 blocks should take exactly 14 days. The protocol compares how long the last 2,016 blocks actually took and scales difficulty accordingly:

  • If those blocks took 12 days, the network is running fast and difficulty rises by about 17% (14/12).
  • If they took 16 days, the network is slow and difficulty falls by about 12.5% (14/16).

A single adjustment can never more than quadruple difficulty or cut it below a quarter. Because the trigger is a block count rather than a calendar date, nobody knows the exact adjustment date in advance; explorers only show an estimate.

The mechanism faced a real stress test in 2021. When China banned crypto mining, a large share of Bitcoin’s hashrate went offline almost overnight, blocks slowed down, and July 2021 brought one of the steepest downward difficulty adjustments in Bitcoin’s history. As miners relocated to other countries, difficulty climbed back.

Difficulty vs. hashrate

Hashrate is the total number of guesses all miners make per second. Difficulty is how strict the condition those guesses must meet is. When hashrate rises, blocks come faster and the next adjustment raises difficulty, so difficulty follows hashrate with a lag.

Network hashrate cannot be measured directly; it is estimated from how quickly blocks are found at the current difficulty. That makes daily hashrate charts noisy. Rather than reading a one-day drop as a miner exodus, look at weekly averages and the next difficulty adjustment.

What do difficulty changes mean for miners?

When difficulty rises, the same machine using the same electricity earns less BTC. Combined with a halving, which cuts the block subsidy in half, this can push older, less efficient machines out of profit. When difficulty falls, the miners that remain earn a bigger share. Large operators with efficient hardware and cheap power tend to weather these cycles best. That self-correcting loop is what keeps Bitcoin’s block schedule predictable year after year. Our guide to Bitcoin mining goes deeper into the economics.

Frequently asked questions

How often does difficulty change?

On Bitcoin, every 2,016 blocks, or roughly every two weeks. Some other proof-of-work networks recalculate difficulty with every block.

Does rising difficulty mean the price will rise?

No. Difficulty reflects how much computing power is competing on the network. Its link to price is indirect and it is not a price signal on its own.

Does falling difficulty make the network less secure?

A drop in difficulty means less computing power is securing the chain, which somewhat lowers the cost of an attack. On a network as large as Bitcoin, a single downward adjustment is rarely decisive.

Source

Read next