- Home
- Tools
- Generators
- Coin Flip
Coin Flip
Heads or tails, with a running tally.
Heads or Tails?
or press the space bar
Tally
- Heads
- 0
- –
- Tails
- 0
- –
- Flips
- 0
- Longest streak
- 0
- –
Every flip starts from scratch
A coin has no memory. After five heads in a row, the chance of heads on the next flip is still one in two; tails is not "due". Believing that it is has a name, the gambler's fallacy, and the tally is a good cure for it. Keep flipping and the percentages creep towards 50%. That happens because an early streak gets diluted by the hundreds of flips that follow, not because anything makes up for it.
Creeping towards 50% does not mean the two counts end up equal either. After 1,000 flips, a split like 515 to 485 is entirely normal: about one series in three is at least that lopsided.
Streaks are normal
People expect a random series to switch sides more often than it does. In 100 flips, the longest run of the same side is almost seven long on average. A run of six or more shows up in 81% of all series of 100 flips, a run of seven or more in 54%. A streak of six is therefore no sign that something is wrong with the coin. A hundred flips without a run of five would be the odd result: that happens only 3% of the time.
The line under the tally tells you how common your own longest streak is for the number of flips you have made.
Where the randomness comes from
Each flip takes one number from your browser's cryptographic random generator, the same source that encryption keys are made from, and looks at whether it is even or odd. The turning coin is there for the suspense. The outcome is fixed the moment you press the button, and it is shown and counted when the coin lands.
Flipping several coins at once is the same as flipping one coin that many times. Ten coins give ten separate results. The tally takes them from left to right, and that is also the order in which streaks are counted.
Your own two choices
Give the sides a name to let the coin settle something: pizza or sushi, who does the dishes. The coin is just as fair whatever is written on it. And if you catch yourself hoping for one side while it is in the air, you have your answer before it lands.