Skip to content
KazamTools

Dice Roller

Fair virtual dice for board games, D&D and classroom maths.

Quick picker

1 to 20 dice.

Added to the total. Use − to subtract.

Die type

Possible totals 2 to 12 · average 7

Examples: d20, 3d6+2, 1d8+1d6+3, 4d6kh3 (keep highest 3), 2d20kl1 (keep lowest 1).

Quick rolls

Result

Total

—

Press Roll to throw the dice.

How to use the Dice Roller

  1. 1Pick how many dice and which type, or type notation such as 3d6+2.
  2. 2Add a modifier if your game needs one, for example +2.
  3. 3Press Roll, or press Enter in the notation box.
  4. 4Read each die, the total and the breakdown. Your last 20 rolls stay in the history.

How dice notation works

Tabletop games write rolls in a short code called dice notation. The roller understands the common forms, so you can copy a roll straight from a rulebook or character sheet.

  • NdS means roll N dice with S sides each and add them. 3d6 is three six-sided dice. Leave out N for one die: d20.
  • +M or −M adds or subtracts a fixed number, the modifier: 1d20+5.
  • Groups can be mixed: 1d8+1d6+3 rolls a d8 and a d6, then adds 3. You can subtract dice too: 1d20-1d4.
  • khK / klK keep only the highest or lowest K dice: 4d6kh3 keeps the best three of four.
  • dlK / dhK drop the lowest or highest K dice, which is the same thing said the other way round: 4d6dl1 equals 4d6kh3.
Notation What it does Possible totals Average
d20 One 20-sided die 1 to 20 10.5
3d6+2 Three d6, then add 2 5 to 20 12.5
2d8-1 Two d8, then subtract 1 1 to 15 8
1d8+1d6+3 A d8 and a d6, then add 3 5 to 17 11
4d6kh3 Four d6, keep the highest three 3 to 18 about 12.24
2d20kh1 Advantage: two d20, keep the higher 1 to 20 13.825
2d20kl1 Disadvantage: two d20, keep the lower 1 to 20 7.175

The roller shows the range and the exact average for whatever you type, before you roll.

The average of a roll

A fair die with S sides averages the middle of its faces. Add one average per die, then the modifier:

Average = number of dice × (sides + 1) ÷ 2 + modifier

Worked example: 3d6+2. One d6 averages (6 + 1) ÷ 2 = 3.5, so three of them average 10.5. Add 2 and the average is 12.5. The lowest total is 1 + 1 + 1 + 2 = 5 and the highest is 6 + 6 + 6 + 2 = 20.

Middle totals turn up far more often than the extremes. Three d6 can land in 6 × 6 × 6 = 216 equally likely ways. A total of 10 can be made 27 different ways, so it comes up 12.5% of the time. A total of 3 needs three 1s, which is 1 way in 216, or about 0.46%.

Advantage, disadvantage and keeping dice

Keeping the best die changes the odds a lot. Say you need 15 or more on a d20.

  • Normal roll: 6 of the 20 faces are 15 or higher, so the chance is 6 ÷ 20 = 30%.
  • Advantage (2d20kh1): you fail only if both dice are 14 or lower: (14 ÷ 20)² = 0.49. So the chance is 1 − 0.49 = 51%.
  • Disadvantage (2d20kl1): both dice must be 15 or higher: (6 ÷ 20)² = 9%.

For keep and drop rules, the average shown is calculated exactly from the probabilities of every possible order of the dice, not estimated from practice rolls. That is how the tool knows that 4d6kh3 averages about 12.24, almost two points more than plain 3d6.

Is the roller fair?

Each die gets its own number from your browser’s cryptographic random number generator, crypto.getRandomValues. Turning a random number into a die face needs care. If you took a random byte (0 to 255) and used the remainder after dividing by 6, four faces would come up 43 times in 256 and two faces only 42 times, because 256 does not divide evenly by 6. The roller avoids this “modulo bias” by throwing away the few values at the top of the range and drawing again. Every face is exactly equally likely.

The results are decided before the short animation starts. The flicker is only for show, and it switches off if your device asks for reduced motion.

Tips

  • Percentile rolls: d100 gives 1 to 100 in one go, so you do not need two d10s.
  • Coin flips: d2 works as heads or tails.
  • Odd dice for real life: a custom die can have up to 1,000 sides. 1d350 picks a random page from a 350-page book.
  • Limits: up to 20 dice in one group and 100 dice in one roll, which covers even big fireball damage like 8d6 many times over.
  • History: your last 20 rolls stay listed under the tool until you clear them or leave the page.

Choosing between people rather than numbers? The wheel spinner picks a name fairly. Dice are also the classic way to make a diceware passphrase, five rolls per word; the password generator builds strong passphrases with the same kind of secure randomness.

Cite this tool

Using this tool in an essay, report or article? Copy a ready-made reference. Check your teacher's or publisher's style guide for small differences.

APA
KazamTools. (2026, October 21). Dice roller. Retrieved October 30, 2026, from https://kazamtools.com/generators/dice-roller/
MLA
"Dice Roller." KazamTools, 21 Oct. 2026, https://kazamtools.com/generators/dice-roller/. Accessed 30 Oct. 2026.
Chicago
KazamTools. "Dice Roller." Last modified October 21, 2026. Accessed October 30, 2026. https://kazamtools.com/generators/dice-roller/.
Plain link
Dice Roller (KazamTools): https://kazamtools.com/generators/dice-roller/
HTML link
<a href="https://kazamtools.com/generators/dice-roller/">Dice roller</a> by KazamTools

Frequently asked questions

Is this dice roller fair?

Yes. Every die uses your browser’s cryptographic random number generator with rejection sampling, so each face is exactly equally likely. The short animation is only for show; the result is decided first.

What does 3d6+2 mean?

Roll three six-sided dice, add them up, then add 2. The total can be anything from 5 to 20, and it averages 12.5.

How do I roll with advantage or disadvantage?

Type 2d20kh1 for advantage (keep the highest of two d20s) or 2d20kl1 for disadvantage (keep the lowest). The quick-roll buttons do the same.

How do I roll ability scores for D&D?

Use 4d6kh3: roll four six-sided dice and keep the highest three. Roll it six times, once for each ability.

Does the d10 roll 0 to 9?

No. This roller numbers a d10 from 1 to 10 and a d100 from 1 to 100. Physical d10s often print a 0, which most games read as 10.

What is the average roll of a d20?

10.5. Any fair die averages (sides + 1) ÷ 2, so a d6 averages 3.5 and a d12 averages 6.5.

Was this tool helpful?