How Many Bitcoins Are There & How The 21 Million Limit Is Enforced

·

Bitcoin’s fixed supply of 21 million coins is one of its most defining and revolutionary features. Unlike traditional fiat currencies, which central banks can print endlessly, Bitcoin’s scarcity is mathematically guaranteed—making it a powerful store of value in the digital age. But how exactly does this work? Where does the 21 million cap come from, and what ensures it can never be changed?

Let’s break down the mechanics behind Bitcoin’s finite supply, how it's enforced through code, and what happens when the last bitcoin is mined.

The 21 Million Bitcoin Supply Cap

The total supply of Bitcoin is capped at 21 million BTC, with slightly less than that actually expected to ever circulate due to technical rounding in the mining process. This hard limit isn’t arbitrary—it’s built into Bitcoin’s protocol through a predictable issuance schedule known as the Bitcoin halving.

Each time a new block is added to the blockchain, miners are rewarded with newly minted bitcoins. This reward, called the block subsidy, started at 50 BTC per block in 2009 and is cut in half approximately every four years—or every 210,000 blocks. This gradual reduction ensures that new bitcoins enter circulation at a diminishing rate until they eventually stop altogether.

👉 Discover how Bitcoin’s scarcity drives long-term value and shapes investor behavior.

Bitcoin Halving: The Engine Behind Scarcity

The Bitcoin halving (or "halvening") is the mechanism that enforces the 21 million cap. Every 210,000 blocks, the block subsidy is halved. This process will continue until the subsidy becomes so small that it effectively reaches zero—projected to happen around the year 2140.

Here’s a simplified timeline of past and future halvings:

After about 33 halvings, the block subsidy will drop below one satoshi (the smallest unit of Bitcoin) and be rounded down to zero. At that point, no new bitcoins will be created.

This predictable, algorithmic reduction in supply mimics the extraction of finite resources like gold—hence Bitcoin’s nickname: “digital gold.”

How Is the 21 Million Cap Enforced?

Interestingly, there’s no single line of code in Bitcoin’s source that says “max supply = 21,000,000.” Instead, the limit emerges naturally from just six lines of code in Bitcoin Core’s validation.cpp file.

The key function calculates how many times the block subsidy should be halved based on the current block height:

int halvings = nHeight / nSubsidyHalvingInterval;

This divides the current block number by 210,000 to determine how many halvings have occurred. The result is an integer (no decimals), so any remainder is discarded.

Then, starting from 50 BTC (or 5 billion satoshis), the code right-shifts the value once for each halving:

nSubsidy >>= halvings;

Because this uses integer division and bit-shifting, the subsidy decreases predictably and eventually reaches zero. The total number of bitcoins ever mined is simply the sum of all these diminishing block rewards across every block.

Any attempt to change this would require altering Bitcoin’s consensus rules—a move that would be rejected by the vast majority of nodes and miners who uphold the network’s integrity.

How Many Bitcoins Are Left to Be Mined?

As of the April 2024 halving, approximately 1,312,500 bitcoins remain to be mined—just over 6% of the total supply. With a current block subsidy of 3.125 BTC and roughly 144 blocks mined per day, about 450 new bitcoins enter circulation daily.

However, this rate will continue to decline:

While mining new coins will eventually cease, the network will continue operating thanks to transaction fees.

What Happens When All Bitcoins Are Mined?

After the final halving around 2140, miners will no longer receive a block subsidy. Their income will come entirely from transaction fees paid by users to prioritize their transactions.

Today, transaction fees make up a small fraction of miner revenue. But as block subsidies shrink, fees are expected to become more significant. Economists and developers believe this transition will be smooth, driven by increased demand for secure, decentralized transactions.

Bitcoin’s design ensures that even without new coin issuance, miners still have strong economic incentives to secure the network—preserving decentralization and trustlessness far into the future.

👉 Learn how transaction fees will sustain Bitcoin’s security model post-mining era.

How Many Bitcoins Are Lost Forever?

There’s no definitive count, but estimates suggest 3 to 4 million bitcoins may already be lost forever due to forgotten passwords, discarded hardware, or inaccessible wallets.

Notable cases include:

“Lost coins only make everyone else’s coins worth slightly more. Think of it as a donation to everyone.”
— Satoshi Nakamoto

These lost coins effectively reduce circulating supply, increasing scarcity for those still in use.

Can Bitcoin’s Supply Cap Be Changed?

Technically, yes—anyone can fork Bitcoin’s code and remove the supply cap. But doing so wouldn’t create “Bitcoin.” It would create a new cryptocurrency.

Bitcoin’s immutability relies on consensus. For a change like increasing the supply cap to take effect, it would need adoption by the vast majority of full nodes, miners, exchanges, and users worldwide. Given that such a change would dilute existing holdings and violate Bitcoin’s core principle of scarcity, widespread support is virtually impossible.

In essence, the supply cap is protected not just by code—but by economics, game theory, and community alignment.

👉 See why decentralization makes Bitcoin resistant to manipulation and inflation.


Frequently Asked Questions

How many bitcoins are there currently in circulation?
As of now, over 19.7 million bitcoins have been mined, leaving less than 1.3 million left to be released through mining rewards.

How many bitcoins are mined per day?
With a current block subsidy of 3.125 BTC and an average of 144 blocks per day, approximately 450 bitcoins are mined daily.

What prevents someone from creating more than 21 million bitcoins?
The issuance rules are enforced by consensus across thousands of independent nodes. Any deviation—such as creating extra coins—would be rejected by the network.

Will Bitcoin mining stop after all coins are mined?
No. Mining will continue to secure the network through transaction fee incentives, even after block subsidies end around 2140.

Are lost bitcoins included in the 21 million cap?
Yes. Lost bitcoins are still part of the total supply—they’re just permanently inaccessible. Their absence increases scarcity for active coins.

Is Bitcoin truly deflationary?
While the supply is fixed (making it scarce), Bitcoin is technically not deflationary unless lost coins exceed new ones being mined—which they already do. Over time, this could lead to a naturally deflationary trend.


Bitcoin’s 21 million supply cap isn’t just a number—it’s a cornerstone of its value proposition. Enforced by elegant code and upheld by decentralized consensus, this limit ensures that Bitcoin remains resistant to inflation, manipulation, and central control. As we approach the final halvings, understanding this mechanism becomes ever more crucial for investors, users, and builders shaping the future of money.