Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Dice Roller (d4 to d100)

Fair virtual dice with holds, a history and the exact chance of every total.

Utility No upload Works offline Free, no sign-up

What to roll

For example 3d6+2, 4d6dl1 (drop the lowest), 2d20kh1 (keep the highest), 1d20+1d4 or 4dF. Up to 20 dice; Enter rolls.

Dice

Not rolled yet
Total —

Press Roll.

Press a die to hold it. Keyboard: R or Space rolls; Tab to a die and press Enter to hold it.

Chances of each total

—Possible totals
—Average
—Most likely
—Standard deviation
Chance that the total is

Show every total as a table
Total Exactly At least At most Ways

History

No rolls yet. Your last 100 rolls are kept in this browser.

Next steps

About the Dice Roller (d4 to d100)

Pick a die — d4, d6, d8, d10, d12, d20 or d100 — and how many (1 to 20), or type dice notation such as 2d6+3, 4d6dl1 or 2d20kh1, then press Roll. Each die is drawn on screen with its face; press a die to hold it, and the next roll rerolls only the others, as in Yahtzee and many board games.

Under the dice you see the exact chance of every possible total as a chart and a table — worked out by counting outcomes, not by simulation — so you can ask "what is the chance of rolling at least 15?" before you roll. With dice held, the chances switch to the dice you are about to reroll. Every roll is kept in a history you can copy or download. The randomness comes from your browser’s cryptographically secure generator, through the same engine as the random generator.

How to use it

  1. Choose a die type and the number of dice, and add a modifier if your game needs one (for example +3). Or type notation in Dice notation, or pick a preset such as Advantage or Ability score.
  2. Press Roll (or the R key). The total appears with every die; dice dropped by a keep/drop rule are shown faded and not counted.
  3. To reroll some dice, press the dice you want to keep — they are marked Held — and press Roll again. Release all unholds them.
  4. Under Chances of each total, choose at least, at most, exactly or between and a total to see its exact probability; the chart highlights those totals.
  5. Use Copy for the latest result, or copy or download the whole History as CSV.

Examples

Two dice: how likely is a 7?
Input
2d6 · chance of exactly 7
Result
16.7% (about 1 in 6) — 6 of 36 equally likely outcomes

Seven is the most likely total of two dice; 2 and 12 each have only 1 way in 36.

Ability scores: four dice, drop the lowest
Input
4d6dl1
Result
For example [5, 3, (1), 6] = 14 · average 12.24 · an 18 has 21 of 1,296 outcomes (1.62%)

The dropped die is shown faded and in brackets in the history.

Advantage on a d20
Input
2d20kh1 · chance of at least 15
Result
51% — compared with 30% for a single d20

Disadvantage (2d20kl1) lowers the same chance to 9%.

Hold a 6 and reroll two dice
Input
3d6 with one 6 held · chance of at least 15 on the reroll
Result
27.8% (10 of 36), compared with 9.26% for a fresh roll of all three dice

Common uses

  • Board games and party games when the dice are lost: Ludo, Monopoly, Yahtzee-style hold-and-reroll games.
  • Tabletop role-playing games (Dungeons & Dragons and others): d20 checks with advantage, damage rolls such as 8d6, ability scores with 4d6 drop lowest.
  • Teaching probability: compare the exact distribution of 1, 2 and 3 dice and watch the bell shape appear.
  • Deciding odds before a move: the chance of reaching a target total with the dice you are about to reroll.

Dice notation

  • NdM — N dice with M sides: 3d6, 1d20, d8 (one die). Dice from d2 to d1000 work; d4, d6, d8, d10, d12, d20 and d100 have their own shapes.
  • + and − — add or subtract numbers or more dice: 1d20+5, 2d6+1d4-1
  • d% — a percentile die (1–100); dF — a Fate/Fudge die (−1, blank or +1)
  • khN / klN — keep the highest / lowest N dice: 2d20kh1 (advantage), 2d20kl1 (disadvantage)
  • dlN / dhN — drop the lowest / highest N dice: 4d6dl1

Up to 20 dice can be on the table at once. The random generator reads the same notation and rolls up to 1,000 dice as text.

How the chances are worked out

Every die is fair, so every combination of faces is equally likely: three six-sided dice have 6 × 6 × 6 = 216 combinations, and 27 of them add up to 10, so the chance of a 10 is 27/216 = 12.5%. The page counts these combinations exactly for every total — for plain sums by combining the dice one at a time, and for keep/drop rules by working through the faces from best to worst and counting how many dice show each face. When there are more than 2⁵³ combinations (about 9 × 10¹⁵, for example 20d100), it does the same calculation with probabilities instead of counts, accurate to far more digits than the page shows.

The average, standard deviation, most likely total and median come from that same distribution. With dice held, the held dice are treated as fixed and only the others as random — which is what you need to decide whether a reroll is worth it.

Hold and reroll

Pressing a die holds it: its face stays when you roll again, and it is marked Held. This is how dice games such as Yahtzee and many push-your-luck games are played. Holds stay until you release them or change the dice. Keep/drop rules always look at the faces showing now, so a held low die can still be the one that is dropped. The roll counter shows how many times the current dice have been rolled.

How fair is it?

Each face is chosen with crypto.getRandomValues, the browser’s cryptographically secure random number generator, using rejection sampling, so every face of every die has exactly the same chance (no "modulo bias"). The face is decided before the tumble animation starts; the animation cannot change it. With Reduce motion turned on in your system settings the dice do not tumble at all.

Limitations

  • For games, teaching and fun — not for gambling or any draw that rules say must use a certified random source.
  • At most 20 dice and dice of up to 1,000 sides at a time. Exact chances for keep/drop rules on very big dice (for example 20d1000kh10) would take too long and are not shown; plain sums always are.
  • The history keeps the last 100 rolls in this browser only.

Privacy

Everything runs in your browser. Your roll history and dice settings are saved in this browser only, so they are still there next time; nothing is uploaded.

Frequently asked questions

Is this dice roller really random?

Yes. Each face comes from your browser’s cryptographically secure random number generator, and rejection sampling makes every face exactly equally likely. The result is fixed before the animation plays.

What are the odds of rolling a 7 with two dice?

6 of the 36 combinations add up to 7 (1+6, 2+5, 3+4, 4+3, 5+2, 6+1), so the chance is 1 in 6, about 16.7%. It is the most likely total of two six-sided dice.

What does 2d20kh1 mean?

Roll two twenty-sided dice and keep the higher one — "advantage" in Dungeons & Dragons 5th edition. 2d20kl1 keeps the lower one (disadvantage). The chart shows how much each shifts the odds.

How do I hold dice and reroll the rest?

Roll once, press the dice you want to keep (they turn yellow and say Held), then press Roll. Only the dice that are not held change. Press a held die again, or Release all, to let it roll.

Can I roll different dice together?

Yes — type them with + or −, for example 1d20+1d4+3 or 2d6-1d4. Each group gets its own row of dice and the total combines them.

What is the most likely total of three dice?

10 and 11, each with 27 of 216 combinations (12.5%). The extremes 3 and 18 have just 1 combination each (0.463%).

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.