Dice Roller

Pick how many dice you want (1 to 10), pick the die type (d4 through d20), and hit Roll. You get every individual die, the total, and a running history for your session. No results are stored anywhere; close the tab and the rolls are gone.

Put this calculator on your website for free

Copy one snippet and give your visitors a working Dice Roller.

How this dice roller works

Every click of Roll asks your browser for fresh random numbers, one per die, and maps each one to a face with equal probability. A d6 gives each of its six faces exactly a 1 in 6 chance; a d20 gives each face 1 in 20. The dice you see are drawn as clean SVG shapes (pips for the d6, numerals for the rest), the total and each individual value appear instantly, and your last 10 rolls stack up in a session history along with a running average you can check against the theoretical one. In dice notation, the settings above read as count, then d, then faces: 2 dice of type d6 is the classic 2d6, and 1d20 is the single twenty-sider that decides so many tabletop fates.

Is it fair? What pseudorandom honestly means

The rolls come from your browser's built-in generator (Math.random), which is a pseudorandom generator: a deterministic formula that produces a sequence of numbers that passes statistical tests for uniformity. Nobody at your table can see its internal state or predict the next roll, and over thousands of rolls each face comes up as often as it should, so for games it behaves exactly like a fair die. What it is not is cryptographically secure: given enough consecutive outputs and serious effort, a mathematician could in principle reconstruct the sequence. That matters for lotteries and passwords, not for whether your barbarian hits the goblin. If you want numbers for something beyond games, our random number generator covers that ground in more depth.

The 2d6 table every board gamer should know

Roll two six-sided dice and the totals are not equally likely, because there are 36 equally likely combinations but different totals claim different numbers of them. Seven is king with 6 of the 36 ways. This is the math underneath craps, Catan, and Monopoly:

TotalWays out of 36Probability
212.8%
325.6%
438.3%
5411.1%
6513.9%
7616.7%
8513.9%
9411.1%
1038.3%
1125.6%
1212.8%

That is why the 6 and 8 hexes in Catan are prime real estate and why the robber lives on 7. If you want to compute odds for other dice combinations or events, our probability calculator does the general case.

Dice notation in 30 seconds

The shorthand you see in rulebooks is count, the letter d, then faces: 3d8 means roll three eight-sided dice and add them up. Modifiers tack on at the end, so 2d6+3 means roll 2d6 and add 3 to the total. One quirk worth knowing: adding dice does not just raise the average, it reshapes the odds. A single d12 lands on any face with equal probability, a flat line from 1 to 12. Roll 2d6 instead (same maximum, similar average) and the results hump up in the middle: you will see totals of 6, 7, and 8 constantly and a 2 or 12 only once in 36 rolls. Game designers pick between flat and humped distributions on purpose, and now you can too. For more dice-adjacent probability in playable form, try our penalty shootout simulator, which is the same honest randomness wearing football boots.

Frequently asked questions

Is this dice roller fair?

Yes: every face of every die has exactly the same chance of coming up, one in four for a d4 through one in twenty for a d20. Under the hood it uses your browser's pseudorandom number generator, which is thoroughly good enough for games, though not for cryptography. We tested the distribution over tens of thousands of rolls before shipping it.

What does 2d6 mean?

It is standard dice notation: the first number is how many dice you roll and the number after the d is how many faces each die has. So 2d6 means roll two six-sided dice and add them, and 1d20 means roll one twenty-sided die. Set the count to 2 and the type to d6 on this page and you are rolling 2d6.

What is the most likely total when rolling two dice?

Seven. There are 36 equally likely ways two six-sided dice can land, and six of them add to 7 (1+6, 2+5, 3+4, 4+3, 5+2, 6+1), which works out to 6/36, about 16.7%. Totals of 2 and 12 are the rarest at 1/36 each, about 2.8%. The full table is on this page.

Can I use this dice roller for D&D or board games?

Yes, that is exactly what it is for. It covers the classic polyhedral set: d4, d6, d8, d10, d12, and d20, up to 10 dice at a time. For a d100 (percentile) roll, roll a d10 twice and read the first roll as the tens digit, or use our random number generator set to 1 to 100.

Can online dice rolls be predicted?

Not in any practical sense. The browser's generator is pseudorandom, meaning a formula produces the sequence, but the internal state is not visible to anyone at the table and the output passes statistical tests for uniformity. For game night, that is fair. For anything where money or security rides on unpredictability, you want a cryptographic generator instead.

Are my dice rolls saved anywhere?

No. The history you see lives only in your browser's memory for the current visit and holds your last 10 rolls. Nothing is sent to a server, nothing is written to your device, and refreshing or closing the page clears it. The shareable link carries only your dice count and die type, never your results.

Related calculators