Dice Roller

Quick answer: A dice roller gives you a random result for any set of dice. For example, 2 six-sided dice plus a +3 modifier have an expected value of 10, a minimum possible total of 5 and a maximum possible total of 15 โ€” but any single roll is random and can land anywhere in that range.

Pick how many dice to roll, how many sides each die has, and an optional modifier. Every roll uses your browser's random number generator, so each click produces a fresh, random result โ€” no sign-up and no download needed.

Enter your numbers

dice
+/-

Added to the total after the dice are rolled. Use a negative number for a penalty.

Your results

Individual rollsโ€”
Total (rolls + modifier)โ€”
Minimum possible totalโ€”
Maximum possible totalโ€”
Expected value (average over many rolls)โ€”

Expected value is a long-run average, not a prediction: a single roll can land on any value between the minimum and the maximum.

How to use this calculator

Set the number of dice (1โ€“10), choose the sides per die, and enter a modifier if your game adds a bonus or penalty. Click "Roll the dice" for a fresh result, or change any input to roll again at once.

The notation 2d6 + 3 means "roll two six-sided dice and add 3". The individual rolls row shows every die separately, so you can check each result.

How this is calculated

Each die roll is an integer drawn at random from 1 to the number of sides, using JavaScript's Math.random() in your browser. The total is the sum of the individual rolls plus the modifier.

Minimum possible total = number of dice ร— 1 + modifier. Maximum possible total = number of dice ร— sides + modifier. Expected value = number of dice ร— (sides + 1) รท 2 + modifier, because the average roll of one die with S sides is (S + 1) รท 2.

Edge cases: a modifier of 0 changes nothing; a large negative modifier can make the total zero or negative, which is a valid arithmetic result of the roll even though a physical die never shows a negative face.

Worked example

Roll 2d6 + 3: each d6 averages (6 + 1) รท 2 = 3.5, so the expected value is 2 ร— 3.5 + 3 = 10. The minimum possible total is 2 ร— 1 + 3 = 5 and the maximum possible total is 2 ร— 6 + 3 = 15. An actual roll, for example 4 + 2 + 3 = 9, is random and need not equal the expected value.

Reference data

Expected value of one die, by sides
DieSidesExpected valueRange
d442.51โ€“4
d663.51โ€“6
d884.51โ€“8
d10105.51โ€“10
d12126.51โ€“12
d202010.51โ€“20
d10010050.51โ€“100

Source: defined constants; expected value = (sides + 1) รท 2 for a fair die; page built 2026.

Method & sources

Rolls are generated in your browser with Math.random(). Expected values follow directly from the definition of the average of the integers 1 through S, which is (S + 1) รท 2.

Frequently asked questions

Is this dice roller truly random?

It uses your browser's Math.random() function, which produces pseudo-random numbers that are effectively unpredictable for games and casual play. It is not certified for gambling or cryptographic use.

What does 2d6 + 3 mean?

Roll two six-sided dice and add 3 to the sum. The 2 is the number of dice, the d6 is a six-sided die, and the +3 is a modifier applied after the dice are rolled.

What is the expected value?

The average total if you rolled the same dice very many times. For 2d6 + 3 it is 10. A single roll can be any value from the minimum to the maximum, so the expected value is not a prediction of your next roll.

Can I roll more than 10 dice?

This roller caps the count at 10 dice to keep the results readable. Roll in two batches and add the totals if your game needs more dice.

Related calculators