# D20 Dice Roller

URL: https://speedycalculator.com/calculators/statistics/d20-dice-roller/
Last updated: 2026-11-16

> The D20 dice roller makes d20 checks and attack rolls with a modifier against a target number (DC or AC), with normal rolls, advantage or disadvantage, flags natural 20s and 1s and gives the exact probability of success.

## Inputs

- Number of rolls
- Roll type
- Modifier (ability + proficiency + bonuses)
- Target number (DC or AC)

## Results

- Total (first roll)
- Natural d20 result
- Outcome
- Chance of success per roll
- Average total
- Successes
- All rolls
- Natural d20 results

## Formula

```
One d20: each face 5% · P(success) = (21 − (DC − modifier))/20, capped 5–95% · advantage: 1 − (1 − p)² · disadvantage: p²
```

## Explanation

The twenty-sided icosahedron is the signature die of Dungeons & Dragons and of the d20 System it inspired. Almost every important action (hitting a monster, picking a lock, resisting a spell) comes down to rolling a d20, adding a modifier and comparing the result with a target number: a Difficulty Class for checks and saves or an Armor Class for attacks. Meet or beat the target and you succeed.

Fifth edition adds advantage and disadvantage: roll two d20s and keep the higher or lower one. Advantage is worth roughly +3 to +5 on a single roll near the middle of the range, and disadvantage costs about the same. On attack rolls a natural 20 always hits (and is a critical hit), and a natural 1 always misses.

Set the number of rolls, your modifier and the target, choose normal, advantage or disadvantage and roll. The tool shows the natural roll, the total, success or failure for each roll in a table and the exact chance of success for one roll. The chart shows the probability of each natural result with the successful ones highlighted.

### How to use the D20 Dice Roller

- **Number of rolls**
- **Roll type**
- **Modifier (ability + proficiency + bonuses)**
- **Target number (DC or AC)**

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

### How it works

Each roll draws one or two uniform integers from 1 to 20 and keeps the higher or lower as chosen. The success probability counts the faces that meet the target after the modifier, treating 20 as an automatic success and 1 as an automatic failure (the attack-roll rule).

### Worked example

With a +5 attack bonus against AC 15 you need a natural 10 or better: 11 faces out of 20, a 55% chance. With advantage the chance becomes 1 − 0.45² = 79.75%, and with disadvantage 0.55² = 30.25%. The average total is 10.5 + 5 = 15.5 normally and 13.825 + 5 = 18.825 with advantage.

### Chance of success by the number you need

Need on the dieNormalAdvantageDisadvantage5+80%96%64%8+65%87.75%42.25%11+50%75%25%15+30%51%9%18+15%27.75%2.25%

## Worked example

Inputs: Number of rolls: 1; Roll type: Normal – one d20; Modifier (ability + proficiency + bonuses): 5; Target number (DC or AC): 15.

Results: **Total (first roll) = 20**; Natural d20 result = 15; Outcome = Success; Chance of success per roll = 55 %; Average total = 15.5; All rolls = Roll Dice Kept Total Outcome
────────────────────────────────────
1 15 15 20 Success.

## Key terms

- **Difficulty Class (DC)**: The target number for an ability check or saving throw.
- **Armor Class (AC)**: The target number an attack roll must meet or beat.
- **Natural 20 / natural 1**: The face actually rolled, before modifiers; 20 is a critical hit and 1 an automatic miss on attacks.
- **Advantage / disadvantage**: Rolling two d20s and keeping the higher or lower result.

## FAQ

**What is the chance of rolling a natural 20?**
1/20 = 5%. With advantage it rises to 1 − (19/20)² = 9.75%; with disadvantage it falls to 0.25%.

**How much is advantage worth?**
Near the middle it adds about 25 percentage points: needing 11 or more, the chance goes from 50% to 75%, roughly a +5 bonus.

**What is the average d20 roll?**
10.5 normally, 13.825 with advantage and 7.175 with disadvantage.

**Does a natural 20 always succeed?**
On attack rolls in D&D 5e, yes (and it is a critical hit). For ability checks and saving throws the official rules do not make 20 an automatic success, though many tables do.

**How do I calculate my chance to hit?**
Count the d20 faces that reach the AC after your bonus: with +5 against AC 15 you need 10 or more, 11 faces, 55%.

**What shape is a d20?**
An icosahedron, with 20 triangular faces, 12 vertices and 30 edges. It is not a dodecahedron, which is the 12-sided d12.


## Sources

- [Wolfram MathWorld: Dice](https://mathworld.wolfram.com/Dice.html)
- [Penn State STAT 414: Introduction to Probability Theory](https://online.stat.psu.edu/stat414/)
