Flip a Coin

Heads or tails? Tap the coin. A running tally keeps score.

Tap the coin to flip

Last reviewed:

Coin flip probability table

Each flip is independent. The coin has no memory, so the chance of heads is 1 in 2 every time, whatever came before. Chances for a string of flips multiply, which is why a long run of one side gets rare quickly.

FlipsAll headsAt least one head
11 in 2 (50%)50%
21 in 4 (25%)75%
31 in 8 (12.5%)87.5%
41 in 16 (6.25%)93.75%
51 in 32 (3.13%)96.88%
101 in 1,024 (0.098%)99.90%
Chance of one exact sequence of n flips = 1 ÷ 2ⁿ
Heads, heads, tails, heads, tails is exactly as likely as five heads: 1 in 32

Why streaks happen

People expect random results to swap back and forth more than they really do. Made-up sequences tend to avoid long runs; real flips don't. In 20 flips there is about a 77% chance of four or more of the same side in a row, so a streak is normal, not a sign that the coin is stuck.

FlipsRun of the same sideChance of seeing one
104 or more in a row46.5%
205 or more in a row45.8%
506 or more in a row54.4%
1007 or more in a row54.2%

The opposite mistake is the gambler's fallacy: after five heads, tails is not due. The next flip is still 50/50. And while the share of heads drifts toward half over many flips, the counts rarely match exactly. In 10 flips, an exact 5 to 5 split happens only about 25% of the time, and after 100 flips the average gap between heads and tails is about 8.

Number of heads in 10 flips
HeadsChance
524.6%
4 or 641.0%
3 or 723.4%
2 or 88.8%
1 or 92.0%
0 or 100.2%

A coin flip experiment for the classroom

Flipping a coin 50 times and keeping a tally is one of the quickest ways to show what randomness really looks like. Before you start, have everyone write down how many heads they expect. Then compare: real results usually spread out further than the guesses do.

FlipsExpected headsRange that covers about 96% of results
502518 to 32
1005040 to 60

Then pool the whole class's results. Thirty students flipping 50 times each gives 1,500 flips, and the combined share of heads usually lands much closer to 50% than any one student's did. That's the law of large numbers in action: proportions settle down as the count grows, even though individual runs stay unpredictable.

Using a coin to choose between three or four options

A coin has two sides, but two flips give four equally likely outcomes, which is enough for four options. For three, use the same two flips and simply flip again when the fourth outcome comes up.

First flipSecond flipFour optionsThree options
HeadsHeadsOption AOption A
HeadsTailsOption BOption B
TailsHeadsOption COption C
TailsTailsOption DFlip both again

Beyond four choices, flipping gets tedious. The Spin the Wheel picker or the Dice Roller settles it in one go.

How to make a biased coin fair

A bent coin, a bottle cap or a coin spun on a table can favor one side heavily. In 1951 the mathematician John von Neumann described a fix that works even when you have no idea how big the bias is.

  1. Flip twice.
  2. Heads then tails counts as heads.
  3. Tails then heads counts as tails.
  4. If both flips match, ignore them and start again.

It works because heads-then-tails and tails-then-heads always have the same probability, p × (1 − p), whatever the bias. The coin on this page doesn't need the trick, since each flip comes from your browser's secure random generator, but it makes a satisfying five-minute probability lesson with a real bottle cap.

Calling the toss fairly

When a flip decides who kicks off, who goes first or who gets the front seat, agree on the rules before anyone flips: who calls, and what each side means. With a real coin the call is made while it's in the air, so nobody can change their mind. With an online flip, have the caller say heads or tails out loud before anyone taps.

Best of three doesn't change the odds with a fair coin; each side still wins half the time. It just takes longer and feels more convincing to whoever lost the first flip.

If the question is really a yes-or-no question, such as whether to order takeout tonight, the Yes or No Generator phrases the answer for you.

Sources and further reading

How to use it

  1. 1Tap the coin or press Flip.
  2. 2Watch it land.
  3. 3The tally tracks heads vs tails.

Questions

Is it really random?

Yes. Results come from your browser's cryptographically secure random generator (crypto.getRandomValues), the same source used for security keys.

Is a virtual coin flip fair?

It is exactly 50/50. Real coins can be very slightly biased; this one isn't.

Also handy: Classroom Timer, Online Timer