You roll four dice. What is the probability that their sum is 20?

Counting
Easy
A counting puzzle that the multiplication and addition rules solve.
Published

November 17, 2026

NoteQuestion

You roll four fair six-sided dice. What is the probability that the four numbers add up to 20?

Try it first, then open the solution.

The answer is a probability of 35/1296 ≈ 0.027, or about 2.7%.

The method

Three counting rules solve this question and many like it.

When there are finitely many outcomes and all are equally likely, a probability is a ratio of two counts:

\[P(\text{event}) = \frac{\text{outcomes in the event}}{\text{all outcomes}}. \tag{1}\]

When a first part can happen in \(m\) ways and, with each of them, a second part can happen in \(n\) ways, the number of ways for both parts together is

\[\text{ways} = m \times n. \tag{2}\]

When the outcomes of an event split into cases with no outcome in common, the number of ways for the event is the sum over the cases:

\[\text{ways} = \text{ways}_1 + \text{ways}_2 + \cdots + \text{ways}_k. \tag{3}\]

For two dice, listing the 36 pairs of numbers gives the number of ways to reach each sum:

Sum 2 3 4 5 6 7
Ways 1 2 3 4 5 6
Sum 8 9 10 11 12
Ways 5 4 3 2 1

For example, a sum of 8 comes from (2, 6), (3, 5), (4, 4), (5, 3) and (6, 2), so it has 5 ways.

Applying the method

The four dice roll independently, so their \(6^4 = 1296\) ordered outcomes are equally likely. Split the dice into two pairs, pair A with dice 1 and 2, and pair B with dice 3 and 4. The four numbers add up to 20 when the sums of the two pairs add up to 20. A pair adds up to at most 12, so each pair needs at least 8, which leaves five cases.

Within one case, each way for pair A goes with each way for pair B, so (2) multiplies their counts from the table:

Sum of A Sum of B Ways for A Ways for B Ways by (2)
8 12 5 1 5 × 1 = 5
9 11 4 2 4 × 2 = 8
10 10 3 3 3 × 3 = 9
11 9 2 4 2 × 4 = 8
12 8 1 5 1 × 5 = 5

The five cases have no outcome in common, because the sum of pair A differs from case to case, so by (3)

\[\text{ways} = 5 + 8 + 9 + 8 + 5 = 35. \tag{4}\]

By (1),

\[P(\text{sum} = 20) = \frac{35}{1296} \approx 0.027. \tag{5}\]

Three wrong answers are common:

Answer The slip
1/1296 counts only 5, 5, 5, 5
4/1296 counts only the four orders of 6, 6, 6, 2
5/126 ≈ 4.0% counts 5 unordered rolls out of 126 as equally likely, though 5, 5, 5, 5 has 1 order and 3, 5, 6, 6 has 12
from collections import Counter
from itertools import product

pair_ways = Counter(a + b for a, b in product(range(1, 7), repeat=2))
by_pairs = sum(pair_ways[a] * pair_ways[20 - a] for a in range(8, 13))
by_listing = sum(sum(roll) == 20 for roll in product(range(1, 7), repeat=4))

print(by_pairs, by_listing, round(by_pairs / 6 ** 4, 3))
35 35 0.027

Similar questions

The same rules answer these questions. Click a question to see its answer.

The sums of the two pairs must add up to 19, so each pair needs at least 7, which leaves six cases, from 7 and 12 to 12 and 7. By (2) and (3), with the counts from the table,

\[\begin{aligned} \text{ways} &= 6 \times 1 + 5 \times 2 + 4 \times 3 \\ &\quad + 3 \times 4 + 2 \times 5 + 1 \times 6 \\ &= 6 + 10 + 12 + 12 + 10 + 6 \\ &= 56, \end{aligned} \tag{6}\]

and by (1), \(P(\text{sum} = 19) = 56/1296 \approx 0.043\).

Split the dice into one die and a pair. The die shows at most 6 and the pair adds up to at most 12, so the die needs at least 4, which leaves three cases, 4 and 12, 5 and 11, and 6 and 10. The die shows each number in 1 way, so by (2) and (3)

\[\text{ways} = 1 \times 1 + 1 \times 2 + 1 \times 3 = 6, \tag{7}\]

and by (1), with \(6^3 = 216\) outcomes, \(P(\text{sum} = 16) = 6/216 \approx 0.028\).

Each sum \(s\) from 2 to 12 is one case. Within a case, both rolls reach \(s\) in the number of ways in the table, so by (2) the case has that number squared. By (3),

\[\begin{aligned} \text{ways} &= 1^2 + 2^2 + 3^2 + 4^2 + 5^2 + 6^2 \\ &\quad + 5^2 + 4^2 + 3^2 + 2^2 + 1^2 \\ &= 146, \end{aligned} \tag{8}\]

and by (1), with \(6^4 = 1296\) outcomes, \(P(\text{equal sums}) = 146/1296 \approx 0.113\).