Nobody promised families that Bitcoin would stop at 21 million coins. The software enforces it, and every computer running that software checks the rule independently.
Bitcoin’s scarcity is not physical like gold or land. No central bank or administrator decides how many coins exist. Instead, every full node applies the same consensus rules, including the one that governs how new coins are created: the block subsidy.
The halving arithmetic
New bitcoin appear only when miners produce valid blocks, each carrying a fixed reward. When Bitcoin launched in 2009, that reward was 50 BTC. Every 210,000 blocks, roughly every four years, it is cut in half.
Add up the issuance across all 32 halving periods and you arrive at almost 21 million. The first period issued 10,500,000 BTC at 50 per block. The second issued 5,250,000 at 25, the third 2,625,000 at 12.5, and the fourth 1,312,500 at 6.25. The current period pays 3.125 BTC per block and issues 656,250. The sum approaches 21 million without quite reaching it, and the last fractions will be mined around 2140.
Where the code does the work
In Bitcoin Core’s validation code, the current halving is worked out by dividing block height by the 210,000-block interval and rounding down. The starting subsidy is 50 coins, held in satoshis, the smallest unit, of which a bitcoin holds 100 million. Each halving shifts the binary number one place to the right, which halves it. After 64 halvings the reward is forced to zero, a guard against an overflow that would otherwise reset the count and issue the supply again.
A separate check in the amount code rejects any total above 2.1 quadrillion satoshis, which is 21 million bitcoin. It works as a sanity check against bugs, not as the main rule. Bitcoin has had such bugs. A 2010 value overflow bug allowed an attacker to create 184 billion bitcoin, and a 2018 duplicate-inputs vulnerability allowed the same coin to be spent twice.
Why nobody can quietly print more
If a miner tries to claim more than the permitted subsidy, every node recognises the block as invalid, refuses to relay it, and keeps it out of the blockchain. Each person running a node, in effect, audits the monetary policy.
Could the code simply be changed? Anyone may modify open-source software, but a new rule only matters if the overwhelming majority of users adopt it, and even minor adjustments have taken years of coordination. An inflationary change would undercut Bitcoin’s main selling point, so the market would likely refuse it. For ordinary holders, the practical point is that they can check all this themselves by running a node.




