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
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
| Die | Sides | Expected value | Range |
|---|---|---|---|
| d4 | 4 | 2.5 | 1โ4 |
| d6 | 6 | 3.5 | 1โ6 |
| d8 | 8 | 4.5 | 1โ8 |
| d10 | 10 | 5.5 | 1โ10 |
| d12 | 12 | 6.5 | 1โ12 |
| d20 | 20 | 10.5 | 1โ20 |
| d100 | 100 | 50.5 | 1โ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.