THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Does Bitcoin Mining Difficulty Change Every Block?

permalink THAMER
#2016-blocks#bitcoin-difficulty-faq#mainnet#retarget

No. On Bitcoin mainnet, the proof-of-work target is normally adjusted once every 2016 blocks, not after each block. That interval is designed to correspond to roughly two weeks at the target average of ten minutes per block.

What happens between adjustments?

The target remains the same for ordinary blocks in the period, but mining is probabilistic. Blocks may arrive seconds apart or take much longer than ten minutes. A sudden increase in network hash rate tends to shorten the average interval until the next retarget; a decrease tends to lengthen it.

Is the rule identical on testnet?

No. Bitcoin test networks can have special minimum-difficulty or other network-specific rules. Software that calculates difficulty must use the rules of the actual chain, not hard-code the mainnet assumption for every environment.

Primary references

Bitcoin Core — Proof-of-Work rules: https://github.com/bitcoin/bitcoin/blob/master/src/pow.cpp

Bitcoin Developer Reference — Block Headers: https://developer.bitcoin.org/reference/block_chain.html

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects