Learn

|

Mining

What is Bitcoin’s difficulty adjustment?

Scaling Bitcoin’s operations to unknowable sizes

Bitcoin’s difficulty adjustment is what ensures new blocks are added to the blockchain at a consistent, predictable rate – regardless of how much computational power is deployed by miners.

The difficulty adjustment plays an essential role in Bitcoin’s proof of work system. Proof of work is the mechanism whereby specialized computers compete in a decentralized lottery to solve a cryptographic puzzle. The first to solve the puzzle earns the right to add a new block of transactions and collect a reward in bitcoin.

But proof of work is more than a lottery – it’s the solution to a foundational problem: how to operate a peer-to-peer electronic cash system without any central authority. To do this, a system must:

  • Confirm and sequence transactions in a tamper-resistant way
  • Prevent fraudulent or conflicting transactions
  • Issue new currency without relying on trust or discretion
  • Defend against manipulation by malicious actors
  • Maintain global consensus across a decentralized network

Proof of work achieves this by requiring miners to prove their expenditure of real-world resources – most notably electricity and hardware – before their proposed blocks are considered valid. The cost to create a block makes dishonesty expensive, while verification by nodes remains cheap and automatic. This creates a system of asymmetric validation that aligns the incentives of all participants: miners, nodes, and users.

A core strength of proof of work is its scalability.

Since there is no maximum number of miners and no authority deciding who may participate, the system must accommodate an unknown and constantly changing amount of computational power (aka “hashpower”). The question is: how?

That’s where the difficulty adjustment comes in.

Rather than fixing the amount of computational work required in absolute terms (a measure of power), Bitcoin defines it in terms of time. The rules encoded in the Bitcoin software targets a new block approximately every 10 minutes. No matter how much hashpower is applied, the system continually and automatically re-adjusts how hard the proof of work puzzle is, ensuring that, on average, it still takes about 10 minutes of collective effort to produce the next block.

This approach allows Bitcoin to remain both decentralized and scalable. It doesn’t matter whether there are a thousand miners or a million – what matters is how much time worth of computation is needed. The difficulty adjustment translates variable hashpower into a stable tempo, anchoring Bitcoin’s issuance schedule and transaction flow.

Why Bitcoin adjusts the difficulty of mining

It all comes down to decentralization.

To avoid any central authority from controlling Bitcoin’s ledger (the blockchain), management of the ledger is designed to be open, transparent, and leaderless.. In this system, anyone around the world can compete in the process of adding new blocks of transactions and earn newly issued bitcoin as a reward.

This approach introduces a unique scaling challenge. Bitcoin must adapt to changing network conditions, including:

  • Rising hashpower: More miners joining the network and contributing computational power.
  • Falling hashpower: Miners shutting down due to economic or operational factors.

Without a flexible system, Bitcoin blocks would be produced at unpredictable intervals, which would have negative consequences for the system as a whole.

  • Unpredictable issuance: Bitcoin’s fixed supply schedule could be accelerated or decelerated, undermining its predictability and auditability.
  • Reduced security: Rapid block production would limit time for global propagation, increasing the risk of forks and chain reorganizations.
  • Unstable confirmations: Transaction finality would become inconsistent or ambiguous.
  • Centralization pressures: High-speed mining would advantage well-resourced operators, discouraging broad participation.

The difficulty adjustment solves the problem by making the difficulty of the mining puzzle itself dynamic. Every 2,016 blocks, Bitcoin software adjusts the difficulty target to maintain a 10-minute average block time – regardless of the level of hashpower. This mechanism ensures Bitcoin remains stable, secure, and decentralized, even as global mining activity fluctuates.

How the difficulty adjustment works

The cryptographic puzzle miners solve is based on a hash function. Miners repeatedly run this function, modifying a piece of variable data called a "nonce," in an attempt to produce a hash that meets the Bitcoin network’s difficulty target. Because hash functions are unpredictable, the only viable method is trial and error—similar to buying lottery tickets.

So, what is the difficulty target?

