Luck Lab
How long a streak of heads should you expect?
In 100 fair coin flips, the longest run of heads averages about 6, and the longest run of either side about 7. Flip your own, then run 1,000 sessions and watch the pattern settle.
Fair virtual coins. For learning and fun, not gambling advice.
Longest streaks by number of flips
The table gives the exact average longest run for a fair coin, and the chance that a session contains at least one run of 5 heads or 7 of either side. Doubling the number of flips adds only about one flip to the longest streak, because a run of length k needs about 2k flips to show up.
| Flips | Average longest run of heads | Average longest run, either side | Chance of 5+ heads in a row | Chance of 7+ in a row, either side |
|---|---|---|---|---|
| 10 | 2.80 | 3.66 | 10.9% | 3.9% |
| 20 | 3.73 | 4.66 | 25.0% | 11.5% |
| 50 | 5.01 | 5.98 | 55.2% | 30.9% |
| 100 | 5.99 | 6.98 | 81.0% | 54.2% |
| 200 | 6.98 | 7.98 | 96.6% | 79.9% |
| 500 | 8.30 | 9.30 | 100.0% | 98.3% |
| 1,000 | 9.30 | 10.30 | 100.0% | 100.0% |
How the numbers are worked out
To find the chance that 100 flips contain no run of 5 heads, the calculation tracks how many heads in a row you currently have, from 0 to 4, and moves that count forward one flip at a time. Tails sends it back to 0. Heads adds 1, and a count that would reach 5 is dropped as a failure. After 100 steps, what is left is the exact chance of no run of 5. The average longest run is the sum over k of the chance that a run of at least k appears.
For the longest run of either side, a short identity does the work. A run of k identical flips is the same thing as k−1 consecutive flips that match the one before them. Those matches are themselves fair, independent coin tosses, so the longest run of either side in n flips is 1 plus the longest run of heads in n−1 flips. That is why each “either side” average in the table is exactly one more than the heads average for one fewer flip.
We tested the method two ways. A brute-force count over all 65,536 sequences of 16 flips gave an average longest heads run of 3.425308, the same as the calculation to six decimals, and an average longest run of either side of 4.338043, again identical. A simulation of 200,000 sessions of 100 flips averaged 5.998 for the longest run of heads, against the exact 5.992.
What this shows about luck
Most people picture a random sequence as one that alternates often, so a run of six or seven in a row looks suspicious. The table says otherwise: in 100 flips, a run of 7 on one side or the other happens in more than half of sessions. Streaks are a feature of randomness, and they appear whether or not anything is “hot”. That is one reason the gambler’s fallacy (expecting a streak to break) and the hot-hand idea (expecting it to continue) both feel natural. Each flip is independent of the last, so neither expectation changes the odds of the next one.
Play with it. Pick 100 flips and press Flip a few times, then run the 1,000-session batch and compare the average with the exact value in the table. If you want a game version, try the Flip Challenge, where you call each flip, or see how the mistake plays out outside the casino in our piece on the gambler’s fallacy in real decisions. The simulator uses fair virtual coins and is meant for learning, not for gambling.
Questions about luck lab
How long a streak of heads should I expect in 100 flips?
On average the longest run of heads in 100 fair flips is 5.99, and the longest run of either heads or tails is 6.98. A run of 5 or more heads appears in 81% of sessions.
Are these averages simulated or exact?
Exact. They come from a dynamic-programming count over all ways the flips can fall, not from random sampling. We checked the method against a brute-force count of all 65,536 sequences of 16 flips, and a 200,000-run simulation of 100 flips agreed with it to within 0.01.
Is a long streak evidence that the coin is not fair?
Not by itself. Streaks are a normal part of fair randomness, and the table shows how often they appear. What would be unusual is a streak far longer than the exact averages suggest, repeated across many sessions.
Does this help with betting or lotteries?
No. Each flip is independent, so a streak tells you nothing about the next flip. This is a tool for learning how randomness looks, not a gambling aid.
How does the tool flip the coins?
It asks your browser for random bits from the Web Crypto generator, one bit per flip. Nothing is sent to our servers.
Last updated: November 13, 2026