BitcoinDatabase.com
All posts
Guides

What Is Bitcoin Mining Difficulty? Hashrate and Adjustments Explained

Bitcoin mining difficulty is the measure of how hard it is to find a block. How difficulty adjusts every 2,016 blocks, how it relates to hashrate and block time, and how to read it from the chain.

By the BitcoinDatabase team

July 2026 · 8 min read

The short answer

Bitcoin mining difficulty is a number that sets how hard it is to find a valid block. It automatically adjusts every 2,016 blocks, roughly every two weeks, to keep the average block time near 10 minutes: if blocks are being found too fast, difficulty rises; if too slow, it falls. Difficulty moves with hashrate, the total mining power on the network, so it is the protocol's self-correcting response to miners joining or leaving.

Bitcoin has to solve a scheduling problem without a scheduler. Thousands of miners compete to find each block, and their combined computing power swings up and down as hardware and electricity costs change. Yet blocks need to arrive at a steady pace so the supply schedule holds. Difficulty is how the protocol pulls that off automatically, with no committee and no manual tuning. Here is how it works and how to read it from the chain.

What is Bitcoin mining difficulty?

Mining difficulty is a measure of how much work it takes, on average, to find a block that the network will accept. Miners look for a block hash below a target value; the lower the target, the fewer valid hashes exist, and the more attempts are needed. Difficulty is just a readable way to express that target: a difficulty of 1 was the easiest setting at launch, and today's difficulty is trillions of times higher. It is stored in every block header, so the exact difficulty for any point in history is recorded on-chain.

How does the Bitcoin difficulty adjustment work?

Every 2,016 blocks, the network compares how long those blocks actually took against how long they should have taken at 10 minutes each, which is exactly two weeks. If the blocks came in faster than that, difficulty rises so the next 2,016 take longer; if slower, difficulty drops. The adjustment is capped at a factor of four in either direction per period to prevent wild swings. This is the only thing that keeps block time anchored near 10 minutes as mining power changes, and it is why Bitcoin issuance stays on schedule regardless of how much hardware is running.

If recent blocks were It means Difficulty does this
Faster than 10 min More hashrate joined Rises, to slow blocks back down
Slower than 10 min Hashrate left the network Falls, to speed blocks back up
About 10 min Hashrate roughly stable Barely changes

The adjustment looks only at the last 2,016 blocks, so difficulty always lags hashrate by up to two weeks.

How is difficulty related to hashrate?

Hashrate is the total computing power miners aim at the network, and difficulty is the protocol's reaction to it. When more hashrate comes online, blocks are found faster, and the next adjustment raises difficulty to compensate. Because hashrate cannot be measured directly, analysts usually estimate it from difficulty and recent block times, which is why the two lines track each other closely on charts. Difficulty is the exact, on-chain number; hashrate is the estimate derived from it. You can rebuild both series from block headers with a network stats API.

Why does mining difficulty keep rising?

Over the long run difficulty has trended up because mining hardware keeps getting faster and cheaper per unit of work, so more hashing power competes for the same fixed block reward. It does not only rise, though. Difficulty falls after events that push miners offline, such as a sharp price drop that makes marginal miners unprofitable, or a large region restricting mining. Those downward adjustments are visible in the record as difficulty drops. Because mining is a real business tied to hardware and power prices, some people track the economics through public mining companies they research as stocks, where difficulty is a direct input to profitability.

Does difficulty affect how long my transaction takes?

Not directly. Difficulty controls how often blocks are found, and the adjustment keeps that near 10 minutes regardless of hashrate, so from a user's point of view block spacing is roughly constant. What actually determines how fast your transaction confirms is the fee you attach relative to the competition in the mempool, not difficulty. If you want your transaction in the next block, you bid a competitive fee; difficulty is working in the background to keep those blocks arriving on schedule. See how confirmations work in how many confirmations is safe.

How do you read Bitcoin difficulty from the chain?

Every block header contains the difficulty target that was in force when it was mined, so the full difficulty history is auditable straight from the chain, no third-party chart required. The work is having every block indexed so you can query it. BitcoinDatabase parses every block since 2009 and exposes difficulty, estimated hashrate, real block intervals and fees over REST, SQL and dashboards, so you can read the current value or rebuild the entire series across every adjustment epoch. To see how blocks and headers fit together, read how to query the Bitcoin blockchain. This is informational on-chain data, not financial or investment advice.

Query Console
btc
try:

Hit Run to query the fully-indexed Bitcoin blockchain.

BTC

30-day trend

informational on-chain data · not financial advice

REST API · SQL · dashboards, one indexed dataset. Querying the indexed Bitcoin blockchain ...

Query the Bitcoin blockchain yourself

Pull balances, UTXOs, transactions, on-chain metrics and fund flows from the fully indexed Bitcoin blockchain by REST API, SQL and dashboards. Indexed since 2009, new blocks within seconds, no node to run.

Query the whole Bitcoin blockchain

BitcoinDatabase indexes the public Bitcoin blockchain block by block and returns balances, UTXOs, transactions, on-chain metrics and fund flows by REST API, SQL and dashboards, with no node to run.

REST + SQL + dashboards · indexed since 2009 · new blocks within seconds

Informational on-chain data only · not financial, investment or legal advice · AML features are compliance tooling to support your own review.