The Number of Dice slider sets 1 to 6 dice before rolling; it locks once rolling starts and shows Reset to change. Learn more about getting started
Roll 1 shows the dice faces and their sum; Roll 10, Roll 100, Roll 1K and Roll 10K add a batch at once; Reset clears every roll. Recent Rolls lists the last 20 with their sums. Learn more about the roll buttons
The Sum Distribution tab draws a histogram of the sums: blue bars for the actual counts, translucent red bars for the expected counts. Learn more about the sum histogram
The Convergence tab plots the average sum against the number of rolls, with a red dashed line at the expected average, 3.5 per die. Learn more about the convergence graph
The Statistics panel gives Total Rolls, Actual Average, Expected Average, Variance (n×35/12), SD and the Z-Score marked (Normal) or (Unusual!). Learn more about statistics and z-scores
The Dice Sample Space Explorer/Calculator tab lists all 6n outcomes for 1 to 4 dice; Show Probabilities adds each outcome's sum and probability. Learn more about the sample space explorer
Highlight picks a condition such as Sum is..., Specific numbers, Highest/Lowest value, All different numbers, Any Doubles or Even Sum; extra boxes appear for its values, and Probability Analysis gives favorable over total. Learn more about highlight conditions
Dice relationships, Difference conditions and Majority conditions test order, spread and parity across the dice. Learn more about dice relationships
?
100ms
123456
Recent Rolls (Last 0)
No rolls yet
Blue bars show actual frequency. Red bars show expected theoretical distribution.
A standard six-sided die represents a discrete uniform distribution where each face (1, 2, 3, 4, 5, 6) has equal probability 1/6≈0.167. Each roll is independent—previous outcomes don't affect future results—making dice the classic example of memoryless random processes.
When rolling multiple dice, outcomes combine multiplicatively. Two dice produce 62=36 possible outcomes, three dice yield 63=216 possibilities, and so on. The sample space grows exponentially while individual outcome probabilities shrink: each specific combination has probability 1/6n for n dice.
Sum distributions, however, are not uniform. Rolling two dice, a sum of 7 occurs more frequently (6 ways: 1+6, 2+5, 3+4, 4+3, 5+2, 6+1) than a sum of 2 (only one way: 1+1). This creates the characteristic bell curve in sum distributions—middle values have more combinations than extremes. The expected value for a single die is 3.5, and for n dice it's 3.5n.
For comprehensive theory on dice probability including combinatorics and distribution calculations, see dice roll probability model.
Getting Started with the Simulator
DemoDice count, first rolls, reset
Step 0 of 5
The simulator displays dice visually with dots showing the current roll. Select the number of dice (1-6) using the slider before starting—this setting locks once you begin rolling. The default is 2 dice, the classic setup for analyzing sum distributions.
Use the roll buttons to run simulations. "Roll 1" shows individual dice animations. "Roll 10" through "Roll 10K" batch-process rolls instantly for statistical analysis. Two tabs organize visualizations: "Sum Distribution" shows a histogram comparing actual frequencies to expected theoretical values, while "Convergence" plots how the average sum approaches the theoretical expected value.
Recent rolls display in the left panel showing the last 20 outcomes with individual die faces and their sums. Statistics update in real-time, calculating total rolls, actual average, variance, standard deviation, and z-scores.
Understanding Sum Distribution Histograms
DemoHistogram and convergence
Step 0 of 5
The histogram plots sum values on the x-axis and frequency on the y-axis. Blue bars show actual roll counts, while translucent red bars overlay the expected theoretical distribution. With few rolls, blue bars appear jagged and irregular. As rolls accumulate, blue bars converge toward red expected values.
The bell-curve shape emerges naturally. For two dice, sum 7 is most probable (6 ways out of 36 possible outcomes), while extreme sums 2 and 12 are rarest (1 way each). This asymmetry explains why 7 appears roughly six times more often than snake eyes (double 1s) in large samples.
Watch the histogram evolve. After 100 rolls, you'll see rough patterns. After 10,000 rolls, the match between actual and expected becomes striking—demonstrating the Law of Large Numbers visually through the alignment of blue and red bars.
Reading the Convergence Graph
The convergence tab plots actual average sum (blue line) versus number of rolls on the x-axis. The red dashed line marks the theoretical expected value: 3.5 for one die, 7 for two dice, 10.5 for three dice, and so on.
Early rolls show wild fluctuations—the blue line jumps erratically as individual rolls dominate the average. With more data, fluctuations dampen and the blue line gravitates toward the red expected value line. By 10,000 rolls, the lines typically converge within a few percent.
This visualization proves the Law of Large Numbers: short-term randomness gives way to long-term predictability. Individual rolls remain unpredictable, but aggregate behavior becomes increasingly certain as sample size grows.
Interpreting Statistics and Z-Scores
Total rolls and actual average display prominently. Compare actual average to expected average—for two dice, expected is exactly 7.0. Small deviations are normal; large persistent deviations suggest unusual runs or bias.
Variance measures spread in sum values: Var=n×35/12 for n dice. Standard deviation (SD) is the square root of variance. These grow with more dice because absolute variability increases even as relative proportion stabilizes.
The z-score standardizes deviation: (actual average−expected)/(SD/rolls). Values between -2 and 2 are normal (95% of outcomes). Beyond ±2 suggests unusual results. Beyond ±3 (labeled "Unusual!") occurs less than 0.3% of the time under normal randomness.
Using the Sample Space Explorer
DemoSample space explorer
Step 0 of 5
Select number of dice (1-4) to generate all possible outcomes. The grid displays every combination: 6 outcomes for 1 die, 36 for 2 dice, 216 for 3 dice, 1,296 for 4 dice. Each cell shows dice faces visually with sum and individual probability.
Choose highlight conditions to filter outcomes. "Sum is..." provides nine sub-options: equals, greater than, less than, between, prime, perfect square, multiple of, and more. Other conditions include specific numbers (does outcome contain at least one 6?), extreme values (maximum die shows 5), patterns (all different, consecutive, doubles), and relationships (dice in ascending order).
Enable "Show Probabilities" to see P=1/6n for each outcome. The probability analysis panel calculates favorable outcomes, displays the fraction, percentage, and decimal probability automatically.
The Full Sample Space for Two Dice
With two dice selected, the explorer lays out every possible outcome as a card: (1,1), (1,2), and so on through (6,6). There are 6×6=36 of them, and each card notes P=1/36.
Every outcome is equally likely, and that is the assumption everything else on this page rests on. It holds because the dice are fair and independent — the first die's result tells you nothing about the second.
Full sample space, nothing highlighted
All 36 ordered outcomes for two dice, each card carrying its pip faces, its sum and P = 1/36. (2,5) and (5,2) are separate cards - that ordering is what makes some sums likelier than others.
Listing the space in full is what makes these probabilities countable rather than argued. Any event is a set of these cards, and its probability is how many cards it contains divided by 36.
Note that the space is of ordered pairs: (2,5) and (5,2) are two separate cards. That is not a technicality — it is why a sum of 7 is likelier than a sum of 2, since 7 can be made six ways and 2 only one. Treating the two orderings as one outcome would give 21 unequal outcomes and break every count that follows.
Highlighting a Sum: Why 7 Is the Peak
Setting the condition to "sum equals 7" highlights six cards — (1,6), (2,5), (3,4), (4,3), (5,2) and (6,1) — giving
P(sum=7)=366=61≈0.167
They form a diagonal stripe across the grid, which is what any fixed sum looks like here.
Sum equals 7 highlighted
Six cards light up along an anti-diagonal: 6/36 = 1/6. Seven is the peak of the distribution because its diagonal is the longest one the grid can hold.
Seven is the most likely sum precisely because its stripe is the longest one that fits. A sum of 2 needs (1,1) alone and a sum of 12 needs (6,6) alone, while 7 has six ways — and the sums in between fall off symmetrically, which is the triangular shape the simulator's histogram converges toward.
Counting stripes gives the whole distribution without algebra: the number of ways to make a sum s is the number of cells on that anti-diagonal, s−1 ways for s≤7 and 13−s beyond it.
Doubles: a Structural Event
The doubles condition highlights the six cards where both dice match — (1,1) through (6,6) — the main diagonal of the grid.
P(doubles)=366=61
The same probability as a sum of 7, reached by a completely different route.
Doubles highlighted
The main diagonal, also six cards and also 1/6 - but sharing no outcome with the sum-7 event, since doubles always give an even sum.
That coincidence is worth pausing on. "Sum is 7" and "doubles" each cover six of the 36 outcomes, yet they share no outcome at all: a double always has an even sum, and 7 is odd. Two events, equal probability, entirely disjoint.
It also shows why drawing the sample space earns its keep. Both events are immediate to count off the grid — one is an anti-diagonal, the other the main diagonal — where deriving either from a formula takes more care.
An Even Sum: Half the Grid
Highlighting even sums lights 18 of the 36 cards — exactly half.
P(sum is even)=3618=21
The highlighted cells form a checkerboard rather than a stripe or a diagonal.
Even sums highlighted
Eighteen cards in a checkerboard: exactly half. The sum is even precisely when both dice have the same parity.
The result is intuitive once stated the right way: the sum is even exactly when both dice share a parity. Two odds or two evens give an even total, one of each gives an odd one, and since each die is equally likely to be odd or even the two cases split the space evenly.
That parity argument is worth more than the count, because it survives changes the count does not. It gives 1/2 for any even number of sides and for any number of dice, whereas the figure 18/36 is true only of this particular grid.
Setting Advanced Highlight Conditions
DemoHighlight conditions, 2 dice
Step 0 of 5
Sum conditions filter by total. "Equals 7" with 2 dice highlights the 6 outcomes (1+6, 2+5, 3+4, 4+3, 5+2, 6+1) showing 6/36 = 16.67% probability. "Between" allows ranges: sums from 8 to 10 with 3 dice. "Prime" finds outcomes where sum is prime (2, 3, 5, 7, 11, 13, etc.).
Specific number conditions check individual dice. "At least one 6" with 3 dice highlights any outcome containing a 6. "Exactly two 5s" requires precisely two dice showing 5. "None" finds outcomes excluding a number entirely.
Pattern conditions reveal structure. "All different" requires each die to show a unique value (impossible with more dice than faces). "Consecutive" finds sequences like 3-4-5. "Doubles" means at least two dice match. "First die > Second die" checks relationships between specific positions.
Understanding Dice Relationships
Dice relationships examine ordering patterns. "Non-decreasing order" means each die is greater than or equal to the previous: 2-2-4-5 qualifies, but 3-2-4 does not. "Strictly ascending" requires strict inequality: 1-3-5 works, 2-2-4 fails.
"Difference conditions" measure spread. Setting difference to 2 with 2 dice highlights outcomes where (max - min) = 2, like 1-3, 2-4, 3-5, 4-6. This finds outcomes with specific ranges.
"Majority conditions" check even versus odd counts. "Majority even" with 3 dice requires at least 2 dice showing even numbers (2, 4, 6). These conditions demonstrate how constraints reduce favorable outcomes and affect probabilities.
Law of Large Numbers with Dice
Rolling one die a few times yields unpredictable averages—you might get 2.4 or 4.1, far from the theoretical 3.5. With 1,000 rolls, the average typically settles within 3.3 to 3.7. With 10,000 rolls, it's usually between 3.45 and 3.55.
This convergence doesn't make individual rolls predictable. The next roll still has exactly 1/6 chance for each face regardless of history. What converges is the aggregate: random fluctuations become proportionally smaller as data accumulates, diluted by sheer volume.
The simulator's convergence graph visualizes this fundamental theorem. Watch the blue line's erratic early behavior smooth into steady approach toward the red expected value. This principle underlies all statistical inference and sampling theory.
For mathematical foundations of convergence and the Law of Large Numbers, see law of large numbers theory.
Related Probability Tools and Concepts
Coin Toss Simulators - Explore probability with binary outcomes, including Law of Large Numbers demonstrations and sample space analysis.