Dice Probability Calculator

Exact probability that the sum of 1 to 20 dice (2 to 100 sides) equals, is at least, or is at most a target, plus the mean, SD and "at least one die shows X".

1 to 20.
2 to 100. All dice are fair and have the same number of sides, numbered from 1.
A whole number. The smallest possible sum is the number of dice, the largest is dice × sides.
A whole number. A face larger than the number of sides can never show, so its probability is 0.

Results

P(sum = 7)
0.166667
P(sum ≥ 7)
0.583333
P(sum ≤ 7)
0.583333
P(at least one die shows 6)
0.305556
Mean of the sum, dice × (sides + 1) ÷ 2
7.00
Standard deviation of the sum
2.4152
Possible sums
2 to 12
Most likely sum (lowest if tied)
7
Equally likely rolls (sides ^ dice)
36

How it’s calculated

This calculator finds the exact distribution of the total of several fair dice. It does not simulate or approximate: it adds up the ways each total can occur by convolving the one-die distribution with itself once per die, so the numbers are exact to rounding.

one die: P(face) = 1 ÷ sides sum of n dice: P(S = s) = [P(Sn−1 = s−1) + … + P(Sn−1 = s−sides)] ÷ sides mean = n · (sides + 1) ÷ 2, variance = n · (sides² − 1) ÷ 12 P(at least one die shows X) = 1 − ((sides − 1) ÷ sides)^n

Worked example: two six-sided dice, 36 equally likely rolls. A sum of 7 happens 6 ways (1+6, 2+5, 3+4, 4+3, 5+2, 6+1), so P(sum = 7) = 6 ÷ 36 = 0.1667. P(sum ≥ 10) = (3 + 2 + 1) ÷ 36 = 6 ÷ 36, and P(sum ≤ 4) = (1 + 2 + 3) ÷ 36 = 6 ÷ 36. The chance that at least one die shows a 6 is 1 − (5 ÷ 6)² = 11 ÷ 36 = 0.3056. The mean is 2 × 3.5 = 7 and the standard deviation is √(2 × 35 ÷ 12) = 2.415.

Sums near the middle are more likely than the extremes, and the more dice you add the closer the shape gets to a bell curve (the central limit theorem). Use "Possible sums" and "Most likely sum" to see the range.

Frequently asked questions

Why is 7 the most likely total with two dice?

More pairs add up to 7 than to any other total: six of the 36 rolls. A total of 2 or 12 has only one way each.

How do I find "at least" and "at most"?

Use the P(sum ≥ s) and P(sum ≤ s) results. "More than s" is P(sum ≥ s + 1) and "fewer than s" is P(sum ≤ s − 1), so just change the target.

Does it work for dice with different numbers of sides?

Not mixed together: all dice must have the same number of sides. For a mix such as 1d6 + 1d8, calculate each separately or count the combinations by hand.

What if my die is not numbered from 1?

Shift the target. If each face is numbered 0 to 5 instead of 1 to 6, add the number of dice to your target sum.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator