Block Height
How many blocks precede this one, counting the genesis block as zero.
Basically
Block height is a block's number in the chain. The first block is number 0, and every new block gets the next number.
Key Takeaways
- Block height is the sequential position of a block in the chain, counting from the genesis block at height zero. As of mid-2026, Bitcoin's block height is approximately 956,000.
- Bitcoin uses block height to schedule protocol events: the block subsidy halves every 210,000 blocks, and the difficulty adjusts every 2,016 blocks.
- Timelocks like OP_CHECKLOCKTIMEVERIFY use absolute block height to enforce spending conditions. Block height is therefore a key building block for time-sensitive contracts on Bitcoin and Layer 2 protocols.
What Is Block Height?
Block height shows a block's position in a blockchain by counting from the first block ever mined. The genesis block sits at height 0, the next block at height 1, and so on. The current block height equals the total number of blocks in the chain minus one.
Block height works like floors in a building: the ground floor is 0, and each new floor stacked on top increases the count by one. Every Bitcoin node independently tracks the block height by counting blocks from genesis.
Block height is not stored in the block header itself; nodes derive it from a block's position in the longest valid chain. During temporary chain forks, two competing blocks can share the same height. The block hash, a 64-character hex string, is the only truly unique identifier for a block.
How It Works
Each Bitcoin block references the hash of the block before it, creating a linked chain all the way back to the genesis block. When a miner finds a valid block, the network appends it to the chain, and the block height increases by one.
Bitcoin targets a block time of approximately 10 minutes. Block height therefore rises by roughly 144 blocks per day (6 blocks per hour times 24 hours) and about 52,560 blocks per year.
Block Height vs. Block Hash
Block height and block hash can both identify a block. They serve different purposes.
Block explorers like Mempool.space and Blockstream.info let you search by either value. Entering a block height returns whichever block occupies that position on the current longest chain.
Querying Block Height
Developers can query the current block height through Bitcoin RPC calls. These calls ask a Bitcoin node for the height of its current chain.
Block Height and Protocol Events
Bitcoin uses block height rather than calendar dates to schedule consensus-critical events. This design ensures protocol rules are enforced deterministically across all nodes, regardless of clock discrepancies.
Halving Schedule
The block subsidy, the BTC reward miners receive for each block, halves every 210,000 blocks. Bitcoin Core computes the halving count as floor(block_height / 210000), making it a pure function of block height.
The Bitcoin halving economics research article provides a deeper analysis of halving economics. Read it for more detail on the subject.
Difficulty Adjustment
Bitcoin's difficulty retargets every 2,016 blocks, approximately every two weeks. The algorithm measures how long the previous 2,016 blocks took to mine and compares that time with the 20,160-minute target (2,016 blocks times 10 minutes). Difficulty increases if blocks arrived faster than expected and decreases if they arrived slower, with the maximum adjustment per epoch capped at a 4x change in either direction.
The self-correcting mechanism keeps block height advancing at a predictable pace. It works regardless of how much hashrate joins or leaves the network.
Block Height and Timelocks
Block height is the foundation for Bitcoin's timelock system, which restricts when you can spend outputs. There are two flavours: absolute timelocks based on block height and relative timelocks based on confirmation depth.
Absolute Timelocks (CLTV)
OP_CHECKLOCKTIMEVERIFY (CLTV), defined in BIP 65, prevents an output from being spent until a specified block height has been reached. A value below 500,000,000 is interpreted as a block height; a value at or above that threshold is treated as a Unix timestamp.
CLTV is central to Hash Time-Locked Contracts (HTLCs), which power the Lightning Network's payment routing. Each hop in a Lightning payment uses a CLTV-based timelock to enforce refund deadlines.
The timelocks deep dive provides a comprehensive guide to Bitcoin timelocks. Read it for more detail on the topic.
Relative Timelocks (CSV)
OP_CHECKSEQUENCEVERIFY (CSV), defined in BIP 112, enforces a relative timelock: you cannot spend the output until a certain number of blocks have passed since the transaction containing it was confirmed. CLTV references absolute block height, while CSV references confirmation depth. Confirmation depth means how many blocks have been mined on top of the transaction.
Lightning Network commitment transactions use CSV to give counterparties time to broadcast justice transactions. The delay applies if a revoked state is published.
Why It Matters
Block height serves as Bitcoin's universal clock. Wall-clock time varies across time zones and can be manipulated by miners within a two-hour window, but block height is objective and verifiable by every node on the network. These properties make block height the natural choice for any rule that depends on "when" something happens in the Bitcoin protocol.
Layer 2 systems rely heavily on block height. Lightning Network channels use block-height-based timelocks to enforce CLTV deltas between routing hops, and if a payment fails, the sender's funds are guaranteed to be recoverable after the timelock expires at a specific block height. Spark similarly uses Bitcoin's block height as a settlement anchor, allowing you to verify the state of your off-chain balances against the main chain.
Block Height Is Not Unique
A chain reorganization can temporarily place two or more blocks at the same height. The network resolves this by following the chain with the most cumulative proof of work, but applications that rely on block height as a unique identifier may encounter inconsistencies until the reorganization settles. Always use block hashes when you need a unique reference.
Time Estimation Is Approximate
Bitcoin targets one block every 10 minutes, but actual block times vary significantly, and individual blocks can take seconds or over an hour to mine. Converting block height to a calendar date is only accurate as an estimate: 144 blocks is roughly one day, but not exactly. Applications that need precise calendar-time guarantees should use timestamps rather than block heights where possible.
Timestamp vs. Block Height in Timelocks
The dual interpretation in nLockTime and CLTV can lead to subtle bugs if developers mix them up: values below 500,000,000 are block heights, while values above are timestamps. A lock value of 1,000,000 means "block one million," while 1,700,000,000 means a specific Unix timestamp. Misinterpreting one for the other could lock funds for far longer or shorter than intended.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.