2d6 + 3Roll dice, then add or subtract flat modifiers with normal arithmetic operators.
- `+`, `-`, `*`, and `/` all work in the expression editor.
Expressions
Use Dice Bench when you want a quick draft. Use Expression Editor to take advantage of the full power of the dice roll notation.
Read It
The expression editor reads left to right like arithmetic. Declare dice groups, combine them with math operators, and add parentheses when you want to force evaluation order.
2d6 + 3Roll dice, then add or subtract flat modifiers with normal arithmetic operators.
(1d8 + 4) * 2Use parentheses to control order of operations before multiplying or dividing.
-2 + d20Unary minus is supported, so penalties can be written inline.
Dice
The parser currently supports the core polyhedral dice, percentile dice, and fudge dice.
d4Single four-sided die.
d6Single six-sided die.
d8Single eight-sided die.
d10Single ten-sided die.
d12Single twelve-sided die.
d20Single twenty-sided die.
d%Percentile die.
4dFFudge/Fate dice.
Shorthand
Advantage and disadvantage are special d20 syntax, not general-purpose suffixes for every die.
d20advRoll advantage on a single d20.
d20disRoll disadvantage on a single d20.
Modifiers
Most advanced modifiers get combined with dice rolls. Modifiers can be stacked in one expression.
4d6kh3Keep the highest three dice.
4d6dl2Drop the lowest two dice.
2d6r<=2Reroll matching dice until they miss the condition.
1d6exExplode maximum dice roll
4d6c>=5Count how many kept dice meet a target.
3d6saSort rolls ascending for cleaner readouts.
3d6min2max5Clamp each die between a minimum and maximum result.
6d6uForce all kept dice to be unique by rerolling duplicates.
Recipes
These examples show how to combine arithmetic, multiple dice groups, and stacked modifiers into one command.
d20adv + 5Advantage attack roll with a flat bonus.
2d6 + 1d8 + 4Combine multiple dice groups in one expression.
1d8ex>=4times2Use parameters like <=5`, `=10`, `times3` to chance default behavior of modifiers.
4d6r<=3times2kh2d>=5c>=6smin2max5Stack rerolls, keep/drop logic, counting, sorting, and clamps in one expression.
Guardrails
The editor is flexible, but a few modifiers have important limits and exclusivity rules.
d20advAdvantage/disadvantage are special d20 shortcuts, not generic modifiers.
6d6uUnique rolls are valid, but `u` cannot be combined with keep/drop/reroll/explode modifiers.
1d6ex>=1times2Use `timesN` when a reroll or explosion condition could loop too long.