A chain reorganization, often shortened to reorg, is the event in which a blockchain node discards one or more recently accepted blocks and adopts a competing branch because its fork-choice rule now ranks that branch higher. In crypto & blockchain systems, the reorg is the mechanism that lets independent nodes converge on a single history after they temporarily disagree, which makes it a core idea of blockchain fundamentals.
Reorgs are a normal consequence of decentralized block production, not a malfunction. Shallow reorgs of one block happen routinely on proof-of-work networks, while deep reorgs are rare and usually signal network partitions, software bugs or deliberate attacks. Understanding them explains why exchanges wait for confirmations and why transaction finality is described in probabilities on some chains.
How a chain reorganization happens
A chain reorganization happens when a node learns of a branch that its consensus rules consider better than the current tip. Two miners or validators can produce valid blocks at nearly the same block height, and because blocks need time to propagate, different parts of the network briefly follow different tips. This temporary split is called a natural fork.
Each node applies a deterministic fork-choice rule to pick the canonical branch. In Bitcoin, the rule selects the chain with the most cumulative proof of work, not simply the longest chain by block count. When a competing branch gains more accumulated work, every node that sees it rolls back its own tip to the common ancestor and replays the blocks of the winning branch.
The rollback has concrete effects on node state. Transactions in the abandoned blocks, often called orphaned or stale blocks, return to the mempool unless the new branch already contains them or contains a conflicting spend. The UTXO set or account state is reverted and rebuilt, and indexes such as those used by a block explorer must be updated accordingly.
The following table summarizes the steps a node performs during a reorg.
| Step | What the node does | Result |
|---|---|---|
| Detect | Receives headers of a branch with a better score | Competing branch identified |
| Find ancestor | Locates the last block shared by both branches | Fork point established |
| Disconnect | Undoes blocks above the fork point | State returns to the ancestor |
| Connect | Validates and applies blocks of the new branch | New canonical tip |
| Requeue | Returns valid dropped transactions to the mempool | Transactions await inclusion again |
Reorg depth and what it signals
Reorg depth is the number of blocks removed from the previously canonical chain, and it is the most useful single measure of how serious a reorganization is. The probability of a natural reorg falls roughly exponentially with depth when honest participants control most of the block production power.
The table below gives typical interpretations; actual thresholds depend on block time, network latency and the consensus design.
| Depth | Typical cause | Practical meaning |
|---|---|---|
| 1 block | Two blocks found almost simultaneously | Routine event on proof-of-work chains |
| 2 to 3 blocks | Propagation delays or unlucky timing | Uncommon but usually benign |
| 4 to 6 blocks | Partition, bug or concentrated hash power | Warrants investigation |
| Deeper than 6 blocks | Attack or serious consensus failure | Threatens confirmed transactions |
The widely used six-confirmation convention in Bitcoin comes from this reasoning: after six blocks, a reversal by an attacker with a minority of hash power becomes extremely improbable. The convention is a risk choice, not a protocol rule, and services adjust it to the value at stake.
Reorgs across consensus designs
Different consensus families treat reorgs very differently, because they define finality in different ways. Nakamoto-style chains offer probabilistic finality, where confidence grows with each confirmation. Byzantine fault tolerant protocols aim for deterministic finality, where a committed block cannot be reverted unless a large share of validators misbehaves.
The next table compares how common designs expose users to reorganizations.
| Consensus family | Fork-choice basis | Reorg exposure |
|---|---|---|
| Proof of work | Most cumulative work | Shallow reorgs common, deep ones costly |
| Ethereum proof of stake | LMD GHOST plus Casper FFG checkpoints | Short reorgs possible before finalization |
| BFT-style proof of stake | Two-thirds validator commit | Reorgs of committed blocks practically excluded |
| Layer 2 rollups | Sequencer order, settled on layer 1 | Inherit reorg risk from the base chain |
On Ethereum, blocks become finalized after about two epochs, roughly 13 minutes under normal conditions. Before that point short reorgs can still occur, and in 2022 the beacon chain experienced a seven-block reorg linked to client behavior during a fork-choice upgrade, which showed that deterministic finality only covers finalized checkpoints.
Reorgs, forks and attacks compared
A chain reorganization is a change of the canonical branch under the same rules, which distinguishes it from protocol forks. A hard fork or soft fork changes the rules themselves; a reorg only changes which valid history the network follows.
Reorgs become hostile when they are engineered. In a 51% attack, an entity with majority hash power mines a private branch and releases it to reverse payments, enabling a double spend. Ethereum Classic suffered several such reorgs in 2020, some exceeding thousands of blocks. Miners and validators may also reorg a chain to capture profitable transactions, a risk known as time-bandit attacks in discussions of maximal extractable value.
| Event | Rules change | Typical intent |
|---|---|---|
| Natural reorg | No | None, caused by timing |
| Malicious reorg | No | Double spend or value extraction |
| Soft fork | Yes, rules tightened | Planned protocol upgrade |
| Hard fork | Yes, rules incompatible | Upgrade or community split |
Handling reorgs in practice
Any system that reacts to on-chain events must be reorg-aware. Exchanges, payment processors, bridges and indexers should treat recent blocks as provisional and design their logic to reverse effects when blocks disappear.
- Set confirmation thresholds proportional to value at risk and to the chain’s observed reorg history.
- On proof-of-stake chains with finality gadgets, wait for finalized checkpoints for high-value settlement.
- Store the block hash with every indexed event, not only the block height, so that replaced blocks can be detected.
- Build rollback routines that undo credited deposits and recompute balances when a reorg is observed.
- Monitor reorg depth and frequency as an early indicator of attacks or client bugs.
A common mistake is to trust a single confirmation for large deposits. Another is to key database records only by height, which silently mixes data from two branches after a reorg and produces inconsistent balances that are hard to trace.
In everyday language
Imagine many clerks keeping copies of the same ledger in different cities. Sometimes two clerks add a new page at the same moment, and for a short while the copies disagree. The group follows a simple rule: keep the version with more work behind it. When one version pulls ahead, everyone tears out the losing page and copies the winning one.
That swap is a chain reorganization. Most of the time it only replaces the newest page, and the payments on it simply move to the next page. The key takeaway is that the newest entries are never fully certain, which is why careful businesses wait for several more pages before treating a payment as settled.
Seen in the real world
A mid-sized cryptocurrency exchange accepts deposits on a proof-of-work coin with a two-minute block time. Its deposit service originally credited customers after three confirmations. One evening, monitoring shows a sudden jump in network hash power, followed by a twelve-block reorg that removes several deposits already credited to a single new account, which then attempts a withdrawal in another asset.
Because the operations team had built automatic rollback logic keyed by block hash, the system detected that the deposit transactions no longer existed on the canonical chain, reversed the credits and froze the pending withdrawal. The exchange then raised the threshold for that coin to several hundred confirmations for large deposits. The outcome was a blocked double-spend attempt with no customer losses, and the incident report led the team to add reorg-depth alerts for every chain it supports.