Why Is There a Cap of 21 Million Bitcoin?
·
Updated September 17, 2026
·
approx. 7 min read
The limit of roughly 21 million bitcoin is nowhere written into the software as a target number. It is the result of one simple rule: every block pays out a fixed amount of new bitcoin, and that amount halves at fixed intervals until it reaches zero. Add up everything that can be created along the way and you land just under 21 million.
One thing first: this is about the mechanism behind the number, not a claim about value. A capped supply on its own says nothing about what a bitcoin costs. That question is covered in what gives Bitcoin its value.
The fundamentals in this article do not change. The date shows when the text was last reviewed in full.
The short answer
Bitcoin only issues new units through the block reward, the amount a miner gets for finding a block. The GetBlockSubsidy function in Bitcoin Core says: the reward starts at 50 bitcoin per block and halves every 210,000 blocks, which works out to roughly every four years.
The cap comes out of that chain. 50 plus 25 plus 12.5 and so on adds up to just under 100 bitcoin. Since each step lasts 210,000 blocks, that makes just under 21 million bitcoin in total. After enough halvings the reward hits zero, and from then on no new bitcoin are created.
Worth remembering: Nobody set 21 million as a figure. What is set is the issuance schedule, and 21 million is simply where it ends up.
The halving schedule in detail
The GetBlockSubsidy function works the reward out like this: take the block number, divide it by 210,000, and halve the starting reward of 50 bitcoin that many times. At 64 or more halvings the code pins the reward to zero.
- The reward is held internally in satoshis, as whole numbers. 50 bitcoin is 5,000,000,000 satoshis.
- Because it keeps halving and rounds down, the reward is still one satoshi after 32 halvings and drops to zero with the 33rd, at block 6,930,000. On the current block pace that lands around the year 2140.
- How a block reward comes about and what it is for is covered in what is Bitcoin mining.
So the schedule is fully known in advance. You can work out how many new bitcoin any future block will pay without asking anyone.
Why the real total is under 21 million
21 million is a round figure. The Bitcoin Core source code is more careful here. It holds a value called MAX_MONEY, 21,000,000 times 100 million satoshis, and the comment beside it says plainly: this is a sanity check, not a statement about the actual money supply. The amount that will ever really exist is a little below that, for several technical reasons.
If you want to be precise, then, it is a ceiling rather than a final total. The limit is never quite reached, and under the rules it is never exceeded.
Could anyone raise the cap?
The cap is a consensus rule. Every full node checks, on every block, that no oversized reward is paid out, and rejects a block that breaks that. Pushing through a higher reward would mean practically all of those checkers running changed software at the same time.
That is not something one group decides. A rule change of this size would need a lot of independent parties behind it: the operators of economically important nodes, wallets and services, the users, and the miners. Anyone who runs a different rule without the other parties following ends up on a forked chain. It is exactly this high bar that makes the 21 million count as stable.
Why the supply is capped at all
The Bitcoin whitepaper describes the block reward as an incentive: it brings computing power to the network and puts new bitcoin into circulation without a central body having to issue them. The reward drops on schedule, and once enough bitcoin are in circulation, miners are funded purely by transaction fees. The whitepaper explicitly calls that state free of inflation in the sense of a growing money supply.
Whether a fixed cap is economically good or bad is a matter of debate, and not the point of this article. What can be said is only this: it is part of the rules, known in advance, and not changeable at short notice. Why Bitcoin exists in the first place is covered in the basics section.
Conclusion
The 21 million bitcoin limit is not a number someone chose but the result of the halving schedule: 50 bitcoin per block, halved every 210,000 blocks, down to zero. In the Bitcoin Core code the figure appears only as a sanity check, and rounding plus unspendable rewards mean the real total comes out a little lower. The cap could only be raised if a lot of independent parties adopted a different rule at once. That is why people speak of a ceiling that holds, even though it is never quite reached.
Ready for the next step?
The basics section covers Bitcoin calmly, from the rules and the capped supply to self-custody, with no hype and no price predictions.
Frequently asked questions about the 21 million bitcoin
These come up when someone first hears that the Bitcoin supply is capped and wants to know where the number comes from and whether it is safe. The answers follow the Bitcoin protocol and the reference software’s source code.
Why is it exactly 21 million bitcoin?
It is not exactly 21 million. The number falls out of the issuance schedule: 50 bitcoin per block, halved every 210,000 blocks, until the reward reaches zero. The sum of that series is just under 21 million. In the Bitcoin Core code 21,000,000 appears only as a sanity check, not as a target.
How many bitcoin exist right now?
The exact amount in circulation can be worked out from the block height, because the issuance schedule is fixed. After the halvings so far, by far the largest part is already issued, with the rest arriving in ever smaller steps until roughly 2140. For a current figure, use a block explorer.
When will the last bitcoin be mined?
On the current block pace the block reward drops to zero around the year 2140. After that no new bitcoin are created, and miners are funded entirely by transaction fees. The exact date depends on how fast blocks are found on average.
Can the 21 million cap be raised?
Only if a lot of independent parties run changed software with a higher cap at the same time: operators of economically important nodes, wallets, services, users and miners. A small group cannot force it. Anyone who tries alone ends up on a forked chain.
What happens once all bitcoin are issued?
No new bitcoin are created through the block reward. Miners still collect the transaction fees of the blocks they find. The whitepaper explicitly provides for this transition to fees only.
Why does the real total come out under 21 million?
Two reasons. First, the block reward is rounded down to whole satoshis at every halving, so a small remainder is lost. Second, some block rewards are never claimed or can never technically be spent, including the 50 bitcoin of the very first block.
Thanks for reading this far. If you are curious, take a look at the other Bitadvocate blog guides as well.
The statements above were checked against these primary sources.
- Bitcoin Core Repository (bitcoin/bitcoin): src/validation.cpp GetBlockSubsidy
- Bitcoin Core Repository (bitcoin/bitcoin): src/consensus/amount.h
- Satoshi Nakamoto Institute (white paper transcription): Bitcoin: A Peer-to-Peer Electronic Cash System, section 6
Produced by the Bitadvocate editorial team. This article reflects the state of things when it was checked and is not legal, tax or investment advice.