Dice Roller

2
Sides
Total6
2
4

This online dice roller simulates rolling any number of dice with any number of sides, plus an optional flat modifier, so you can play tabletop games, settle decisions, or generate random outcomes without physical dice. Each die is rolled independently using the browser pseudo-random number generator, and the tool reports every individual roll alongside the total.

How it works

  1. Choose how many dice to roll and how many sides each die has — for example 2 dice of 6 sides for 2d6, or a single 20-sided die for a d20.
  2. Optionally add a modifier (positive or negative) that is applied once to the sum of all the dice, mirroring notation like "2d6+3".
  3. The roller generates a uniformly random integer from 1 to the number of sides for each die, then reports the list of individual rolls and the total, which equals the sum of the dice plus the modifier.

Worked example

Rolling 2d6+3, the classic two six-sided dice with a +3 bonus, for a tabletop attack roll.

  1. The roller produces two independent integers from 1 to 6 — say a 4 and a 5.
  2. Sum the dice: 4 + 5 = 9.
  3. Apply the +3 modifier: 9 + 3 = 12.

Individual rolls of [4, 5] with a total of 12 (the modifier is added once, not per die).

Frequently asked questions

Are the dice rolls truly random?
They use the browser built-in pseudo-random number generator, which is uniform and statistically fair for games and casual use. It is not a cryptographically secure source, so it should not be used where security or money is at stake.
What dice can I roll?
You can set any number of sides, so it covers the standard tabletop set — d4, d6, d8, d10, d12, and d20 — as well as unusual dice like a d100, and you can roll several at once.
How does the modifier work?
The modifier is added once to the combined total of all dice, not to each die. So 3d6+2 sums the three dice first and then adds 2, matching standard tabletop dice notation.
Why omit a formula for a dice roller?
A dice roller is a random generator rather than a deterministic calculation, so there is no fixed formula — each result depends on chance. The only arithmetic involved is summing the rolled dice and adding any modifier.