Dice Roller
Type a roll in dice notation, such as 3d6+2 (three six-sided dice plus 2), 4d6kh3 (roll four, keep the highest three) or 2d20kl1 (roll two d20 and keep the lower one), and press Roll: every die is shown, the kept and dropped ones are marked, and the total is added up. The exact odds of the total appear below the dice: 2d6 has 36 equally likely outcomes, an average total of 7, and a total of 7 or more has a 58.33% chance (7/12). A fixed example: 2d6 rolled 3, 5 for 8. Total: 8. 4d6kh3+2 with the dice 5, 2, 6, 4 reads “4d6kh3 rolled 5, 2, 6, 4. Keeping the highest 3: 5, 6, 4 makes 15; dropped 2. Plus 2. Total: 17.” Dice are rolled with your browser’s cryptographic random number generator, without modulo bias, and nothing is sent anywhere.
Updated Runs in your browser: nothing you enter is uploadedHow this tool works
Your roll
Example roll with fixed dice, not a random one.
Total 8
- 2d635= 8
2d6 rolled 3, 5 for 8. Total: 8.
Odds of the total
Exact odds for 2d6: 36 equally likely outcomes.
The notation has a problem, so these are the odds for the last valid roll.
- Average
- 7
- Standard deviation
- 2.42
- Lowest
- 2
- Highest
- 12
Chance of rolling 7 or more: 58.33% (7/12, 21 of 36 outcomes).
| Total | Ways | Chance | This or more |
|---|---|---|---|
| 2 | 1 of 36 | 2.78% | 100% |
| 3 | 2 of 36 | 5.56% | 97.22% |
| 4 | 3 of 36 | 8.33% | 91.67% |
| 5 | 4 of 36 | 11.11% | 83.33% |
| 6 | 5 of 36 | 13.89% | 72.22% |
| 7 | 6 of 36 | 16.67% | 58.33% |
| 8 | 5 of 36 | 13.89% | 41.67% |
| 9 | 4 of 36 | 11.11% | 27.78% |
| 10 | 3 of 36 | 8.33% | 16.67% |
| 11 | 2 of 36 | 5.56% | 8.33% |
| 12 | 1 of 36 | 2.78% | 2.78% |
Roll history
The last 20 rolls of this visit, newest first. Kept in memory only: reloading the page clears them.
No rolls yet.
Dice notation: what you can type
| Notation | Meaning | Average total |
|---|---|---|
| d20 | One twenty-sided die (the count 1 can be left out) | 10.5 |
| 3d6 | Roll three six-sided dice and add them | 10.5 |
| 3d6+2 | Add a fixed number to the total (use - to subtract) | 12.5 |
| d20+d4 | Add several groups of dice, like a d20 attack plus a d4 bonus | 13 |
| d13 | Any custom die from d2 to d1000 | 7 |
| d% or d100 | Percentile die: a number from 1 to 100 | 50.5 |
| 4d6kh3 or 4d6k3 | Keep the highest 3 of 4 dice (drop the lowest) | 12.24 |
| 2d20kh1 | Advantage: roll two d20, keep the higher | 13.83 |
| 2d20kl1 | Disadvantage: roll two d20, keep the lower | 7.18 |
| 4d6dl1 | Drop the lowest die (the same as 4d6kh3) | 12.24 |
| 5d10dh2 | Drop the highest 2 dice (the same as 5d10kl3) | 11.54 |
| d6! | Exploding: a die that shows its top face is rolled again and added (at most 20 extra rolls per die) | 4.2 (a table of odds is not available) |
Standard dice at a glance
| Die | Faces | Average | Chance of one face |
|---|---|---|---|
| d4 | 1 to 4 | 2.5 | 1 in 4 |
| d6 | 1 to 6 | 3.5 | 1 in 6 |
| d8 | 1 to 8 | 4.5 | 1 in 8 |
| d10 | 1 to 10 | 5.5 | 1 in 10 |
| d12 | 1 to 12 | 6.5 | 1 in 12 |
| d20 | 1 to 20 | 10.5 | 1 in 20 |
| d100 (d%) | 1 to 100 | 50.5 | 1 in 100 |
Two six-sided dice: the odds of each total
| Total | Ways | Chance | This or more |
|---|---|---|---|
| 2 | 1 of 36 | 2.78% | 100% |
| 3 | 2 of 36 | 5.56% | 97.22% |
| 4 | 3 of 36 | 8.33% | 91.67% |
| 5 | 4 of 36 | 11.11% | 83.33% |
| 6 | 5 of 36 | 13.89% | 72.22% |
| 7 | 6 of 36 | 16.67% | 58.33% |
| 8 | 5 of 36 | 13.89% | 41.67% |
| 9 | 4 of 36 | 11.11% | 27.78% |
| 10 | 3 of 36 | 8.33% | 16.67% |
| 11 | 2 of 36 | 5.56% | 8.33% |
| 12 | 1 of 36 | 2.78% | 2.78% |
Advantage and disadvantage on a d20
| Target | One d20 | Advantage | Disadvantage |
|---|---|---|---|
| 5 or more | 80.00% | 96.00% | 64.00% |
| 10 or more | 55.00% | 79.75% | 30.25% |
| 11 or more | 50.00% | 75.00% | 25.00% |
| 15 or more | 30.00% | 51.00% | 9.00% |
| 20 or more | 5.00% | 9.75% | 0.25% |
Rolling ability scores
| Method | Notation | Average | Chance of 15 or more |
|---|---|---|---|
| Straight roll | 3d6 | 10.5 | 9.26% |
| Drop the lowest of four | 4d6kh3 | 12.24 | 23.15% |
| Best of five, keep three | 5d6kh3 | 13.43 | 37.71% |
How to roll dice with dice notation
- Type the roll. Write how many dice and how many sides, like 2d6 for two six-sided dice, or press a quick button such as d20. Add + or - and a number or more dice, as in 3d6+2.
- Add a keep or drop rule if you need one. Put kh3 after a group to keep the highest 3 dice, kl1 to keep the lowest 1 (disadvantage), dh1 to drop the highest or dl1 to drop the lowest. 4d6kh3 is the classic way to roll an ability score.
- Press Roll. Each die appears with the dropped ones crossed out and marked, followed by a sentence that explains the total. The result is also announced to screen readers.
- Read the odds. Below the roll, the exact chance of every total is shown as a bar chart and a table, with the average and standard deviation. Change the target to see the chance of rolling at least that much.
- Check the history. The last 20 rolls of this visit are listed under the result. They are kept in memory only and vanish when you close or reload the page.
Frequently asked questions
- What does 3d6+2 mean?
- Roll 3 six-sided dice, add their faces together and add 2. The total can be anywhere from 5 (all ones, plus 2) to 20 (all sixes, plus 2), and its average is 12.5.
- How does “4d6kh3” (keep highest) work?
- Four six-sided dice are rolled and the lowest one is set aside, so only the highest three are added up. “kh” means keep highest and the number after it says how many dice to keep. “4d6dl1” (drop lowest 1) means exactly the same. It raises the average from 10.5 for 3d6 to about 12.24.
- How do I roll with advantage or disadvantage?
- Roll two d20 and keep the higher die for advantage (2d20kh1) or the lower die for disadvantage (2d20kl1). Add a modifier as usual, for example 2d20kh1+5. The table above shows how much each changes the chance of reaching a target.
- What is d% and how do I roll a custom die?
- d% (or d100) is a percentile die with faces 1 to 100. Any other die works the same way: d13 rolls a 13-sided die, d3 a three-sided die. Dice can have 2 to 1000 faces.
- What does the exclamation mark do?
- A “!” after the sides makes the dice explode: when a die shows its highest face it is rolled again and the new face is added, and this repeats while it keeps showing the top face (at most 20 extra rolls per die, so a run always ends). 3d6! can therefore total more than 18. An exact table of odds is not available for exploding dice, because their totals have no upper limit.
- Are the dice really fair?
- Yes. Each die is drawn from your browser’s cryptographic random number generator (crypto.getRandomValues) with rejection sampling: random 32-bit values that fall in the incomplete last block of the range are thrown away and drawn again, so every face is exactly as likely as every other. The tool never uses Math.random.
- How are the odds calculated?
- By counting, not by simulation. The tool counts, with exact big-number arithmetic, how many of the equally likely ways the dice can land give each total, and divides by the number of outcomes. 2d6 has 36 outcomes, so a total of 7 (6 ways) is exactly 1 in 6, and the chances add up to exactly 100%.
- Why is there no table for some rolls?
- The exact table covers up to 20 dice per group and rolls that can be counted quickly. Exploding dice, groups of more than 20 dice and very large combinations (such as 20 dice with 1000 sides each) can still be rolled, but the page says an exact table is not available instead of guessing.
- What do the mean, standard deviation and “this or more” columns show?
- The mean is the average total over all outcomes. The standard deviation measures how far totals typically stray from that average (about 2.42 for 2d6). “This or more” is the chance of rolling that total or higher, and the target box above the table gives the same figure for any total you choose, also as a fraction.
- Is my roll history saved or sent anywhere?
- No. The last 20 rolls are kept in memory for this visit only and are gone when you reload the page. Nothing you type or roll is uploaded; if you allow analytics, the site only learns that Roll was pressed.
- Does it respect reduced motion?
- Yes. The short tumbling animation of the dice only plays when your device allows motion. With “reduce motion” turned on, the dice simply appear, and the result is announced politely to screen readers either way.
How it works
The text is read as an expression of groups of dice and whole numbers joined by + or -. A group is [count]d[sides], optionally followed by ! (explode) and one keep or drop rule (kh, kl, dh, dl); d% means d100. Each die is a uniformly random whole number from 1 to its sides, drawn without modulo bias: a 32-bit word from crypto.getRandomValues is discarded if it falls in the incomplete last block of the range and drawn again (the same unbiased helper the random number generator uses). A kept rule sorts the dice of its group by value and marks the best ones as kept; ties keep the earlier die. An exploding die is rolled again while it shows its top face, with at most 20 extra rolls. The odds are exact counts, not simulations. Plain dice are added one at a time (each die adds each of its faces to every earlier total). A keep or drop rule is counted by walking the faces from best to worst and tracking how many dice have been placed and the kept sum, multiplying by binomial coefficients for the ways to give a face to some of the remaining dice. Separate groups are independent, so their counts are convolved, a constant shifts the range and a subtracted group is mirrored. All counts are BigInt, so 20d20 (20^20 outcomes) is exact. The mean is the sum of total × ways divided by the number of outcomes, and the standard deviation is the square root of the exact variance. Percentages are rounded only for display. With many possible totals the bars group neighbouring totals, and the table shows the 200 totals around the average.
Sources
More free tools
- Random Number GeneratorPick a random number between any two numbers, draw several with or without repeats, flip a coin or roll dice. Fair, unbiased and drawn on your device.
- Random Name PickerPaste a list and pick a random winner, shuffle it or split it into teams. Every entry has the same chance, and your list never leaves your device.
- Random Team GeneratorPaste names, choose how many teams or people per team, and split them randomly and evenly. Reshuffle, copy the teams or share a link to the same split.
- Flip a CoinFlip one coin or up to 1,000 at once and see the heads and tails tally, the longest streak and how likely that streak is. Fair, and flipped on your device.
- Permutation and Combination CalculatorCalculate nPr and nCr, with or without repetition: exact big results, digit count, scientific notation, the formula worked out and a list of arrangements.
- Tally CounterOnline tally counter with big + and − buttons: several named counters, shortcuts, step and target, total, undo and CSV export. Saved in your browser.
More: Random picks and gamesAll math & numbersAll toolsHome & DIY calculators