Dice Combinations and Permutations Calculator

Calculate the probability of an unordered set of dice faces. Count matching permutations and distinguish ordered sample spaces from unordered combinations.

Try an example

Set up your calculation

Specified faces use the list; other patterns use the dice/roll count.

Used for the three general patterns. The face list sets the count for specified faces.

Use a whole number in the stated range.

List 1–20 wanted faces. Each must be from 1 through the number of sides. Order is ignored.

Shared links store inputs in the URL fragment. Results are recalculated; no calculator inputs are sent to the server.

Exact calculation

Exact calculation

1.39%

1/72

3 matching ordered rolls out of 216.

Enter the faces you want

For three D6s showing two ones and one two, enter sides 6 and wanted faces 1, 1, 2. The distinct orders are (1,1,2), (1,2,1) and (2,1,1): three outcomes out of 216, giving 1/72. Enter one face for a single-die event or up to 20 faces for multiple dice.

Permutations with repeated faces

For n wanted faces, divide n! by the factorial of each face’s repetition count. A specific ordered sequence has probability 1/sn, whereas the unordered multiset includes all its distinct permutations. For 1, 2, 3 on three D6s there are six orders, giving 6/216 = 1/36.

Unordered combinations are not equally likely

The number of possible unordered multisets is C(s+n−1,n). Two D6s have 21 such combinations, but (1,1) has one order and (1,2) has two, so their probabilities differ. The calculator uses the equally likely ordered sample space for probability. For all combinations producing a sum, use the dice total probability calculator.

Ordered outcomes and face patterns

Ordered outcomes are equally likely for independent fair dice; unordered combinations generally are not. Pattern calculations account for repeated faces and distinguish one matching batch from a game with held dice and selective rerolls.

Read the calculation methodology for exact counting, display rounding and reference checks. To report an unexpected result, send the inputs and the rule you expected through the contact page.

Matching faces and collecting every face

For n fair s-sided dice all showing the same face, there are s matching ordered rolls out of sⁿ outcomes. Five D6s all matching therefore have probability 1/1296, about 0.0772%, in one roll. A chosen face on all five is less likely: 1/7776.

All different faces use the falling product s(s − 1)…(s − n + 1), divided by sⁿ. Seeing every face in repeated rolls uses inclusion–exclusion to remove outcomes missing a face. Choose the pattern and roll count above. These are single-batch probabilities; held dice, selective rerolls and multi-turn game strategies are not modelled.