Coin Flipper - Online Random Coin Toss Simulator

Flip one or thousands of coins instantly with our online coin flipper — choose fair or biased coins and see heads/tails statistics in real time.

Set the number of flips, choose coin type, and click Flip Coins to simulate random coin tosses with instant statistics.

Coin Flipper - Online Random Coin Toss Simulator
Flip one or thousands of coins instantly with our online coin flipper — choose fair or biased coins and see heads/tails statistics in real time.

A balanced coin where heads and tails each have exactly 50% probability.

About the Coin Flipper

The coin flipper is a random simulation tool that reproduces the outcome of physical coin tosses using a cryptographically seeded pseudo-random number generator. Each simulated flip is statistically independent, meaning the outcome of any one flip has no influence on any other — just like a real, unbiased coin. The simulator supports both fair coins, where heads and tails each have a probability of exactly 50%, and biased coins, where you can set the probability of heads to any value between 0% and 100%. Physical coins are remarkably close to fair in practice. Studies of actual coin tosses by statisticians including Persi Diaconis have found that the bias introduced by real flipping mechanics is tiny — less than 1% in most cases. However, the initial orientation of the coin (heads up or tails up before the toss) can introduce a slight same-side bias of about 51% for landing on the starting face. For practical purposes, a physical coin flip is an excellent approximation of a fair 50/50 random event. Biased coins appear frequently in statistical education and probability theory. A biased coin with a known probability p allows students and researchers to explore how the distribution of outcomes shifts as p departs from 0.5. A coin with p = 0.7 (70% heads) will, over many flips, converge towards 70% heads; but for small numbers of flips, the realized proportion can deviate substantially, demonstrating the role of sample size in stabilizing estimates around the true value. The law of large numbers guarantees that the proportion of heads in a sequence of fair flips converges to 0.5 as the number of flips grows without bound. However, convergence is slow: even after 1,000 flips, the proportion of heads is typically within a few percentage points of 50% but rarely exactly 50%. This simulator makes the law of large numbers tangible — by comparing the results of 10 flips, 100 flips, and 1,000 flips, you can watch the proportion stabilize. Coins are also used in randomized controlled trials for allocation: flipping a coin to assign participants to treatment or control ensures that neither the researcher nor the participant can predict or influence group assignment. In sports, the coin toss before a game determines which team gets to choose ends or kick-off, providing a provably fair mechanism that neither team can game. In game theory, mixed strategies — where a player randomises between two actions — are often described in terms of coin flips with a chosen bias that makes the opponent indifferent between their own strategies. This tool is useful for classroom demonstrations of probability, quick decision-making, probability experiments, and verifying that your intuitions about randomness align with actual simulated data. The sequence display for up to 500 flips lets you visually inspect the pattern of heads and tails and form your own conclusions about how random the output looks.

Coin Flipper Examples

Four scenarios illustrating single flips, probability experiments, large samples, and biased coin testing.

ConfigurationExpected PatternUse Case
1 flip, fair coinH or T (50/50)Single toss for quick decisions — selecting who goes first, breaking a tie, or making a binary choice.
100 flips, fair coin≈ 50 H, 50 TGood sample size for observing the law of large numbers in action; actual proportion typically falls within ±10%.
1000 flips, fair coin≈ 500 H, 500 TLarge sample — statistical significance is detectable. Proportion of heads should be within ±3% of 50%.
500 flips, biased coin (70% heads)≈ 350 H, 150 TModels an unfair game or a manufacturing defect test. The 70% bias becomes clearly visible over many flips.

How to Use the Coin Flipper

  1. Enter the number of coin flips you want to simulate (1 to 10,000) in the Number of Flips field.
  2. Select Fair Coin (50/50) for a standard unbiased flip, or Biased Coin to set a custom heads probability.
  3. If you chose Biased Coin, enter the heads probability as a percentage (e.g. 70 for a 70% chance of heads).
  4. Click Flip Coins. The results show total flips, heads count, tails count, and the percentage of heads.
  5. For 500 or fewer flips, a sequence of H and T characters is displayed so you can inspect the random pattern directly.

Coin Flipper FAQ

Is the coin flipper truly random?
The simulator uses JavaScript's Math.random(), which is based on a pseudo-random number generator (PRNG) seeded by the browser's entropy sources. It passes standard statistical tests for randomness and is suitable for simulations, classroom demos, and casual decision-making. For cryptographic or security-critical applications, you would need a hardware random-number generator rather than a software PRNG.
Why do I not always get exactly 50% heads with a fair coin?
The 50% probability is a long-run average, not a guarantee for any fixed number of flips. For 10 flips, the standard deviation of the number of heads is √(10 × 0.5 × 0.5) ≈ 1.58, so outcomes between 2 and 8 heads are all within two standard deviations of the mean. Getting 4 or 6 heads instead of exactly 5 is perfectly normal. Over thousands of flips, the proportion converges towards 50%.
What is a biased coin used for?
Biased coins are used in probability education to demonstrate how departures from fairness affect the distribution of outcomes. They also model real-world scenarios where two outcomes have unequal probabilities — such as the chance of a thumbtack landing point-up, the probability of a manufacturing defect, or the win probability of a sports team. Setting the bias and observing how many flips it takes for the skew to become apparent is an excellent learning exercise.
How many flips do I need to detect if a coin is biased?
The number of flips needed depends on the size of the bias. A very biased coin (e.g. 90% heads) is detectable within 20–30 flips. A slightly biased coin (e.g. 52% heads) may require hundreds or thousands of flips before the bias becomes statistically distinguishable from noise. The required sample size scales roughly as 1 / (bias − 0.5)², which is why detecting small biases is so expensive in terms of observations.
Does the simulator remember previous results?
No. Each time you click Flip Coins, a completely new simulation is run with fresh random numbers. The previous result is replaced. There is no memory between runs, just as each physical coin toss is independent of every previous toss. If you want to preserve a result, copy the displayed statistics before flipping again.
Can I use this to make fair decisions?
Yes — a fair coin flip is an excellent and widely accepted method for making binary decisions. The simulator's 50/50 fair coin is statistically equivalent to a physical coin toss. For important decisions, you might prefer a physical coin to avoid any perception of manipulation, but for casual tie-breaking, group selection, or educational purposes, the digital coin flipper is a practical and transparent option.