Dice Probability Calculator
Find the exact probability of any dice roll outcome. Supports standard d6, d8, d10, d12, d20 and custom dice.
🎲 What is Dice Probability?
Dice probability is the branch of combinatorics and probability theory that deals with computing the likelihood of specific outcomes when one or more dice are rolled. Each face of a fair die is equally likely to appear, making dice problems elegant examples of discrete uniform distributions and, when multiple dice are combined, of convolution in probability.
The most familiar example is rolling two six-sided dice (2d6) and asking for the probability of a given sum. The total number of equally likely outcomes is 6 × 6 = 36. Because there are more ways to achieve a middle sum (like 7) than an extreme one (like 2 or 12), the distribution is triangular rather than uniform. The sum 7 can be made in 6 ways out of 36, giving a probability of 1/6 ≈ 16.67%.
Dice probability has practical applications in board games, tabletop role-playing games (such as Dungeons & Dragons), war games, casino games, and in teaching statistics and probability. It also appears in real-world risk modelling, where sums of independent random variables approximate the shape that many dice together produce.
As you roll more dice, the distribution of sums moves toward a bell curve. This is a direct consequence of the Central Limit Theorem: the sum of many independent, identically distributed random variables converges to a normal distribution regardless of the shape of the original distribution. Even with just 3 or 4 dice, the bell-shaped pattern is clearly visible.
This calculator uses a dynamic programming algorithm to compute exact probabilities for up to 10 dice each with up to 20 sides. The results are shown as a percentage, a simplified fraction, the raw count of favourable outcomes, and the total number of equally likely outcomes.
Formula and Algorithm
For n dice each with s sides, the total number of equally likely outcomes is:
The number of ways to achieve a specific sum k is the count of ordered tuples (d1, d2, ..., dn) where each di is between 1 and s and d1 + d2 + ... + dn = k. This count is computed using dynamic programming:
The probability of rolling exactly the target sum k is:
For a range [min, max], sum the counts across all sums in the range:
Expected value of the sum of n dice each with s sides:
How to Use This Calculator
- Choose your mode — select Exact Sum to find the probability of rolling a specific total, or Sum Range to find the probability of rolling within minimum and maximum bounds.
- Set number of dice — enter how many dice you are rolling (1 to 10).
- Set sides per die — enter the number of faces on each die (2 to 20). Common values: 4 (d4), 6 (d6), 8 (d8), 10 (d10), 12 (d12), 20 (d20).
- Enter your target — for Exact mode, enter the sum you want to hit. For Range mode, enter the minimum and maximum sums (both inclusive).
- Click Calculate — view the probability as a percentage, simplified fraction, favourable ways, and total outcomes.