Toolstia / Dice roller
Roll the dice
Dice notation is a short way to say what to roll. Written 3d8+2, it means roll three eight-sided dice, add the faces together, then add 2. This roller follows that format. You choose how many dice to roll (1 to 12), how many sides each one has (4, 6, 8, 10, 12, 20 or 100), and an optional number to add or subtract. Press Roll and you see each die separately, the total, and a line that shows the working.
Because every die is shown on its own, the tool covers more than a plain total. A board game that needs the highest die, a tabletop game that asks you to count how many dice came up 5 or 6, or a quick decision where you only want one number are all easy to read off. The last few rolls stay listed under the result so you can look back.
Each face is chosen with your browser's cryptographic random number generator, with a correction that keeps every face equally likely. Rolling happens entirely on your device, and nothing is sent anywhere. The sections below cover the maths, some probabilities you can check against it, and what the tool deliberately does not do.
How it works
- Pick the number of dice and the sides.
- Add a bonus if needed.
- Press Roll and read each die and the total.
Dice notation
The label 2d6+3 means roll two six-sided dice and add 3. The tool shows this label above each result so the roll is easy to read back.
Fair dice
Every face has the same chance, because each die is picked with your browser's secure random numbers. There is no bias toward low or high numbers.
Common dice
A d6 is the standard board-game die, d20 is used in many role-playing games, and a d100 gives a percentage.
Roll history
Your last few rolls are listed under the result so you can compare them. The history clears when you reload the page.
Reading a roll: a worked example
Set 2 dice, 6 sides, and a bonus of 3. The button reads Roll 2d6, and the label on the result is 2d6+3. If the dice land on 4 and 5, the working line reads 2d6+3: 4 + 5 + 3 and the total is 12. With a bonus of -2 and the same dice, the line reads 2d6-2 and the total would be 7.
The bonus box accepts only digits and a leading minus sign, up to five characters. Type 3 rather than +3, since a plus sign is removed. A negative bonus can push the total below zero when the dice are small, for instance 1d4 with -10, and the tool shows that result as it is. If the box holds something it cannot read, such as 5-3, it treats the bonus as zero.
How the dice are rolled
For each die the tool asks the browser's crypto.getRandomValues for a 32-bit random number. A plain remainder would make some faces very slightly more likely whenever 4,294,967,296 does not divide evenly by the number of sides, which is true for 6, 10 and 100. To avoid that, the tool throws away any random value in the uneven tail and draws again, so every face has exactly the same chance. The face is then shifted up by one, so a d10 gives 1 to 10 and a d100 gives 1 to 100, never 0.
The dice in one roll are independent. A 6 on the first die has no effect on the second, and nothing is remembered between rolls, which is how real dice behave.
Probabilities you can check
With two six-sided dice there are 36 equally likely pairs. A total of 7 can be made six ways, so it comes up 6 times in 36, or 16.67% of rolls. A 2 or a 12 needs both dice the same extreme face, 1 in 36 or 2.78% each. Totals bunch around the middle because there are more ways to reach them.
With three six-sided dice there are 216 outcomes, and 20 of them total 15 or more, so 15+ happens 9.26% of the time. A total of 18 needs three sixes: 1 in 216, about 0.46%. The chance of at least one 6 on four dice is 1 minus (5/6) to the fourth power, which is 51.77%.
For a twenty-sided die, rolling two and taking the higher is a common way to favour the player. You get a 15 or better on 51% of such rolls, against 30% for a single die. Two natural 20s in a row is 1 in 400, or 0.25%. If you roll the tool a few hundred times and your counts drift from these figures, that is normal short-run variation, not bias.
What the tool does not do
It rolls one kind of die per roll, so a mixed expression like 1d8+1d6 needs two separate rolls added by hand. It has no keep-highest or drop-lowest option, no exploding dice and no named presets. For advantage in a game that uses two d20s, roll 2d20 and read the higher die from the list of faces. For a stat roll of 4d6 dropping the lowest, roll 4d6 and ignore the smallest face.
The history shows your latest rolls beneath the main result, up to eight in total, and it clears when you reload the page.
Choosing the die and when to use something else
A d100 stands in for a percentile roll, where you check the result against a percentage. The d4, d6, d8, d10, d12 and d20 cover the usual polyhedral set used in tabletop role-playing games. For picking one of several options, a coin or a wheel tool is simpler. For a game where physical dice are part of the fun, nothing here replaces a table and a cup, but a digital roller is handy when you have lost one, need a die the box did not include, or are playing remotely and want a result both sides can watch.
Questions
How many dice can I roll?
Up to 12 at a time.
Can I use a negative bonus?
Yes. Type a minus sign before the number, for example -2.
Is it random enough for games?
Yes, it uses the same secure random source as password generators.
Does it work offline?
Once the page has loaded it keeps working without a connection.
Does the d100 give 0 to 99 or 1 to 100?
1 to 100. Every die in this tool starts at 1, so a roll of 100 is possible and a roll of 0 is not.
Can I roll different dice in the same roll?
No. One roll uses a single type of die. For a mix such as a d8 and a d6, roll each separately and add the two totals yourself.
How do I roll with advantage or drop the lowest die?
Roll the dice you need and read the faces shown above the total. For advantage, roll 2d20 and take the higher face. For 4d6 drop lowest, roll 4d6 and add the three highest by hand.
Are my earlier rolls saved?
The latest rolls are listed under the result, but only while the page is open. Reloading clears them, and nothing is stored on a server.