
In this field note
Proof of work makes producing a Bitcoin block require repeated computation while making the resulting proof quick to check. The work helps a network of independent participants agree on one transaction history without appointing a single record keeper.
The phrase “solving a complex puzzle” can suggest that miners search for a clever mathematical insight. The ordinary mining process is closer to repeated trials: construct a candidate header, hash it and see whether the result meets a target. For the hashing part, start with Bitcoin hashing.
A small target example
Imagine a toy hash function that produces equally likely integers from 0 to 999. If the permitted result is 0 through 9, each attempt has a one-in-100 chance of succeeding. If only 0 through 4 is allowed, the chance falls to one in 200.
This is a teaching example, not Bitcoin’s actual number range. It illustrates why a lower target means more expected work. It also explains an easy mistake: 100 failed attempts do not make the next attempt certain to succeed. An average describes repeated outcomes, not a deadline for one lucky result.
Bitcoin uses a much larger numerical range, and a block header’s hash must be less than or equal to the permitted target. The target is encoded in the header’s nBits field. The exact structure is documented in the block-header reference.
From candidate block to an accepted block
A miner first prepares a block containing transactions and a special coinbase transaction that claims the permitted reward. Its software then builds the header and passes mining work to its hardware. Changing permitted fields creates fresh attempts. When one passes the network target, the full block can be broadcast. Bitcoin’s mining guide describes that workflow.
Other nodes do more than applaud a successful hash. They independently check the block and transactions against their rules, including whether the inputs can be spent and whether the miner claims too much. A block with enormous work but invalid transactions is still invalid. Proof of work is one requirement for acceptance, not permission to ignore the rest of Bitcoin’s rules. See the developer guide to block validation.
How work protects transaction history
Each header refers to its predecessor. Changing an earlier block therefore means rebuilding work for it and the following chain. Among competing valid histories, nodes follow the one with the most accumulated work. Counting block entries alone can be misleading because different difficulty levels represent different amounts of work.
Two miners can also produce valid competing blocks without an attack. As further work extends one branch, nodes can reorganize to it. A transaction’s first confirmation is therefore not an absolute guarantee of permanence; additional confirmations increase the work an alternative history would need to overcome. These are core ideas in the Bitcoin white paper, sections 4–5 and 11.
What a majority-hashrate attack can and cannot do
An attacker with enough mining power can try to replace recent history, reverse their own payments or exclude transactions. That is why concentration of mining power matters. But controlling hashpower does not provide everyone else’s private keys or make arbitrary money creation valid to nodes enforcing the existing rules. Bitcoin’s security FAQ distinguishes these limits.
There is no permanent dollar price for “attacking Bitcoin” that can be lifted from an old article. Hardware availability, attack duration, the competing network and other assumptions all change the question. Likewise, a fixed confirmation count should not be presented as a universal guarantee for every payment.
Why miners use electricity and join pools
Repeated computation consumes power, and producing it reliably also needs equipment and cooling. A network hashrate alone cannot tell you total electricity use: you would need the efficiency and operating conditions of the machines behind it.
For one illustrative machine, 3 kW running continuously uses 72 kWh per day. At $0.12/kWh, electricity alone costs $8.64 daily. Renewable power still has equipment, capacity and availability constraints; its label alone does not establish mining profitability. The energy-cost guide develops that calculation.
Pools combine many miners’ work and use submitted shares to measure contributions. This changes payout variability and introduces pool terms and counterparty risks; it does not remove the network’s proof-of-work requirement. The payout model belongs in a separate comparison, covered in mining pools.
Where rewards and difficulty fit
Miners can earn the block subsidy and included transaction fees. The subsidy follows the halving schedule; long-term participation must still cover operating costs. Mainnet difficulty responds periodically to block pace, aiming at a ten-minute average. It neither fixes an individual block’s arrival time nor protects a miner’s margin.
Use the mining calculator to examine a machine’s economics. Use proof of work to understand how valid histories compete. Those are connected questions, but one answer cannot stand in for the other.
Frequently asked questions
Is proof of work a puzzle with a clever shortcut?
Ordinary mining repeatedly changes allowed header data, hashes it and tests the result against a target. A valid result is quick to check, although finding one takes uncertain repeated work.
Can enough work make an invalid payment valid?
No. Full nodes independently check transactions and consensus rules. A header with sufficient work does not override invalid signatures or an excessive block reward.
Does one confirmation make a payment irreversible?
No absolute guarantee follows from one confirmation. Competing valid branches and reorganizations can occur; additional confirmations increase the work needed to replace the accepted history.
Can majority hashrate reveal other people's private keys?
No. Mining power can be used to attempt reorganizations or exclusion, but it does not reveal signing keys or make arbitrary invalid transactions acceptable to validating nodes.
Put it to work
Mining calculatorSources are listed above. This guide explains the mechanics; it is educational information, not a recommendation to invest or buy mining equipment.

