A blockchain ledger has a seemingly simple but crucial problem: when many people jointly maintain the same ledger, how does everyone know “which page we have reached”? Without a common sequential reference, each participant could have a different view of the order of transactions, and the final ledger state could not be agreed upon.
Block height exists to solve this problem. It gives each block a linear position number, allowing all participants to identify, by the same standard, “which block on the chain this is.” But this numbering mechanism also has its limits—especially when the chain forks. This article starts with why order is needed and then explains what block height is, how it is produced, how it is used for transaction confirmation, and why the same height does not necessarily correspond to the same block.
Why a Blockchain Needs Ordering
A blockchain is not a database maintained by a single organization. It is maintained jointly by multiple nodes distributed across the network, and there is no “administrator” deciding where the next record goes or when to turn the page.
This means all participants must agree on the order of transactions. The order directly affects the final ledger state. For example, whether the same balance is first transferred to A or first to B produces completely different results. If nodes do not agree on the order, the balances, contract states, and account histories they calculate will be inconsistent, and the entire chain will lose its basis for trust.
A block is the unit in which transactions are packaged. Each block contains a batch of transactions, and blocks are connected in order to form a chain. Numbering blocks is essentially numbering each page of the ledger—with page numbers, everyone can know how far the current record has progressed, what the before-and-after relationships are, and which page a specific record is on.
Without a stable block order, nodes cannot agree on which chain is currently valid.
An analogy can help: imagine a ledger maintained jointly by many people, where anyone can record transactions on it. If the ledger has no page numbers, everyone records separately, and it quickly becomes impossible to tell who came first or which record is the “latest.” With page numbers, everyone can point to the same page and say “this is page 100,” greatly reducing coordination costs. Of course, a real blockchain is more complex than a ledger—ledger page numbers usually do not produce two different “page 100s,” whereas a blockchain can indeed do so during a fork, as explained later.
What Block Height Is: Numbering from the Genesis Block
Block height is a linear number for a block’s position on the chain. It answers the question: Which block is this on the chain?
The Genesis Block Is the Starting Point for Numbering
Every blockchain has a genesis block, the first block created on the chain. In mainstream blockchains such as Bitcoin and Ethereum, the genesis block’s height is usually set to 0. Each new block that follows has a height one greater than the previous block.
For example, Bitcoin’s genesis block has height 0, the first block immediately after it has height 1, the second has height 2, and so on. So the genesis block itself does not count as “height 1”—it is starting point 0, and subsequent blocks increase from 1.
Note that different blockchains may not use exactly the same convention for the genesis block height. This article describes the common practice on mainstream chains; for a specific chain, its protocol documentation should be consulted.
Height Can Represent the Length of the Chain
If the genesis block has height 0, the total number of blocks on the chain (that is, the chain length) equals the latest block height plus 1. For example, if the current latest block height is 999, there are 1,000 blocks on the chain in total (from height 0 to height 999).
Height Indicates Only Position, Not Content
This is where beginners most often get confused: block height tells you only the position on the chain, not what is inside the block.
To uniquely determine the content of a specific block, you need the block hash. A block hash is a fingerprint calculated from the block’s content; different block contents produce different hash values. The same height can have different hashes; if the hash is the same, the block content is identical.
You can think of height as “which page” and the hash as “the unique fingerprint of what is written on that page.” The two answer completely different questions.
How Height Is Produced and Increased
Once you understand what height is, the next natural question is: who numbers the blocks, and who decides the rules?
The answer is: no central authority allocates block heights. Height is not a number uniformly issued by some administrator; it is a natural result of the blockchain’s chained structure.
New Blocks Extend the Chain by Referencing the Parent Block
Each new block contains the hash of the previous block as a reference. This reference relationship links blocks one after another to form a chain. When a new block is accepted by nodes in the network, its height naturally becomes the parent block’s height plus 1.
For example, if the previous block has height 500, a newly produced valid block that references it has height 501. This number does not require anyone’s approval or allocation—it follows directly from the chained structure.
Nodes Judge Validity According to Consensus Rules
Although height is not centrally allocated, not just any block can be accepted. Nodes verify whether a new block is valid according to consensus rules: whether the parent block it references is valid, whether the transactions in the block are valid, and whether it meets other protocol requirements of that chain. Only blocks that pass validation are accepted by nodes and extend the chain.
Whether a chain uses Proof of Work (PoW) or Proof of Stake (PoS), the logic of block height numbering rests on the same basis: a new block references the previous block and thereby takes the position of “parent block height plus 1.” The specific consensus process does not affect the basic rule of height numbering; this article does not go into the details of consensus algorithms.
Block Height in Transaction Confirmation: Why We Say “3 Blocks Have Passed”
Ordinary users most often encounter block height in practice through transaction confirmation. When you hear “this transaction has 6 confirmations,” the calculation behind it is actually based on block height.
How Confirmations Are Calculated
Once a transaction is packaged into a block, the height of the block containing it is fixed. Suppose:
- The transaction is packaged into a block at height N.
- The current latest block height on the chain is M.
The number of confirmations this transaction typically has is:
M – N + 1
Why add 1? Because the block containing the transaction itself counts as one confirmation. In other words, the block containing the transaction plus every block extending after it together make up the confirmation count.
A Numerical Example
Suppose a transaction is packaged into a block at height 100. The current latest block height is 105.
Confirmations = 105 – 100 + 1 = 6.
This means that after the block containing the transaction, 5 new blocks have extended (heights 101, 102, 103, 104, and 105). Together with the block containing the transaction itself (height 100), there are 6 confirmations in total.
This calculation holds only on a single canonical chain without a reorganization. If the chain is reorganized, the result may change; the reasons are explained later.
What Confirmations Mean and Their Limits
The confirmation count indicates how many blocks have extended after the block containing the transaction. More confirmations usually mean that an attacker would need to pay a higher cost to rewrite that history—because to replace or roll back the block containing the transaction, the attacker would need to recompute the work or consensus proof for that block and all blocks after it.
But it must be clear: this is probabilistic security, not an absolute guarantee. More confirmations make reorganization harder, but no number of confirmations guarantees “absolute irreversibility.” Different blockchains have different security models and finality rules. Some chains are designed so that a block is considered final once it meets certain conditions, while others rely on the accumulation of probability. This article does not go into the specific differences among finality mechanisms across chains, but readers should remember: the confirmation count is a risk reference, not an absolute mathematical promise.
In addition, if a chain reorganization occurs, the block containing the transaction may be replaced, and the confirmation count may decrease or even drop to zero. This is why understanding block height requires also understanding that “the same height does not necessarily correspond to the same block.”
Does the Same Height Always Mean the Same Block?
This is the most commonly misunderstood part of the block height concept. Many beginners naturally assume: if height is a unique number, then height 100 always points to the same block. This understanding is roughly correct under normal circumstances, but it is not correct during forks and reorganizations.
During a Fork, Competing Blocks at the Same Height Can Appear
A blockchain is a distributed system. Different nodes may produce or receive different valid blocks at almost the same time. These blocks may reference the same parent block, so they have the same height. For example, two participants may almost simultaneously discover valid blocks at height H, and the network briefly has two blocks at height H at the same time.
This does not violate consensus rules—they both reference a valid parent block and both contain valid transactions. At this point, different nodes may temporarily see different “latest blocks.”
The Network Eventually Converges on a Canonical Chain
Over time, nodes choose a canonical chain according to consensus rules. Usually, the rule selects the chain with the greatest cumulative work or the chain that meets specific finality conditions. Other competing blocks are orphaned and are not on the canonical chain.
The key point, however, is: before convergence, the same height may correspond to multiple candidate blocks. After convergence, a given height usually corresponds to only one block on the canonical chain, but this is not because height itself is unique; it is because the network has already selected that chain.
Reorganizations Change Which Block Corresponds to a Height
If a chain reorganization occurs, a block previously considered to be on the canonical chain may be replaced by another block. At that point, the block pointed to by a given height changes. Transactions previously packaged at that height may be repackaged into other blocks or return to a pending state.
So, the same height does not mean the same block. Only the block hash can uniquely determine the content of a specific block. Height represents “position on the chain,” and that position may be occupied by different blocks on different chains or at different times.
This is crucial for understanding transaction confirmations and “rollbacks.” When you see “6 confirmations,” it means that on the current canonical chain, 5 new blocks have extended after the block containing the transaction. But if a reorganization occurs, this confirmation count may decrease, and the block containing the transaction may also change.
Where Block Height Actually Appears
Block height is not an abstract concept; it appears in many real products and development scenarios.
Block Explorers
A block explorer allows users to query blocks by height. After you enter a height number, the explorer jumps to the detail page for the corresponding block, showing the block hash, included transactions, parent block information, timestamp, and other on-chain data. This is the most intuitive way to query “from height to block.”
Note that a block explorer displays data from the chain it sees. If a reorganization occurs, the same height may show different blocks in the explorer.
Wallets and On-Chain Services
Wallets and on-chain services can use block height to synchronize transaction status, display confirmation counts, or set checkpoints. For example, a wallet may record that “a certain transaction is in the block at height 100” and then update the confirmation count as the latest height grows.
Developer APIs
Blockchain APIs commonly used by developers usually support querying blocks by height range or subscribing to height changes for new blocks. This allows developers to build applications such as block explorers, monitoring tools, and transaction status trackers.
Ordinary users do not necessarily need to remember block heights, but understanding them helps make sense of confirmation status in wallets, data on block explorers, and news reports that “a certain transaction was confirmed at a certain block.”
Summary
Block height is a position number assigned to each block in order, starting from the genesis block. Mainstream blockchains usually set the genesis block height to 0, and each subsequent block adds 1 to its parent block’s height. This numbering is not allocated by a central authority; it is a natural result of the chained structure—a new block references its parent block and thereby obtains its own position.
Height allows distributed participants to consistently identify on-chain order, calculate transaction confirmation counts (the current latest height minus the transaction’s block height plus 1), and locate blocks in block explorers and development scenarios.
But height indicates only position, not content. The block hash is the unique fingerprint of a block’s content. During forks and reorganizations, the same height may correspond to different competing blocks, so height alone cannot absolutely identify a unique block. Transaction confirmation counts provide a probabilistic security reference; more confirmations make reorganization harder, but they are not an absolute guarantee of irreversibility.
Understanding block height is essentially understanding how a blockchain uses simple linear numbering to establish a collaborative sequential reference in a distributed environment—and also understanding the limits of that reference in fork scenarios.