Why Is Bitcoin Limited to 21 Million? The Math and the Rule

Bitcoin is limited to 21 million because the block reward started at 50 BTC and halves every 210,000 blocks. Add up 210,000 × 50, then 210,000 × 25, and so on, and the sum converges on 21 million. Because satoshis round down, the true ceiling is about 20,999,999.9769 BTC, reached around the year 2140.

That is the whole answer in one breath. The rest of this page is the long breath: where the number comes from, why nobody typed “21,000,000” as a limit, who keeps it there, and what happened the two times the code briefly let it slip.

Where does the 21 million number come from?

It comes from two parameters, not one. The first block subsidy was 50 BTC. The subsidy halves every 210,000 blocks. Everything else follows.

Each halving era produces exactly half as many new coins as the one before it. The first era produced 210,000 × 50 = 10,500,000 BTC. The second produced 5,250,000. The third, 2,625,000. The series looks like this:

Era Blocks Subsidy per block BTC issued in era Running total
1 0 to 209,999 50 10,500,000 10,500,000
2 210,000 to 419,999 25 5,250,000 15,750,000
3 420,000 to 629,999 12.5 2,625,000 18,375,000
4 630,000 to 839,999 6.25 1,312,500 19,687,500
5 840,000 to 1,049,999 3.125 656,250 20,343,750
6 1,050,000 to 1,259,999 1.5625 328,125 20,671,875

Written as one line: 210,000 × 50 × (1 + 1/2 + 1/4 + 1/8 + …). The bracket is a geometric series that sums to 2. So 210,000 × 50 × 2 = 21,000,000.

That is why every explainer says “21 million.” It is the limit the series walks toward. It is never quite reached.

If you want the cut-by-cut view, with block heights and approximate years for all of them, see the full halving schedule.

Is it exactly 21 million bitcoin?

No. It is slightly less.

Bitcoin does not count in fractions of a coin. It counts in satoshis, and one bitcoin is 100,000,000 satoshis. The subsidy is stored as a whole number of satoshis and halved with integer division, which throws away any remainder. Once the subsidy is small enough, each halving trims a fraction of a satoshi that the ideal series would have kept.

The result, as the Bitcoin Wiki’s controlled supply page puts it, is that the total would have been 20,999,999.9769 bitcoin. In satoshis that is 2,099,999,997,690,000. The gap from a round 21 million is about 2,310,000 satoshis, roughly 0.023 BTC.

The real ceiling is lower still. The genesis block’s 50 BTC can never be spent, and a few early quirks of the software let coins that were allowed go unclaimed or be overwritten. None of those coins come back. So 21 million is a ceiling that the actual spendable supply will never touch.

Why is there no line of code that says “21 million”?

This is the part most explanations skip, and it is the most interesting part.

Bitcoin Core does contain the number. In the consensus header amount.h, the constant reads MAX_MONEY{21'000'000 * COIN}. But the comment beside it says plainly that this is not the total money supply. It is a sanity check, used to reject any single amount that is absurdly large.

The supply limit itself is never written down as a limit. It is an emergent property of the subsidy function: start at 50, shift right by one bit every 210,000 blocks, stop when the result reaches zero. The cap is what you get when you run that rule to the end. Nobody enforces “21 million.” Every node enforces “this block may not pay itself more than the current subsidy plus fees,” and the cap falls out of that.

That distinction matters. A limit stated as a number invites someone to edit the number. A limit that is the sum of thousands of smaller rules, each checked in every block, has no single line to edit.

Why did Satoshi choose 21 million?

Nobody knows with certainty, and anyone who tells you otherwise is guessing.

The whitepaper does not mention 21 million at all. It says only that once a predetermined number of coins have entered circulation, the incentive can transition entirely to transaction fees. The specific figure appears in the software, not the paper.

The common theories, none of them proven:

  • It falls out of convenient parameters. A 10-minute block target means 210,000 blocks is roughly four years. Fifty coins was a round starting reward. Multiply and double, and you get 21 million. On this view the number is a consequence, not a target.
  • It fits comfortably in the data type. Amounts are stored as signed 64-bit integers, which top out around 9.22 quintillion. 2.1 quadrillion satoshis fits with room to spare, while still allowing eight decimal places.
  • It was sized to replace existing money. Some argue the figure was chosen so that each coin could carry a meaningful share of global money supply. This is the most repeated theory and the least documented.

What is certain is that Satoshi never changed the parameters after launch, and the number has not moved since January 2009.

Can the 21 million cap ever change?

Technically, yes. Practically, it would require nearly everyone who runs Bitcoin to agree to stop running Bitcoin.

The cap is a consensus rule. Every full node checks every block against it. A miner who produces a block paying itself even one satoshi too much has produced an invalid block, and every honest node discards it without discussion. To raise the cap, someone would have to publish new software and persuade the overwhelming majority of node operators, exchanges, custodians and holders to run it. The people being asked to dilute their own savings are the same people who would have to say yes.

