What a coin flip simulator shows you
A single coin toss is unpredictable, but run thousands of them and a strict pattern emerges. This simulator flips a fair coin as many times as you like — 10, 100, 1,000, up to 100,000 — and plots two things as the trials roll in: a histogram of heads versus tails, and a line tracking the running proportion of heads. The fun is watching that line, which lurches wildly at first, settle down and hug the 0.5 target as the count climbs. It is probability theory happening in front of you, not on a chalkboard.
The law of large numbers, made visible
The reason the proportion converges has a name: the law of large numbers. It states that as the number of independent trials grows, the observed average gets arbitrarily close to the expected value — here, 0.5. Crucially, it is about the proportion, not the raw count. The gap between the number of heads and the number of tails can actually keep growing in absolute terms even as the fraction of heads marches toward one half. Watching both the line (proportion → 0.5) and the running streak readout drives that distinction home better than any formula.
Why the early flips are so noisy
With only ten flips, a 7-to-3 split (70% heads) is completely ordinary. With 10,000 flips, a result that lopsided would be astronomically unlikely. That shrinking wiggle is variance at work: the standard deviation of the heads proportion falls in proportion to one over the square root of the number of flips. Quadruple the trials and you roughly halve the typical deviation from 50%. The simulator's deviation readout lets you confirm this scaling yourself — a concrete, hands-on look at why bigger samples give more reliable estimates.
Using it to teach statistics
This tool is built for the classroom and the self-learner. A few exercises that work well:
- Convergence: run 10, then 1,000, then 100,000 flips and compare how far the final proportion lands from 0.5 each time.
- Variance scaling: repeat the same run size several times and note how much the outcomes spread — then double the size and watch the spread shrink.
- Streaks: use the longest-streak counter to show that long runs of heads are normal in large samples, which dismantles the gambler's fallacy.
- Expected vs observed: read the live deviation between the observed and theoretical 50% to discuss sampling error.
Export the chart as a PNG or copy the embed code to drop the live demo straight into a lesson page, a worksheet, or a blog post about probability.
What a coin flip simulator shows you
A single coin toss is unpredictable, but run thousands of them and a strict pattern emerges. This simulator flips a fair coin as many times as you like — 10, 100, 1,000, up to 100,000 — and plots two things as the trials roll in: a histogram of heads versus tails, and a line tracking the running proportion of heads. The fun is watching that line, which lurches wildly at first, settle down and hug the 0.5 target as the count climbs. It is probability theory happening in front of you, not on a chalkboard.
The law of large numbers, made visible
The reason the proportion converges has a name: the law of large numbers. It states that as the number of independent trials grows, the observed average gets arbitrarily close to the expected value — here, 0.5. Crucially, it is about the proportion, not the raw count. The gap between the number of heads and the number of tails can actually keep growing in absolute terms even as the fraction of heads marches toward one half. Watching both the line (proportion → 0.5) and the running streak readout drives that distinction home better than any formula.
Why the early flips are so noisy
With only ten flips, a 7-to-3 split (70% heads) is completely ordinary. With 10,000 flips, a result that lopsided would be astronomically unlikely. That shrinking wiggle is variance at work: the standard deviation of the heads proportion falls in proportion to one over the square root of the number of flips. Quadruple the trials and you roughly halve the typical deviation from 50%. The simulator's deviation readout lets you confirm this scaling yourself — a concrete, hands-on look at why bigger samples give more reliable estimates.
Using it to teach statistics
This tool is built for the classroom and the self-learner. A few exercises that work well:
- Convergence: run 10, then 1,000, then 100,000 flips and compare how far the final proportion lands from 0.5 each time.
- Variance scaling: repeat the same run size several times and note how much the outcomes spread — then double the size and watch the spread shrink.
- Streaks: use the longest-streak counter to show that long runs of heads are normal in large samples, which dismantles the gambler's fallacy.
- Expected vs observed: read the live deviation between the observed and theoretical 50% to discuss sampling error.
Export the chart as a PNG or copy the embed code to drop the live demo straight into a lesson page, a worksheet, or a blog post about probability.
Need help shipping something?
Productized MVP development for founders. 9 SaaS apps shipped — yours could be next, in 6 weeks.
Frequently Asked Questions
Common questions about the Coin Flip Simulator
It is the theorem that as you repeat an independent random trial more and more times, the observed proportion converges to the true probability. For a fair coin, the fraction of heads approaches 0.5. This simulator makes that convergence visible as you increase the number of flips.
The law of large numbers governs the proportion, not the raw counts. The absolute difference between heads and tails can keep growing even while the fraction of heads gets closer to 50%. Watching both readouts at once is the clearest way to see why those two facts do not contradict each other.
It depends on how close. The typical deviation from 50% shrinks with one over the square root of the number of flips, so 100 flips often land within a few percent and 10,000 flips usually sit within a fraction of a percent. Run different sizes in the simulator to see the scaling for yourself.
Yes — it was designed for it. Run live convergence demos, export the converging chart as a PNG, or copy the embed code to place the interactive simulator directly on a lesson page or slide. The presets (10 to 100,000 flips) and speed control let you pace the demonstration for a class.
In spirit, yes. A Monte Carlo method estimates a quantity by repeated random sampling, which is exactly what this does — it estimates P(heads) by sampling many flips. The coin is the simplest possible Monte Carlo experiment, which makes it ideal for first learning how the technique converges on an answer.
ℹ️ Disclaimer
This tool is provided for informational and educational purposes only. All processing happens entirely in your browser - no data is sent to or stored on our servers. While we strive for accuracy, we make no warranties about the completeness or reliability of results. Use at your own discretion.