Random tool · Free · No sign-up

Dice Roller

Short answer

Pick a die, or type dice notation such as 2d6+3, and press Roll or the Space bar. Each face comes from your browser’s cryptographic random source and has exactly the same chance: 1 in 6 on a d6, 1 in 20 on a d20. The total, every die and the exact odds of that total appear at once.

It works offline, and nothing is sent anywhere.

?1d6: totals 1 to 6, average 3.5.Press Roll or the Space bar; tap a die to reroll just that die.

The odds of every total

The chance of each total, as bars

Average 3.5, spread (SD) 1.71, totals 1 to 6.

The chance of each total
TotalChanceThis total or more
116.67%100%
216.67%83.33%
316.67%66.67%
416.67%50%
516.67%33.33%
616.67%16.67%
History, the 1,000-roll test and keys

Your last 200 rolls, newest first

  1. No rolls yet.

Test the dice: 1,000 rolls

How often each face came up, against the expected count

Rolls one die 1,000 times and checks the counts against a fair die with a chi-square test. It does not change your history.

Random source: crypto.getRandomValues, 32-bit draws with rejection sampling. Draws rejected this session: 0.

Keys (when the tool has focus)

4, 6, 8, 0 (d10) and 2 (d20) add a die; @ adds a d12 and % a d100; Backspace removes the last die; C clears; H opens this panel; Space or Enter rolls.

Each face comes from your browser’s cryptographic random source, drawn before the dice turn; a d10 shows 0 for 10, and a d100 is read as a tens die plus a ones die. Nothing is sent anywhere, and it works offline.

Tap a die in the tray to add it, or type the roll a game asks for. The roller shows each die, keeps or drops dice as the notation says, and draws the chance of every possible total, with yours marked.

A dice roller stands in for physical dice: it picks each die’s face at random, with every face equally likely, and adds them up. Dice notation such as 2d6+3 says how many dice, how many sides and what to add.

  • No sign-up
  • Nothing sent anywhere
  • Exact odds
  • Works offline

Key facts

Dice roller at a glance
DetailAnswer
Diced4, d6, d8, d10, d12, d20 and d100, and any die from d2 to d1000
Each face of a d61 in 6 (16.67%)
Two dice7 is the likeliest total, 6 ways out of 36 (16.67%)
Opposite faces of a d61 and 6, 2 and 5, 3 and 4: each pair adds up to 7
Random sourcecrypto.getRandomValues, 32-bit draws with rejection sampling; never Math.random
OddsExact for plain, exploding and most keep/drop rolls; estimated from simulated rolls only for very large keep/drop pools, and labelled

How to roll dice online

Choose the dice, roll, read the odds.

  1. Choose the dice

    Tap d4 to d100 in the tray, once per die, or type notation such as 3d6 or 2d8+1d4.

  2. Add modifiers if the game needs them

    +3 adds three; 4d6dl1 drops the lowest of four; adv rolls two d20 and keeps the higher.

  3. Roll

    Press Roll or the Space bar, or press Enter in the notation box.

  4. Read the dice and the total

    Each die is shown, dropped dice are faded, and the board gives the total and how it was made.

  5. Read the odds

    The chart and table give the chance of every total, with yours marked.

  6. Reroll one die, or keep a record

    Tap a die to reroll only that one; the history keeps your last 200 rolls.

What people roll dice online for

Any game or lesson that needs dice when the dice are missing, or when the odds matter.

  • Board games

    Two d6 for most family games, with doubles easy to spot on the screen.

  • Tabletop role-playing games

    d20 checks with advantage (the d20 roller shows the odds of each), 4d6 drop lowest for ability scores, damage rolls such as 2d6+3, all in one box; the DnD dice roller rolls the attack and its damage together.

  • Classrooms

    Roll 1,000 times to show the law of large numbers, or colour dice for young children.

  • Party games

    Full screen on a TV, so everyone sees the roll; for dice that tumble across the screen, the 3D dice roller.

  • Maths practice

    Predict the likeliest total of two or three dice, then check it against the table.

  • Quick decisions

    A d3 or a d6 for three or six options; for a list of names the random picker is quicker.

