Sub topic 5
Bitcoin’s Fixed Supply and Halving Schedule
Prerequisites and the basic rule
This chapter assumes you understand hashes, blocks, private keys, and the role of consensus in a blockchain. You should also be comfortable reading short Python programs.
Bitcoin creates new bitcoin through the block subsidy. The subsidy is the amount a successful miner may claim when adding a valid block. Transaction fees are separate: users pay fees, and the miner may collect them, but fees do not increase the money supply.
The initial subsidy was 50 BTC per block. Bitcoin’s protocol reduces it by half every 210,000 blocks. This event is called a halving.
The subsidy for a block at height h is based on:
floor(h / 210,000)
This value is the number of completed halving intervals. The protocol then divides the initial subsidy by two for each interval.
| Block-height range | Subsidy per block |
|---|---|
| 0–209,999 | 50 BTC |
| 210,000–419,999 | 25 BTC |
| 420,000–629,999 | 12.5 BTC |
| 630,000–839,999 | 6.25 BTC |
| 840,000–1,049,999 | 3.125 BTC |
At height 840,000, for example, four intervals have completed, so the subsidy is 3.125 BTC.
Why the supply approaches 21 million BTC
Each era contains 210,000 blocks. The newly created bitcoin in each era is:
subsidy per block × 210,000
The total therefore follows a geometric series:
210,000 × (50 + 25 + 12.5 + 6.25 + ...)
If bitcoin could represent arbitrary fractions, the infinite sum would approach 21 million BTC. Bitcoin instead uses satoshis, where one BTC equals 100,000,000 satoshis. Integer division and right shifts round each subsidy down to a whole satoshi.
After 64 halvings, the subsidy becomes zero. Summing the actual integer subsidy schedule gives 2,099,999,997,690,000 satoshis, or 20,999,999.9769 BTC. This is slightly below 21 million because of rounding and the final zero-subsidy eras.
SATS_PER_BTC = 100_000_000
HALVING_INTERVAL = 210_000
INITIAL_SUBSIDY = 50 * SATS_PER_BTC
def subsidy(height):
halvings = height // HALVING_INTERVAL
if halvings >= 64:
return 0
return INITIAL_SUBSIDY >> halvings
total_sats = sum(
subsidy(era * HALVING_INTERVAL) * HALVING_INTERVAL
for era in range(64)
)
print(total_sats)
print(total_sats / SATS_PER_BTC)What the cap does and does not guarantee
The cap limits protocol-created bitcoin under the current consensus rules. It does not guarantee a fixed market price, equal ownership, or permanent purchasing power. Bitcoin can be divided into satoshis, so scarcity does not prevent small payments.
Miners also receive transaction fees. After the subsidy reaches zero, fees would be the remaining direct reward for confirming transactions. Whether that reward is sufficient depends on network usage and fee demand.
Exercise
What is the block subsidy at height 1,000,000?
Show answer
Four complete 210,000-block intervals have passed, so the subsidy is 50 / 2^4 = 3.125 BTC.