Dice Probability Calculator
What this calculator does
This calculator computes the probability of rolling specific outcomes with one or more dice. It handles standard 6-sided dice as well as custom dice (4, 8, 10, 12, 20-sided), calculates the probability of hitting a target sum, rolling above or below a threshold, and shows the full probability distribution for any combination of dice.
Dice probability is fundamental to tabletop gaming (D&D, board games, wargames), gambling analysis, statistics education, and game design. Whether you are evaluating the odds of rolling a natural 20, calculating the probability of beating a difficulty check, or designing balanced game mechanics, this tool provides exact probabilities rather than gut feelings.
Understanding dice math also serves as an excellent introduction to probability theory—concepts like expected value, standard deviation, and probability distributions become tangible when applied to something as concrete as rolling dice.
How to use it
- Select the number of dice (e.g. 2).
- Select the type of dice (e.g. d6, d20).
- Enter a target condition: exact sum, at least X, at most X, or a specific combination.
- Review the probability (as a fraction, decimal, and percentage), expected value, and the full distribution chart.
Formulas used
Single die probability: P(specific face) = 1 / Number of faces Example: P(rolling a 6 on a d6) = 1/6 ≈ 16.67%
Sum of multiple dice: The number of ways to roll a sum S with N dice of F faces is calculated using combinatorics (inclusion-exclusion or generating functions). The probability = favorable outcomes / total outcomes. Total outcomes for N dice with F faces = F^N. Example: 2d6 total outcomes = 36. Ways to roll 7 = 6. P(7) = 6/36 = 16.67%.
At least X (cumulative): P(≥ X) = 1 − P(< X) = 1 − P(≤ X−1)
Expected value: E(NdF) = N × (F + 1) / 2 Example: 2d6 → 2 × 3.5 = 7.
Standard deviation: σ(NdF) = √(N × (F² − 1) / 12) Example: 2d6 → √(2 × 35/12) ≈ 2.42
Examples
Example 1 — Rolling 7 or higher on 2d6: P(≥ 7) = 21/36 = 58.33%. This is why 7 is the most common result in games like Craps.
Example 2 — Natural 20 on a d20: P(20) = 1/20 = 5%. Rolling at least 15 (for a difficulty check): P(≥ 15) = 6/20 = 30%.
Example 3 — At least one 6 when rolling 4d6: P(at least one 6) = 1 − P(no sixes) = 1 − (5/6)^4 = 1 − 0.482 = 51.77%.
Tips and common mistakes
- The most likely sum on 2d6 is 7 (6 out of 36 ways), not 6 or 8. The distribution forms a triangle peaking at 7, with 2 and 12 each having only 1 way.
- Probabilities multiply for independent events. Rolling a 6 AND then another 6 = (1/6) × (1/6) = 1/36 ≈ 2.78%. Rolling a 6 OR a 6 on two rolls uses different math (inclusion-exclusion).
- "At least one" is easier to calculate as 1 minus "none." P(at least one 6 in 3 rolls) = 1 − (5/6)³ = 42.1%. Do not try to add individual probabilities.
- The Gambler's Fallacy: Previous rolls do not affect future rolls. After rolling five 1s in a row, the probability of rolling a 1 on the next roll is still exactly 1/6.
- Advantage and disadvantage (D&D): Rolling 2d20 and taking the higher (advantage) shifts the expected value from 10.5 to about 13.8. Taking the lower (disadvantage) drops it to about 7.2. These are powerful mechanics.
- More dice = more predictable sums. The Central Limit Theorem means that as you add more dice, the distribution of sums approaches a normal (bell) curve. Rolling 10d6 will almost always total between 25 and 45.