Dice Roller
Roll a d4, d6, d8, d10, d12, d20 or d100, or any roll in dice notation, such as 2d6+3, 4d6 drop lowest or 2d20 with advantage. Every die is fair, each total shows its odds, and the tally tests your rolls. Nothing leaves this tab.
Press Roll, the dice or Space.
- Average
- 3.5
- Range
- 1 to 6
Every total's chance, as a chart: the dice probability calculator.
Such as 2d6+3, 4d6dl1 (four d6, the lowest dropped), 2d20kh1 (advantage) or 1d20-1d4+2. Enter rolls it.
One d6.
Your rolls
Every die is counted here, dropped ones too, until you leave or press Reset; each kind of die gets a chart of its faces and a test of how evenly they came up.
Check a real die
Roll a die of your own many times, count each face, and type the counts in: the page says how often a fair die spreads at least that unevenly. The test needs 5 of each face on average, 30 rolls of a d6.
How the dice are rolled
Each die is drawn from 32-bit numbers of crypto.getRandomValues(), the generator browsers keep for encryption keys. A plain remainder would favour some faces, as 4,294,967,296 is not a multiple of 6, so a number from the uneven top of the range, the last 4 for a d6, is drawn again, and every face has exactly the same chance. The dice are drawn first; their tumble on screen only shows them. Each total's chance is counted over every way the dice can fall, not estimated.
Real dice come close, not exactly. The biologist Raphael Weldon threw 12 dice 26,306 times, counted the 5s and 6s, and sent the counts to Francis Galton in 1894: a 5 or a 6 came up a little more often than 1 time in 3. Karl Pearson used his counts in 1900 to show the chi-squared test, the test this page runs on your rolls, and judged a spread that uneven unlikely from fair dice. A common explanation is the pips: drilled out, they leave the 6 face lighter than the 1 on the other side. To flip a coin instead, use flip a coin; to pick a name, spin the wheel.
What this tool is used for
- Playing a tabletop game with no dice at hand: a d20 for an attack, 2d6 for a board game or 8d6 for a fireball, added up for you.
- Rolling a character's ability scores with 4d6 drop lowest, each dropped die shown, and the rolls copied or downloaded for the record.
- Rolling with advantage or disadvantage, and seeing at once how likely the total was.
- Teaching probability: roll hundreds of dice, watch each face's bar settle near the dashed line, and see why 7 is the commonest total of two dice.
- Checking a real die, or a set of dice from a game, by typing in the count of each face and reading Pearson's chi-squared test.
How it works in practice
A worked example
A board-game group suspects that one of its d6 favours sixes. They roll it 120 times, count each face and type the counts into Check a real die.
Check a real die Die: d6 1: 15, 2: 18, 3: 17, 4: 20, 5: 22, 6: 28
120 rolls of a d6 (1: 15, 2: 18, 3: 17, 4: 20, 5: 22, 6: 28); a fair d6 gives 20 of each on average. 120 rolls of a fair d6 spread at least this unevenly 38% of the time (Pearson's chi-squared test, 5 degrees of freedom). Nothing unusual for a fair die.
A fair d6 gives each face 1 roll in 6, 20 of 120 on average, and 28 sixes is 40% more than the 20 a fair die gives on average. Pearson's test adds up how far each face is from 20, squared and divided by 20: 5.3 here, with 5 degrees of freedom. Fair dice spread at least that unevenly 38% of the time: 38%, far above the usual cut of 5%, so the counts give no reason to doubt the die.
The edge case that catches people
18 rolls are too few to judge: the test needs 5 of each face on average, 30 rolls of a d6, and the page says so rather than give a figure. More rolls do show a real bias: the same shares in 600 rolls, 75, 90, 85, 100, 110 and 140, would be very unusual, as fair rolls spread that unevenly 1 in 14,000 times.
When not to use this tool
It is not for a draw with a prize, or a game in which others must trust the roll: a roll on one person's device proves nothing to anyone else. For a chart of every total's chance use the dice probability calculator, for numbers in a range the random number generator, and for two options flip a coin.
Frequently Asked Questions
- Is this dice roller fair?
- Yes. Each die is drawn from 32-bit numbers of crypto.getRandomValues(), the browser's generator for encryption keys. As 4,294,967,296 is not a multiple of 6, a number from the uneven top of the range is drawn again rather than favour some faces, so every face has exactly the same chance, whatever came before.
- What does 2d6+3 mean?
- Two six-sided dice added together, plus 3: the number before d is how many dice, the one after it how many sides, and d% is a d100. Parts join with + and −, as in 1d20-1d4+2; 4d6dl1 drops the lowest of four d6 and 2d20kh1 keeps the higher of two d20. A roll holds up to 100 dice of 2 to 1,000 sides.
- How do I roll with advantage or disadvantage?
- Press Advantage or Disadvantage, or type 2d20kh1 or 2d20kl1: two d20, the higher or the lower kept. Advantage averages 13.825, against 10.5 for one d20, and a natural 20 comes up 9.75% of the time instead of 5%. A total of 15 or more, 30% on one d20, comes up 51% of the time with advantage and 9% with disadvantage.
- What is 4d6 drop lowest?
- The usual way to roll a character's ability scores: four d6, the lowest dropped and the other three added. It averages 12.24, against 10.5 for 3d6, and an 18 comes up 1.62% of the time, against 0.463% on 3d6. Press 4d6 drop lowest or type 4d6dl1; the dropped die shows faded, and in brackets in the history.
- What are the chances of my total?
- After each roll the page shows the chance of exactly that total, of that total or more and of that total or less, with the roll's average and range, counted over every way the dice can fall. On 2d6 a total of 7 comes up 1 time in 6, 16.7%, the likeliest of all. A roll as large as 100d100 has too many totals to count.
- How can I tell if my dice are fair?
- Roll your die many times, count each face and type the counts under Check a real die: Pearson's chi-squared test says how often a fair die spreads at least that unevenly. It needs 5 of each face on average, 30 rolls of a d6 or 100 of a d20; a small bias needs hundreds of rolls. The tally tests the dice rolled here.
- What does a natural 20 mean?
- A d20 showing 20 before anything is added, which many games count as a critical hit; a natural 1 is the opposite. The page names one when a roll is d20s alone with one kept and added, such as 1d20+5 or 2d20kh1: the number added does not count, and a dropped 20 is not natural. One d20 shows a 20 5% of the time.
- Is anything sent or kept?
- No. The dice are drawn in your browser, and the tally and the history stay in this tab until you leave or press Reset; nothing is sent or stored. Only the roll is kept, in the page's address after #, which browsers never send to any server, so Copy link takes it to whoever you send it to.
Common errors and gotchas
- Rolling again because the first result was not the one wanted, which turns a fair roll back into a choice.
- Writing 2d6 when one d12 is meant: 2d6 runs from 2 to 12 and favours 7, while a d12 runs from 1 to 12 with each total as likely.
- Counting a dropped die in the total: with 4d6 drop lowest only three dice count, and the history shows the dropped one in brackets.
- Judging a real die from a handful of rolls: with 18 rolls of a d6 the page says there are too few to judge, and a small bias needs hundreds of rolls to show.
- Leaving a space between two figures, such as 2d6 3, which the page does not read rather than guess: write 2d6+3.