D&D dice roller

Up to 40 dice, a modifier, and optional advantage.

Roll

—

The total includes the modifier. Advantage compares two full sets.

What this roller is for

A physical die is still the right tool at a table that can see the roll. This page is for a solo prep session, a remote table that does not want another app, or a check you want to repeat while you learn the math. Each roll is independent. Nothing on the page is a "lucky streak" setting, and the history is only the line you just rolled.

Advantage and disadvantage on a d20 are usually "roll twice and keep one." When you ask for more than one die, this roller rolls two complete sets and keeps the set with the higher or lower total. That matches a handful of dice plus a modifier, such as 2d6+3 with advantage on both dice, better than it matches the special case of a single d20. For an ordinary attack, set the count to 1 and the sides to 20.

The DC line

If you type a difficulty class, the result says whether the total met it. The roller does not add proficiency, cover, or bless for you. Put those inside the modifier so the DC test stays honest. A blank DC skips the test. A natural 20 on an attack roll is still a special rule in combat; this page reports the number, and the table decides whether that number is a critical hit.

Limits that keep the page usable

Forty dice is enough for a fireball's 8d6 several times over, and it is low enough that the page stays responsive on a phone. Sides stop at 100 so a typo cannot ask the browser for a million-sided die. The generator is crypto.getRandomValues, which is the browser API meant for unpredictable integers. It is still software. If your table requires a shared visible roll, use a die everyone can see.

Related pages: the hit point calculator can roll hit dice level by level, and the scene sparks page uses the same generator to pick a prompt. Neither of those replaces an attack roll.

A short example

A longsword attack might be 1d20+6 against AC 15. You type 1, 20, and 6, and you set the DC to 15. A result of 18 is a hit. A result of 9 is a miss. Advantage rolls two d20s, adds 6 to each, and keeps the higher total. It does not add 6 twice to the same die.

Rolls you can reason about

One d20 with a modifier of 6 and a DC of 15 is a hit when the total is 15 or higher. The die itself has to show 9 or better, because 9 plus 6 is 15. The page reports the total and whether it met the DC. It does not decide that a natural 20 is a critical hit. Your table does that. Advantage on a single d20 rolls two dice, adds the modifier to each, and keeps the higher total. It does not add the modifier twice to one die. Disadvantage keeps the lower total. If you set the count above 1, the roller compares two full sets. That is the right behavior for 2d6 plus 3 and the wrong mental model for "advantage on one attack." Set the count to 1 for an attack.

Forty dice is the cap so a phone stays responsive. One hundred sides is the cap so a typo cannot request a million-sided die. The source is the browser's cryptographic random function. Refreshing the page does not replay the last roll. Copy the number if you need it for the hit point calculator's notes or for a weapon from the weapon list. A physical die still wins when everyone at the table can see it.

Reviewed 20 October 2026. There is no luck setting and no history beyond the line you just rolled.

One more check

A second check: two d6 plus 0, rolled as a normal set, must land between 2 and 12. Advantage on that pair keeps the higher of two such totals, so the kept total is still between 2 and 12, not between 2 and 24. If the page ever shows 24 on 2d6 with advantage, it added the sets instead of choosing one. Leave the DC blank when you only want the number. A DC of 0 is not the same as a blank if the form treats 0 as a real target. Use blank. The roller is not the hit point roller. Hit dice that you want recorded belong in the hit point tool, which lists every level. This page is one throw.

FAQs

The browser's cryptographic random source. The page does not play a fixed list of numbers.

Two full sets. The higher set is kept. Disadvantage keeps the lower set.

They fill the sides field. You still choose how many dice and the modifier, then roll.

No. A DC is checked only when you type one. The total is the same either way.

From 1 to 40, with 2 to 100 sides each.