Deciphr Academy
Track 1 · Module 3 · Lesson 2 of 6 · 6 min read

How does Bitcoin mining work, and why will there only be 21 million bitcoin?

Short answer

Miners race to find the proof of work for the next block, and the winner collects new bitcoin plus the fees in that block.1,2 The rules every node checks only let new coins appear on a fixed schedule, which stops just under 21 million.1,3

Waiting transactionspicksMinerguesses a numberhash 8f3a… nohash 41c0… nohash 0000b7… yes!new blockBlockjoins the chainpays the miner:new bitcoin + feesAbout one block every 10 minutes
Fig. 2. A miner guesses numbers until the block's hash starts with enough zeros. The block joins the chain and pays the miner its reward.

What miners do

Mining means spending computing power to process transactions, secure the network and keep everyone in step.1 A miner collects waiting transactions into a block, then searches for the proof of work from Lesson 1.4,1

There is no shortcut. The only way to find a valid proof is to try an immense number of guesses.1 In the early days a home computer could do it. Today, only specialised hardware is cost-effective.1

Ten minutes, on average

As more miners join, the network makes valid blocks harder to find. That keeps the average time between blocks at about 10 minutes.1 Every 2,016 blocks, the network checks how long those blocks took. The target is two weeks.2

If the blocks came faster than two weeks, difficulty goes up. If they came slower, it goes down.2 Single blocks still vary: one can arrive much sooner or much later than 10 minutes.1

The reward

The first transaction in every block is special. It is called the coinbase transaction, and it pays the miner.2,4

The reward has two parts: the block subsidy, which is brand-new bitcoin, and the fees from every transaction in the block.2 The whitepaper explains why: with no central authority to issue coins, this is how new coins get into circulation.4

A miner can't spend this reward straight away. It must wait at least 100 blocks, in case its block ends up off the main chain.2

When two miners win at once

Sometimes two blocks are found at the same moment. Miners build on the first one they receive, then switch to whichever chain grows longer first.1

Once a transaction is in a block, every block added after it makes it harder to reverse. These are called confirmations, and each user decides how many are enough.1

Why only 21 million

Only 21 million bitcoin will ever be created.1 Nakamoto set this out when releasing the software in 2009: "Total circulation will be 21,000,000 coins."5

The schedule's real total is a little lower: almost 2,099,999,997,690,000 satoshis, which is just under 21 million bitcoin.3

Nobody can simply decide to make more.6 Every node rejects anything that breaks the rules it follows.1 In Bitcoin Core's code, a block that pays its miner more than the subsidy plus fees is rejected with the message "coinbase pays too much".7

Satoshis

One bitcoin splits into 100,000,000 smaller units called satoshis, or sats.1 The name honours Bitcoin's creator.8 So the cap doesn't stop small payments: bitcoin can be divided to eight decimal places.1

Converting sats

To turn sats into bitcoin, divide by 100,000,000. So 4,200 sats is 0.000042 BTC, and 15,000,000 sats is 0.15 BTC. The quizzes use this.

Can miners cheat?

Someone who controls half of all mining power could block or reverse recent transactions.1 They still couldn't create coins out of nothing, or take money that was never theirs, because honest nodes reject invalid transactions. At most, they could try to take back money they had recently spent.4

Our viewMining is less about "making coins" than about deciding, openly and fairly, whose block comes next. The new coins are the payment for doing that job.
Sources
  1. Frequently Asked Questions. Bitcoin.org.
  2. Block Chain (Bitcoin Developer Guide). Bitcoin Developer Documentation (developer.bitcoin.org).
  3. Mastering Bitcoin, 3rd edition, chapter 12: Mining and Consensus. Andreas M. Antonopoulos and David A. Harding (CC BY-SA 4.0), GitHub, December 2023.
  4. Bitcoin: A Peer-to-Peer Electronic Cash System. Satoshi Nakamoto (the Bitcoin whitepaper), 2008.
  5. Bitcoin v0.1 released (email announcing the first software). Satoshi Nakamoto, The Cryptography Mailing List (metzdowd.com), 8 January 2009.
  6. Bitcoin Halving Countdown. Bitcoin.org.
  7. Bitcoin Core source code: GetBlockSubsidy and the coinbase check (src/validation.cpp). Bitcoin Core project, GitHub.
  8. Mastering Bitcoin, 3rd edition, chapter 2: How Bitcoin Works. Andreas M. Antonopoulos and David A. Harding (CC BY-SA 4.0), GitHub, December 2023.

General education built from the publicly available sources listed above. Not financial, legal, tax or investment advice. Naming a company, project or regulator is not an endorsement either way. Last checked 2026-10-22. Terms and disclaimer.