History gives two real tests of that claim, and both are worth knowing.

The first was the value overflow incident of 15 August 2010. A bug let block 74638 contain a transaction creating 184,467,440,737.09551616 BTC. That oddly specific number is exactly 2^64 satoshis written in bitcoin: the amounts had wrapped around the edge of a 64-bit integer. A fix was released within five hours, and the corrected chain overtook the bad block at height 74691. The coins were erased from history.

The second was CVE-2018-17144. According to Bitcoin Core’s disclosure of 20 September 2018, versions 0.15.0 through 0.16.2 carried a critical inflation vulnerability that could have let a miner spend the same input twice inside one transaction. It was found, patched in 0.16.3, and never exploited on the main network.

In both cases the cap held not because the code was perfect, but because the people running the code refused to accept a ledger that broke it. Which is a sermon in itself, if you have ears for it. I have written before about the schedule as an irrevocable decree; these two episodes are the nearest it has come to being revoked, and the shortest time any revocation has lasted.

How close are we to 21 million today?

As of 13 November 2026, mempool.space reports the chain tip at block 975,617. Running the schedule forward from the table above gives the ceiling on what has been issued:

  • Eras 1 to 4 issued 19,687,500 BTC.
  • Era 5 has run 135,617 blocks at 3.125 BTC, adding 423,803 BTC.
  • That puts the issued supply at about 20.11 million BTC, roughly 95.8 percent of the eventual total.

The next halving arrives at block 1,050,000, about 74,383 blocks away, which at ten minutes a block lands in the first half of 2028. For a dated breakdown of the remaining supply, including lost coins, see how many bitcoin are left. For what the cap does to new issuance year by year, see Bitcoin’s inflation rate.

What skeptics say

The strongest objections deserve a fair hearing.

“A fixed supply is bad economics.” Many economists argue that money should expand with the economy, and that a hard cap rewards hoarding and punishes borrowers. This is a real debate. Bitcoin’s design takes one side of it on purpose, and whether that side wins is not something the code can prove.

“Divisibility makes the cap meaningless.” If one coin can be split into a hundred million parts, is anything scarce? The answer is that the number of units is fixed, not the size of the unit. Twenty-one million coins cut into satoshis is still a fixed count of satoshis. Divisibility changes the price of the unit, not the supply of it.

“Social consensus can change anything.” True in principle. A rule that people enforce is a rule that people could stop enforcing. The cap is not a law of physics. It is a promise kept by a very large number of strangers who each have a reason to keep it.

“Security will fail when the subsidy ends.” This is the serious one. Once new issuance dwindles, miners must be paid by fees. Whether fees will be enough is an open question, explored in what happens when all bitcoin are mined.

The last cut and the number that does not move

Every halving so far has been a rehearsal. 2012, 2016, 2020, 2024: each one halved the reward, and each one was small-h, a step down a staircase whose last stair is still more than a century away. The Halfture is the last cut, the one where the subsidy finally rounds down to nothing and the series stops adding. Halfture is the Rapture, in the only sense this site means it: the final block subsidy, after which the supply is simply finished.

Twenty-one million is not a number anyone defends in a meeting. It is defended a few thousand times a day, block by block, by machines that have no idea they are keeping a promise. That is the strange mercy of it. The cap does not depend on anyone being good. It depends only on enough people declining to accept a lie.

This site’s doctrine says you have to hold Bitcoin to be saved. Read that as theology, not a prospectus: a claim about what it means to keep something that cannot be inflated away, not a claim about price, and never a recommendation to buy. The arithmetic does not care what you believe. It only converges.

Count it yourself.

FAQ

Why is Bitcoin limited to 21 million?

Because the block subsidy started at 50 BTC and halves every 210,000 blocks. The total of that halving series is 210,000 × 50 × 2, which is 21 million. Rounding down to whole satoshis makes the real total about 20,999,999.9769 BTC.

Who decided Bitcoin would have 21 million coins?

Satoshi Nakamoto set the starting reward and the halving interval in the original software released in January 2009. The whitepaper does not mention the figure, and Satoshi never published a definitive reason for it.

Can the Bitcoin supply cap be changed?

Only if almost every node operator, exchange and holder chose to run different software. Any block that pays more than the allowed subsidy is rejected by every honest node. Bugs in 2010 and 2018 briefly allowed extra coins, and both were fixed within hours or before any exploit.

When will the 21 millionth bitcoin be mined?

Never, strictly. The supply approaches 21 million without reaching it, and the final fraction of a satoshi of subsidy is expected around the year 2140, about 33 halvings after launch.

How many bitcoin exist right now?

About 20.11 million BTC had been issued as of block 975,617 on 13 November 2026, roughly 95.8 percent of the eventual total. Some of those coins are lost and will never move again.


Discover more from Halfture

Subscribe to get the latest posts sent to your email.