---
title: "Mining Difficulty — definition | Nuri Glossary"
description: "How hard a valid block hash is to find, retargeted to keep blocks near ten minutes."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/mining-difficulty"
---

# Mining Difficulty

How hard a valid block hash is to find, retargeted to keep blocks near ten minutes.

## Basically

Mining difficulty controls how much work miners need to add a block. Bitcoin changes it every 2,016 blocks so that new blocks arrive about every 10 minutes.

## Key Takeaways

- Mining difficulty controls how hard it is to find a valid block hash below the difficulty target. Higher difficulty means a lower target threshold and more hashes to compute on average.
- The protocol adjusts difficulty every 2,016 blocks, or roughly two weeks. It compares the actual elapsed time with the expected 20,160 minutes to keep the average block time at 10 minutes.
- Difficulty tracks total network hashrate in near-lockstep. It rises when more miners join and falls when miners leave. This self-correcting mechanism is fundamental to Bitcoin's security and predictable issuance schedule.

## What Is Mining Difficulty?

Mining difficulty is a unitless number that shows how hard it is for miners to find a hash that meets the network's current validity requirement. Every block header must hash to a value below a specific threshold called the target. Difficulty is the inverse of that target relative to the easiest possible target, difficulty 1, so higher difficulty means a smaller target window and more computational work per block.
Bitcoin launched on January 3, 2009, with a difficulty of 1. Difficulty exceeds 148 trillion as of late 2026, so miners must perform roughly 148 trillion times the work needed to mine the genesis block. This exponential growth reflects the massive increase in dedicated ASIC mining hardware deployed on the network over the past 17 years.
The difficulty mechanism solves a specific problem: Bitcoin has no central authority to throttle block production, yet the protocol requires a predictable rate of new blocks. Difficulty acts as a self-regulating thermostat for the computational bar. Blocks arrive approximately every 10 minutes regardless of how much or how little hashing power is active on the network.

## How It Works

Mining difficulty revolves around three values: the target, the difficulty number, and the network's total hashrate. Their relationship determines how much work miners need to produce a valid block.

## Target and Difficulty

The target is a 256-bit number. A valid block must have a header hash, computed via double SHA-256, that is numerically less than or equal to this target. A smaller target leaves fewer valid hashes among all possible 2^256 values and makes one harder to find.
Difficulty is defined relative to a reference target corresponding to difficulty 1. That reference is the easiest setting, where the leading 32 bits of the hash must be zero.
A doubling of difficulty halves the target, so half as many hash values qualify as valid. Miners must perform twice as many hash operations on average to find a winning nonce.

## The 2,016-Block Adjustment Cycle

The protocol recalculates the target every 2,016 blocks. This interval corresponds to approximately two weeks at the ideal 10-minute block rate: 2,016 blocks x 10 minutes = 20,160 minutes = 14 days. The adjustment formula is straightforward.
A 10-day period for the last 2,016 blocks instead of 14 days means miners are finding blocks too fast. Difficulty increases by a factor of 14/10 = 1.4, making subsequent blocks harder. A 21-day period decreases difficulty by 14/21 = 0.667, making blocks easier.
A built-in safety cap limits each adjustment to a maximum factor of 4 in either direction. The cap prevents a single adjustment from making blocks impossibly hard or trivially easy, even during extreme hashrate fluctuations.

## Difficulty and Hashrate

Hashrate measures the total computational power miners direct at the network, expressed in hashes per second. Hashrate cannot be measured directly, so it is estimated from the current difficulty and observed block times.
Difficulty and hashrate are closely correlated but not identical. Difficulty adjusts in discrete steps every 2,016 blocks, while hashrate fluctuates continuously. A hashrate increase produces faster blocks between adjustments and a decrease produces slower blocks, before the next adjustment corrects for the deviation.

## Historical Context

Bitcoin's difficulty history mirrors the evolution of mining hardware. The earliest blocks were mined with CPUs at difficulty 1, before GPU mining emerged in 2010 and pushed difficulty into the thousands. FPGAs arrived in 2011 and ASICs debuted in 2013, driving difficulty into the billions and then trillions, before it reached an all-time high near 155.9 trillion by late 2025.
Difficulty has also experienced notable drops. Roughly half of all hashrate went offline after China's mining ban in mid-2021, causing difficulty to fall by over 45% across several adjustment periods. The network continued producing blocks throughout, validating the adjustment mechanism's resilience, and hashrate recovered within months as miners relocated to the United States, Kazakhstan, and other jurisdictions.

## Predictable Issuance

Bitcoin's monetary policy depends on blocks arriving at a consistent rate. The block subsidy, currently 3.125 BTC after the 2024 halving, is issued per block, and halvings occur every 210,000 blocks. Faster blocks would accelerate Bitcoin's supply schedule, but the difficulty adjustment ensures that halvings happen roughly every four years regardless of hashrate growth.

## Network Security

High difficulty makes 51% attacks prohibitively expensive. An attacker must command enough hashrate to outpace the rest of the network, and the cost of that hashrate scales directly with difficulty. Sustained rewriting of Bitcoin's blockchain at current levels would require an investment in hardware and energy measured in billions of dollars; the research on Bitcoin's security budget provides a deeper analysis.

## Mining Economics

Difficulty directly determines mining profitability. Profit margins compress when difficulty rises faster than the Bitcoin price, while surviving miners earn more per unit of hashrate when it falls. This dynamic creates a natural economic equilibrium in which unprofitable miners shut down, reducing hashrate and causing difficulty to drop until mining becomes profitable again; the mining economics analysis covers this cycle in detail.

## Hashrate Volatility Between Adjustments

The 2,016-block adjustment interval means sudden hashrate drops can cause temporarily slow blocks. Remaining miners must work through the full 2,016 blocks at the old difficulty before relief arrives if a large portion of miners go offline mid-cycle. A two-week period can stretch to three or four weeks, causing mempool congestion and higher fee rates.

## The Security Budget Question

Difficulty provides a security guarantee only if miners are incentivised to maintain high hashrate. The network must increasingly rely on transaction fees to fund mining as block subsidies continue halving. Insufficient fee revenue could cause hashrate to decline, difficulty to drop, and the cost of an attack to fall.

## Difficulty and Centralisation

Rising difficulty creates economies of scale that favour large mining operations with access to cheap energy and bulk hardware pricing. Solo miners and small operators face thinning margins as difficulty climbs, which can push the network toward mining centralisation. Protocols like Stratum V2 aim to mitigate centralisation by giving individual miners more control over block template construction.

## Off-by-One Bug

Bitcoin's original implementation contains a known off-by-one error in the difficulty calculation. The adjustment compares the timestamp of the last block in a period against the first block of that same period, measuring 2,015 block intervals instead of 2,016. Difficulty is therefore very slightly too low by about 0.05%, causing blocks to arrive marginally faster than the intended 10-minute average; the Great Consensus Cleanup proposal includes a fix for this bug.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
