Sub topic 3
Total Supply: Tokens That Exist
This chapter assumes you know what a token is, can read a spot price on an exchange, and are comfortable with simple multiplication and percentages. It also assumes you have met circulating supply in the previous chapter. Here we define total supply, show how it relates to circulating and maximum supply, and cover the cases where the number is ambiguous or misleading.
What total supply means
Total supply is the number of tokens that have been created and still exist, minus any tokens that have been verifiably destroyed. It includes tokens that are locked, vested, held in treasuries, or staked, and so cannot be traded freely. It excludes tokens that have not been created yet.
The usual way to write it:
total supply = tokens ever minted - tokens burnedTwo points follow from this definition.
- Total supply is a statement about what exists, not about what can be sold. A token locked in a vesting contract counts toward total supply but not toward circulating supply.
- Total supply can go up (new minting) and down (burns), unlike a hard cap, which only bounds it from above.
How total supply relates to the other supply figures
Three figures sit in a fixed order for any asset:
circulating supply <= total supply <= maximum supplyCirculating supply is the part that is freely tradable. Total supply adds the locked and held-back tokens. Maximum supply is the most that will ever exist, if the protocol sets such a limit.
The gap between maximum and total supply is future issuance. The gap between total and circulating supply is existing tokens that could reach the market later, such as when a vesting cliff ends. Both gaps matter for dilution, which later chapters cover.
Why the figure is not always the same as maximum supply
Beginners often treat total and maximum supply as the same number. They are equal only when everything that will ever exist has already been created and nothing has been burned.
Consider three cases:
| Case | Maximum supply | Total supply | Why they differ |
|---|---|---|---|
| Fixed supply minted at launch | 1,000,000,000 | 1,000,000,000 | All tokens were created at genesis, so there is no gap. |
| Gradual emission | 21,000,000 | Grows over time | New tokens are created each block until the cap is reached. |
| Mint at launch, then burn | 1,000,000,000 | Below 1,000,000,000 | Burned tokens leave total supply, but the stated cap may not change. |
In the third case the maximum supply figure can be stale. If a project burns 50 million tokens from a 1 billion cap, total supply is 950 million. Whether maximum supply is also reduced depends on the protocol and on how the data provider records it. Check the token's documentation rather than assuming.
Where the number comes from
Total supply is not a market quantity. No exchange sets it. It is derived from the token's own rules and state, usually in one of three ways.
- Reading the contract. On Ethereum-style chains, tokens that follow the ERC-20 standard expose a
totalSupply()function that returns the figure. Anyone can call it. - Reading chain state. For chains with their own native coin, such as Bitcoin, total supply is the sum of all coins issued by block rewards so far, which a node can compute.
- Reading project disclosures. Some figures come from documents, dashboards, or tokenomics pages that the team maintains.
The first two are verifiable on-chain. The third depends on trusting the team. When a number matters, prefer the verifiable source.
The following script reads totalSupply() from an ERC-20 contract using the web3 library. It needs a node URL, and it uses the decimals() function to convert from the smallest unit to whole tokens.
from web3 import Web3
RPC_URL = "https://your-node-provider.example/your-key"
TOKEN_ADDRESS = "0x0000000000000000000000000000000000000000" # replace with a real token
ERC20_ABI = [
{
"name": "totalSupply",
"inputs": [],
"outputs": [{"name": "", "type": "uint256"}],
"stateMutability": "view",
"type": "function",
},
{
"name": "decimals",
"inputs": [],
"outputs": [{"name": "", "type": "uint8"}],
"stateMutability": "view",
"type": "function",
},
]
w3 = Web3(Web3.HTTPProvider(RPC_URL))
token = w3.eth.contract(
address=Web3.to_checksum_address(TOKEN_ADDRESS),
abi=ERC20_ABI,
)
raw_supply = token.functions.totalSupply().call()
decimals = token.functions.decimals().call()
total_supply = raw_supply / 10**decimals
print(f"Total supply: {total_supply:,.2f}")Replace the URL and address before running it. The zero address shown is a placeholder and will not return a real token.
Total supply and burns
A burn removes tokens from existence, usually by sending them to an address that no one can spend from, or by calling a function that reduces the stored supply. Burns lower total supply and, if the burned tokens were circulating, lower circulating supply as well.
There are two kinds of burn to separate:
- Protocol burns. The rules of the chain destroy tokens automatically, for example a share of each transaction fee.
- Discretionary burns. The team or treasury chooses to burn a batch of tokens.
Implementations differ in how the supply figure reflects a burn.
| Burn method | Effect on `totalSupply()` | Note |
|---|---|---|
| Call a `burn` function that reduces the stored supply | Falls | The cleanest case. The figure is correct. |
| Send tokens to a dead address with no spend key | Unchanged | The tokens are unusable but still counted unless the data provider subtracts the balance. |
| Lock tokens in a contract that cannot release them | Unchanged | Similar to the dead-address case. |
In the second and third rows, the on-chain total is higher than the number of tokens that can ever move. Aggregators may subtract known dead-address balances, but not always, and different providers may use different lists of addresses. This is one reason published figures disagree, a topic revisited when we compare data sources.
Edge cases to check
Total supply looks like a single clean number, but several situations make it unreliable.
Tokens that can be minted without limit
Some tokens have no maximum supply. Their totalSupply() can rise whenever the minting rule allows it, for example through inflationary staking rewards. For these assets, total supply is a snapshot, and it will be larger next month. A figure quoted without a date is incomplete.
Mint authority held by an owner
If a contract lets an owner or role mint new tokens, the current total supply is not a guarantee about the future. Read the contract to see who can mint and under what limits. A fixed-looking number backed by an unrestricted mint function is weaker than it appears.
Wrapped and bridged tokens
A wrapped token represents another asset held in reserve elsewhere. Its total supply tracks the amount wrapped, not an independent issuance. Counting both the original and the wrapped version double counts the same value. When a token exists on several chains, total supply per chain may be separate figures that add up to a global one, or several representations of one pool.
Rebasing tokens
A rebasing token changes every holder's balance automatically so that total supply expands or contracts, often to track a price target or to distribute yield. Total supply here moves without any visible transfer. Compare figures taken at the same time, and treat a stored historical value with caution.
Tokens held by the issuer
A large fraction of total supply is often in treasury or team wallets. Total supply counts those tokens in full. That is why total supply alone says little about how much is available for sale, and why it is paired with circulating supply.
A worked example
Suppose a token has these figures on a given date:
- Maximum supply: 1,000,000,000
- Total supply: 400,000,000
- Circulating supply: 120,000,000
- Price: 2.50
The next script computes the supply layers and the ratios between them.
max_supply = 1_000_000_000
total_supply = 400_000_000
circulating = 120_000_000
price = 2.50
not_yet_minted = max_supply - total_supply
locked_or_held = total_supply - circulating
print(f"Not yet minted: {not_yet_minted:,}")
print(f"Locked or held: {locked_or_held:,}")
print(f"Circulating / total: {circulating / total_supply:.0%}")
print(f"Total / maximum: {total_supply / max_supply:.0%}")
print(f"Value of total supply: {price * total_supply:,.0f}")
# Not yet minted: 600,000,000
# Locked or held: 280,000,000
# Circulating / total: 30%
# Total / maximum: 40%
# Value of total supply: 1,000,000,000Reading the output: 30% of existing tokens are tradable, 40% of the eventual supply exists, and 600 million tokens are still to be issued. Multiplying price by total supply gives a value of 1 billion. That figure is a middle layer between market cap (price times circulating supply, 300 million here) and fully diluted value (price times maximum supply, 2.5 billion here). Some aggregators use total supply, not maximum supply, when they compute FDV, which is why you must check which one a site uses.
Common mistakes
- Treating total supply as the tradable amount. It includes locked and held tokens.
- Assuming total supply equals maximum supply. They match only when issuance is complete and nothing has been burned.
- Forgetting the decimals when reading raw on-chain values.
- Quoting a total supply with no date for a token that mints or rebases.
- Assuming a dead-address burn lowered
totalSupply(). Check how the burn was done. - Adding supplies across chains for a bridged token without checking for double counting.
Exercises
Exercise
A token has a maximum supply of 500 million. Its contract reports a total supply of 350 million, and 80 million tokens are circulating. How many tokens are locked or held but already exist, and how many are not yet minted?
Show answer
Locked or held = total supply - circulating supply = 350 million - 80 million = 270 million. Not yet minted = maximum supply - total supply = 500 million - 350 million = 150 million.
Exercise
A team sends 100 million tokens to a dead address instead of calling a burn function. The contract's totalSupply() was 1 billion before. What does totalSupply() return afterwards, and what is the effective supply that can still move?
Show answer
totalSupply() still returns 1 billion, because the stored supply was not reduced. The tokens at the dead address cannot be spent, so the effective supply is 900 million. A data provider that does not subtract the dead-address balance will overstate supply.
Exercise
You read a raw totalSupply() value of 2500000000000000000000000 from a token with 18 decimals. What is the total supply in whole tokens?
Show answer
Divide by 10**18. The raw value is 2.5 x 10^24, so the result is 2.5 x 10^6, which is 2,500,000 tokens.