Dice Probability Calculator

Dice Probability Calculator

Growing AI Skill PRO

Enter Calculation

Formula

P(sum=T)=N(T)snwhere{n=Number of dices=Sides per dieT=Target sumN(T)=ways to roll sum T with n dice\begin{gathered} P(\text{sum}=T) = \frac{N(T)}{s^{n}} \\[1.5em] \text{where}\quad \left\{ \begin{aligned} n &= \text{Number of dice} \\ s &= \text{Sides per die} \\ T &= \text{Target sum} \\ N(T) &= \text{ways to roll sum } T \text{ with } n \text{ dice} \end{aligned} \right. \end{gathered}
Usage stats

Advertisement

Results

Probability of rolling that sum
16.6667%
P = 0.166667
Favorable outcomes 6
Total possible outcomes 36
Probability (decimal) 0.166667
Odds against 5 : 1
Possible sum range 2 to 12

Report an error on this page

What is the Dice Probability Calculator?

This tool computes the exact probability of rolling a chosen total when you throw several dice at once. You choose how many dice (\(n\)), how many sides each die has (\(s\)), and the target sum you want. The calculator counts every combination of faces that adds up to that target and divides it by all possible outcomes, giving you the probability, the percentage, and the odds against.

How to use it

Enter the number of dice, the sides per die (6 for standard dice, but any value from 2 to 100 works), and your target sum. Press calculate to see the favorable outcomes, total outcomes, decimal probability, percentage chance, and the odds. The valid sum range (\(n\) to \(n \times s\)) is shown so you know which targets are even possible.

The formula explained

For \(n\) dice with \(s\) sides, there are \(s^{n}\) equally likely ordered outcomes. The probability of a given sum is the number of those outcomes that hit the sum, divided by \(s^{n}\). The probability of a given sum is given by:

$$P(\text{sum}=T) = \frac{N(T)}{s^{n}}$$

where

$$\left\{ \begin{aligned} n &= \text{Number of dice} \\ s &= \text{Sides per die} \\ T &= \text{Target sum} \\ N(T) &= \text{ways to roll sum } T \text{ with } n \text{ dice} \end{aligned} \right.$$

The calculator counts the favorable outcomes using dynamic programming — building up the number of ways to reach each running total one die at a time — which is exact even for many dice.

Advertisement
Bar chart of probability distribution for the sum of two dice peaking at the middle value
The probability of each sum forms a peaked distribution, highest for middle sums.

Worked example

Roll two standard six-sided dice (\(n = 2\), \(s = 6\)) and aim for a sum of 7. The combinations are (1,6),(2,5),(3,4),(4,3),(5,2),(6,1) = 6 ways. Total outcomes = \(6^{2} = 36\). So $$P = \frac{6}{36} = 0.1667,$$ or 16.67% — the most likely single total when rolling 2d6.

Six by six grid of two-dice outcomes with cells for one target sum highlighted
Each highlighted cell is a favorable combination out of all 36 equally likely outcomes.

2d6 Sum Probability Table

Two fair six-sided dice have \(6^2 = 36\) equally likely ordered outcomes. The table shows how many of those outcomes produce each sum.

Sum Ways Probability Percentage
2 1 1/36 2.78%
3 2 2/36 5.56%
4 3 3/36 8.33%
5 4 4/36 11.11%
6 5 5/36 13.89%
7 6 6/36 16.67%
8 5 5/36 13.89%
9 4 4/36 11.11%
10 3 3/36 8.33%
11 2 2/36 5.56%
12 1 1/36 2.78%

The ways add up to 36. The distribution is symmetric around 7, which is the most likely sum.

Comparing Common Dice Setups

All dice are assumed fair, with sides numbered 1 to s. Total outcomes are \(s^n\).

Setup Total outcomes Range of sums Most likely sum Ways for that sum Probability
1d6 6 1–6 Any (all equal) 1 16.67%
2d6 36 2–12 7 6 16.67%
3d6 216 3–18 10 and 11 27 each 12.5%
4d6 1,296 4–24 14 146 about 11.27%
1d20 20 1–20 Any (all equal) 1 5%
2d10 100 2–20 11 10 10%

Example for 3d6: \(P(\text{sum}=10) = \frac{27}{216} = 0.125 = 12.5\%\). A single die is uniform, but adding more dice pushes the probability toward the middle, and the peak gets lower in percentage as the number of outcomes grows.

Advertisement

Interpreting Your Result

  • Per throw, long-run frequency. The probability is the chance on one throw of the dice, and over many throws the share of matching results tends toward it. It does not guarantee what happens in any short run of throws.
  • Converting to odds. Odds against an event are \((1-p):p\). For a sum of 7 on 2d6, \(p = \frac{6}{36} = \frac{1}{6}\), so the odds against are \(\frac{5}{6}:\frac{1}{6} = 5:1\).
  • Middle versus extremes. Sums near the middle of the range can be made in many more ways than sums near the ends. Rolling all minimum faces or all maximum faces can happen in only one way, so its probability is \(\frac{1}{s^n}\). For 3d6, a sum of 3 or of 18 has probability \(\frac{1}{216} \approx 0.46\%\).
  • Independence. Each throw is independent of earlier ones. If 7 has not come up for ten throws, the chance on the next throw is still 1/6. Believing otherwise is the gambler's fallacy.
  • “At least” or “at most” targets. This tool gives the probability of one exact sum. For a range, find the ways for each qualifying sum and add them before dividing by \(s^n\). For example, 2d6 totaling at least 10 has \(3+2+1 = 6\) ways, so \(\frac{6}{36} \approx 16.67\%\).

A target outside the possible range (below n or above n×s) has probability 0.

FAQ

Why is 7 the most common total on 2d6? Because more face combinations add up to 7 than any other sum, it sits at the peak of the bell-shaped distribution.

What does "odds against" mean? It is the ratio of unfavorable outcomes to favorable ones. Odds of 5:1 means five losing outcomes for every winning one.

Can sums outside the range happen? No. With \(n\) dice you cannot roll less than \(n\) or more than \(n \times s\), so any target outside that range has probability 0.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators