Coin Flip Simulator
Flip one coin or simulate up to 10,000 flips, then compare heads, tails, percentages, expected results and random variation.
Simulate coin flips
Coin Flip Simulator probability
For a fair coin, heads and tails each have a probability of 0.5, or 50%. The Coin Flip Simulator treats every trial independently, which means an earlier result does not change the probability of the next flip. A run of five heads does not make tails more likely on flip six.
Expected tails = number of flips × (1 − probability of heads)
Observed percentage = outcome count ÷ number of flips × 100
Expected values describe the long-run average. They are not guaranteed counts. With 10 fair flips, the expected number of heads is 5, but outcomes such as 4 heads or 7 heads are entirely normal. As the number of trials increases, the observed percentage will usually move closer to the selected probability.
Understanding the simulation results
The result panel shows the number and percentage of heads and tails, the expected heads count and the difference between observed and expected heads. For simulations of 100 flips or fewer, it also prints the full H/T sequence. Longer experiments show the first 100 outcomes so the page remains fast and easy to scan.
| Setting | Meaning | Example |
|---|---|---|
| Number of flips | Independent trials to simulate | 100 |
| Heads probability | Chance of heads on each trial | 50% |
| Expected heads | Flips multiplied by heads probability | 50 |
| Difference | Observed heads minus expected heads | +3 |
Coin Flip Simulator example
Suppose you simulate 100 fair flips. The expected result is 50 heads and 50 tails. If the simulator produces 54 heads and 46 tails, the observed heads rate is 54% and the difference from expectation is +4. That does not show that the process is unfair; random variation naturally creates uneven results.
Fair and biased coin experiments
Keep the heads probability at 50% for an ordinary fair-coin model. To study a biased coin, change the probability. For example, a 60% heads setting gives an expected 60 heads in 100 trials. Values of 0% and 100% are also supported and provide useful boundary tests.
Teachers can use the Coin Flip Simulator to demonstrate experimental probability, expected value, sample size and the law of large numbers. Players can use a single flip for a quick random choice, while writers and organizers can simulate repeated binary outcomes. Do not use a casual browser simulator for regulated gambling, lotteries, cryptography or safety-critical decisions.
Randomness used by this simulator
The simulator uses the browser’s cryptographic random-number generator when available. The MDN Web Docs guide to cryptographic random values explains this browser feature. The simulator maps generated values to the selected probability without storing results on a server.
Even a sound random generator can create streaks, clusters and imbalanced short samples. Random does not mean perfectly alternating. Ten consecutive heads are unlikely for a fair coin, but they remain possible. A larger experiment provides a more stable estimate of the underlying probability.
Related random tools
Frequently asked questions
Is a coin flip always 50/50?
The mathematical model of a fair coin is 50/50. Real coins and flipping methods can introduce tiny physical biases, but 50% is the standard assumption.
Why did I not get equal heads and tails?
Equal probability does not require equal counts in a finite sample. Random variation is expected, especially with few flips.
Can I simulate a biased coin?
Yes. Change the heads probability from 50% to any value between 0% and 100%.
How many flips can I simulate?
You can simulate from 1 to 10,000 independent coin flips at once.
Are previous flips remembered?
No. Results stay visible only on the current page and are not sent to a server or saved after refresh.
Can I export the results?
Yes. Download PDF prints or saves the page, while Download Excel exports the summary and simulated sequence as a CSV file.
Important: This free Coin Flip Simulator is intended for education and entertainment, not certified gambling or security decisions.
Coin Flip Simulator example
For 10 fair coin flips, the expected result is about 5 heads and 5 tails, but any single simulation may differ. As the number of flips increases, the Coin Flip Simulator percentages will usually move closer to the theoretical 50/50 probability.