Coin Flip: Heads or Tails
Flip one coin, or 10 or 100 at once, and see the heads and tails count for up to the last 100 flips.
Runs in your browser: your files and text are not uploaded. Free, no account needed.
Last updated: · Reviewed by the QuickTooly Team
How each flip is decided
Each flip compares Math.random() with 0.5: below 0.5 is Heads, anything else is Tails. Math.random() is the browser's general-purpose pseudo-random generator, not the cryptographic crypto.getRandomValues(). The split is 50/50 for any practical purpose and there is no modulo step to skew it, but the sequence is not designed to be unpredictable. Use it to decide who goes first, not for bets, gambling or anything where someone gains by predicting the result.
Reading the count and history
- Batches: Flip x10 and Flip x100 skip the animation and add every result at once. The large result shows the last coin of the batch.
- History: the list and the Heads and Tails totals cover at most the last 100 flips, latest batch first. Older flips drop off. Clear, or reloading the page, starts over.
- Streaks: five heads in a row is not a sign of a broken coin. For any five flips the chance is (1/2)5 = 1/32, about 3.1%, and the next flip is still 50/50.
Frequently Asked Questions
Why did 100 flips not give exactly 50 heads?
Each flip is independent, so the total varies from run to run. With 100 fair flips, the number of heads lands between 40 and 60 about 96% of the time; 50 exactly happens in only about 8% of runs.
Related Tools
- Dice Roller: when you need more than two outcomes, from D4 to D100.
- Spin Wheel: pick between named options instead of heads and tails.
- Random Number Generator: draw a number from any range, with or without repeats.