Dice Roller & Probability Calculator

Roll standard dice notation with cryptographic randomness, or compute the exact probability of any dice pool.

Dice notation

Examples: 1d20, 2d6+3, 4d6kh3, 3d8-2

Result

Last roll
Rolls

Probability distribution

Mean
Min
Max
P(result ≥ target)

Histogram

How dice notation works

Standard dice notation dates back to the earliest tabletop RPGs and is used in everything from D&D to board game rulebooks:

Why probability beats intuition

People are terrible at estimating dice odds. A few facts that trip everyone up:

FAQ

What is dice notation?

Dice notation is a short way to write a dice roll: NdS means 'roll N dice with S sides each'. So 3d6 rolls three six-sided dice. Modifiers are added: 1d20+5 rolls a d20 and adds 5. Keep-highest is written kh (4d6kh3 = roll 4d6 and keep the highest 3, the classic D&D ability score roll).

Are the rolls truly random?

Yes — this uses the browser's crypto.getRandomValues, which produces cryptographically secure random numbers. It's far better than Math.random for anything where fairness matters. No results are ever sent to a server.

How does probability mode differ from rolling?

Rolling gives you one random result. Probability mode computes the exact distribution of every possible outcome — mean, minimum, maximum, and the chance of hitting or beating any target. Useful for RPG combat planning, board game analysis, and homework.

What sizes of dice are supported?

Any positive integer of dice and sides — d4, d6, d8, d10, d12, d20, d100, or exotic dice like d3 or d1000. The probability distribution is fast for typical dice pools (up to a few hundred dice); for anything larger it will still work but may take a moment.