Skip to main content
ponderloop

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

Examples: 3d6+2, 4d6kh3 (keep highest 3), 2d20kl1 (disadvantage), d% (percentile), 3d6! (exploding). Up to 100 dice per group.

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.

Average
7
Standard deviation
2.42
Lowest
2
Highest
12

Chance of rolling 7 or more: 58.33% (7/12, 21 of 36 outcomes).

Reaches the target Below the target
Chance of each total of 2d6
TotalWaysChanceThis or more
21 of 362.78%100%
32 of 365.56%97.22%
43 of 368.33%91.67%
54 of 3611.11%83.33%
65 of 3613.89%72.22%
76 of 3616.67%58.33%
85 of 3613.89%41.67%
94 of 3611.11%27.78%
103 of 368.33%16.67%
112 of 365.56%8.33%
121 of 362.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

    Case and spaces do not matter. Up to 100 dice per group, dice of 2 to 1000 sides and 10 terms per roll. The average is the exact mean of the total.
    NotationMeaningAverage total
    d20One twenty-sided die (the count 1 can be left out)10.5
    3d6Roll three six-sided dice and add them10.5
    3d6+2Add a fixed number to the total (use - to subtract)12.5
    d20+d4Add several groups of dice, like a d20 attack plus a d4 bonus13
    d13Any custom die from d2 to d10007
    d% or d100Percentile die: a number from 1 to 10050.5
    4d6kh3 or 4d6k3Keep the highest 3 of 4 dice (drop the lowest)12.24
    2d20kh1Advantage: roll two d20, keep the higher13.83
    2d20kl1Disadvantage: roll two d20, keep the lower7.18
    4d6dl1Drop the lowest die (the same as 4d6kh3)12.24
    5d10dh2Drop 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

    Each face of a fair die is equally likely. The average of a die with n sides is (n + 1) ÷ 2.
    DieFacesAverageChance of one face
    d41 to 42.51 in 4
    d61 to 63.51 in 6
    d81 to 84.51 in 8
    d101 to 105.51 in 10
    d121 to 126.51 in 12
    d201 to 2010.51 in 20
    d100 (d%)1 to 10050.51 in 100

    Two six-sided dice: the odds of each total

    Totals are not equally likely: there are six ways to make 7 and one way each to make 2 or 12.
    TotalWaysChanceThis or more
    21 of 362.78%100%
    32 of 365.56%97.22%
    43 of 368.33%91.67%
    54 of 3611.11%83.33%
    65 of 3613.89%72.22%
    76 of 3616.67%58.33%
    85 of 3613.89%41.67%
    94 of 3611.11%27.78%
    103 of 368.33%16.67%
    112 of 365.56%8.33%
    121 of 362.78%2.78%

    Advantage and disadvantage on a d20

    The chance of rolling at least the target on one d20, with advantage (2d20kh1) and with disadvantage (2d20kl1).
    TargetOne d20AdvantageDisadvantage
    5 or more80.00%96.00%64.00%
    10 or more55.00%79.75%30.25%
    11 or more50.00%75.00%25.00%
    15 or more30.00%51.00%9.00%
    20 or more5.00%9.75%0.25%

    Rolling ability scores

    Exact averages for common ways to roll a character’s score.
    MethodNotationAverageChance of 15 or more
    Straight roll3d610.59.26%
    Drop the lowest of four4d6kh312.2423.15%
    Best of five, keep three5d6kh313.4337.71%

    How to roll dice with dice notation

    1. 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.
    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.
    3. 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.
    4. 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.
    5. 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: Random picks and gamesAll math & numbersAll toolsHome & DIY calculators