The Bitcoin halving: why there are only 21 million bitcoins
Bitcoin is a shared book of payments that thousands of computers around the world keep in parallel (there is more about this in the opening part of the series). Payments are not added to it one by one but in batches: roughly every ten minutes another batch is written in, called a block. Whoever writes a block may add one payment to themselves in it, out of nothing. This is called the block reward, and there is no other way for new bitcoins to come into being: no central bank prints them. At the start in 2009 the reward was 50 bitcoins, today it is 3.125, and behind that drop is the halving.
The halving is the moment when the block reward is cut in half. It comes roughly once every four years, most recently on 20 April 2024.
Why does it matter so much? From one rule, “every four years, half”, follows the number for which Bitcoin became famous: there will never be more than 21 million bitcoins. The cap does not rest on anybody’s promise that someone would have to keep. It comes from the fact that infinitely many rewards, each halved again and again, add up to a finite number: twice what was created in the first four years. We will work that sum out and draw it. We will also work out how many bitcoins are already in the world and when the very last one will come into being. We will leave the price of bitcoin aside; this is only about the maths.
The right to write a block goes to whoever first solves a demanding computational task: they have to guess a number with which the hash of the block (a number worked out from its contents) comes out as the rules require, and that can only be done by trying, attempt after attempt. All this is meant to ensure that anyone who wanted to rewrite older history would have to do that enormous work again. Those who do the guessing are called miners, and their task is covered in detail in the part on mining.
Block reward and the halving
The halving does not follow the calendar but the number of blocks. The Bitcoin program has a rule: the reward is halved after every 210,000 blocks. This is enforced by the nodes: computers that hold a copy of the whole book and check every new block against the rules. A node works out how many blocks there have been so far and rejects a block with a higher reward than is allowed. So a miner cannot credit themselves with more, even if they wanted to: nobody would accept such a block.
How long do 210,000 blocks take? One block is added on average every 10 minutes:
Divided by sixty that is 35,000 hours, divided by 24 about 1,458 days. And finally we divide by the number of days in a year:
Hence the “every four years”. So far we have had four halvings:
| halving | block | date | reward afterwards |
|---|---|---|---|
| start | 0 | 3 Jan 2009 | 50 BTC |
| first | 210,000 | 28 Nov 2012 | 25 BTC |
| second | 420,000 | 9 Jul 2016 | 12.5 BTC |
| third | 630,000 | 11 May 2020 | 6.25 BTC |
| fourth | 840,000 | 20 Apr 2024 | 3.125 BTC |
The actual gaps between halvings, though, were 3.6 to 3.9 years, not a full four. The network makes the task harder or easier so that a block comes out roughly every ten minutes, but it adjusts this only once every 2,016 blocks, about every two weeks. As long as more miners keep joining, the blocks come a little faster in between, and the difficulty always lags slightly behind. From the first block to the last halving a block took about 9.6 minutes on average.
Next in line is the fifth halving, at block 1,050,000. On the morning of 5 December 2026 the latest block had height 978,859, so 71,141 blocks are still to go. At ten minutes each that is about 494 days, so the halving will come around April 2028. Take this as an estimate: if blocks stay a little faster, it will arrive a few weeks earlier. The reward will then drop to 1.5625 BTC.
How many bitcoins will be created and when
And now to the heart of the matter: let’s add up all the rewards that will ever be created. During the first 210,000 blocks the reward was 50 BTC, so this many were created:
In the second period the reward was half, and so half as many bitcoins were created:
that is
Every term contains 10.5 million, and we can factor it out. The total number of bitcoins is
What is the sum in the brackets? There are infinitely many terms, so it might seem that it will grow for ever. Let’s try adding step by step: 1, then 1.5, 1.75, 1.875, 1.9375… The sum grows, but more and more slowly, and it is always short of two by exactly as much as the last term. It never exceeds two. A picture shows it even better. Take a rectangle made of two squares of area 1. The one from our sum fills the first square. The half fills half of the second square. The quarter fills half of what is left of it, the eighth again half of the remainder, and so on:
The free space is halved with every step: after a half a quarter remains, after a quarter an eighth, after an eighth a sixteenth. No piece ever sticks out beyond the edge of the rectangle, so the sum does not exceed two. And the free space can be made as small as we like: after twenty halvings
The same trick is behind the fact that 0.999… equals one. If you remember from school the formula for the sum of a geometric series
So the total number of bitcoins will be
Why not exactly 21 million
But even the 21 million will not be exact. The smallest unit of bitcoin is the satoshi, one hundred-millionth of a bitcoin, and the reward is counted in whole satoshis. If less than a satoshi is left over after a halving, the remainder is simply discarded. After 33 periods the reward drops to zero. The discarded remainders add up to only about 0.0231 BTC, so the total number of bitcoins will be 20,999,999.9769 BTC. The infinite series therefore has an end in bitcoin: the last satoshi goes to the creator of block 6,929,999. When will that happen? 33 periods of roughly four years give 132 years, so counting from 2009 the last reward comes around the year 2140.
How many bitcoins have been mined
The picture with the squares reveals something more. The first period released half of all bitcoins, after the second three quarters were out, and each further period adds half of what is still missing:
| after the halving | mined | share of 21 million |
|---|---|---|
| first (2012) | 10,500,000 BTC | 50% |
| second (2016) | 15,750,000 BTC | 75% |
| third (2020) | 18,375,000 BTC | 87.5% |
| fourth (2024) | 19,687,500 BTC | 93.75% |
| fifth (about 2028) | 20,343,750 BTC | 96.875% |
How do we stand today? After the fourth halving 3.125 BTC is added per block. By block 978,859 (5 December 2026), 138,860 blocks had been added since block 840,000, so
That is about 95.8% of all the bitcoins that will ever exist. The remaining just under 880,000 BTC will keep being added for another hundred years or more, more and more slowly. Every day roughly 144 · 3.125 = 450 BTC is created today, and half of that after the next halving.
It is really exponential growth turned inside out: there, something doubles in a fixed time, here what is still left to be mined is cut in half every four years. That is why the curve approaches the cap so slowly.
Not all mined bitcoins can be used. Some of them lie at addresses whose owners have lost the keys, that is, the secret numbers without which a coin cannot be spent. Since Bitcoin cannot recover a key, they are lost for ever. How many there are cannot be calculated, only estimated: from the blockchain you cannot tell whether a coin belongs to someone who simply has not paid for a long time.
Why 21 million
Here maths shrugs. The number 21 million follows from two choices: the initial reward of 50 BTC and the interval of 210,000 blocks. The cap is always twice the first period, 2 · 50 · 210,000. If the reward were halved after 420,000 blocks, that is, roughly every eight years, there would be 42 million bitcoins. If it started at 10 BTC, only 4.2 million. Why exactly these values, the creator of Bitcoin, who went by the name Satoshi Nakamoto, never properly explained. In the original description of Bitcoin from 2008 the number 21 million does not appear at all. It says only that a “predetermined number of coins” will enter circulation.
What replaces the reward
Will miners work for nothing once the block reward is gone? No, because they have a second source of income: fees. Whoever sends a payment can add a fee to it, and it goes to the miner who writes the payment into a block. Space in a block is limited, because a block has a fixed maximum size, and so miners take payments with a higher fee first. The original description of Bitcoin already counted on this: once a predetermined number of coins has been created, the reward can pass over entirely to fees.
For now fees are only a small extra. In the last 144 blocks up to the morning of 5 December 2026 (that is, about a day) miners received 450 BTC of newly created bitcoins and about 12.7 BTC in fees, so fees made up about 2.7% of their income (according to mempool.space). But every halving cuts the new bitcoins in half, and around 2140 only fees will be left. Whether they will be enough for mining to pay as well as it does today is an open question to which maths has no answer.
See also
Chapters: Bitcoin: what it is and how it works, The Bitcoin halving: why there are only 21 million bitcoins, Bitcoin mining: how proof of work works, Blockchain and the Merkle tree: how it works and why history cannot be rewritten, The Bitcoin address, private key and signature, Seed phrase: why nobody can guess the 12 words of a wallet, Ethereum: smart contracts and proof of stake, Is Bitcoin secure? What its cryptography rests on, The 51% attack: can Bitcoin be spent twice?, Quantum computers and Bitcoin: what if elliptic curves fell, Bitcoin and SHA-256: what if the hash function fell, Post-quantum Bitcoin: how Bitcoin would defend itself against quantum computers