Why a casino waits for confirmations
A deposit that is one block deep can, in principle, be undone by someone who quietly builds a longer chain. The Bitcoin paper gives the exact odds. This sheet runs them.
Each extra confirmation makes reversal far less likely, as long as the attacker controls less than half of the hash power. With 10% of it, the chance of catching up from five blocks behind is under 0.1%. With 30% you need 24 blocks for the same safety, and at 50% or more no number of confirmations is enough.
The race the formula describes
Picture a casino that credits you after z confirmations. A dishonest player sends coins to the casino and, at the same time, secretly mines a different chain in which those coins go back to themselves. If the secret chain ever becomes longer than the public one, the network switches to it, and the deposit vanishes from history after the casino has already let the player gamble or withdraw.
The paper models the honest network and the attacker as two miners racing, with p and q the chances that the next block is found by each (p + q = 1). While the casino waits for z blocks, the attacker's expected progress is λ = z·q/p blocks; from there, the chance of ever closing a gap of size k is (q/p)^k. Adding these up gives:
P(catch up) = 1 − Σ (k = 0 … z) [ λ^k e^(−λ) / k! ] · [ 1 − (q/p)^(z − k) ] with λ = z · q / p
The calculator above is a direct transcription of the C function printed in §11 of the paper. Its output reproduces the paper's own tables to the seventh decimal place, which is how the code on this page is tested.
The paper's tables, recomputed
| Depth (q = 0.1) | P, q = 0.1 | Depth (q = 0.3) | P, q = 0.3 |
|---|---|---|---|
| z = 0 | 1.0000000 | z = 0 | 1.0000000 |
| z = 1 | 0.2045873 | z = 5 | 0.1773523 |
| z = 2 | 0.0509779 | z = 10 | 0.0416605 |
| z = 3 | 0.0131722 | z = 15 | 0.0101008 |
| z = 4 | 0.0034552 | z = 20 | 0.0024804 |
| z = 5 | 0.0009137 | z = 25 | 0.0006132 |
| z = 6 | 0.0002428 | z = 30 | 0.0001522 |
| z = 7 | 0.0000647 | z = 35 | 0.0000379 |
| z = 8 | 0.0000173 | z = 40 | 0.0000095 |
| z = 9 | 0.0000046 | z = 45 | 0.0000024 |
| z = 10 | 0.0000012 | z = 50 | 0.0000006 |
| Attacker share | z for P < 0.1% | z for P < 0.0001% |
|---|---|---|
| q = 0.1 | 5 | 11 |
| q = 0.15 | 8 | 15 |
| q = 0.2 | 11 | 21 |
| q = 0.25 | 15 | 31 |
| q = 0.3 | 24 | 49 |
| q = 0.35 | 41 | 85 |
| q = 0.4 | 89 | 184 |
| q = 0.45 | 340 | 704 |
Reading these odds as a casino customer
The numbers explain why confirmation counts exist, and why a chain on which one party could plausibly hold a large share of the hash power calls for many more of them: read down the right-hand column of the table. They do not tell you how fast a particular casino credits you, and they say nothing about whether the casino will pay you later. The deposit sheet turns a confirmation count into a waiting time.
Limits of the model. It assumes block discovery follows a Poisson process and the attacker's share stays fixed. It does not cover proof-of-stake chains, where reversal of a finalized block is ruled out by a different mechanism, or attacks that do not involve out-mining the network.
Where these facts come from
- Bitcoin: A Peer-to-Peer Electronic Cash System (S. Nakamoto, 2008), §11 "Calculations", including its C code and the two probability tables, read via the Internet Archive on 27 Nov 2026.