Three Sources
4 sources How this box works- Bitcoin whitepaper (Nakamoto, 2008) — Describes proof of work, the difficulty moving average and the coinbase incentive funded by new coins and fees. link checked 2026-12-01
- Bitcoin developer documentation: mining — Describes the 80-byte header, nonce and extra-nonce search, the target, pool shares and getblocktemplate. link checked 2026-12-01
- Bitcoin Core source: consensus constants — Sets coinbase maturity at 100 blocks; validation code starts the subsidy at 50 BTC and halves it per 210,000 blocks. link checked 2026-12-01
- Cambridge Bitcoin Electricity Consumption Index — Publishes electricity estimates described as best-guess figures from assumptions, which qualify any single energy number. link checked 2026-12-01
Nothing listed as unconfirmed.
Key points
- Mining is repeated guessing: a block is valid only if its double SHA-256 hash falls below the current target.
- Difficulty retargets every 2,016 blocks to hold the pace near ten minutes, set by software and not by any person.
- Miners earn the subsidy plus fees, but hardware, power and rising difficulty make profit uncertain and date-specific.
Bitcoin mining is the process that adds new blocks of transactions to Bitcoin’s shared ledger. It has two jobs. It settles which transactions come next, and it releases new coins on a fixed schedule. The usual one-line summary, that miners solve hard maths problems, hides what actually happens. This guide walks through the mechanism, the money, and the limits of the business, without promises about profit.
What miners actually do
Bitcoin has no central operator to decide the order of payments. Miners fill that role by competing. Each miner collects pending transactions, bundles them into a candidate block, and tries to make that block meet a rule that is deliberately hard to satisfy. The first miner to succeed broadcasts the block. Other computers on the network, called nodes, check it against the rules and, if it passes, build on top of it.
The Bitcoin whitepaper describes this as a timestamp network built on proof of work. It compares the effort to a vote weighted by computing power, with the chain that holds the most accumulated work counting as the majority view.
The search at the heart of a block
Every block carries an 80-byte header. According to the Bitcoin developer documentation, the header holds a version number, a reference to the previous block, a summary of the block’s transactions called the Merkle root, a timestamp, a compact encoding of the target, and a number called the nonce.
Mining hardware hashes that header with the SHA-256 function, applied twice. The result looks random. The block counts as valid only if the number it produces falls below the current target. There is no shortcut, so the only way to find such a result is to try many inputs.
Miners change the nonce and repeat. The developer documentation notes that the four-byte nonce gives only about four billion tries per header, so miners also vary a field inside the first transaction, which changes the Merkle root and opens up a fresh range of nonces.
That is why mining behaves like a lottery and not like a puzzle with a clever answer. Each attempt has a tiny, fixed chance of winning. More attempts per second means more tickets, and nothing else helps.
How the difficulty keeps time
If everyone’s machines get faster, winning tickets would turn up sooner and blocks would arrive too often. Bitcoin prevents that by adjusting the target. The whitepaper says the difficulty follows a moving average aimed at a set number of blocks per hour, rising if blocks come too fast. In today’s software, the consensus parameters set a ten-minute spacing and a two-week timespan, which works out to a retarget every 2,016 blocks.
Difficulty therefore tracks the network’s total hashing effort with a delay. When more machines join, blocks briefly arrive faster than ten minutes, and the next adjustment makes the search harder. When machines switch off, the reverse happens. The key point is that no person sets the number. The software recalculates it from block timestamps.
“Hashrate” is the estimate of how many guesses per second the network makes. Nobody can measure it directly. It is inferred from how fast blocks are found at the current difficulty, so short windows of data are noisy.
How a miner is paid
The first transaction in each block is special. It is called the coinbase transaction, and it creates new coins and collects the fees of every other transaction in the block. The whitepaper describes both pieces: a steady addition of new coins and a fee income that can take over as the main incentive once the planned supply is out.
The new-coin part is the block subsidy. The consensus code starts it at 50 BTC and halves it every 210,000 blocks. Our halving explainer covers that schedule. The fee part varies with demand for block space. Users who want quick inclusion offer more, and the miner keeps the difference between what a transaction spends and what it creates.
Coinbase rewards cannot be spent immediately. Bitcoin Core’s consensus constants set a maturity of 100 blocks, so a miner must wait for that many later blocks before moving the reward. The delay protects against a rare case where the block that paid it gets replaced in a chain reorganization.
Solo mining and pools
A single machine’s chance of finding a block is the same as its share of total hashrate. Take a hypothetical miner with one millionth of the network’s power. At about 144 blocks a day, that miner would expect one block roughly every 6,944 days, or about 19 years. The average is meaningless over a short run, because luck dominates. That is the variance problem.
Pools address it. The developer documentation explains that in pool mining the pool sets an easier target, so miners can submit frequent “shares” as evidence of work. When the pool finds a block, the reward goes to the pool, which pays members in proportion to their shares. Payout schemes differ, and they are private agreements between miner and pool, not part of the protocol. A pool’s share of recent blocks says little about how many separate operators sit behind it.
The economics, without the sales pitch
Articles that promise a fortune from mining skip the cost side. A realistic picture has several parts:
- Hardware. Purpose-built machines cost real money and lose value as newer, more efficient models arrive. General computers and phones are not competitive.
- Electricity. Power is usually the largest running cost, and its price depends on location and contract.
- Hosting and cooling. Machines run hot and loud, and need space, ventilation and maintenance.
- Pool fees and financing costs, where they apply.
Revenue arrives in bitcoin, but costs are paid in ordinary money. A miner’s margin therefore depends on two things outside its control: the bitcoin price and the network difficulty. Difficulty rises as competitors add machines, so the same hardware earns a shrinking share of the reward over time. Fees add an uncertain extra. No figure for profit is safe to quote in a general guide, because it differs by machine, electricity price and date.
Anyone offering guaranteed daily returns from “cloud mining” or a mining contract is selling a promise, not describing the protocol. Our scams explainer lists the patterns. Before buying equipment, check live conditions yourself. The markets page shows current prices, and any block explorer shows current difficulty.
Energy and security
Proof of work spends energy on purpose. The whitepaper makes the point plainly: to rewrite a past block, an attacker must redo that block’s work and all the work after it, while honest miners keep extending the real chain. The more cumulative work sits on top of a transaction, the more expensive a reversal becomes. That cost is the security.
How much electricity the network uses, and whether that is a good trade, are separate debates. The Cambridge Bitcoin Electricity Consumption Index publishes estimates built from hashrate and assumptions about hardware efficiency. It describes its output as a best-guess figure, not a measured one. Readers should treat any single number with caution and check the method behind it.
Common misreadings
- “Mining creates coins from nothing.” New coins are limited by the subsidy rule, and nodes reject blocks that claim more.
- “More hashrate means a higher price.” Hashrate measures the cost of attacking the chain. It is not a demand or price signal.
- “A block is final at one confirmation.” Each later block makes reversal harder, but no single moment turns finality into a mathematical certainty.
- “Mining is the only way to get bitcoin.” Most people acquire coins through exchanges or payments. See our exchange explainer.
More background sits in the explainers hub and the Bitcoin lane.
Report an error or see corrections How we source stories Editorial policy
For information only, not financial or investment advice. Prices move; check the time of any figure.
Top 10 coins Live
- 1BitcoinBTC In this story $59,447.75 +0.34%
- 2EthereumETH$1,643.95 +0.13%
- 3TetherUSDT$1.00 +0.07%
- 4Binance CoinBNB$550.44 +0.01%
- 5USD CoinUSDC$1.00 +0.01%
- 6XRPXRP$0.9327 −0.42%
- 7SolanaSOL$70.80 +0.80%
- 8TRONTRX$0.2983 −0.47%
- 9HyperliquidHYPE$64.18 +2.71%
- 10Ethena USDeUSDE$1.00 +0.04%
24h change. CoinLore · fetched
All markets →What we still don't know
- How the network will be funded once the subsidy becomes small, which depends on future fee levels.
- How much electricity mining uses at any moment; published figures are estimates.
Sources
- Bitcoin Core validation.cpp (GetBlockSubsidy), GitHub / Bitcoin Core checked 2026-12-01
- Bitcoin Core chainparams.cpp (target spacing and timespan), GitHub / Bitcoin Core checked 2026-12-01
- Bitcoin whitepaper (Nakamoto, 2008), Bitcoin whitepaper (Nakamoto, 2008) checked 2026-12-01
- Bitcoin developer documentation: mining, Bitcoin developer documentation: mining checked 2026-12-01
- Bitcoin Core source: consensus constants, Bitcoin Core source: consensus constants checked 2026-12-01
- Cambridge Bitcoin Electricity Consumption Index, Cambridge Bitcoin Electricity Consumption Index checked 2026-12-01
Our standards
Explainers
- How crypto exchanges work: order books, custody, withdrawals and insolvency Explainers
- Layer 2 rollups explained: optimistic vs ZK, blobs, fees and what Ethereum secures Explainers
- Proof of reserves explained: Merkle trees, attestations and what they cannot prove Explainers
- Crypto scams explained: phishing, drainers, fake airdrops and how to report them Explainers
- How stablecoins hold their peg: backing, redemption, reserves and what happens when it breaks Explainers
- Mercado Bitcoin halts deposits and withdrawals after a security incident Exchanges & Security
- XRP Ledger enables fixCleanup3_4_0 as lending and vault amendments reach majority Altcoins
- Strive reports 48 more bitcoin, 43,452 held, and a board seat left unfilled Bitcoin
- Strategy adds 1,195 bitcoin in Nov. 8-K, paying mostly from USD cash Bitcoin
- Zcash Foundation ships Zebra 7.1.0, a security release fixing ten advisories Altcoins













