Worked example
1d20+5 with advantage against AC 15 → 79.75% to hit, up from 55%
Roll an attack with advantage and see your chance to hit
-
Choose D&D and type the roll
A d20 plus your attack bonus. Notation like 2d6+3 or 4d6dl1 works too, or tap a common roll.
-
Turn on advantage
The tool rolls two d20s and keeps the higher one, so this attack totals 16 + 5 = 21.
-
Type the Armor Class you need
Advantage lifts the chance to hit AC 15 from 55% to 79.75%; disadvantage drops it to 30.25%.
-
Board game or Yahtzee instead?
Dice rolls any number of d4s to d100s and flags doubles. Yahtzee keeps the dice you tap between rolls.
Dice notation, read out
Tabletop games write a roll as NdS: N dice with S sides each. A number after a plus or minus is added to the total. The D&D System Reference Document uses the same form, and the tool reads all of these:
| Type | Means | Average | Range |
|---|---|---|---|
| 1d20 | One 20-sided die | 10.5 | 1 to 20 |
| 1d20+5 | A d20 plus 5, as for an attack with a +5 bonus | 15.5 | 6 to 25 |
| 2d6+3 | Two six-sided dice plus 3 | 10 | 5 to 15 |
| 8d6 | Eight six-sided dice (a Fireball’s damage) | 28 | 8 to 48 |
| 4d6dl1 | Four d6, drop the lowest: add the highest three | 12.24 | 3 to 18 |
| 2d20kh1 | Two d20s, keep the higher one: advantage | 13.825 | 1 to 20 |
| 2d20kl1 | Two d20s, keep the lower one: disadvantage | 7.175 | 1 to 20 |
| d% | Percentile dice, the same as 1d100 | 50.5 | 1 to 100 |
The average of any dice roll
A fair die with S sides averages (S + 1) ÷ 2, the middle of its faces: 3.5 for a d6, 10.5 for a d20. Averages add, so the average of several dice is the number of dice times that, plus any bonus. The tool shows the lowest, average and highest of every roll.
| Die | Average | Two of them | Lowest to highest |
|---|---|---|---|
| d4 | 2.5 | 5 | 1 to 4 |
| d6 | 3.5 | 7 | 1 to 6 |
| d8 | 4.5 | 9 | 1 to 8 |
| d10 | 5.5 | 11 | 1 to 10 |
| d12 | 6.5 | 13 | 1 to 12 |
| d20 | 10.5 | 21 | 1 to 20 |
| d100 | 50.5 | 101 | 1 to 100 |
Average damage of 8d6
8 × 3.5 = 28. Just over half of all rolls come in at 28 or more (54.0%, because 28 itself counts), and 9.1% at 35 or more. With eight dice the totals bunch into a bell shape: the standard deviation is 4.83, and 64% of rolls land within one of it (24 to 32) and 95% within two (19 to 37), close to the 68% and 95% of the empirical rule.
Advantage and disadvantage in D&D
The SRD 5.2.1 says: “Use the higher of the two rolls if you have Advantage, and use the lower roll if you have Disadvantage. For example, if you have Disadvantage and roll an 18 and a 3, use the 3.” Having both on one roll cancels them out. With advantage you fail only if both dice fail, so the chance of success goes from p to 1 − (1 − p)²; with disadvantage it drops to p².
| You need | Normal | Advantage | Disadvantage |
|---|---|---|---|
| 11 or more on the d20 | 50% | 75% | 25% |
| 15 or more with +5 (AC 15) | 55% | 79.75% | 30.25% |
| A natural 20 | 5% | 9.75% | 0.25% |
Advantage helps most when you need about an 11: it adds 25 points to the chance. It adds less when the roll is very easy or very hard. Type your target into Need at least and the tool shows all three.
Natural 20s and critical hits
A 20 on the die itself, a “natural 20”, hits on an attack roll whatever the target’s Armor Class, and a natural 1 misses. A natural 20 is also a critical hit: “Roll the attack’s damage dice twice, add them together, and add any relevant modifiers as normal.” The SRD’s example is a dagger, 2d4 instead of 1d4. The Critical hit button doubles every die in the roll and leaves the bonus alone, so 2d6+3 becomes 4d6+3.
Rolling ability scores: 4d6, drop the lowest
The SRD’s “Random Generation” method: “Roll four d6s and record the total of the highest three dice. Do this five more times, so you have six numbers.” Across all 1,296 ways four dice can land, a score averages 12.24 and 13 is the most common. An 18 comes up 1.62% of the time, 21 ways in 1,296, and a 3 only once in 1,296.
Six rolled scores average about 73.5 in total, a little more than the SRD’s standard array of 15, 14, 13, 12, 10 and 8, which adds to 72. Rolled scores trade that small edge for the risk of a weak set. The tool’s Roll 6 ability scores shows each set of four with the dropped die greyed out.
Odds for board games
Most board games roll two six-sided dice. There are 36 ways they can land, all equally likely, and OpenStax lists them. A 7 can be made 6 ways, more than any other total, so it comes up 1 time in 6:
| Total | Ways out of 36 | Chance |
|---|---|---|
| 2 | 1 | 2.8% |
| 3 | 2 | 5.6% |
| 4 | 3 | 8.3% |
| 5 | 4 | 11.1% |
| 6 | 5 | 13.9% |
| 7 | 6 | 16.7% |
| 8 | 5 | 13.9% |
| 9 | 4 | 11.1% |
| 10 | 3 | 8.3% |
| 11 | 2 | 5.6% |
| 12 | 1 | 2.8% |
Monopoly doubles: 6 of the 36 ways are doubles, so 1 roll in 6. Hasbro’s rules: “If you roll doubles three times in a row, you must immediately go to Jail!” Three in a row is 1/6 × 1/6 × 1/6 = 1 in 216.
Catan’s 6 and 8: 5 ways each, so a hex numbered 6 or 8 pays out on 13.9% of rolls, and either of them on 27.8%, well ahead of the 7 alone at 16.7%.
Snake eyes or boxcars: a 2 or a 12 is 1 way in 36 each.
Yahtzee odds
In Hasbro’s Yahtzee a turn is up to three rolls of five dice, and between rolls you “set aside any ‘keepers’ and re-roll the rest.” If you keep your biggest set of matching dice each time, the chance of five of a kind within one turn is 4.60%, about 1 turn in 22. In a single roll it’s 6 in 7,776, or 1 in 1,296.
With four of a kind showing, the fifth die has a 1-in-6 chance on each roll: 16.67% with one roll left and 30.56% with two. In Yahtzee mode the tool works out the chance from the dice you have now, going through every way the rerolled dice can land.
Are online dice fair? We rolled 16 million to check
Each die comes from your browser’s cryptographic random number generator (Web Cryptography API), the same source used to make passwords and encryption keys. A careless dice roller takes a random number and keeps the remainder after dividing by the number of sides, but a random 32-bit number has 4,294,967,296 values, and that doesn’t divide evenly by 6: the 1s to 4s would come up a tiny bit more often than the 5s and 6s. The tool throws those few leftover values away and draws again, so every face has exactly the same chance. It’s the same generator and method as our random number generator.
To check the result, we rolled 10,000,000 d6s and a million of every other die through the tool’s own code, and ran a chi-square test on the face counts. A fair die’s counts are never perfectly even; the test says how often a fair die gives counts at least this uneven:
| Die and rolls | Most off a perfect split | p‑value |
|---|---|---|
| d6, 10,000,000 | 0.09% | 0.83 |
| d4, 1,000,000 | 0.12% | 0.89 |
| d8, 1,000,000 | 0.81% | 0.03 |
| d10, 1,000,000 | 0.52% | 0.60 |
| d12, 1,000,000 | 0.77% | 0.09 |
| d20, 1,000,000 | 0.81% | 0.56 |
| d100, 1,000,000 | 2.64% | 0.36 |
The d8 came out at p = 0.03: in seven tests, one result that low is about what chance gives. Run the same test yourself in the tool, under Is it fair?: it rolls a million of your dice in your browser and draws the counts.
Real dice aren’t quite fair
In 1894 the biologist W. F. R. Weldon threw 12 dice 26,306 times and counted the 5s and 6s. A fair die gives a 5 or 6 one time in 3; his dice did it 0.3377 of the time. In 2009 Zacariah Labby repeated the experiment with a machine that rolled 12 dice and photographed them. His machine’s count of 5s and 6s passed the fair-die test, but face by face his dice were biased too: across all 315,672 dice, 1s and 6s came up more often than the other faces (p = 0.00014). When he measured the dice, the 1-to-6 axis was shorter than the other two on every one, so those two faces were a little larger. His 5s came up slightly less often than a fair die’s, which offset most of the extra 6s and left the 5-or-6 count close to fair. Coins lean too: tossed by hand, they land on the side they started a little more often, as the coin flipper page shows. We ran Weldon’s experiment through the tool as well:
| Who rolled | Share of 5s and 6s | Fair on 5s and 6s? |
|---|---|---|
| Weldon, 1894 (26,306 throws of 12 dice) | 0.3377 | No: p = 0.0003 (Labby’s figure) |
| Labby’s machine, 2009 | 0.3343 | Yes: p = 0.85 |
| This tool, 19 Nov 2026 | 0.3321 | Yes: p = 0.13 |
SRD, Hasbro and OpenStax, run here
A dice roller can go wrong in three places: reading the roll, the odds behind it, and the fairness test. So the table runs textbook examples, the D&D and Yahtzee rule books’ own examples, Weldon’s expected counts and NIST’s chi-square table through the tool’s code, and a mismatch on any row stops the page being built. Last run 20 November 2026.
| Example | Where it’s printed | The source’s answer | This calculator |
|---|---|---|---|
| Ways two dice can land | OpenStax, example 4.7 | 36 | 36 |
| One die: chance of a 5 or more | OpenStax 3.1 | 2/6 | 2/6 |
| Disadvantage, rolls of 18 and 3: the one used | SRD 5.2.1 | 3 | 3 |
| Critical hit with a dagger, 1d4: the damage dice | SRD 5.2.1 | 2d4 | 2d4 |
| Yahtzee: two Aces, points in the Aces box | Hasbro C2406 | 2 | 2 |
| Yahtzee: a full house (three 3s, two 5s) | Hasbro C2406 | 25 | 25 |
Show the other 2 checks
| Example | Where it’s printed | The source’s answer | This calculator |
|---|---|---|---|
| Weldon: expected throws with 4 fives or sixes | Labby 2009, Table 1 | 6,273 | 6,273 |
| Chi-square of 11.070 with 5 degrees of freedom: chance of that or more | NIST/SEMATECH table | 0.05 | 0.05 |
Questions
Is this dice roller truly random?
It uses your browser’s cryptographic random number generator, which is built to be unpredictable, and it maps the numbers so that every face is exactly equally likely. Our 16-million-roll test found no face favoured. Physical dice are often less even than that.
How do I roll with advantage?
Pick D&D, type a roll with one d20, like 1d20+5, and choose Advantage. The tool rolls two d20s, keeps the higher, and shows both. You can also type 2d20kh1 directly.
What does 4d6 drop lowest mean?
Roll four six-sided dice and add the highest three. It’s the D&D way to roll an ability score; it averages 12.24, and the tool’s Roll 6 ability scores button does all six at once.
What is the most common total with two dice?
7. Six of the 36 ways two dice can land add up to 7, so it comes up 1 roll in 6. 2 and 12 are the rarest, 1 way each.
What are the odds of rolling a Yahtzee?
4.60% in a turn of three rolls, keeping your biggest set of matching dice each time: about 1 turn in 22. In one roll of five dice it’s 1 in 1,296.
Can I roll a d3, d7 or d30?
Yes. Type it in D&D mode: 1d3, 1d7 or 1d30. Any die from 2 to 1,000 sides works, and up to 200 dice in one roll.
Does it save my rolls?
Your latest roll is in the page’s link, so sharing the link shows it. Nothing is sent anywhere: the dice are rolled in your browser.
Sources
- W3C: Web Cryptography API, getRandomValues()
- Wizards of the Coast: System Reference Document 5.2.1 (CC-BY-4.0)
- Hasbro: Yahtzee Classic instructions (C2406)
- Hasbro: Monopoly instructions (C1009)
- OpenStax: Introductory Statistics 2e, 4.2 Mean or Expected Value and Standard Deviation
- OpenStax: Introductory Statistics 2e, 3.1 Terminology
- Zacariah Labby: Weldon’s Dice, Automated, CHANCE 22(4), 2009
- NIST/SEMATECH e-Handbook of Statistical Methods: Critical values of the chi-square distribution
How sources are chosen and checked: editorial policy · these sources in the library, with the other tools that use them