<p>There are many theories on this, but I'm inclined to believe that Satoshi wanted to pick the maximum number allowed in 32-bit (which is 2147483647); however Satoshi admitted in an e-mail to Mike Hearn that the value was somewhat arbitrary as well.</p>
<p>Below is a visual of that 32-bit int max.</p>
<p><a href="https://i.sstatic.net/EB2gA.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/EB2gA.png" alt="32-bit maximum value" /></a></p>

CC BY-SA 4.0
2020-12-18T21:08:57.963Z
That number (max 32-bit) is 2.1 billion, not 21 million. I'm not sure I follow your reasoning here.
chytrik
CC BY-SA 4.0
2020-12-18T07:07:47.613Z
2020-12-18T07:07:47.613Z
librehash
<blockquote>
<p><strong>What actually caps Bitcoin's supply at 21 million?</strong></p>
</blockquote>
<h2>Consensus rules</h2>
<p>The supply is capped by the so-called <a href="https://en.bitcoin.it/wiki/Consensus" rel="nofollow noreferrer">consensus rules</a> that every Bitcoin node enforces.</p>
<p>New coins are minted as block rewards by miners. Every node that receives the new blocks checks that the block reward is not greater than the current limit per block. Any block that exceeds this limit is deemed invalid by every node that receives it and is discarded and not passed on. Any node that passes on a block with an excessive mining reward is in danger of being ostracized by other nodes.</p>
<p>Nodes are made to distrust any other nodes that seem to be acting contrary to the established rules.</p>
<p>One of those consensus rules is the halving of mining rewards every four years approximately and it is this halving that causes the total supply to converge toward 21 million.</p>
<hr />
<p>Note that many Bitcoin terms are arguably poorly chosen and misleading. This is one of them. These rules are Bitcoin rules or hard rules. Don't get hung up on the word consensus or dictionary definitions of that word.</p>
<hr />
<blockquote>
<p><strong>Is this modifiable?</strong></p>
</blockquote>
<p>Rule changes can result in a fork. This can result in the creation of an altcoin. An altcoin is a cryptocurrency that is distinct from Bitcoin and seen by some as an alternative to it (hence the alt in altcoin). One example would be the altcoin &quot;Bitcoin Cash&quot; (BCH) which is the result of rule changes made by a small faction of Bitcoin (BTC) users. The proponents of this change had originally hoped that almost the whole Bitcoin community would adopt their rule changes. If they had succeeded, Bitcoin would now be using the rules of Bitcoin Cash and Bitcoin Cash would not exist. They failed in that original goal.</p>
<p>It is possible to make some rule changes in a way that doesn't trigger the distrust of other nodes that are still using the older rules.</p>
<p>This is a bigger topic than I can cover here but there will be good answers to existing questions on this subject:</p>
<ul>
<li><a href="https://bitcoin.stackexchange.com/q/30817/13866">What is a soft fork? What is a hard fork? What are their differences?</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/81772/13866">Would it be possible to create a soft-fork for reducing miner reward?</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/99834/13866">How do we know which soft-forks were implemented using User-Activated Soft Fork or Miner-Activated Soft Fork?</a></li>
</ul>
<hr />
<p>Tangentially related questions</p>
<ul>
<li><a href="https://bitcoin.stackexchange.com/a/116113/13866">Transaction blocks vs bitcoins (convergence toward 21M)</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/9630/13866">Why was the upper limit of 21 million bitcoins put in place?</a></li>
</ul>

CC BY-SA 4.0
2020-12-18T09:26:30.050Z
2023-08-31T14:22:17.813Z
2023-08-31T14:22:17.813Z
RedGrittyBrick
<p>I have seen everywhere that the total BTC supply is permanently capped at 21 million. I understand blockchain, cryptography, SHA256, etc... generally, but where/what is actually capping the supply at 21 million? Looking this up online usually leads to generic 'its written in the code' and this <a href="https://bitcoin.stackexchange.com/questions/9959/where-in-the-code-in-the-satoshi-client-is-21-million-cap-implemented">stack question</a> seems to point to the code, but I do not understand it. Is the supply cap really just some hard code in the original protocol? Is this modifiable?</p>

