Coin Toss Streak Calculator

Coin Toss Streak Calculator

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.

Enter the number of flips and the streak length

What is a Coin Toss Streak?

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.

Coin Toss Streak Formula

Run recurrence and expected waiting time as in Feller's An Introduction to Probability Theory; longest-run behaviour as in Schilling (1990). See Sources.

1. Track the chance of no streak, flip by flip

a(n) = a(n − 1) − (1 − p) × pᵏ × a(n − k − 1)
a(i) = 1 for i < k, a(k) = 1 − pᵏ

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.

2. The chance of at least one streak

P(streak of k in n flips) = 1 − a(n)

3. How long until the first streak

k heads: (1 ÷ pᵏ − 1) ÷ (1 − p) → fair coin 2ᵏ⁺¹ − 2
k of either face, fair coin: 2ᵏ − 1

Worked Example: Six the Same in 100 Flips

Given:
A fair coin flipped 100 times. How likely is a run of 6 heads or 6 tails?
Step 1:
A rough count of chances:
After any flip, the next 5 match it with chance 1/32 · about 95 places to start
Step 2:
Allow for overlapping runs exactly:
Tracking the run length flip by flip gives P(no streak) = 0.1932
Step 3:
Take the complement, and the wait:
1 − 0.1932 = 0.8068 · average wait 2⁶ − 1 = 63 flips
Result:
80.7% chance of six the same in a row

Four times out of five, 100 fair flips contain a run of six. Counting heads only, it's 54.6%: still better than even.

Streak Chances in 100 Fair Flips

The chance of at least one streak of each length, worked out exactly.

Chance of streaks of different lengths in 100 fair coin flips
StreakHeads or tailsHeads only
4 in a row99.97%97.27%
5 in a row97.17%81.01%
6 in a row80.68%54.61%
7 in a row54.23%31.75%
8 in a row31.48%17.02%
10 in a row8.67%4.41%

Common Streak Mistakes

  • Using 0.5ᵏ for a streak somewhere. 1 in 64 is the chance that six particular flips are all heads. Across 100 flips there are many chances, so the real answer is far higher.
  • Multiplying the number of places by 1/2ᵏ. That counts overlapping runs more than once and can even exceed 100%. The exact method allows for overlaps.
  • Thinking a streak makes the opposite face "due". After six heads, the next flip is still 50/50.
  • Reading a streak as proof of skill or bias. Long runs are expected in random data; the "hot hand" is easy to see where there is none.

Coin Toss Streak FAQs

How long is the longest streak in 100 flips usually?

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).

How many flips does it take to get 10 heads in a row?

On average 2¹¹ − 2 = 2,046 flips for a fair coin. Any particular attempt could take far more or far fewer.

Does “6 in a row” include longer streaks?

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.

Why is “heads or tails” so much more likely than “heads only”?

Both kinds of run count, and a streak can start from whichever face just came up, which roughly halves the wait.

Does this work for a biased coin?

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.

Can I use it for other win/lose sequences?

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.

Is the “hot hand” real?

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.

Why is the median longest streak shown?

It’s the streak length that 100 flips beat about half the time. Long sequences almost always contain a run near this length.

Sources

Related Tools