Coin-flip streaks

Flip a virtual coin many times and see the longest streak. Streaks feel unlikely but are a normal part of randomness.

Simulate coin flips

Example: in 100 flips, expect a longest streak of about 6-7. Hit Flip to try it.

Why streaks are normal

When you flip a fair coin, each flip is independent — the coin has no memory. But our brains are wired to see patterns, so a run of 6 heads in a row feels like something is wrong. It is not.

In 100 flips, the expected longest streak is about 6 or 7 (roughly log₂(100) ≈ 6.6). In 1,000 flips, expect a streak of about 10. This is a mathematical fact, not a fluke. The simulator above lets you test this as many times as you like.

The gambler's fallacy

The gambler's fallacy is the belief that after a run of heads, tails is "due". It is not. Each flip is independent: the probability is 50/50 regardless of what came before. Casinos profit from this misunderstanding.

Hannah Fry discusses probability biases like this in her Royal Institution Christmas Lectures (2019) and in her book on decision-making under uncertainty. In her words, our brains are pattern-seeking machines — we see structure even in pure noise.

How to spot a fake sequence

People who invent a "random" sequence of coin flips tend to alternate too much (HTHTHTHT) and avoid long runs. Real randomness is clumpier. If you see a sequence of 100 flips with no streak longer than 3, it was probably made up.

This trick is used in statistics classes: ask half the students to flip a real coin 100 times and the other half to invent a sequence. The teacher can usually tell which is which by looking at the longest streak. Real sequences have longer runs.

The mathematics behind streak length

For a fair coin flipped n times, the expected longest run is approximately log₂(n) — log₂(log₂(n)) + a small constant. For practical purposes, log₂(n) is a good estimate. The standard deviation is roughly 1 to 2 flips, so seeing a streak one or two longer than the estimate is common.

For a biased coin with probability p of heads, streaks of heads are shorter when p is small and longer when p is near 1. The expected longest heads streak is roughly log(n) / log(1/p), where log is the natural logarithm.

Real-world applications

  • Sports: A basketball player hitting five shots in a row feels like a "hot hand". Research shows some streakiness exists beyond chance, but less than fans believe.
  • Finance: Stock market winning streaks and losing streaks feel meaningful but are often consistent with random walk models.
  • Quality control: Manufacturers use run charts to detect non-random patterns. A streak that is too long — or too short — can signal a problem.

Worked examples

  1. 100 flips: Expected longest streak ≈ 7. Getting a streak of 5 or 6 is very common.
  2. 20 flips: Expected longest streak ≈ 4-5. Even in this small sample, short streaks are normal.
  3. 1,000 flips: Expected longest streak ≈ 10. A streak of 8-12 is nothing unusual.
  4. 10,000 flips: Expected longest streak ≈ 13. You should reliably see runs of 11 or more.

Tips

  • Run the simulator several times at the same number of flips and notice how the longest streak varies.
  • Compare 100 flips with 10,000 flips to see the logarithmic relationship in action.
  • If your sequence has no streak longer than 3 in 100 flips, it is almost certainly not random.

Related tools and pages

Questions about this tool

Why do streaks happen so often in coin flips?

Because each flip is independent. In 100 flips, a streak of 5-7 heads or tails in a row is mathematically expected, not unusual.

What is the gambler's fallacy?

The mistaken belief that past results affect future independent events. After 5 heads in a row, the next flip is still 50/50.

How long a streak should I expect in N flips?

Roughly log₂(N). In 100 flips, expect a longest streak of about 6-7. In 1,000 flips, about 10.

Can I spot a fake sequence of coin flips?

Fake sequences tend to alternate too much and have shorter streaks than real ones. Real randomness is clumpier than people expect.

Sources and method notes

Last reviewed 2026-10-06. Spotted a mistake? Tell us. This tool is free and runs entirely in your browser: nothing you enter is sent anywhere.