When people reach for it
- Deciding who kicks off, serves first or picks a side
- Breaking a tie between two equally good options
- Flipping 1,000 times in a maths lesson to compare probability with observed frequency
- Playing a board game that calls for a coin when nobody has one
What happens on each flip
Every flip takes one 32-bit number from the browser’s crypto.getRandomValues and turns it into 0 or 1. Since 2^32 divides evenly by 2, no draw is ever thrown away and exactly half of all possible numbers map to each face: 1 is heads, 0 is tails.
No flip looks at the ones before it. Five heads in a row do not make tails “due”, and they do not make heads more likely either. The feeling that a streak must be about to end has a name, the gambler’s fallacy, and it is wrong for a fair coin.
How far 1,000 flips stray from 500
Over 1,000 flips the number of heads has a standard deviation of about 15.8. The count lands between 469 and 531 about 95.4% of the time, and hits exactly 500 only 2.5% of the time. Three real runs gave 497, 499 and 485 heads. The last is 1.5 percentage points off half and entirely ordinary.
Short runs swing more. Ten flips split exactly 5–5 only 24.6% of the time, so three times in four one side comes out ahead. The proportion of heads drifts towards 50% as you flip more, yet the raw gap between heads and tails tends to get wider, not narrower.
Streaks are longer than you expect
In 100 flips there is an 80.7% chance of at least one run of six or more of the same face, 54.2% for seven or more and 31.5% for eight or more. A run of ten or more still turns up 8.7% of the time. Even 20 flips contain a run of five 45.8% of the time.
That makes a good classroom experiment. Ask one group to invent 100 flips in their heads and write them down, and another to record 100 real flips from this tool. Invented sequences usually switch sides too often and rarely contain a run longer than four or five, so the longest streak alone is often enough to tell which list was made up.
Three people, or a coin you do not trust
A coin settles things between two people. With three, a common method is odd one out: everyone flips and whoever shows the face nobody else has is chosen. All three match with probability 2/8 = 25%, so three times in four the first round decides it and otherwise you go again. Set the count to 3 and agree beforehand whose flip is first, second and third, and you can do it here in one press.
If you suspect a physical coin is biased, John von Neumann’s trick fixes it. Flip twice: heads then tails means A, tails then heads means B, and two of the same face means discard and flip twice more. However the coin leans, the two mixed outcomes are equally likely. The coin here is even to begin with, but saying the rule out loud before the flip, such as heads means you go first, still matters.
How a real coin differs
Real coins are not perfectly fair. A study published in 2023 collected 350,757 flips by many different people and found that a coin lands on the side that was facing up before the toss about 50.8% of the time, an effect of the slight wobble in a hand-flipped coin. When the starting side was random, heads and tails came out at 0.500.
This tool has no such lean, and it does not imitate a coin rolling away or landing on its edge either. Results are shown on this screen only, so if you need to prove how a turn order was settled, copy the result text.