Dice notation in one minute

Dice notation writes a roll as a number of dice, the letter d and the number of sides: 3d6 is three six-sided dice, d20 one twenty-sided die and d% a percentile roll from 1 to 100. Add or take away dice and whole numbers with + and −. The box above the dice reads the same notation, so anything written in a game’s rules can be typed as it is.

Six rolls in dice notation, with their exact odds
NotationMeansRangeAverageLikeliest total
2d6+3Two six-sided dice, plus 35 to 151010 (16.67%)
4d6dl1Four d6, drop the lowest3 to 1812.2413 (13.27%)
2d20kh1+5Two d20, keep the higher, plus 56 to 2518.8325 (9.75%)
d%A percentile roll1 to 10050.5Each 1%
3d6!Three d6; a 6 rolls again and adds3 and up12.69 or 10 (9.03%)
1d20+1d4+2A d20 and a d4, plus 24 to 26157 to 23 (5% each)

The modifiers work on one group of dice at a time: kh and kl keep the highest or lowest dice, dh and dl drop them, and ! explodes a die, rolling it again whenever it shows its top face, at most 50 times. adv and dis are shorthand for two d20 keeping the higher or the lower (the d20 roller works out what that is worth). Up to 100 dice of a kind, 2 to 1,000 sides and 200 dice in all; d3 and d2 are written 1d3 and 1d2.

Which die is which: d4 to d100

The common dice are five of the regular solids, a ten-sided die and a pair of tens. Their names give their faces: a d8 has eight. The face counts, corners and edges below are from Wolfram MathWorld’s table of the Platonic solids.

The standard dice
DieShapeFacesCornersEdgesAverage rollEach face
d4Tetrahedron4 triangles462.525%
d6Cube6 squares8123.516.67%
d8Octahedron8 triangles6124.512.5%
d10Pentagonal trapezohedron10 kites12205.510%
d12Dodecahedron12 pentagons20306.58.33%
d20Icosahedron20 triangles123010.55%
d100Two d10s (tens and ones)100 pairs––50.51%

d4: the four-sided die

A tetrahedron has no face on top when it lands; it rests on a face with a point upward, so its number is read at the top point or along the bottom edges, depending on how it is printed. It averages 2.5 and is the usual die for small amounts, such as a dagger’s damage in a role-playing game; the DnD dice roller shows why a critical hit with it averages 8, not 11.

d6: the cube

The everyday die. Opposite faces add up to 7, so 1 is opposite 6, 2 opposite 5 and 3 opposite 4, and the faces can be laid out in two mirror-image ways (MathWorld, Dice). The roller shows pips by default, or numbers or colours for young children.

d8: the octahedron

Eight triangles, averaging 4.5. It looks like two square pyramids joined at the base, and lands with one face flat on top, read like a d6.

d10: the ten-sided die

Not a regular solid but a pentagonal trapezohedron, whose ten faces are kites (MathWorld, Trapezohedron). Real d10s are numbered 0 to 9, and a single d10 reads 0 as 10; the roller shows the 0 the same way, with “0 = 10” under it.

d12: the dodecahedron

Twelve pentagons, averaging 6.5. It is the only common die whose faces are not triangles, squares or kites, and a d12 can stand in for a clock or a year’s months.

d20: the icosahedron

Twenty triangles, each 5%. Role-playing games use it to decide whether an action succeeds, and two d20 keeping the higher (advantage) give a 20 9.75% of the time instead of 5%; the d20 roller shows your exact chance at any target number, and the DnD dice roller rolls death saves with a tracker. Twenty-sided dice are ancient: The Metropolitan Museum of Art holds one from Egypt, carved in serpentinite and inscribed with Greek letters, from the Ptolemaic to the Roman period.

d100: percentile dice

Usually two d10s, one numbered in tens (00 to 90) and one in ones (0 to 9), read together: 40 and 7 make 47, and 00 with 0 makes 100, as the Basic Rules’ section on game dice sets out. The roller shows each d100 result with its tens and ones under it; the d100 roller rolls the two dice on their own, with a roll-under check and your own table.

