Roll dice using D&D notation

Evaluate standard NdS dice notation, show every face, and apply one signed modifier to the sum.

freeworks offlinenothing uploaded
ToolDice Roller
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Notation supplies an optional die count, d, the number of faces, and one optional signed modifier. Each unseeded face is selected uniformly from 1 through S using rejection-sampled Web Crypto output; seed text substitutes a deterministic stream, and the modifier changes the combined total once.

Formula
total = sum of N independent faces from 1 through S + modifier
  • Omitting N means one die, while S is always explicit and must be at least two.
  • Counts and sides stop at 1,000 to bound browser work and output size.

Worked example

Three six-sided dice plus two
Standard D&D notation: count, d, sides, then an optional modifier
Input
											Notation: 3d6+2
Seed: table-one
										
Output
												Total: 11
Rolls: 4, 1, 4
Dice count: 3
Dice sides: 6
Modifier: 2
											

When to use this

Dungeons & Dragons ability checks combine d20 with a modifier, tabletop damage pools total several equal dice, and probability lessons sample the non-uniform sums of 2d6.

Edge cases

  • d20 is parsed as one twenty-sided die, not as zero dice or an incomplete expression.
  • 3d6+2 adds two after summing all three faces rather than increasing each face by two.
  • d1 and dimensions above 1,000 fall outside the supported die model and are rejected before drawing.

References