<blockchain><satoshi-nakamoto>
What actually caps Bitcoin's supply at 21 million?
Runeaway3
# What actually caps Bitcoin's supply at 21 million?

(Asked by: username_0 on 2020-12-18)

I have seen everywhere that the total BTC supply is permanently capped at 21 million. I understand blockchain, cryptography, SHA256, etc... generally, but where/what is actually capping the supply at 21 million? Looking this up online usually leads to generic 'its written in the code' and this [stack question](https://bitcoin.stackexchange.com/questions/9959/where-in-the-code-in-the-satoshi-client-is-21-million-cap-implemented) seems to point to the code, but I do not understand it. Is the supply cap really just some hard code in the original protocol? Is this modifiable?

**Tags:** blockchain, satoshi-nakamoto


---

## 2 answers

### Answer by username_3 on 2020-12-18. Score: 6 | Accepted answer

> **What actually caps Bitcoin's supply at 21 million?**

## Consensus rules

The supply is capped by the so-called [consensus rules](https://en.bitcoin.it/wiki/Consensus) that every Bitcoin node enforces.

New coins are minted as block rewards by miners. Every node that receives the new blocks checks that the block reward is not greater than the current limit per block. Any block that exceeds this limit is deemed invalid by every node that receives it and is discarded and not passed on. Any node that passes on a block with an excessive mining reward is in danger of being ostracized by other nodes.

Nodes are made to distrust any other nodes that seem to be acting contrary to the established rules.

One of those consensus rules is the halving of mining rewards every four years approximately and it is this halving that causes the total supply to converge toward 21 million.

---

Note that many Bitcoin terms are arguably poorly chosen and misleading. This is one of them. These rules are Bitcoin rules or hard rules. Don't get hung up on the word consensus or dictionary definitions of that word.

---

> **Is this modifiable?**

Rule changes can result in a fork. This can result in the creation of an altcoin. An altcoin is a cryptocurrency that is distinct from Bitcoin and seen by some as an alternative to it (hence the alt in altcoin). One example would be the altcoin "Bitcoin Cash" (BCH) which is the result of rule changes made by a small faction of Bitcoin (BTC) users. The proponents of this change had originally hoped that almost the whole Bitcoin community would adopt their rule changes. If they had succeeded, Bitcoin would now be using the rules of Bitcoin Cash and Bitcoin Cash would not exist. They failed in that original goal.

It is possible to make some rule changes in a way that doesn't trigger the distrust of other nodes that are still using the older rules.

This is a bigger topic than I can cover here but there will be good answers to existing questions on this subject:

* [What is a soft fork? What is a hard fork? What are their differences?](https://bitcoin.stackexchange.com/q/30817/13866)
* [Would it be possible to create a soft-fork for reducing miner reward?](https://bitcoin.stackexchange.com/q/81772/13866)
* [How do we know which soft-forks were implemented using User-Activated Soft Fork or Miner-Activated Soft Fork?](https://bitcoin.stackexchange.com/q/99834/13866)

---

Tangentially related questions

* [Transaction blocks vs bitcoins (convergence toward 21M)](https://bitcoin.stackexchange.com/a/116113/13866)
* [Why was the upper limit of 21 million bitcoins put in place?](https://bitcoin.stackexchange.com/q/9630/13866)


---

### Answer by username_1 on 2020-12-18. Score: -4

There are many theories on this, but I'm inclined to believe that Satoshi wanted to pick the maximum number allowed in 32-bit (which is 2147483647); however Satoshi admitted in an e-mail to Mike Hearn that the value was somewhat arbitrary as well.

Below is a visual of that 32-bit int max.

[![32-bit maximum value](https://i.sstatic.net/EB2gA.png)](https://i.sstatic.net/EB2gA.png)

> **Comments:**
> **username_2**: That number (max 32-bit) is 2.1 billion, not 21 million. I'm not sure I follow your reasoning here.  

---