Why these shapes make fair dice

A die is fair when every face has the same chance of landing up, and the shape decides that before any material does. The shapes used for dice are isohedra: solids whose faces are all identical and whose symmetries can move any face onto any other, so no face is special. The five Platonic solids are isohedra, and so are the trapezohedra, the family the d10 belongs to (MathWorld, Isohedron).

A real die is only as fair as its making, which is why Britannica notes that casino dice are made to a tolerance of 0.0001 inch. An on-screen die has no shape or weight at all: the roller draws each face from a random number, so every face has exactly the same chance however the die is drawn. A flipped coin has a smaller, measured version of the same problem: a caught coin lands on its starting side 50.8% of the time.

What totals to expect with two or three dice

One die is flat: every face equally likely. Add dice and the totals bunch in the middle, because more combinations make a middle total. Two d6 can make 7 six ways and 2 or 12 only one way each; MathWorld gives the chance of a total t as (6 − |t − 7|) / 36 (Dice).

Two six-sided dice: the ways to make each total out of 36
TotalWaysChance
212.78%
325.56%
438.33%
5411.11%
6513.89%
7616.67%
8513.89%
9411.11%
1038.33%
1125.56%
1212.78%

With three d6 the middle widens: 10 and 11 are the likeliest totals, one roll in eight each, and 3 or 18 come up once in 216 rolls. The chart above the dice draws the same shape for whatever you type, and the table marks where your own total falls. For a pair of dice on their own, roll two dice lists the pairs behind every total and counts your doubles, and how many rolls it takes for 7 to lead 8 is worked out in a guide.

Is an online dice roller fair?

An online roller is fair if two steps are done right: the random bits and the way they become a face. The bits here come from crypto.getRandomValues, which MDN describes as giving cryptographically strong random values from a generator seeded with enough entropy (how that differs from Math.random). Turning bits into a face is where many rollers slip. A random byte has 256 values, which do not divide by 6, so the remainder shortcut favours four faces:

A random byte turned into a d6 face by its remainder
FacesByte values eachChanceFair chance
1, 2, 3, 443 of 25616.80%16.67%
5, 642 of 25616.41%16.67%

This roller draws 32 random bits and throws away any draw at or above the largest multiple of the side count, then draws again, so every face has exactly the same chance. For a d6 a draw is thrown away about once in a billion (4 values in 232); the count is shown under the 1,000-roll test. The random number generator works the same rule through with a worked table.

To check it yourself, open the test panel and roll one die 1,000 times. The counts will not be equal, and should not be; the chi-square test says whether they are as uneven as a fair die’s usually are. Even a perfect die fails that test about one time in 20, so one unusual result is not evidence of a fault. The guide to testing whether a die is fair works the test through by hand and shows how many rolls it takes to catch a loaded die.

A short history of dice

Dice are among the oldest gaming objects. The Encyclopædia Britannica traces them to knucklebones, small animal ankle bones thrown like dice, and notes cubic dice in Egyptian tombs from about 2000 BCE and in China from about 600 BCE, and pyramid-shaped dice used with the Royal Game of Ur. The British Museum’s board of the Royal Game of Ur, from the Royal Cemetery at Ur, dates from about 2600 to 2400 BC. MathWorld records dice from Shahr-e Sukhteh in Iran from about 2500 to 2300 BC.

The mathematics came much later: Britannica credits Gerolamo Cardano and Galileo Galilei with starting it, in the 16th and early 17th centuries. It is the kind of question the odds table above answers: why some totals of three dice turn up more often than others.

Dice in the classroom

