Skip to content
PayableWithCrypto

Glossary

What Is a Double-Spend? How Blockchains Prevent Spending Twice

Editorial teamFact-checked against official sources Last updated 3 min read

Definition

Double-spend: A double-spend is an attempt to spend the same digital funds in two conflicting transactions; blockchains prevent it by agreeing on one transaction order.

On this page
  1. 1The problem the blockchain solves
  2. 2Where double-spend risk actually lives
  3. 3Why it matters when you pay or get paid with crypto
  4. 4Networks and finality
  5. 5Practical tips
  6. 6Common questions

A double-spend is an attempt to use the same digital money in two different payments. With cash this is impossible because you hand over the note; with digital files it is the obvious risk, since data can be copied. Blockchains solve it by having the network agree on one history of transactions: once a payment is buried deep enough in that history, a conflicting payment using the same funds cannot replace it.

The problem the blockchain solves

The Bitcoin whitepaper opens with exactly this issue. Before Bitcoin, digital payment systems needed a trusted central party to check that money had not already been spent. Bitcoin replaced that party with a public, time-ordered chain of blocks secured by proof of work. Every node checks that each input of a transaction has not already been spent in the chain; a transaction trying to spend the same UTXO a second time is rejected.

Account-based chains like Ethereum prevent it differently, with a per-account nonce that orders transactions, but the principle is the same: the network agrees on one order, and only the first valid spend counts.

Where double-spend risk actually lives

For anyone paying or getting paid, the risk sits in the window before a transaction is final.

Attack When it works Main defence
Race / replacement attack Payment is unconfirmed in the mempool Wait for at least one confirmation
Fee-bump replacement Payer uses replace-by-fee to redirect funds Do not treat zero-confirmation as paid
Chain reorganisation Recently confirmed blocks are replaced by a longer chain More confirmations, especially on smaller networks
Majority (51%) attack Attacker controls most hash power or stake High confirmation thresholds; avoid tiny networks for large amounts

bitcoin.org’s “things you need to know” page warns that unconfirmed transactions are not secure, and the Bitcoin developer guide’s payment-processing section discusses setting confirmation requirements according to the value at risk.

Why it matters when you pay or get paid with crypto

As a buyer, double-spend protection is why a checkout keeps saying “waiting for confirmation” after you have clearly sent the coins. The merchant’s payment processor is waiting until reversing your payment would be impractical. That delay is normal, especially for on-chain bitcoin.

As a seller, for instance selling something peer to peer, it is the reason not to release goods or fiat on the strength of an unconfirmed transaction or a screenshot. Read the P2P safety guide before trading face to face or online.

Compared with cards, crypto payments are generally final once settled: there is no built-in chargeback. The flip side is that the merchant carries the double-spend risk only until finality, while a card merchant carries chargeback risk for months. For how refunds work instead, see crypto refunds and chargebacks.

Networks and finality

Fast-finality chains such as Solana, the XRP Ledger, TRON and Ethereum’s proof of stake (once blocks are finalized) make deep reorganisations extremely unlikely, so merchants can credit payments quicker. Smaller proof-of-work coins have historically suffered majority attacks, which is why exchanges often require many more confirmations for them. When a deposit page asks for a large number of confirmations, that is the reason.

Practical tips

  1. If you are receiving crypto, wait for the confirmation count appropriate to the amount; one block for small sums is common, more for large ones.
  2. Verify incoming payments yourself on a block explorer, never by screenshot.
  3. If you are paying and the payment is pending, do not send it again; wait or use a fee bump.
  4. For instant settlement with bitcoin, use Lightning, where the payment is final when the invoice is paid.

Frequently asked questions

Can someone double-spend a confirmed bitcoin transaction?
Only by rewriting the chain from the block that contains it, which requires out-producing the rest of the network's hash power. The Bitcoin whitepaper shows the chance of success falls exponentially with each confirmation, which is why large payments wait for several.
What is a 51% attack?
It is when one party controls most of a network's mining or staking power and uses it to build an alternative chain, potentially reversing their own payments. It has happened on smaller proof-of-work networks, which is why exchanges set high confirmation counts for them.
Is a crypto double-spend like a card chargeback?
Both can reverse a payment a merchant thought was complete, but they work differently. A chargeback is a formal dispute through the card network. A double-spend is an on-chain trick that only works before a payment is sufficiently final.
Can I accidentally double-spend?
Your wallet will not let you sign two conflicting payments from the same funds in normal use. What does happen is paying twice by accident, sending a second payment while the first is still pending, which is a different problem.

Sources

Facts were checked against these pages on the date shown above. Terms change; confirm on the official page before acting. General information, not financial, tax or legal advice. See our methodology.

Related terms

Compare cards Find a store