Maths & numbers

Dice sum distribution calculator with custom face values

Custom dice can have repeated face values, negative integers or unequal face weights.

Your numbers

Use value or value:weight, e.g. -1:1/2,2:3/2. Duplicate values are allowed.
Integer −1,200…1,200. Main result is probability of sum ≥ threshold.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Custom dice can have repeated face values, negative integers or unequal face weights. This calculator builds their complete exact sum distribution by convolving independent per-die probability masses. It reports the inclusive upper-tail probability at a chosen threshold, the expected sum and variance. No random rolls are used, so the answer has no Monte Carlo sampling error or dependence on a random seed.

THE FORMULAP(S=s)=Σ_(x₁+…+x_d=s)∏P(X_i=x_i). Normalize each die’s nonnegative weights separately before convolution.

A worked example

Two fair six-sided dice have thirty-six equally likely ordered outcomes. Six produce sum seven, while twenty-one produce sum at least seven. The default threshold probability is therefore 21/36=7/12, and the probability of exactly seven can be read from the distribution as 1/6. The expected sum is seven and its variance is 35/6.

Good to know

Use one to twelve independent dice with one to twenty faces per row. Face values are integers from −100 through 100. An optional nonnegative rational weight is normalized within its row; repeated face values combine. Reduced weight numerators and denominators are at most 1,000,000, and every die needs positive total weight. Dependent dice, noninteger values and exploding-die rules are not supported.

A repeated face value still represents its own probability mass

A die described by faces 1,1,3 has probability 2/3 at value one and 1/3 at value three when all entered faces have equal weight. Collapsing the repeated values to an unweighted list 1,3 would instead assign one half to each and change the distribution. The engine combines weights only after their face contributions are accounted for.

Weights are relative amounts rather than a requirement to enter probabilities already summing to one. For a die with tokens 1:2 and 3:1, dividing by the row’s weight total three gives the same masses 2/3 and 1/3. A zero-weight face contributes no probability; an entirely zero-weight die is invalid because no normalized distribution exists.

Two fair dice have twenty-one of thirty-six outcomes at sum at least seven1223344556675849310211112
The exact counts at sums 2 through 12 are 1,2,3,4,5,6,5,4,3,2,1. The upper-tail bars for sums 7 through 12 total 21, giving 7/12. Exactly seven has count 6 and probability 1/6.

The Polyhedral dice roller for d4 d6 d8 d10 d12 d20 and d100 samples random roll outcomes, while this page derives the exact independent-dice sum distribution without simulation.

Independence is an assumption of the convolution

The probability of a particular tuple of face outcomes is the product of the per-die probabilities only when the dice are independent. Convolution then adds those products for tuples with the same sum. Correlated outcomes, such as two displays driven by the same hidden roll, require a joint distribution and are outside this page’s input model.

The threshold is inclusive. For a threshold seven, sum seven contributes to P(S≥7). This differs from P(S>7), and the distribution table makes the boundary contribution visible. Negative face values are handled by shifting the possible sum indices naturally rather than forcing the result into a nonnegative-array convention.

Exact moments give independent consistency checks

The distribution masses must add to one. Its mean is ΣsP(S=s), while its variance is Σs²P(S=s) minus the square of that mean. For independent dice, these should also agree with the sums of the individual means and variances, providing a check that does not depend on inspecting each output row.

For small dice, enumerating every face tuple supplies an independent exact reference, including repeated values and rational weights. At larger supported sizes, dynamic convolution avoids constructing the exponentially large tuple list. The output remains a finite exact distribution; it is not a prediction of the next random roll, and a rare outcome still remains possible whenever its probability is positive.

A few questions, answered

Must weights add to one?

No. Each die’s weights are normalized separately. Equal unspecified weights give equally likely entered faces.

Is the default answer the probability of exactly seven?

No. The main result uses sum at least the inclusive threshold. The complete table gives the probability of any exact sum, including seven.

Find your calculator

Start typing to explore the library.