Flip a Coin: Heads or Tails

Flip a fair virtual coin to settle a decision. The page keeps count of heads, tails and your longest streak.

?
0Heads
0Tails
0Flips
0Longest streak

Last flips: —

Probability and the coin toss

A fair coin has two equally likely outcomes, so the chance of heads on any flip is 1/2. The chance of two heads in a row is 1/2 × 1/2 = 1/4, three heads 1/8, and ten heads in a row 1/1024, just under 0.1%. That sounds rare, but in a long series of flips, streaks of five or six are completely normal.

Over many flips the share of heads gets closer to 50%, a result known as the law of large numbers. In 10 flips getting 7 heads is common; in 100 flips the result is usually between about 40 and 60 heads; in 10,000 flips the share of heads is almost always very close to half. Use the "Flip 100 times" button to watch this happen.

The past does not change the next flip. After a run of heads, tails is not "due": the probability is still 50%. This misconception, called the gambler's fallacy, leads people to bet on patterns that do not exist. The same logic applies to dice, roulette and lottery draws.

Real coins are very close to fair, though researchers have found a small tendency to land on the same side they started on when flipped by hand. This virtual coin has no such bias: each result comes from your browser's cryptographic random generator.

How to use it

  1. Press Flip the coin (or tap the coin).
  2. Read the result: heads or tails.
  3. Use Flip 100 times to see how the results even out, and Reset to clear the tally.

Frequently asked questions

Is the coin flip fair?

Yes. Each flip uses your browser's cryptographic random number generator, so heads and tails each have exactly a 50% chance, and no flip depends on the previous ones.

After five heads in a row, is tails more likely?

No. The coin has no memory: the chance is still 50% on every flip. Believing otherwise is known as the gambler's fallacy.

Can I use it for a real decision?

Yes, for informal decisions like who goes first. Some people also find that, while the coin is in the air, they realise which result they are hoping for.

More free tools