Dice make chance visible, which is why they are a classroom staple. A few ways to use the roller:

  • Roll a die 100 times. The test panel rolls 1,000 at once and draws the counts against the expected line, so pupils can see that a fair die is uneven in the short run and even in the long run.
  • Streaks. A coin is the simplest way to see how streaks halve the odds; the coin flip probability calculator gives the exact chance of any run, the gambler’s fallacy guide explains why a run never makes a face due, the luck test counts them, and guess heads or tails shows what a score of 7 of 10 really means.
  • Two dice and the middle. Ask which total of two dice comes up most, then roll and compare with the table of 36 combinations, or pool a class’s rolls on roll two dice; why 8 often beats 7 in a short experiment says how many rolls it takes.
  • Colour dice for young children. Choose Colours and a d6 shows red, orange, yellow, green, blue or purple, each named on the face.
  • Full screen. Shows the dice and total large enough for a projector.

For other random choices in class, the random picker chooses names from a list and the coin flip settles two-way calls; the draw statistics on the daily tarot show how streaks and repeats turn up by chance, a good follow-up to a dice lesson, and the one card tarot draws a card from a fair 78-card shuffle. For learning the numbers themselves, the number flashcards show each one as a numeral, dots or a ten-frame.

This dice roller or a typical online roller

What this roller adds to a typical online dice roller.

This dice roller compared with a typical online dice roller
 This dice rollerA typical dice roller
Dice notation2d6+3, keep, drop, explode, adv/disSometimes NdS only
Odds of your totalExact, with a chart and tableNo
How a face is drawncrypto.getRandomValues, rejection sampling, statedUsually not stated
Test the dice yourself1,000 rolls with a chi-square testNo
Real-dice facesd10 numbered 0–9, d100 as tens and onesOften 1–10 and one ball
Reroll one dieTap itSometimes
History and full screenYes, kept on your deviceVaries

More random tools

Every random tool on the site runs in your browser, needs no sign-up, and sends nothing anywhere.

Dice1

Dice of every common size, each face equally likely, with the totals and their odds.

All 6 random tools, by category: Coins & yes or no (2) · Dice (2) · Cards & draws (1) · Numbers & picks (1)

Frequently asked questions

Is this dice roller fair?

Yes. Every face is drawn with crypto.getRandomValues and rejection sampling, so no face gets even a tiny extra share. The shortcut many rollers use, a random byte’s remainder, gives four faces of a d6 16.80% each and two only 16.41%. Run the 1,000-roll test and watch each face settle near its fair share.

How do I roll several dice at once?

Tap a die in the tray once for each die you want, or type notation such as 3d6 or 2d8+1d4. Every die is shown with the total, and tapping one die rerolls just that die. Up to 100 dice of a kind and 200 in one roll.

What does 2d6+3 mean?

Roll two six-sided dice and add 3 to their total. The result runs from 5 to 15, averages 10, and 10 is the likeliest single total at 6 chances in 36 (16.67%). Type 2d6+3 into the notation box to see every total’s chance.

What is the most common total with two dice?

7, which six of the 36 combinations make: 1 and 6, 2 and 5, 3 and 4, each both ways round, a 16.67% chance. 2 and 12 are the rarest, one combination each, 2.78%.

Why do opposite sides of a die add up to 7?

It is the standard layout of a six-sided die: 1 is opposite 6, 2 opposite 5 and 3 opposite 4. The faces around one corner can then run clockwise or anticlockwise, so standard dice come in two mirror-image versions. Either way the die is equally fair.

How do I roll a d3 or a d2?

Type 1d3 or 1d2 into the notation box; any die from 2 to 1,000 sides works. With physical dice, a d3 is a d6 halved and rounded up (1–2 is 1, 3–4 is 2, 5–6 is 3), and a d2 is any die read as odd or even.

Can I roll a die 100 times and see the results?

Yes. Open the test panel, choose the die and press Roll 1,000 times: the counts for every face are drawn against the expected count, with a chi-square test of whether they look like a fair die. Your own roll history keeps the last 200 rolls.

Does the dice roller work offline, and does it save my rolls?

After the page has loaded, rolling needs no connection. Your dice, face style and last 200 rolls are kept in this browser’s storage and nowhere else, and Clear the history deletes them. A copied link shares the dice, never your results.

Related guides

Longer answers to the questions behind the numbers.

All guides

People also search for

Open the dice roller

Free, no sign-up, and what you enter stays in your own browser.