Flip a Coin

Flip a virtual coin — one toss or many, with a running heads and tails count.

Result

Press Flip, or the coin itself.

Flips at once

Each flip is 50/50, drawn from your browser’s cryptographic random generator.

Flips a coin when you press Flip or the coin itself. Each flip is one random bit from your browser’s cryptographic random generator, so heads and tails are exactly as likely, and the result is decided before the coin turns: the animation only shows it.

Flips at once tosses 1, 3, 5, 10, 100 or a custom number of coins, up to 1,000, and shows each one in order. Custom labels renames the two sides, to decide between two options by name; labels can be up to 30 characters and are remembered on your device.

Reading the count

This session counts every flip since the page opened or since Reset: the number of heads and tails, each as a percentage, and the longest streak of the same side. A streak carries on from one press to the next. History lists the recent presses. Neither is stored, so both start empty when the page is reloaded.

The percentages drift towards 50% as flips add up, but slowly, and the coin does not correct itself: after five heads in a row the next flip is still 50/50. Long streaks are also more common than they feel. In 100 flips, a streak of five or more of the same side turns up 97.2% of the time, and one of seven or more 54.2% of the time. A session without a long streak is the unusual one.

How likely is a streak?

Chance of at least one streak of the same side, by number of flips
Streak of10 flips20 flips50 flips100 flips
3 or more82.6%97.9%100.0%100.0%
4 or more46.5%76.8%98.1%100.0%
5 or more21.7%45.8%82.1%97.2%
6 or more9.4%23.7%54.4%80.7%
7 or more3.9%11.5%30.9%54.2%
8 or more1.6%5.4%16.2%31.5%

Frequently asked questions

Very nearly, with a small lean towards the side that faced up when it was tossed. Persi Diaconis, Susan Holmes and Richard Montgomery predicted this from the physics of a spinning coin in “Dynamical Bias in the Coin Toss” (SIAM Review, 2007). A 2023 study led by František Bartoš recorded 350,757 flips by hand and found the coin landed on its starting side 50.8% of the time. Heads and tails themselves came up equally. This coin has no starting side and no lean.
Set Flips at once to 3 or 5 and flip once: the result gives the count for each side, and an odd number of flips always has a winner.

See also