Quick Answer: To test if a coin is fair, flip it at least 100 times (1,000+ is better), count heads and tails, and apply a chi-squared test. If the test p-value is less than 0.05, the coin shows statistically significant bias. Most physical coins pass with small samples but show ~0.8% bias in very large samples.
Why Testing Matters
If you are using a coin flip for a meaningful decision — sports officiating, scientific research, fair selection — it is worth knowing whether your coin or tool is genuinely fair. Small but consistent biases can accumulate meaningfully in repeated use.
The Chi-Squared Test for Coin Fairness
The chi-squared goodness-of-fit test compares observed results to expected results. For a fair coin: if you flip it 100 times, you expect 50 heads and 50 tails.
- Flip the coin n times. Count heads (O₁) and tails (O₂). Expected: n/2 each.
- Calculate: χ² = (O₁ − n/2)² / (n/2) + (O₂ − n/2)² / (n/2)
- Compare to critical value. For 1 degree of freedom, p<0.05 requires χ² > 3.84
- If χ² > 3.84, statistically significant bias is detected
Sample Size Requirements
| Bias You Want to Detect | Sample Size Needed | Notes |
|---|---|---|
| 5% bias (55/45) | ~400 flips | Clearly biased coin |
| 2% bias (52/48) | ~2,500 flips | Moderately biased |
| 1% bias (51/49) | ~10,000 flips | Small bias |
| 0.8% bias (50.8/49.2) | ~15,000 flips | Stanford physical coin finding |
Testing Digital Coin Flip Tools
For digital tools, professional statistical tests (NIST Statistical Test Suite) can evaluate randomness quality across millions of outputs. For a quick practical check: use any online chi-squared calculator with 10,000+ recorded flips from the tool. PickRandom.online's CSPRNG has been verified to pass industry-standard randomness tests.