Mining explained: a lottery where the ticket is electricity and the prize is one page
Bitcoin mining is the job of building the next block and proving that work went into it. The miner who finds a valid block first adds it to the chain and pays itself the new coins plus the fees, and every node checks the result before accepting it.
Every gold rush had men with pickaxes, standing in cold water, hoping the next shovel of gravel held something shiny. Most of the time it didn't. They kept digging anyway, because one lucky find paid for a lot of empty pans.
Bitcoin miners do the same, with one difference. There is no gold in the ground. The miner is digging for a number, and the prize for finding it is the right to write the next page of Bitcoin's public record, and to pay itself for doing so.
That is all mining is: building a block, proving that work went into it, and getting paid if the rest of the network agrees. Here is the whole job, start to finish, on one real block.
What it is
Mining is how new blocks get added to the Bitcoin blockchain, and how new bitcoin enter circulation. A miner collects waiting transactions, packs them into a block, then searches for a block header whose fingerprint comes out low enough. The first miner to find one broadcasts the block. Every node checks it, and if it follows the rules, everyone builds on top of it.
The white paper lists the steps plainly: "Each node collects new transactions into a block." Then: "Each node works on finding a difficult proof-of-work for its block." And: "Nodes accept the block only if all transactions in it are valid and not already spent" (Nakamoto, 2008). In the white paper, every node mines. Today mining is a separate industry, but the steps are the same.
How it works: block 900,000, start to finish
Block 900,000 was found on 6 June 2025 at 05:41:39 UTC. Here is what the miner did, read from the block itself through the mempool.space explorer (mempool.space).
- Collect. Transactions that people send wait in the mempool, every node's waiting room. The miner picks the ones that pay the best fee for the space they take. Block 900,000 holds 1,562 transactions.
- Build. A block has a size limit: a weight of at most 4,000,000 units, a network rule in Bitcoin Core (consensus.h). Block 900,000 used 3,130,335, about 78% of the room. First in line is the coinbase transaction, which the miner writes to itself.
- Search. The miner then hashes the 80-byte block header again and again, changing a small number called the nonce each time, until the result falls below a target set by the network. The winning header of block 900,000 hashes to a value that starts with 19 zeros in hexadecimal. How hard that search is, and why it can't be faked, is in "Proof of work explained".
- Broadcast. The miner sends the block to other nodes. They check every transaction, the header and the pay. If it all fits the rules, they start building block 900,001 on top of it. If not, the block is ignored, and all that electricity bought nothing.
- Get paid. The coinbase of block 900,000 paid out 314,291,835 satoshis. That splits into two parts: - Subsidy: 312,500,000 satoshis, which is 3.125 bitcoin, the amount Bitcoin's code allows for every block since block 840,000 (validation.cpp). - Fees: 1,791,835 satoshis, about 0.0179 bitcoin, collected from all 1,562 transactions together. That is 0.57% of the miner's pay for that block.
At 18 November 2026 prices (CoinGecko, USD 63,154.72 per bitcoin), that reward of 3.14291835 bitcoin would be worth about $198,490. That is that day's value, not what the miner received in 2025, and it says nothing about the miner's costs.
One more rule: the miner can't spend that money straight away. Bitcoin Core's comment reads: "Coinbase transaction outputs can only be spent after this number of new blocks", and the number is 100 (consensus.h). If the block loses a race with a competing block, its reward disappears with it.
Then the whole thing starts again. Bitcoin's code aims for one block every 600 seconds, ten minutes (chainparams.cpp).
Why it matters
- Ordering without a boss. Someone has to decide which transactions go on the next page. Mining makes that someone a different, temporary winner each time, chosen by work, not by permission.
- New coins have to come from somewhere. The white paper calls the coinbase "a special transaction that starts a new coin owned by the creator of the block" (Nakamoto, 2008). There is no central bank. The subsidy is the issue.
- Rewriting history gets expensive. To change an old block, you would have to redo its work and every block after it. How that goes wrong is in "The 51% attack explained".
- Who pays. Miners pay for machines and power. Users pay fees. Every holder pays a little through new supply, which shrinks with each halving.
Where people get it wrong
- "Miners solve complex maths problems." They don't. They guess, billions of times a second. The puzzle is dull on purpose: it is easy to check and impossible to shortcut.
- "Miners decide the rules." Nodes check every block. A miner that pays itself more than 3.125 bitcoin plus the fees has mined a block nobody will accept.
- "Mining creates bitcoin out of electricity." Electricity buys lottery tickets. The coins come from a rule in the code, and only for the winner.
- "Mining confirms your transaction because a miner approved it." The miner only chose to include it. The confirmation is every later block built on top.
- "Mining is free money for anyone with a computer." For an ordinary computer, the odds are so poor that the chance belongs in "Can you still mine at home?", along with the arithmetic.
Check the miner's pay yourself
Open any block explorer, the assay office of this gold rush, and pick a block. Find the coinbase transaction, the first one. Subtract 3.125 bitcoin from its total. What is left is the fees, and it tells you how busy the network was in the hour that block was mined.
You don't need a pickaxe, a hosting contract or a YouTube course for that. The shovel sellers will happily sell you all three. The assay office is free.
Frequently asked questions
What does a Bitcoin miner actually do?
A miner collects waiting transactions, builds them into a block and hashes the block's header over and over, changing the nonce, until the result is below the network's target. If it finds one first, it broadcasts the block and every node checks it before building on top.
How much does a miner earn for one block?
The block subsidy, 3.125 bitcoin since block 840,000 on 20 April 2024, plus the fees of all transactions in the block. Block 900,000 on 6 June 2025 paid 3.125 bitcoin of subsidy and about 0.0179 bitcoin in fees.
Can a miner spend the reward immediately?
No. Bitcoin's rules let coinbase outputs be spent only after 100 more blocks have been built on top. That protects everyone if the block is replaced by a competing one.
Is mining the same as solving a maths problem?
Not really. Mining is repeated guessing: hash, check, change the nonce, hash again. There is no clever shortcut, which is exactly why finding a valid block proves that work was done.
How often is a Bitcoin block mined?
Bitcoin's code aims for one block every ten minutes on average. Single blocks can come seconds apart or take far longer, because finding one is a matter of luck.
Sources
- Satoshi Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008), sections 5 and 6
- mempool.space API, Bitcoin block 900,000 (6 June 2025)
- Bitcoin Core source code, src/consensus/consensus.h (MAX_BLOCK_WEIGHT, COINBASE_MATURITY)
- Bitcoin Core source code, src/kernel/chainparams.cpp (target spacing, halving interval)
- Bitcoin Core source code, src/validation.cpp (GetBlockSubsidy)

