Coin Flipper

How to use it

  1. Tap the coin to flip it. The result is read out to screen readers, and the recent history and running tally appear underneath.
  2. To flip many coins at once, enter a number up to 1,000 and press Flip them: you get the heads and tails count, the percentage and the longest streak.
  3. For a decision that should not hang on a single toss, use Best of 3, 5 or 7.

How it works

Each flip takes one bit from crypto.getRandomValues, the Web Crypto function browsers provide for cryptographically strong random values; the site never uses Math.random for flips. One random byte gives eight flips, and every bit is equally likely to be 0 or 1 and independent of the others. The spinning animation is only decoration and is skipped if your device asks for reduced motion.

What we tested

On October 14, 2026 we ran the page’s own flip function 10 million times using the same Web Crypto API: 4,999,252 heads (49.9925%, z = -0.473); the four pairs HH, HT, TH and TT appeared equally often (chi-square 1.55 on 3 degrees of freedom), so one flip says nothing about the next; and all eight bit positions in each random byte were balanced (chi-square 3.48 on 7). The longest streak in 100,000 blocks of 100 flips matched its exact probabilities (chi-square 1.37 on 6), and 100,000 best-of-5 games split 49,739 heads to 50,261 tails with game lengths matching 1/4, 3/8 and 3/8. A deliberately broken version that reused bits failed the test. Inside Chromium the same function passed again on 2,000,000 flips (z = -1.481, pairs chi-square 4.46), and the longest streak in 2,000 blocks of 1,000 flips matched its exact distribution (chi-square 4.73). One of our 1,000-coin test batches produced 18 tails in a row; at that length the chance is about 0.37%, rare but exactly what a fair generator occasionally does. In Chromium: a tap showed the flip animation and then Tails; ten taps built a 10-flip history and tally; 1,000 coins gave 500 heads with the longest streak; best of 5 named a winner with the sequence; 5,000 coins showed a message; with reduced motion the result appeared instantly; the page fitted a 390 px phone with no errors.

Longest streak in 100 flipsObserved (of 100,000)Expected
4 or fewer2,7792,831
516,47916,487
626,45226,448
722,78222,757
814,67514,621
98,2048,190
10 or more8,6298,666

Frequently Asked Questions

Is this coin flip really 50/50?+
Yes. Each flip is one bit from your browser’s cryptographic random generator (crypto.getRandomValues), which is designed to be unpredictable. In our test of 10 million flips it gave 49.99252% heads, well within normal chance variation.
Is a real coin flip 50/50?+
Heads and tails are, but the starting side matters a little. In a study of 350,757 real tosses by 48 people (Bartoš and colleagues, published in the Journal of the American Statistical Association in 2025), coins landed on the side they started 50.8% of the time, while heads overall came up 50.0%. A digital flip has no starting side, so it has no such bias.
How long a streak of heads or tails is normal?+
Longer than most people expect. In 100 flips the most likely longest streak is 6 or 7 in a row, and the median is 7; in our 100,000 simulated blocks of 100 flips about 9% had a streak of 10 or more.
After five heads in a row, is tails more likely?+
No. Each flip is independent: the chance of tails is still exactly 50%. Our test of 10 million flips found no dependence between one flip and the next.
How does best of 3, 5 or 7 work?+
The coin is flipped until one side has a majority, for example 3 wins in a best of 5, and the game stops there. A best of 5 ends after 3 flips a quarter of the time and after 4 or 5 flips three-eighths of the time each.
Is anything recorded?+
No. Flips happen in your browser and the history disappears when you leave the page.

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service