Flip a Coin 100 Times
Every result, the heads count and the longest streak in one tap. Switch to 1,000 or 10,000 flips to watch the split settle toward 50/50.
Flipping 100 coins…
Each round uses your browser’s cryptographic random number generator, so every flip is an exact 50/50. To flip one coin at a time, with 13 real coins to choose from, use the flip a coin game.
01
What happens when you flip a coin 100 times
You should expect about 50 heads, give or take 5. Exactly 50 is the most likely single count, yet it comes up only 8% of the time.
| Heads in 100 flips | Chance |
|---|---|
| Exactly 50 | 8.0% |
| 45 to 55 | 72.9% |
| 40 to 60 | 96.5% |
| 35 to 65 | 99.8% |
| 60 or more | 2.8% |
| 40 or fewer | 2.8% |
Exact binomial figures for a fair coin.
A result outside 40 to 60 heads happens in only 3.5% of rounds, so a coin that keeps doing it is worth a closer look. One lopsided round on its own proves little, since a fair coin does it about 1 round in 28.
02
How long the longest streak gets in 100 flips
Long runs of one side are normal. The longest run in 100 fair flips averages 7.0, and a run of at least 5 shows up in 97.2% of rounds.
| Longest run of heads or tails | Chance in 100 flips |
|---|---|
| 4 or shorter | 2.8% |
| 5 | 16.5% |
| 6 | 26.5% |
| 7 | 22.8% |
| 8 | 14.6% |
| 9 | 8.2% |
| 10 or longer | 8.7% |
Exact figures, counting runs of either side. The grid above outlines the longest run in every round.
Streaks feel meaningful, but the coin has no memory. After six tails in a row the next flip is still 50/50. A sequence of 100 flips has 96 places where a run of five could start, which is why one almost always turns up.
03
1,000 and 10,000 flips: the law of large numbers
The more you flip, the closer the heads percentage gets to 50%. Switch the simulator to 1,000 or 10,000 flips and watch the line settle inside the funnel on the chart.
| Flips | Standard deviation | About 95% of rounds land in | Exact chance |
|---|---|---|---|
| 100 | 5 heads | 40% to 60% heads | 96.5% |
| 1,000 | 15.8 heads | 47% to 53% heads | 94.6% |
| 10,000 | 50 heads | 49% to 51% heads | 95.6% |
Exact binomial figures. The middle column is the typical gap between the heads count and an even split.
The percentage tightens, but the raw gap between heads and tails grows. After 100 flips the count is typically 5 heads away from even. After 10,000 flips it is typically 50 away. The gap grows with the square root of the number of flips, while the number of flips grows faster, so the share keeps closing in on 50%.
04
Famous long coin flipping experiments
Before computers, people tested the law of large numbers by hand.
5,067
heads in John Kerrich’s 10,000 tosses during World War II
12,012
heads in Karl Pearson’s 24,000 tosses
50.0%
heads across 350,757 flips by Bartoš and colleagues
The mathematician John Kerrich was visiting Copenhagen when Germany invaded Denmark in 1940 and spent the war interned there. With fellow internee Eric Christensen he tossed a coin 10,000 times and logged the running share of heads. He got 5,067 heads, 1.34 standard deviations above an even split. A fair coin lands at least that far from even, in either direction, about 18% of the time, so his coin looked fair.
The statistician Karl Pearson tossed a coin 24,000 times and got 12,012 heads, just 12 above half. The largest test so far, 350,757 flips by a team led by František Bartoš, found heads and tails each at 50.0%. It also found that a coin flipped by hand lands on the side it started on 50.8% of the time, the result behind the real-hand odds option in the flip a coin game.
05
Classroom activity: real or fake 100 flips?
A favorite statistics demonstration: the teacher leaves the room, and on return picks out which sequence of flips was invented.
Split the class into two groups
One group flips a real coin 100 times and writes down every result in order. The other group makes up 100 results that look random.Put both sequences on the board
Write them as rows of H and T, or 1 and 0, without labels.Find the longest run in each
The real sequence almost always has a run of 6 or more of the same side. Invented sequences switch sides too often and rarely do.Check with the simulator
Flip 100 coins here a few times and count how often the longest run reaches 6. Then download the CSV to graph the class results.
Andrew Gelman, a statistics professor at Columbia, described the trick to NPR: people faking flips alternate too much, so the fake one looks too random. Mark Schilling’s 1990 paper The Longest Run of Heads traces the exercise back to a classroom experiment reported by Pál Révész and works out the math. In 100 real flips, 80.7% of rounds have a run of at least 6.
Frequently Asked Questions
In 100 flips of a fair coin, the longest run of heads or tails averages 7.0, and 97.2% of rounds contain a run of at least 5. Source: MeltValue.
Sources
- Wikipedia, John Edmund Kerrich: the 10,000 tosses during his internment in Denmark, the 5,067 heads and the 1.34 standard deviations.
- Bartoš et al., Fair coins tend to land on the same side they started (arXiv): Karl Pearson’s 24,000 tosses, the 350,757 flips, 50.0% heads and the 50.8% same-side rate.
- NPR, interview with Andrew Gelman: the real or fake coin flip classroom demonstration.
- Schilling, The Longest Run of Heads, College Mathematics Journal (1990): the longest-run distribution and the classroom experiment reported by Révész.
- MDN Web Docs, Crypto.getRandomValues(): the browser random number generator the flips use.
