Bitcoin’s issuance is one function of block height. Each block may create a subsidy that started at 50 BTC and is cut in half every 210,000 blocks, and after 33 eras the subsidy rounds down to zero. Adding every era gives 20,999,999.9769 BTC, slightly under the famous 21 million, because amounts are whole satoshis and each halving rounds down.
The rule in code
The function is GetBlockSubsidy in validation.cpp. It divides the block height by the halving interval, 210,000, to count how many halvings have passed, and if that count reaches 64 it returns zero. Otherwise it starts from 50 coins, expressed in satoshis, and shifts the value right by that count, which means halving it with the remainder dropped. The interval itself is set in the chain parameters as nSubsidyHalvingInterval.
A node enforces the result. A block whose coinbase claims more than the subsidy plus its own fees is invalid, so the schedule is not a promise by an issuer. It is a condition for being accepted. Changing it would require node operators to run different software, which would create a different chain.
The glossary entry on the block subsidy gives the one-paragraph definition, and how miners get paid shows where the subsidy lands.
How every node checks the schedule
When a node receives a new block, it computes the subsidy for that block’s height with the function above. It then sums the fees, which are the difference between what the block’s transactions spend and what they create.
The coinbase outputs must total no more than the sum of the two. If they do, the check passes; if they do not, the node discards the block and any chain built on it.
No node needs to trust a running total of coins. The total at any height follows from the rule, and a node that starts from the first block and validates everything reconstructs it independently. That property is why the schedule is described as enforced rather than promised: nobody can alter it by decree, because each participant verifies it for themselves.
The rule is tied to height, not to time, so slow or fast blocks do not change how many coins a block may create. They only change how quickly the heights are reached, which is the job of the difficulty adjustment to keep near ten minutes.
Everything is in satoshis
The unit of account in the protocol is the satoshi, one hundred-millionth of a bitcoin. The constant is COIN = 100,000,000 in amount.h. Amounts are stored as whole integers of satoshis, never fractions. The starting subsidy is therefore 5,000,000,000 satoshis, and what looks like 3.125 BTC is really 312,500,000 satoshis. See the satoshi definition for more.
Integer storage is what makes the rounding visible. Halving 5,000,000,000 works cleanly for the first ten eras and then stops being exact.
The eras, one by one
An era is a block of 210,000 blocks with a constant subsidy. Issuance per era is 210,000 times the subsidy per block, which gives the following for the first six, in BTC:
| Era | Heights | Subsidy per block | BTC issued in era | Cumulative at end |
|---|---|---|---|---|
| 1 | 0 to 209,999 | 50 BTC | 10,500,000 | 10,500,000 |
| 2 | 210,000 to 419,999 | 25 BTC | 5,250,000 | 15,750,000 |
| 3 | 420,000 to 629,999 | 12.5 BTC | 2,625,000 | 18,375,000 |
| 4 | 630,000 to 839,999 | 6.25 BTC | 1,312,500 | 19,687,500 |
| 5 | 840,000 to 1,049,999 | 3.125 BTC | 656,250 | 20,343,750 |
| 6 | 1,050,000 to 1,259,999 | 1.5625 BTC | 328,125 | 20,671,875 |
The first four rows add to 19,687,500 BTC, which is exactly 15/16 of 20,999,999.9769 to within rounding, or 93.75 percent of the total. The halvings that opened eras 2 to 5 took place on 2012-11-28, 2016-07-09, 2020-05-11 and 2024-04-20.
The next, at height 1,050,000, opens era 6. A halving is a height, not a date, so any future calendar date is only a projection from block times. The halving countdown tool in our tools section does that block-height arithmetic live.
The box above shows issued supply as computed by the desk, with source and fetch time. By the subsidy arithmetic alone, the amount issued at any height can be recomputed from the table: add the full eras behind you, then the blocks of the current era times its subsidy.
Computing scheduled issuance at a height
The method works at any height, so here it is for an illustrative height of 900,000.
- Divide 900,000 by 210,000: four full eras have passed, and 60,000 blocks of the fifth are done (900,000 minus 840,000).
- Add the four full eras: 10,500,000 + 5,250,000 + 2,625,000 + 1,312,500 = 19,687,500 BTC.
- Add the partial era: 60,000 blocks x 3.125 BTC = 187,500 BTC.
- Scheduled issuance by that height: 19,875,000 BTC.
That is the most the rules allowed to be created by then. The live box above does the same sum for the current height.
The issuance rate in plain terms
At the design pace of 144 blocks a day, a year holds 52,560 blocks. At 3.125 BTC each, that is 164,250 BTC of new subsidy per year, less than 1 percent of the roughly 19.9 million scheduled by the previous example.
Each halving halves that annual flow, so the next era’s flow is 82,125 BTC per year at the same pace. These are design-pace calculations, not measurements; real block counts per year differ.
The tail: eras 7 to 33
From era 7 onward the amounts per era get small quickly. The subsidy reaches 1 satoshi in era 33 (counting from 1), covering heights 6,720,000 to 6,929,999, and becomes zero at height 6,930,000, the start of era 34.
| Subsidy in satoshis | What it is |
|---|---|
| 5,000,000,000 shifted right 9 times = 9,765,625 | Still exact, no remainder |
| Shifted right 10 times = 4,882,812 | Exact value is 4,882,812.5; the half satoshi is dropped |
| Shifted right 32 times = 1 | Exact value is about 1.16; rounds down to 1 |
| Shifted right 33 times = 0 | Exact value is about 0.58; rounds down to 0 |
Every era from the eleventh loses a fraction of a satoshi per block. These losses are tiny individually and add up to 2,310,000 satoshis, or 0.0231 BTC, across the whole schedule.
The cap: 20,999,999.9769 versus 21 million
If you sum all 33 non-zero eras in integer satoshis you get 2,099,999,997,690,000. Divide by 100,000,000 and you get 20,999,999.9769 BTC. The difference to a clean 21 million is the rounding loss above, 0.0231 BTC.
The 21 million figure is a rounded description, and the code has a separate constant by that name. MAX_MONEY in amount.h is 21,000,000 x COIN. It is a sanity bound: a range check that rejects absurd amounts. It does not drive issuance. The schedule itself is what limits supply, and its sum falls a little short of that bound.
When the subsidy ends
The last non-zero subsidy is 1 satoshi, paid from height 6,720,000 up to height 6,929,999. From height 6,930,000, new blocks create no new coins.
Converting that height to a date is arithmetic with a caveat. At the ten-minute design spacing, 6,930,000 blocks take 69,300,000 minutes, about 131.8 years. Counted from the start of the chain in 2009, that points to the neighborhood of the year 2140.
It is only approximate: actual blocks have averaged somewhat under ten minutes at times, hashrate drives timing, and no rule fixes a calendar date. Any specific day claimed for it is a guess.
After that point miners are paid only by fees. How that mix works is explained in the payout guide, and the protocol does not say what level of fees will result.
What the schedule does not tell you
The schedule gives the maximum that can ever have been issued by a given height. It does not say how many of those coins still exist in usable form.
- Lost coins are unknowable. Coins sent to addresses whose keys are gone look identical to coins in active use. Any figure for lost bitcoin is an estimate resting on assumptions, and the desk does not publish one.
- Unclaimed subsidy. A miner can legally claim less than the maximum, in which case those coins are never created. The actual total can therefore sit below the schedule total.
- Circulating versus issued. Issued supply is a computation from height. Circulating supply needs a definition of which coins to exclude, and different publishers choose differently.
The table also says nothing about price, adoption or any outcome for holders. It is protocol arithmetic, and it is not financial advice.
Common slips when reading the schedule
- Counting eras from zero or from one. The code counts completed halvings from zero. Prose often counts eras from one, which is how the table above is numbered. State which you mean.
- Treating the halving as a date. It happens at a block height. The calendar date follows from how quickly blocks were found.
- Mixing subsidy with reward. The subsidy is only the new coins. The full block reward also includes the fees.
- Treating 21 million as a count of coins mined so far. It is the approximate end state of a long schedule, and most of it has been issued already by the arithmetic above, since four eras cover 93.75 percent of the total.
- Reading a price effect into the schedule. The schedule is fixed arithmetic. This page says nothing about what it means for any market.
For related reading, the Bitcoin hub collects price, supply and schedule data in one place. The guide to what a halving changes and the halving hub cover what the halving does and does not alter, and the halving glossary entry gives a short definition. Every figure here is protocol arithmetic from the linked source files, and each can be recomputed by hand.
Frequently asked questions
Why is the total 20,999,999.9769 BTC and not 21 million?
When does the last bitcoin get issued?
Can the 21 million limit be changed?
How many bitcoin are lost?
Sources
- src/validation.cpp (GetBlockSubsidy) · Bitcoin Core
- src/kernel/chainparams.cpp · Bitcoin Core
- src/consensus/amount.h · Bitcoin Core
Educational data only. Not financial, investment or tax advice; no licence is claimed. Bitcoin Prime publishes no forecasts, targets or trading signals.