How to use the dnd dice roller
- Type your dice expression in the Notation field, such as
2d6+3or4d6kh3. - Select Advantage or Disadvantage if you are rolling a d20 check.
- Set the Repeat count to roll the same expression multiple times, useful for generating ability scores.
- Click Roll to see each individual die, any kept or dropped values, modifiers and the total.
Understanding dice notation
Dice notation follows the pattern NdM+K. N is the number of dice to roll, M is the number of sides on each die and K is an optional modifier added after the dice are summed. For example, 2d6+3 means roll two six-sided dice, add their faces together, then add 3. If N is omitted it defaults to 1, so d20 is the same as 1d20.
The kh (keep highest) and kl (keep lowest) suffixes let you drop dice before summing. 4d6kh3 rolls four six-sided dice and keeps only the three highest results, which is the standard method for generating D&D ability scores. The dropped dice are listed in the output after the word dropped so you can verify the result. Spaces in the notation are ignored, so 2d6 + 3 works.
How advantage and disadvantage work
In fifth edition D&D, advantage means you roll two d20s and use the higher number. Disadvantage means you roll two d20s and use the lower number. This dnd dice roller applies that rule automatically when you select the corresponding option and your base die is a d20. Modifiers are applied after the correct die is chosen.
For instance, with advantage and a +5 modifier, the tool rolls two d20s, picks the higher value, adds 5 and displays both original rolls so you can see what was discarded. Advantage and disadvantage do not stack: if you have both, they cancel out to a normal roll, so leave the mode on None. The mode only works with a single d20, so an expression such as 4d20 returns an error instead of silently rolling a pair.
Common dice expressions reference
| Expression | Meaning | Typical use |
|---|---|---|
1d20 | One twenty-sided die | Attack rolls, saving throws, ability checks |
2d6+3 | Two six-sided dice plus 3 | Weapon damage with ability modifier |
4d6kh3 | Four six-sided dice, keep highest 3 | Generating ability scores |
8d6 | Eight six-sided dice | Fireball spell damage |
1d20+5 | One d20 plus 5 | Attack roll with proficiency and stat bonus |
1d8+4 | One eight-sided die plus 4 | Longsword damage with a +4 Strength modifier |
Natural 20s and natural 1s
A natural 20 occurs when the physical d20 lands on 20 before any modifiers are applied. In most D&D rulesets, a natural 20 on an attack roll is an automatic hit and often a critical hit, doubling the damage dice. A natural 1 is typically an automatic miss on attacks. This dice roller for dnd flags these outcomes in the note field whenever the base die is a d20, regardless of modifiers.
Critical hits usually mean you roll all damage dice twice. For example, a dagger dealing 1d4+2 damage would deal 2d4+2 on a critical hit. You can simulate this by changing your notation to double the dice count.
Fairness and randomness
Physical dice can be biased due to manufacturing imperfections. An online dnd dice roller uses your device's cryptographic random number generator via crypto.getRandomValues, which produces uniformly distributed integers. Each face of every die has exactly the same probability of appearing.
Because the computation happens locally in your browser, no server influences or records your rolls. You get the convenience of a digital tool without trusting a remote machine to be fair.
Worked examples
| Example | Input | Result |
|---|---|---|
| Attack roll | Dice notation: 1d20+5; Advantage / Disadvantage: none; Repeat count: 1 | Roll 1: 23 |
| Fireball damage | Dice notation: 8d6; Advantage / Disadvantage: none; Repeat count: 1 | Roll 1: 31 |
| Stat array (drop lowest) | Dice notation: 4d6kh3; Advantage / Disadvantage: none; Repeat count: 6 | Roll 1: 18; Roll 2: 15; Roll 3: 5; Roll 4: 13; Roll 5: 16; Roll 6: 15 |
| Sneak attack with advantage | Dice notation: 1d20+7; Advantage / Disadvantage: advantage; Repeat count: 1 | Roll 1: 15 |
FAQ
What dice notation does this dnd dice roller support?
It supports NdM, NdM+K, NdM-K, NdMkhX (keep highest X) and NdMklX (keep lowest X). You can combine up to 100 dice with up to 1000 sides each.
Can I use this for games other than D&D?
Yes. Any tabletop game that uses polyhedral dice works here. Just enter the appropriate notation for your system.
How do I roll for ability scores?
Set the notation to 4d6kh3 and the repeat count to 6. Click Roll to generate six numbers, each made from the best three of four six-sided dice.
Does advantage apply to damage rolls?
No. In standard D&D rules, advantage and disadvantage only apply to d20 rolls such as attacks, saves and checks. The tool only applies the mode when the base die is a d20.
Is this dnd dice roller online and free?
Yes. It is free to use and runs in your browser with no account and no dice data sent to any server.
What happens if I type invalid notation?
The tool will show an error message explaining what went wrong. Check that you used the format NdM, included valid numbers and stayed within the limits of 100 dice and 1000 sides.