Since bitcoins are being regularly rewarded to miners, will the number of bitcoins continue to grow indefinitely, or will there be a maximum total number of bitcoins in existence? And if there is some kind of limit, what is it and how is it enforced?
|
|
A pre-defined schedule limits the total number of bitcoins so that they gradually approach a total of 21 million (ignoring those that have been lost through deleted or misplaced wallet files). The limit of 21 million bitcoins is "hard-wired" in to the protocol, and there will never be more bitcoins than this:
|
|||||||||||||
|
|
Every block introduces 50 new coins in the system. This quantity (50) halves every 210,000 blocks. So, getting the limit of coins it is possible to generate is quite easy : it's the sum of a geometric series.
Also, note that this is an upper bound ; the actual quantity will probably be a bit lower due to rounding issues (BTC has a finite number of decimals, 8). |
|||
|
|
As Artefact2 mentioned, Bitcoin uses fixed-point math to calculate the block subsidies. So, ignoring the unspendable genesis block, the sundry lost coins and unclaimed rewards, the maximum number of bitcoins is 20999999.9769 BTC. I found that number through the following python program:
It's intended to mirror this code from the Bitcoin client:
Of course, it only differs from 21 million BTC by only 3 bitcents, so the difference isn't significant. |
|||
|
|
|
As per the current rules there will only ever be 21 million coins at most (explained in other answers here). However, I'd like to add that this is by general agreement, which means that it can be changed. See this question: Could there be hyperinflation in Bitcoin? Looking at the history of money, I am skeptical that there will only ever be 21 million coins. I don't know of too many instances in history when money could be created out of thin air and wasn't. It would be foolish to ignore history. Whether or not there will be more than 21 million coins depends on whether or not "the people" demand it, and once again history is our guide. |
|||
|
|

