Coin & Dice Probability Simulator

Flip a coin or roll dice 1, 10, 100 or 10,000 times. Compare what actually happened with what probability predicts — and watch the two get closer as the number of trials grows.

Grades 5–9FreeNo sign-up

Experiment

Results vs. theory

Running proportion of heads

Theoretical vs. experimental probability

Theoretical probability is what should happen based on reasoning. A fair coin has 2 equally likely outcomes, so P(heads) = 1/2. A fair die has 6, so P(rolling a 6) = 1/6.

Experimental probability is what actually happened in your trials:

Experimental probability = (number of times the event happened) ÷ (number of trials)

If you flip a coin 10 times and get 7 heads, the experimental probability of heads is 7/10 = 70%. That's not wrong — small experiments wobble a lot.

The law of large numbers

Press ×1 a few times and the running-proportion chart jumps around wildly. Now press ×10,000. The line settles down and hugs the dashed “theory” line. This is the law of large numbers: as the number of trials grows, the experimental probability gets closer and closer to the theoretical probability.

It does not mean that a coin “owes” you tails after a run of heads — each flip is independent. Earlier streaks are simply diluted by the huge number of later flips.

Why does 7 come up most with two dice?

Choose Sum of two dice and roll 10,000 times. The bar chart forms a triangle peaking at 7. There are 36 equally likely ways two dice can land, and 6 of them add to 7 (1+6, 2+5, 3+4, 4+3, 5+2, 6+1), so P(7) = 6/36 = 1/6. Only one way gives 2 (1+1) and one gives 12 (6+6), so each has probability 1/36.

Sum23456789101112
Ways12345654321

Experiments to try

Probabilities are fractions — use the fraction visualizer to picture 1/6 and 1/36, or the percentage calculator to turn results into percents.

Frequently asked questions

What is the probability of getting heads on a coin flip?

For a fair coin the theoretical probability of heads is 1/2, or 50%. In a real experiment the share of heads varies, but it gets closer to 50% as you flip more times.

What is the difference between experimental and theoretical probability?

Theoretical probability is calculated from equally likely outcomes, such as 1/6 for each face of a die. Experimental probability is the fraction of trials in which the event actually happened.

What is the law of large numbers?

It says that as you repeat a random experiment more and more times, the experimental probability of an event tends to get closer to its theoretical probability.

What is the most likely sum when rolling two dice?

Seven. Six of the 36 equally likely outcomes add to 7, giving a probability of 6/36 = 1/6, more than any other sum.

Is this simulator truly random?

It uses your browser’s random number generator, which is a high-quality pseudo-random generator. It behaves like a fair coin or die for classroom experiments.