How Bitcoin Mining Works: Hashes, Difficulty, and Block Templates
Bitcoin mining is not a contest to solve a meaningful equation. It is a repeated proof-of-work search: create candidate block-header inputs, apply SHA-256 twice, and check whether the resulting number is below the target. The scale is large; the rule is simple.
This technical explainer focuses on SHA-256d, difficulty, headers and templates. For personal solo-mining odds and expected-value modeling, use the solo-mining odds guide and a live calculator rather than a fixed network snapshot.
The proof-of-work rule
A valid block header has a double-SHA-256 hash numerically below the target encoded by its nBits field. Leading-zero count is only a visual shorthand; the consensus rule is a numerical target comparison. No practically exploitable shortcut is known for this proof-of-work search, but security claims should not be phrased as immunity to every future cryptanalytic development.
The Bitcoin Developer Guide mining reference describes the block-prototype and ASIC workflow.
Who does what: node, template software, ASIC, and pool
A full node validates transactions and blocks against consensus rules. Mining software obtains or builds a candidate template. An ASIC performs fast header hashing. A pool can operate nodes and template systems, distribute lower-difficulty share work, receive shares and administer payouts. These are separate roles even when one operator runs several of them.
The getblocktemplate reference shows the candidate transactions, target, coinbase-value limit and other data a template builder uses. An ASIC does not join the Bitcoin peer-to-peer network simply by receiving a Stratum job.
How a modern miner searches
- Template software selects a valid candidate block and constructs its coinbase transaction.
- It derives a Merkle root and sends header work plus a target to the miner.
- The ASIC iterates nonces and hashes the 80-byte header with SHA-256d.
- After the 32-bit nonce range is exhausted, software changes an extranonce in the coinbase, producing a new Merkle root and fresh work.
- If a result meets the network target, the complete block is broadcast for independent validation.
That distinction prevents a common error: “increment the nonce” is not the whole workflow at modern hashrates. The coinbase extranonce, time and sometimes version fields expand the available search space.
Difficulty, targets, and block timing
Bitcoin retargets difficulty every 2,016 blocks using observed timing, with the aim of a ten-minute average over time. Individual blocks remain random, and a hashrate increase or decrease changes timing until a later retarget. Avoid publishing an undated EH/s or difficulty value as a permanent fact.
Consensus parameters set a 600-second target spacing and a 210,000-block subsidy-halving interval. Bitcoin Core’s source is the primary reference for those constants.
Block subsidy, fees, and acceptance
At the current height range, a valid accepted block can claim a 3.125 BTC subsidy plus eligible transaction fees. “Block reward” is convenient shorthand, but fees vary by template and the subsidy changes by height. A candidate found by a miner is not spendable merely because it was found: it must be accepted into the active chain, and a coinbase output matures after 100 blocks.
Two valid candidates can race. The chain’s eventual selection is based on valid cumulative proof of work, so a miner’s template freshness and block propagation matter as well as raw hash rate.
What home mining changes—and what it does not
A home miner performs the same header-hashing operation as larger equipment, but its probability is proportional to its measured hash rate. It can be useful for learning, heat reuse where appropriate, or participation. It does not itself validate every transaction, guarantee profit, or turn a third-party template into a self-selected one.
See the Bitaxe Hub, space-heater guide, and ASIC repair guide for equipment-related paths.
Pool mining and template control
Pool mining reduces payment variance by measuring contributions with shares. It does not make a share a Bitcoin block. Under common arrangements, the pool controls the candidate template and payout rules; a user’s own full node can still validate the chain locally without making the pool use that node’s template.
Users who need direct transaction-selection control should evaluate a self-template architecture. Users who need predictable cash flow should inspect the service’s payout method, fees, rejects, stale-work policy and custody terms.
Hardware is not a permanent network figure.
ASIC, CPU and GPU results depend on the exact device, power mode, temperature, firmware and measurement boundary. A hardware product link is not evidence for a universal network estimate or future profitability. Use measured wall power and pool-side hashrate with current data.
Explore the shop, another Bitaxe reference, another Bitaxe setup reference, another heating reference, an additional heating reference, and another repair reference after the technical constraints are understood.
Frequently asked questions
Is Bitcoin mining solving a mathematical problem?
Mining is a brute-force search for a double-SHA-256 block-header hash below the current target. The cryptographic operation is deterministic; finding a qualifying result is probabilistic.
Do ASIC miners validate Bitcoin transactions?
No. ASICs hash candidate headers. Fully validating nodes check transactions and blocks, while mining software or a pool/template service chooses candidate transactions and creates the jobs sent to ASICs.
Why is the nonce not enough for modern mining?
The header nonce is only 32 bits. Mining software changes the coinbase extranonce, which changes the Merkle root, and can also update time or version fields to create fresh header work.
What does Bitcoin difficulty control?
Every 2,016 blocks, the protocol retargets proof-of-work difficulty toward a ten-minute average. Block intervals remain random, and hashrate shocks affect timing until the next adjustment.
What is the Bitcoin block reward?
In the current subsidy era, a valid block can claim a 3.125 BTC subsidy plus eligible transaction fees. The subsidy changes at a defined block height; fees are not fixed.
Can a home miner participate in Bitcoin mining?
Yes. It performs the same SHA-256d header search as larger equipment, at a much smaller hashrate. Suitability depends on power, noise, heat, network configuration and the goal of the operator.
Does a pool let a miner choose transactions?
Usually the pool or template service chooses the candidate transaction set. A miner that wants direct template control needs a validating node and compatible mining/template software, not only an ASIC pointed at a service.
Further technical reading.
The existing learning paths remain available through the Bitaxe Hub, mining hosting, mining consulting, space heaters, ASIC repair, Bitaxe setup, shop, and a final Bitaxe resource. This page deliberately keeps technical mechanics separate from an odds calculator.
Bottom line
Bitcoin mining is a transparent, probabilistic header-hash search. The practical questions are who validates, who builds the template, who hashes, and who broadcasts or pays. Keeping those roles distinct is the clearest way to understand proof of work.


