Coin Flip
Flip a virtual coin online. Simulate single or multiple coin tosses with fair 50/50 probability.
Result
—
Heads —
Tails —
Heads Ratio —
How to Use This Calculator
Enter the number of coin flips you want to simulate (1 to 10,000) and the calculator instantly generates random results. For a single flip, you get "Heads!" or "Tails!". For multiple flips, you see the count and ratio.
Formula
P(heads) = 0.5 per flip
Expected heads in N flips = N × 0.5
P(all heads in N flips) = (0.5)^N
Expected heads in N flips = N × 0.5
P(all heads in N flips) = (0.5)^N
Example
Example: Flipping 100 coins: you might get 52 heads and 48 tails (52% heads ratio). With large numbers, the ratio approaches 50% due to the law of large numbers.
Frequently Asked Questions
- It uses Math.random(), which provides pseudo-random numbers suitable for casual use. For cryptographic randomness, use a hardware random number generator.
- Each flip has exactly a 50% chance of heads and 50% chance of tails, assuming a fair coin.
- The probability is (1/2)^10 = 1/1024 or about 0.098%. Very unlikely but possible.
- Yes! Coin flips are a classic way to make unbiased binary decisions. Some psychologists suggest that your reaction to the result reveals your true preference.