Coin Flip

?
0heads
0tails
0total flips
Streak of headsOddsExact
3 in a row1 in 812.5%
5 in a row1 in 323.125%
6 in a row1 in 641.5625%
10 in a row1 in 1,0240.0977%
This flip draws from the Web Crypto API, not Math.random: MDN crypto.getRandomValues fills a buffer with cryptographically strong bytes from the operating system entropy pool. The distinction is honesty about strength - Math.random is fine for games but seeded and reproducible, while the crypto source is the class used for tokens and raffles. Fairness here means every byte is unbiased and no sequence is predictable from the ones before it.
Every flip is independent: after five heads in a row the next flip is still exactly 50/50 - the coin has no memory, and betting against the streak is the gambler's fallacy. Over thousands of flips the counts converge on half (the law of large numbers), but no streak, however long, "corrects" anything. For a different flavor of random answer, the yes or no oracle and the magic 8 ball use the same secure source with more opinions.

Bottom line: 5 heads in a row lands once in 32 sequences - which sounds rare until you flip 200 times, where a 6-streak is not just possible but expected about 3 times over. The streak table below converts any run into its exact odds before your gut does.

Flip a fair coin as many times as you like โ€” each result comes from your browser's cryptographically secure random source, so heads and tails are equally likely every single time, with no hidden patterns. The tally keeps count across flips so you can settle best-of-three, best-of-five, or a best-of-nineteen argument.

The classic use is the decision you already know the answer to: flip the coin and notice which side you were hoping for while it spins. For group decisions, the tally doubles as a neutral referee.

How to use

  1. Press Flip โ€” the coin lands heads or tails instantly.
  2. Keep flipping for best-of series; the running tally tracks heads, tails and total flips.
  3. Hit Reset to clear the tally for the next decision.

Frequently asked questions

Is this online coin flip fair?

Yes โ€” each flip uses the browser's WebCrypto secure random source, the same class of generator used for encryption. Every flip is independent and exactly 50/50 in expectation.

Can I use this for a sports coin toss?

You can, but a physical coin is more ceremonial. This version is handy for remote games, online debates and quick decisions where nobody has a coin.

What are the odds of flipping 5 heads in a row?

1 in 32 (2 to the power of 5, about 3.1%). The tally makes it easy to spot streaks โ€” which appear more often than intuition expects, a famous quirk of true randomness.

Does the coin remember previous flips?

No โ€” every flip is independent. The tally is just for record-keeping; past results have zero influence on the next flip.

Why did I get six heads in a row - is this rigged?

No - streaks are what randomness looks like. The expected number of 6-streaks in 200 flips is about 3 (each window of 6 flips has a 1-in-64 shot, and 200 flips contain 195 windows), and the flip source here is WebCrypto's cryptographically secure generator, the same class of randomness browsers use for encryption keys. Rigged generators produce suspiciously alternating patterns; real randomness clumps.

Related tools