Coin Flip and Probability Mathematics
Coin flipping is one of the simplest ways to make a decision, and it goes back at least to ancient Rome. The Roman writer Macrobius describes children tossing coins and calling out "capita aut navia" (heads or ships), because old Roman coins showed a head on one side and a ship on the other.
Theoretical Probability: 50/50?
For an ideal coin, the probability of heads on any flip is exactly ½, or 50%. Real flips show a small bias, but it favors the side the coin started on, not heads or tails. A 2007 model by Diaconis, Holmes and Montgomery at Stanford predicted this effect at about 51%. In 2023, Bartoš and colleagues measured it over 350,757 flips: coins landed on their starting side 50.8% of the time, while heads came up 50.0% of the time. A digital simulator has no starting side, so the effect does not exist here.
The Law of Large Numbers
Whether a single flip lands heads or tails is completely unpredictable. But as the number of flips grows, results move toward 50%. Statistics calls this the law of large numbers. Getting 8 or more of the same side in 10 flips is not unusual, with a probability of 112/1,024, about 10.9%. In 10,000 flips, by contrast, the number of tails lands between 4,900 and 5,100 about 95.6% of the time. To look at this more closely, use the standard deviation calculator.
Coin Flip Probability Table
| Outcome | Probability |
|---|---|
| Heads in 1 flip | 1/2 = 50% |
| 2 heads in 2 flips | 1/4 = 25% |
| At least 1 heads in 3 flips | 7/8 = 87.5% |
| Exactly 5 heads in 10 flips | 252/1,024 ≈ 24.6% |
| Exactly 50 heads in 100 flips | ≈ 8.0% |
| 40 to 60 heads in 100 flips | ≈ 96.5% |
Is the Simulator Different from a Real Coin Flip?
The browser simulator uses JavaScript's Math.random() function. It is not cryptographic, but its results are unpredictable enough for everyday use. It works well for choosing between two options, deciding who goes first or learning about probability. If you need more options, use the random number generator.