Longest Chain Rule
Bitcoin nodes follow the chain with the most accumulated proof-of-work, ensuring consensus in a decentralized network.
The longest chain rule is Bitcoin's consensus mechanism for resolving conflicts when multiple valid chains exist: every node follows whichever chain has the most accumulated proof-of-work.
The name is slightly misleading. It's not the chain with the most blocks (longest); it's the chain with the most cumulative work. In practice these are usually the same, but during difficulty transitions or attempted attacks they can diverge.
What the rule does:
- When two miners find blocks at the same height at nearly the same moment, the network temporarily splits.
- Each node follows whichever block it saw first, building on top of it.
- As soon as the next block is found on one side, that side has more cumulative work.
- Nodes that were on the other side reorg to the now-heavier chain.
- The losing block becomes a stale block; its transactions return to the mempool.
Why this rule is the foundation of Bitcoin's security:
- Attacking the chain requires more work than the honest network is producing. An attacker trying to rewrite history has to mine a longer fork, secretly, faster than the rest of the world mines the real one. With Bitcoin's hash rate averaging about 910 EH/s in mid-2026, doing that reliably requires owning more than half of the global mining industry, which makes the attack economically infeasible.
- The deeper a transaction sits, the more work would be required to overturn it. An attacker working in secret with 10% of the hash rate would overturn a 6-confirmation transaction about once in 1,700 attempts, and one with 30% about once in six, by Meni Rosenfeld's 2012 analysis. Only an attacker with more than 50% could count on it. For anyone below that, the probability falls exponentially with depth.
- Honest miners are incentivized to build on the longest chain. A miner who finds a block off the main chain doesn't get paid; the block becomes stale.
The longest chain rule is sometimes called "Nakamoto consensus" - the version of consensus Satoshi described in the whitepaper. It's the deceptively simple rule that turns proof-of-work into a globally agreed-upon ledger.
The rule has a limit: a chain that some nodes consider invalid does not win by being longer. The 2013 Chain Fork is the case where the chain with most of the hash power was the one abandoned.
Key takeaways
- Nodes resolve conflicts by picking the chain with the most work
- Deters attackers from rewriting the ledger without immense hash power
- Ensures consistent ledger state across the decentralized network
Related chapters
Corrected
-
Was: The entry said only an attacker with more than half of the hash rate could overturn a transaction with six confirmations.
Now: Smaller attackers can too, with odds that fall as more blocks are added. By Meni Rosenfeld's 2012 analysis, an attacker mining in secret with 10% of the hash rate would succeed about once in 1,700 attempts, and one with 30% about once in six. Only an attacker with more than half can count on it. Details
-
Was: The entry put Bitcoin's hash rate at about 700 EH/s, an out-of-date figure.
Now: The hash rate averaged about 910 EH/s from June to August 2026. Details
Sources (2)
Related terms (6)
Published . Revised . Two corrections logged for this page.
Edit this page on GitHub