The act of attempting to spend the same Bitcoin twice. Bitcoin's proof-of-work consensus mechanism prevents double spending by ensuring the network agrees on a single transaction history.
The act of attempting to spend the same Bitcoin twice. Bitcoin's proof-of-work consensus mechanism prevents double spending by ensuring the network agrees on a single transaction history.
Double spending is the fundamental problem that all digital currencies must solve. Unlike physical cash, which physically changes hands, digital data can be copied. Without a mechanism to prevent it, a user could send the same Bitcoin to two different recipients. Traditional digital payment systems solve this with a central authority (like a bank) that maintains the authoritative ledger. Bitcoin solves it without any central authority.
Bitcoin prevents double spending through its consensus mechanism. When you broadcast a transaction, it enters the mempool where miners pick it up. Once a miner includes your transaction in a block and that block is added to the longest chain, the network agrees those coins have been spent. If someone tries to spend the same coins again, nodes reject the second transaction because the inputs have already been consumed in the confirmed block.
The security of this system increases with each confirmation. One confirmation means the transaction is in the latest block. Six confirmations (the traditional standard for high-value transfers) means six blocks have been built on top, requiring an attacker to redo an enormous amount of proof-of-work to alter the history. For small transactions, even one or two confirmations provide practical security, while zero-confirmation ("unconfirmed") transactions carry some risk of being double-spent before inclusion in a block.
On the Bitcoin mainnet, no confirmed double spend of a transaction with even one confirmation has ever occurred. There have been cases of zero-confirmation double spends (spending unconfirmed transactions before they are mined), which is why merchants are advised to wait for at least one confirmation. The massive hash rate of the Bitcoin network makes double spending confirmed transactions effectively impossible.
One confirmation makes double spending extremely difficult; six confirmations is the traditional standard for high-value transactions. Each additional confirmation exponentially increases the cost of an attack. For small everyday purchases, one or two confirmations are generally considered sufficient. Exchanges typically require 3-6 confirmations before crediting deposits.
Physical cash cannot be duplicated — when you hand someone a $20 bill, you no longer have it. Digital data, however, can be copied perfectly. Before Bitcoin, the only way to prevent someone from "copying" their digital money was to have a trusted intermediary (bank, payment processor) maintain the authoritative record. Bitcoin's breakthrough was achieving this without any trusted party, using cryptographic proof and economic incentives instead.