BTC

Guide

What Is Double-Spending in Bitcoin? Why It Can't Happen, Explained Visually

What is double-spending in Bitcoin? Why it can't happen, explained visually
Photo: O.sediqi93 / CC0

Bottom line

Double-spending in Bitcoin means attempting to spend the same 1 BTC more than once. Because digital data can be copied trivially, money that's "just data" could in principle be sent to two different people simultaneously. Bitcoin solves this by recording every transaction, in chronological order, on a single public ledger (the blockchain), with a large number of miners competing to validate that record. As a transaction gets included in a block and accumulates "confirmations," the computational effort required to rewrite it later grows exponentially, making it effectively irreversible. This is the core innovation that let "money made of digital data that can't be copied twice" exist without a central administrator like a bank.

Key points of this article

- The double-spending problem is the fundamental challenge that digital data, being copyable, could otherwise let the same money get spent twice

- Bitcoin solves it by recording every transaction on one public blockchain and having the whole network agree on the order

- A transaction with zero confirmations can still be reversed; larger payments should wait for more confirmations

- Attacks come in a few forms — Race, Finney, and 51% attacks — but the odds of success collapse rapidly as confirmations accumulate

What the "double-spending problem" actually is

Physical cash disappears from your hand the moment you hand it over, so it can't be spent twice. Digital data, though, can be copied perfectly and endlessly, like a photo file. If money were just data, the same "one coin" could be sent to both Person A and Person B, and both could claim it as theirs. This is the double-spending problem.

Traditionally, this has been solved by having a central bookkeeper — a bank or card network — maintain a single, authoritative ledger of everyone's balance and each deduction. What made Bitcoin groundbreaking was achieving the same result without a trusted administrator. For the full picture of how the system works, see how Bitcoin works.

How Bitcoin prevents it (visualized)

In Bitcoin, transactions from around the world first gather in a waiting area called the mempool, and miners select transactions from there to bundle into blocks.

`` [Your transaction] ↓ signed and broadcast [Mempool (queue of unconfirmed transactions)] ← see /en/articles/what-is-mempool ↓ a miner includes it in a block [Block N] → [Block N+1] → [Block N+2] … Once ordered, every node shares and verifies that order ``

Three things matter here:

  1. Agreement on order: if two transactions both try to spend the same coin, only whichever one gets included in a block first becomes valid — the other is rejected as "insufficient balance."
  2. The cost of tampering: each block includes the hash of the previous block, forming a chain. Rewriting history means re-building every subsequent block faster than the rest of the honest network combined — this computational race is mining.
  3. Probabilistic finality: the more blocks ("confirmations") pile up after a transaction, the more the computing power required to overtake it explodes, making reversal effectively impossible.

Confirmations and "probabilistic irreversibility"

Once a transaction is included in a block, it has 1 confirmation; once another block is added on top, it has 2, and so on. Bitcoin's confirmations aren't an "absolute" guarantee — they're finality expressed as a probability.