Hash outputs are 256-bit numbers – large, fixed-length binary values that are typically expressed in hexadecimal format. These numbers are deterministic for a given input but appear random and are computationally unpredictable. The difficulty target sets a threshold: only hashes below this threshold are valid. Adjusting this target expands or contracts the range of acceptable hashes:

  • Higher difficulty target: More possible valid hashes → blocks are found faster.
  • Lower difficulty target: Fewer valid hashes → blocks take longer to find.

Think of it like a lottery where you randomly guess a number between 0 and 1 billion. If the target is 10 million, any number below that is a winner. If the target is decreased to 1 million, the odds of winning decrease tenfold, requiring far more guesses to win.

Every 2,016 blocks (roughly every two weeks), the Bitcoin software, run by the network of nodes, recalculates the average block time:

  • If the average block time is less than 10 minutes, the difficulty increases.
  • If the average block time is more than 10 minutes, the difficulty decreases.

Although any individual block may take more or less than 10 minutes, the difficulty adjustment ensures that, over the long run, the average time between blocks remains close to 10 minutes – regardless of how much total hashpower is in the network. Upon readjustment, the updated difficulty target is embedded in the next block and enforced by all nodes going forward. This ensures all miners work under the same global condition, maintaining consensus.

What the difficulty adjustment means for miners

Bitcoin mining is a globally open and permissionless activity. Anyone, anywhere, can join and contribute hashpower by submitting guesses (hashes). Specialized hardware is far more efficient, producing many more hashes per second with less electricity than standard computers.

The difficulty adjusts every 2,016 blocks based on the total network hashpower:

  • When hashpower increases, blocks are found faster, and the difficulty rises.
  • When hashpower decreases, blocks slow down, and the difficulty falls.

This creates a self-regulating feedback loop that stabilizes block production and regulates miners’ operations. Miners earn revenue in bitcoin, but incur expenses in fiat (dollars, euros, pesos, etc.).

  • If expected revenue exceeds expenses, miners are incentivized to expand.
  • If expenses exceed revenue, miners are incentivized to shut down.

Miners are therefore exposed to both bitcoin’s price and network difficulty. A new mining operation coming online anywhere in the world will increase total hashpower, accelerating block times and raising difficulty at the next adjustment. Only efficient, profitable miners can stay competitive, while inefficient ones are naturally pushed out.

Only miners with low operating costs—especially electricity—are likely to remain competitive. Over time, market forces compel miners to seek out the most affordable and efficient energy sources. High marginal-cost electricity, such as fossil fuels, becomes less viable, while low or zero marginal-cost sources prove more sustainable for mining.

These energy sources often include:

  • Wasted energy: Surplus electricity that would otherwise go unused (e.g., hydro spillover)
  • Stranded energy: Remote power sources without economic transmission options (e.g., flared gas that would otherwise be released as methane)
  • Renewable energy: Abundant but variable supply (e.g., wind, solar, hydro)

Since electricity is the dominant ongoing expense in mining, competitive pressures naturally drive miners to optimize for energy efficiency. This dynamic ensures that mining remains geographically distributed, economically sensible, and increasingly aligned with efficient energy use.

Lightning

What is the Lightning Network?

The global bitcoin payments network that’s instant, private, and low-to-no cost

Lightning

Transacting bitcoin on-chain vs. Lightning

When and where to use different kinds of bitcoin transactions

Business

What is a strategic bitcoin reserve?

Holding bitcoin for value preservation and optionality

Bitcoin

What is the bitcoin supply schedule?

The pre-programmed pace from zero to 21 million

Lightning

What is a Lightning invoice?

Bitcoin payment requests within the Lightning Network

Money

What are bitcoin-backed loans?

Bitcoin as collateral to unlock cash liquidity

© 2025 NMLS ID 1902919 (Zap Solutions, Inc.)

All in on bitcoin.

Strike

BitcoinLendingBill PayPaymentsSend GloballyBusinessPrivateDeveloper

Platform