Market cap $2.08 T −3.63 % over 24 hours24h volume $67.07 BBTC dominance 57.7 %ETH 9.8 %Fear & Greed 12 Extreme fearCoins 21,218

Glossary

Mining difficulty

Mining difficulty measures how hard it is to find a valid block on a proof-of-work chain, relative to the easiest allowed target. Bitcoin resets it every 2,016 blocks so that blocks keep arriving about every 10 minutes.

Also called Bitcoin difficulty, Network difficulty, Difficulty adjustment, Difficulty retarget, Retargeting

See also

Mining difficulty is the number that tells you how hard it is to find a valid block on a proof-of-work chain, measured against the easiest target the protocol allows, called difficulty 1. On Bitcoin a block counts only if its header hash, read as a 256-bit number, is equal to or below a target. The lower that target, the higher the difficulty. Our guide to proof of work in depth covers the hashing itself.

A moving average in the 2008 whitepaper, a fixed rule in the code

Satoshi Nakamoto’s whitepaper, dated 31 October 2008, already described the mechanism: difficulty follows a moving average aimed at a set number of blocks per hour, and rises when blocks come too fast. The 10-minute spacing and the 2,016-block period live in the software, not the paper.

Nodes store the target in a compact 32-bit field called nBits. On mainnet, difficulty 1 corresponds to nBits 0x1d00ffff, according to the Bitcoin developer reference.

How the bitcoin difficulty adjustment works every 2,016 blocks

Bitcoin Core sets two constants: a block every 600 seconds and a period of two weeks, or 1,209,600 seconds. Divide one by the other and you get 2,016 blocks. Within a period the target does not change. When the next block height is a multiple of 2,016, every node runs the same calculation in src/pow.cpp:

  1. It takes the timestamp of the last block of the period and subtracts the timestamp of the first one. Because the first block sits 2,015 heights below the last, the code measures 2,015 intervals, not 2,016.
  2. It clamps that elapsed time to between 3.5 days and 56 days, a quarter and four times the target.
  3. It multiplies the old target by the elapsed time and divides by 1,209,600 seconds, never letting the result go above the difficulty-1 ceiling.
  4. It writes the new target back into nBits for the next 2,016 blocks.

Fast blocks shrink the elapsed time, so the target shrinks and difficulty climbs. Slow blocks do the opposite. Because of the clamp, one adjustment can never move difficulty by more than a factor of four in either direction.

Abstract pickaxe beside an hourglass, a gear, a rising chart and a server
Every 2,016 blocks, nodes compare the time the period took with two weeks and reset the target.

Mining difficulty formula, worked through with numbers

Take a hypothetical period in which 2,016 blocks arrived in 1,100,000 seconds, about 12.73 days, instead of 1,209,600. The new target is the old one times 1,100,000 / 1,209,600, which is 0.9094: a target 9.06% lower. Difficulty moves by the inverse ratio, 1,209,600 / 1,100,000 = 1.0996, so it rises by just under 10%.

27 November 2026: difficulty up 7.61% to 145.09T

The latest adjustment came at height 977,760, in a block timestamped 05:17 UTC on 27 November 2026. Difficulty reached 145,088,938,867,954, usually written 145.09T, a rise of 7.61% according to mempool.space data. The first block of the period, at height 975,744, carries a timestamp 1,124,021 seconds (13.01 days) before the last, at height 977,759, and 1,209,600 / 1,124,021 gives the 1.076 factor. Our report on the 27 November adjustment covers what it means for miners.

Two weeks earlier, at height 975,744 on 14 November, difficulty had dropped 9.13% to 134.82T. The steepest rise is a factor of almost exactly 4 on 16 July 2010 at height 68,544, the most the rule allows in one step. The steepest cut, 27.94%, came on 3 July 2021 at height 689,472.

Difficulty is not hashrate, but it lets you estimate it

Nothing in the retarget rule reads hashrate. The rule only looks at timestamps. Hashrate is inferred the other way round: at difficulty D, a block takes on average D x 2^32 hashes. With today’s 145.09T that comes to about 6.23 x 10^23 hashes per block, and spread over 600 seconds it implies roughly 1.04 x 10^21 hashes per second, close to 1,039 EH/s. It is an estimate. Our guide to hashrate and difficulty explains how such estimates are built and why they swing day to day.

Litecoin, Dogecoin and Monero retarget differently

Litecoin kept the 2,016-block count but shortened everything else: 2.5-minute blocks and a 3.5-day period. Dogecoin Core recalculates on every block from height 145,000, using a method its code calls DigiShield, which damps each step instead of letting it swing by a factor of four. Monero targets 120-second blocks and computes difficulty from a sliding window of 720 blocks, after cutting outlying timestamps.

Limits: a lagging number set by miners’ clocks

Bitcoin’s difficulty looks backwards. If many miners switch off mid-period, blocks stay slow until the 2,016-block period ends, and at slower blocks that takes longer than two weeks. That slow reaction is by design.

Timestamps come from miners, within bounds nodes enforce. One adjustment says little about security or price: it records how fast 2,016 blocks arrived.

Mining difficulty: questions readers ask

What is mining difficulty?

It is a measure of how hard it is to find a block, set against the easiest allowed target. On Bitcoin a block hash must fall at or below a target, and difficulty rises as that target falls. It keeps blocks near one every 10 minutes.

How often is bitcoin mining difficulty adjusted?

Every 2,016 blocks, which takes about two weeks when blocks arrive every 10 minutes. Faster blocks bring it earlier, slower blocks later. The last one came at height 977,760; the next is due at height 979,776.

How is mining difficulty calculated?

Nodes compare how long the last period took with 14 days. The new target is the old one times that elapsed time over 1,209,600 seconds, held between 3.5 and 56 days. Difficulty moves by the inverse, so a 12.73-day period lifts it by about 10%.

Why did mining difficulty decrease?

Because blocks in the previous period arrived more slowly than every 10 minutes on average, usually when miners switch machines off. On 14 November 2026 difficulty fell 9.13% to 134.82T.

Read also

Back to the glossary