Chapter 11 of Satoshi Nakamoto's original whitepaper mathematically demonstrates that an attacker's probability of catching up drops exponentially as confirmations accumulate. As a rule of thumb, if an attacker controls only about 10% of total computing power, waiting for 6 confirmations reduces their odds of successfully reversing the transaction to well under 0.1% — which is the basis for the industry convention of treating "6 confirmations" as effectively final. (The stronger the attacker's share of computing power, the more confirmations would be needed.)

ConfirmationsApproximate statusTypical use
0 (zero-conf)Unconfirmed — still reversibleSmall amounts, trusted counterparties only
1Included in a blockModerate amounts
3Fairly safeGeneral payments
6Effectively irreversible (convention)High-value settlement, e.g. exchange deposit crediting

注意

This article is an educational explainer of the mechanics — it is not investment or transaction advice. The convention of 6 confirmations is just that, a convention; the number actually required varies by amount, counterparty, and situation. For high-value deposits, always check the confirmation requirements of the exchange or wallet you're using. These figures are approximate as of writing — verify current numbers with official sources.

The danger of zero confirmations, and the main attack types

A transaction with zero confirmations hasn't been locked into any block yet, so in theory it can be rewritten. Here's a brief overview of the main double-spend attack types (details and specific defenses are covered in dedicated articles):

AttackTargetsOverview
Race attackZero-confBroadcasts a payment to the merchant while simultaneously broadcasting a conflicting transaction back to the attacker, hoping the latter confirms first
Finney attackZero-conf, requires the attacker to be a minerThe attacker pre-mines and privately holds a block containing a transaction back to themselves, then publishes it right after making a separate payment elsewhere
51% attackEven confirmed transactionsControlling a majority of network computing power to rewrite the chain and reverse even confirmed transactions; against Bitcoin, the hardware and electricity required make this practically infeasible

What all three share is that waiting for more confirmations makes success harder. Race and Finney attacks specifically rely on zero confirmations, so waiting for even a single confirmation neutralizes most of them. A 51% attack is theoretically possible even against confirmed transactions, but at Bitcoin's scale the cost required is astronomical, and succeeding would also destroy the value of the attacker's own holdings — making it economically irrational.

Frequently asked questions

Q. Has double-spending actually happened? A. No confirmed transaction has ever been reversed via double-spending on Bitcoin's mainnet. What's historically caused real problems is 51% attacks on other, smaller-hashrate chains. Attempts exploiting zero-confirmation (unconfirmed) transactions do exist as a technical possibility.

Q. How many confirmations should I wait for? A. The common convention for large amounts is 6 confirmations, but the right number depends on the amount, the counterparty, and the service's own policy. For small amounts with a trusted counterparty, even a single confirmation is often practically sufficient. See what is a confirmation for more detail.

Q. Why can't we say it's "absolutely" irreversible? A. Because Bitcoin's finality is guaranteed mathematically as a probability, not an absolute. The chance of a reversal shrinks toward zero — but never strictly reaches zero — as confirmations accumulate. In practice, the residual risk becomes negligible.

Q. Can a transaction sitting in the mempool be double-spent? A. A transaction waiting in the mempool is unconfirmed, so in theory it could be replaced by a conflicting transaction. It only becomes locked into the ledger once it's included in a block and gains a confirmation.

Sources

A note before investing

This article is intended for informational purposes and is not investment or tax advice. Bitcoin carries risks including price volatility, hacking, and loss. Make investment decisions at your own responsibility and only with funds you can afford to risk. This article reflects publicly available information as of its publish date; always verify current details with primary sources.

Sources

  1. Bitcoin: A Peer-to-Peer Electronic Cash System (Satoshi Nakamoto whitepaper)
  2. Confirmation - Bitcoin Wiki
  3. Irreversible Transactions - Bitcoin Wiki
  4. How Bitcoin solves the double-spend problem - River Learn
  5. Double-Spend Attacks on Bitcoin - Gemini Cryptopedia

FAQ

Has double-spending actually happened?
No confirmed transaction has ever been reversed via double-spending on Bitcoin's mainnet. What's historically caused real problems is 51% attacks on other, smaller-hashrate chains. Attempts exploiting zero-confirmation (unconfirmed) transactions do exist as a technical possibility.
How many confirmations should I wait for?
The common convention for large amounts is 6 confirmations, but the right number depends on the amount, the counterparty, and the service's own policy. For small amounts with a trusted counterparty, even a single confirmation is often practically sufficient.
Why can't we say it's "absolutely" irreversible?
Because Bitcoin's finality is guaranteed mathematically as a probability, not an absolute. The chance of a reversal shrinks toward zero — but never strictly reaches zero — as confirmations accumulate. In practice, the residual risk becomes negligible.
Can a transaction sitting in the mempool be double-spent?
A transaction waiting in the mempool is unconfirmed, so in theory it could be replaced by a conflicting transaction. It only becomes locked into the ledger once it's included in a block and gains a confirmation.
What is double-spending?
Double-spending means attempting to spend the same bitcoin more than once. Because digital data can be copied, a currency that was "just data" could in principle be sent to two different people at the same time. Bitcoin prevents this by recording every transaction, in order, on one public blockchain that a large network of miners competes to validate — once a transaction has enough confirmations behind it, rewriting it becomes computationally impractical.
BIT NEWS 編集局
  • 日本国内で編集
  • 一次情報・出典主義
  • 変わりうる事実は検証日を明記

BIT NEWS の編集局。一次情報にあたり、変わりうる事実には検証日を添えて掲載しています。

This article is informational only and is not financial, investment, or trading advice. Prices are reference snapshots and may be outdated. Always do your own research.