Find the exact chance of a streak somewhere in a run of coin tosses, such as 6 heads in a row in 100 flips, and how long you'd wait on average to see one.
Expected flips for k heads in a row = (1 ÷ pᵏ − 1) ÷ (1 − p)
"Heads or tails" counts a run of either face; "heads only" counts runs of heads. A longer streak contains a shorter one, so this is the chance of at least k in a row.
A streak is a run of the same result several times in a row, somewhere within a longer sequence of flips. Asking about a streak anywhere is very different from asking about the next few flips.
Six heads in the next six flips has a chance of 1 in 64. But in 100 flips there are 95 places a run of six could start, so seeing six of the same face somewhere is more likely than not. Streaks are a normal part of randomness, not a sign that something is wrong.
People reliably underestimate this. Asked to write down a "random" sequence, most switch between heads and tails too often and leave out long runs, which is one way teachers spot invented coin-flip homework.
Run recurrence and expected waiting time as in Feller's An Introduction to Probability Theory; longest-run behaviour as in Schilling (1990). See Sources.
a(n) is the chance of no run of k heads in n flips. Each step removes the sequences whose first streak ends exactly at flip n. For either face, the calculator tracks the current run length of heads and of tails instead.
Four times out of five, 100 fair flips contain a run of six. Counting heads only, it's 54.6%: still better than even.
The chance of at least one streak of each length, worked out exactly.
| Streak | Heads or tails | Heads only |
|---|---|---|
| 4 in a row | 99.97% | 97.27% |
| 5 in a row | 97.17% | 81.01% |
| 6 in a row | 80.68% | 54.61% |
| 7 in a row | 54.23% | 31.75% |
| 8 in a row | 31.48% | 17.02% |
| 10 in a row | 8.67% | 4.41% |
Around 6 or 7 of the same face, and about 5 or 6 heads. As a rule of thumb the longest run of heads in n fair flips is close to log₂(n).
On average 2¹¹ − 2 = 2,046 flips for a fair coin. Any particular attempt could take far more or far fewer.
Yes. A run of 8 contains a run of 6, so the result is the chance of at least one run of 6 or longer.
Both kinds of run count, and a streak can start from whichever face just came up, which roughly halves the wait.
Yes. Enter the chance of heads, such as 0.6. Streaks of the likelier face become much more common and the rarer face much less.
Yes, as long as each trial is independent with the same chance: winning or losing streaks in a game, or days of rain, if they really are independent.
Early studies said no. Later work by Miller and Sanjurjo found a subtle bias in how streaks were counted, and some evidence of a small hot-hand effect in basketball.
It’s the streak length that 100 flips beat about half the time. Long sequences almost always contain a run near this length.
Related Tools
Basic probability calculations.
P(A|B) calculations.
P(A and B) calculations.
Three event probabilities.
Conditional probability.
Probability-weighted average.