About the Coin Flip
Coin Flip is a virtual coin toss for settling decisions, starting games or exploring probability. Click the coin or the Flip Coin button, watch it spin, and get heads or tails. The tool also tracks your recent results, the heads-to-tails split and your current streak.
How it works
When you flip, the coin plays a 0.7-second spinning animation, then the tool draws a number from Math.random between 0 and 1. Above 0.5 is Heads; otherwise it's Tails, which is an even 50/50 chance for practical purposes. Each flip is independent of the ones before.
Results are added to a history that keeps the most recent 20 flips, and the heads and tails counts and percentages are calculated from that history. Separately, the tool counts how many times in a row the latest side has come up and shows the streak once it reaches two. Reset clears the history and the streak.
How to use
- 1
Click Flip Coin, or click the coin itself.
- 2
Wait for the spin to finish and read Heads or Tails.
- 3
Check the counts, percentages and the row of recent H and T markers.
- 4
Click Reset to clear the history and start fresh.
Worked examples
Who goes first
Two players call heads or tails before a chess game.
Probability experiment
A class flips 20 times and records the result.
An exact 10-10 split happens only about 18% of the time with 20 fair flips, so small imbalances are normal.
Frequently asked questions
Is each flip truly 50/50?+
Yes, for all practical purposes. Each flip is independent and heads and tails are equally likely.
Can I flip multiple coins at once?+
No, it flips one coin at a time. Flip repeatedly and use the history to see several results.
Why are my results not exactly half heads?+
Random results vary. Over 20 flips, splits like 8-12 or 12-8 are common, and the percentages only settle near 50% over many flips.
How many flips does the history keep?+
The last 20. The counts and percentages are based on those 20, while the streak counter keeps counting until the side changes or you reset.
Does a long streak mean the coin is unfair?+
No. Streaks of four or five are normal in a few dozen flips. Each flip still has the same 50/50 chance.