A 51% attack is a hypothetical attack scenario on a blockchain operating on a Proof-of-Work (PoW) algorithm. The essence of the attack is that a single person or group obtains control of over 50% of the network’s total hashrate. This gives them a temporary ability to manipulate the blockchain. This term often causes fear, but it is important to understand exactly what an attacker can and cannot do.
How Does a 51% Attack Work?
In the Bitcoin network, the “longest chain” rule applies. The version of the blockchain with the most accumulated “work” (meaning it is longer and has had the most hashrate spent on it) is considered the true one.
Imagine that an attacker, possessing 51% of the network’s power, decides to pull off a scam:
- They publicly send 1,000 BTC to an exchange to trade them for dollars. This transaction enters the public blockchain seen by everyone.
- Simultaneously and secretly, they start mining their own parallel version of the blockchain. In this secret version, they do not include their transaction to the exchange, and instead send the same 1,000 BTC to another one of their wallets.
- Since they have more than half the network’s power, their secret chain of blocks grows faster than the public one.
- As soon as they have withdrawn the dollars from the exchange, they publish their secret chain, which is now longer. According to the rules, the entire network is obliged to accept it as the true one. The public chain where they sent coins to the exchange is “discarded” and becomes invalid.
As a result, the attacker has kept their 1,000 BTC (now in their second wallet) and received dollars from the exchange. This is called “double-spending”.
What Can and Cannot an Attacker Do?
It is important to understand the limitations of such an attack.
What an attacker CAN do:
- Prevent confirmation of new transactions (censorship).
- Halt payments between some or all users.
- Double-spend their own coins, as in the example above.
What an attacker CANNOT do:
- Create coins out of thin air or change the block reward.
- Forge a signature and steal coins from someone else’s wallet. They do not have access to other people’s private keys.
- Alter old transactions that were completed long before the attack started.
A 51% attack does not “destroy” Bitcoin, but it undermines trust in it, which is an equally serious threat.
Does a 51% Attack Threaten the Bitcoin Network?
Theoretically — yes. Practically — **no**. And here is why:
- Astronomical equipment costs. To obtain 51% of the current Bitcoin network hashrate, an attacker would need to purchase millions of the most modern ASIC miners. The costs for this are estimated in the tens of billions of dollars.
- Huge electricity costs. Even if one managed to acquire such a quantity of equipment, the electricity costs to run it would amount to millions of dollars per hour.
- Economic pointlessness. As soon as such an attack was detected (which would happen very quickly), trust in the network would collapse, and along with it the price of Bitcoin. The attacker would have spent billions of dollars to devalue the very asset they are trying to steal. It is much more profitable to use such immense power for honest mining and receiving block rewards.
That is why, although a 51% attack remains a real threat for smaller cryptocurrencies with low hashrates, for the Bitcoin network it has turned into a purely theoretical concept. The network has become “too big to fail” thanks to the huge number of honest miners around the world.