Learn the probability math behind coin flipping. Covers the 50/50 odds, the gambler's fallacy, the law of large numbers, and why streaks happen more often than you think.
A coin flip is the simplest random experiment in probability theory โ two equally likely outcomes, one trial. Yet the mathematics behind repeated coin flips contains some of the most counterintuitive results in all of statistics. Understanding these results explains why streaks feel impossible but are actually expected, why "the coin doesn't remember" is crucial, and how the law of large numbers works over time.
For a fair coin (not weighted, not bent):
This independence is the key property that makes coin flipping a useful model in probability theory. It means every single flip, no matter what came before, has exactly a 50% chance of heads and 50% chance of tails.
If a fair coin lands heads 8 times in a row, what is the probability it lands heads on the next flip?
The answer is exactly 50% โ same as always. The coin has no memory. Each flip is independent of every previous flip.
The gambler's fallacy is the mistaken belief that after a run of heads, tails is "due." This is how casinos profit: people see red come up on roulette 7 times and bet heavily on black, believing it must be "due." The wheel, like the coin, has no memory.
The probability of getting a specific sequence of n flips is (0.5)โฟ:
However โ and this is where people's intuition fails โ the probability of getting any sequence of 10 flips is also 1 in 1,024. The sequence HTHTHTHTHT is just as unlikely as HHHHHHHHHH. All sequences of 10 flips have exactly equal probability. Streaks feel special because we pattern-match to them, not because they're statistically unusual.
In 100 coin flips, how long do you expect the longest streak to be? Most people guess 4โ5. The mathematical expectation is actually around 6โ7 consecutive heads or tails.
In 1,000 flips, the expected longest streak is about 9โ10. In 10,000 flips, about 13. Long streaks in random data are far more common than human intuition expects โ which is why people falsely detect "patterns" in random sequences.
The binomial probability formula gives the exact probability of getting exactly k heads in n flips of a fair coin:
P(X = k) = C(n,k) ร (0.5)โฟ
Where C(n,k) = n! รท (k! ร (nโk)!) is the number of combinations.
Example: probability of exactly 3 heads in 5 flips:
Over a very large number of flips, the proportion of heads converges toward 50%. But this doesn't mean the number of heads equals the number of tails โ it means the ratio approaches 0.5.
After 10 flips: you might have 7 heads (70%) โ 2 extra heads
After 1,000 flips: you might have 520 heads (52%) โ 20 extra heads, but ratio closer to 50%
After 10,000 flips: you might have 5,020 heads (50.2%) โ 20 extra heads, but ratio very close to 50%
Notice: the absolute difference from perfect balance tends to grow, but the relative proportion converges. This is often misunderstood as "the coin must even out" โ it doesn't. It just dilutes.
Interestingly, research suggests physical coin flips are not perfectly 50/50. A 2023 study by Bartos et al. involving 350,757 coin flips found that coins land on the same side they started on about 50.8% of the time โ a small but statistically significant bias toward the starting position due to precession in the flip. For practical purposes, a coin flip is fair. But if you need true randomness, a computer-generated random number generator is more reliable than a physical coin.
Use our free Coin Flip Simulator — results appear as you type. No sign-up needed!
🚀 Open Coin Flip Simulator Free