51% Attack

Control of over half the hashrate lets an attacker reorg recent blocks to double-spend or censor. Cost, not impossibility, is the defence.

Basically

A 51% attack happens when one miner controls more than half of the network's mining power. They can rewrite recent transactions and spend the same coins twice.

Key Takeaways

  • An attacker with majority hashrate can mine faster and overwrite recent blocks, enabling double-spending and transaction censorship.
  • Bitcoin's massive hashrate makes a 51% attack expensive: over $6 billion for a sustained effort, requiring nation-state resources.
  • Smaller proof-of-work chains are more vulnerable, as seen in attacks on Ethereum Classic, Bitcoin Gold, and Vertcoin.

What Is a 51% Attack?

A 51% attack occurs when a single miner or group controls more than half of the network's mining power. They can mine a private chain faster than the honest network and broadcast it to overwrite recent history.

The concept comes from Satoshi Nakamoto's 2008 whitepaper, which used a Gambler's Ruin model to show that success probability drops exponentially with each confirmation unless majority hashrate is held.

Bitcoin has never been 51%-attacked, but smaller proof-of-work chains have suffered repeated attacks causing millions in losses. The security model is economic: the attack cost must exceed the gain.

How It Works

A 51% attack exploits the longest chain rule, which dictates that proof-of-work blockchains follow the chain with the most accumulated work. Nodes always accept the chain with the highest total proof-of-work.

The Math Behind Confirmations

Each additional block on top of a transaction makes it harder to reverse. An attacker needs exponentially more work to catch up with an alternative chain after each confirmation.

The recommendation of 6 confirmations (about 1 hour on Bitcoin) comes from Nakamoto's whitepaper. After 6 confirmations, the success probability drops below 0.1% if the attacker has 10% or less of hashrate.

Finality is probabilistic, not absolute. Higher-value transactions require more confirmations.

What an Attacker Can and Cannot Do

An attacker can rewrite recent transaction history and double-spend their own coins.

They cannot steal coins from other addresses or create new coins out of thin air.

What They Can Do

They can reverse their own confirmed transactions and spend the same coins twice.

They can censor transactions by excluding them from their private chain.

What They Cannot Do

They cannot steal coins from other addresses.

They cannot create new coins out of thin air.

Real-World 51% Attacks

Bitcoin has never been 51%-attacked, but smaller proof-of-work chains have suffered repeated attacks causing millions in losses.

Ethereum Classic (2019-2020)

Four major attacks occurred between January 2019 and August 2020. The worst was August 2020, where an attacker reorganized 4,236 blocks and double-spent about $5.6 million worth of ETC. They rented hashpower for roughly $204,000, showing extreme cost asymmetry. Exchanges increased confirmation requirements from dozens to hundreds of blocks.

Bitcoin Gold (2018)

In May 2018, attackers double-spent about $18 million in BTG across Bittrex, Binance, and Bithumb. Bittrex delisted Bitcoin Gold after the project refused compensation. The attack highlighted vulnerability of chains sharing mining algorithms with larger networks.

Vertcoin (2018)

Vertcoin suffered eight reorganizations between October and December 2018, double-spending about 71,000 VTC. The price crashed from $0.70 to $0.30, and the team upgraded their mining algorithm as a mitigation.

Cost of Attacking Bitcoin

Bitcoin's security is economic. The network's hashrate exceeded 1 ZH/s in early 2026, making it the most expensive blockchain to attack by orders of magnitude.

Attacking smaller chains costs much less: Ethereum Classic about $4,200 per hour, some smaller chains under $200 per hour. Bitcoin's hourly attack cost exceeds $2 million in electricity alone, before hardware.

Several structural factors make a Bitcoin 51% attack logistically implausible:

Mitigations

Several mechanisms protect against 51% attacks or limit their impact:

Why It Matters

The 51% attack is a foundational concept in blockchain security, defining the trust model of proof-of-work systems. Understanding it is essential for evaluating any cryptocurrency.

For Bitcoin users, the practical risk is negligible: the economic cost far exceeds any potential gain. But for users of smaller proof-of-work chains, the threat is real and has been demonstrated repeatedly. This is one reason why fast finality and layer-2 solutions have become critical infrastructure. Protocols like Spark inherit Bitcoin's base-layer security while providing faster settlement, reducing the confirmation window during which a 51% attack could theoretically affect a transaction.

The economics of 51% attacks explain why hashrate is the single most important metric for evaluating a proof-of-work chain's security. A chain's resistance to attack scales directly with the cost of acquiring majority mining power.

Risks and Considerations

This 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.

0

← All 1876 glossary terms