D20 Calculator
Roll d20 dice with advantage/disadvantage, modifiers, and probability calculations.
D20 Roll
Probability Analysis
Critical Chances
DC Reference
What Is a D20 Calculator?
A d20 calculator is an essential tool for tabletop roleplaying game players who want to know exactly how likely they are to succeed on any given roll before they even pick up the dice. The iconic twenty-sided die sits at the heart of Dungeons & Dragons, Pathfinder, and dozens of other RPG systems ā and understanding its probabilities separates reactive players from strategic ones.
This d20 dice calculator lets you enter a Target Difficulty Class (DC), your character's modifier, and whether you are rolling with advantage, disadvantage, or a normal single roll. In return it instantly computes your exact percentage chance of success, your probability of rolling a Natural 20 critical hit, your probability of rolling a Natural 1 critical fumble, and the average total you can expect each time you roll.
Whether you are a Dungeon Master designing balanced encounters or a player deciding whether to burn a spell slot to gain advantage, the numbers this tool surfaces give you a clear picture of the statistical landscape at your table. Probability literacy is not cheating ā it is informed play, and experienced GMs and players alike rely on it to make better narrative and mechanical decisions.
The calculator also maintains a roll history, so you can track streaks of luck or misfortune and see live results of each simulated roll alongside the pre-computed probability analysis. Use it before a session to gauge encounter difficulty, or open it on your phone or laptop as a quick reference mid-game.
How D20 Probability Is Calculated
The d20 is a uniform distribution die ā every face from 1 to 20 has an equal 5% chance of appearing on any single roll. To find your probability of beating a Difficulty Class (DC) with a modifier, you first compute the minimum face you need to roll, then count how many of the 20 faces meet or exceed that threshold.
The needed roll is clamped between 1 and 20 because a result below 1 means automatic success (all faces win) and above 20 means automatic failure (no face wins). Once you have the needed roll, dividing the number of winning faces by 20 gives the per-roll success fraction, multiplied by 100 for a percentage.
With advantage you roll two d20s and take the higher result. This does not simply add 5% to your success chance ā it changes the shape of the distribution significantly, especially at the extremes of the DC range. With disadvantage you take the lower of two dice, compressing your effective results downward.
D20 Success Probability Formula
Where:
- DC= Difficulty Class ā the target number you must meet or beat
- modifier= Your character's relevant ability modifier or proficiency bonus added to the roll
- neededRoll= Minimum face result required on the d20, clamped to [1, 20]
- P(normal)= Probability of success on a single normal d20 roll
- P(advantage)= Probability of success when taking the higher of two d20 rolls
- P(disadvantage)= Probability of success when taking the lower of two d20 rolls
Advantage and Disadvantage: The Math Behind the Mechanic
Advantage and disadvantage are among the most elegant mechanics in fifth-edition D&D. Instead of a flat bonus or penalty, they fundamentally reshape the probability curve by forcing a second die into the equation.
With advantage, you roll two d20s and keep the higher value. The probability of success is calculated as one minus the probability that both dice fail. If your chance of failing on a single roll is F = (neededRoll ā 1) / 20, then both dice fail with probability F², so success probability = (1 ā F²) Ć 100. At a 50/50 baseline (neededRoll = 11), advantage pushes your success rate up to 75%. The expected average roll rises from 10.5 to approximately 13.825.
With disadvantage, you roll two d20s and keep the lower. The probability of success is the chance that both dice succeed: S² where S = (21 ā neededRoll) / 20. At that same 50/50 baseline, disadvantage drags your success rate down to 25%. The expected average roll drops to approximately 7.175.
The asymmetry of advantage and disadvantage is most dramatic in the middle of the probability range and least dramatic at the extremes. If you need only a 2+ (95% base), advantage gives you 99.75% ā a 4.75-point gain. If you need a 20 (5% base), advantage gives you 9.75% ā a 4.75-point gain. Both extremes show the same absolute gain, but the middle of the range sees the biggest swing.
Critically, advantage and disadvantage do not stack in most systems ā multiple sources of advantage still produce a single reroll pair, and a source of disadvantage cancels a source of advantage entirely, returning to a normal single roll. Understanding this rule prevents players from mistakenly expecting compounding probability benefits.
| Needed Roll | Normal | Advantage | Disadvantage |
|---|---|---|---|
| 2+ | 95.0% | 99.75% | 90.25% |
| 6+ | 75.0% | 93.75% | 56.25% |
| 11+ | 50.0% | 75.00% | 25.00% |
| 16+ | 25.0% | 43.75% | 6.25% |
| 20 | 5.0% | 9.75% | 0.25% |
Modifiers and Difficulty Classes Explained
Every d20 roll in D&D 5e adds a modifier ā a number derived from an ability score, proficiency bonus, or situational bonus ā to the raw die result. The combined total must meet or exceed the Difficulty Class to count as a success. This two-part design keeps the die result in the spotlight while allowing character advancement to meaningfully improve your odds.
Ability score modifiers range from ā5 (ability score 1) to +10 (ability score 30), though +5 or +6 (score 20ā22) is a practical ceiling for most player characters. Proficiency bonuses range from +2 at level 1 to +6 at level 17+. Together, a highly optimized character can stack a +11 or higher modifier on their best skills, transforming even DC 20 checks from hard to routine.
The official D&D 5e DC scale defines five benchmark difficulty levels: DC 5 (Very Easy), DC 10 (Easy), DC 15 (Medium), DC 20 (Hard), DC 25 (Very Hard), and DC 30 (Nearly Impossible). This calculator covers all of these and any custom DC your DM sets. In practice many DMs also use DCs of 12, 13, and 17 to create more granular difficulty steps between the benchmark values.
Because neededRoll = clamp(DC ā modifier, 1, 20), every +1 increase in your modifier shifts the needed roll down by exactly 1, improving your success chance by exactly 5 percentage points on a normal roll. This linear relationship is why odd-numbered ability score improvements that push you across an even score boundary (e.g., 16 ā 17 gives no modifier gain, but 17 ā 18 gives +1 to modifier) matter so much in character building.
Critical Hits, Natural 20s, and Critical Fumbles
A Natural 20 (rolling a 20 on the die before adding modifiers) is a critical hit on attack rolls, and in many tables it also triggers automatic success on skill checks regardless of DC. A Natural 1 is a critical fumble on attack rolls, and many groups treat it as automatic failure on any d20 roll. These special results occur independently of modifiers ā a +11 modifier on a Natural 1 still counts as a critical fumble in most rule interpretations.
On a normal single roll, both Natural 20 and Natural 1 each have a flat 5% probability. Advantage and disadvantage change both of these dramatically. With advantage, the probability of rolling at least one 20 across two dice rises to 9.75% (= 1 ā 0.95²), while the probability of both dice showing a 1 drops to just 0.25% (= 0.05²). With disadvantage, these numbers flip: critical hit probability falls to 0.25% and critical fumble probability rises to 9.75%.
This asymmetry means that gaining advantage on an attack roll roughly doubles your chance of landing a critical hit, which is especially valuable for builds that amplify critical hit effects (such as a Paladin's Divine Smite or a Rogue's Sneak Attack bonus damage on crits). Conversely, fighting under disadvantage nearly eliminates your crit potential while making fumbles nearly twenty times more likely ā a significant risk in clutch situations.
The D20 in Tabletop RPG Systems
The twenty-sided die became the central resolution mechanic of modern tabletop RPGs when Dungeons & Dragons introduced its d20 System under the Open Game License in 2000. This spurred an entire generation of games ā including d20 Modern, Star Wars Saga Edition, and Pathfinder ā that share the same core roll-plus-modifier-versus-DC framework. Even systems that diverged significantly, such as the d20 System variants used in various licensed products, retained the iconic shape and uniform-distribution philosophy of the d20.
The d20 System's appeal lies in its transparency. Players immediately understand that every face is equally likely, that larger modifiers are always better, and that the gap between a +2 and a +3 modifier is exactly 5 percentage points. This mathematical simplicity makes the d20 calculator especially useful: unlike dice pools (where the math gets combinatorial quickly), the d20's probability formulas are accessible to anyone with basic arithmetic.
Outside of D&D specifically, the d20 appears in Pathfinder 2e (with multiple degrees of success instead of a binary pass/fail), in the d20-lite variants of various OSR (Old School Renaissance) games, and in hybrid systems that bolt a d20 core onto narrative frameworks. Wherever a single d20 roll decides an outcome, this calculator's probability engine applies directly.
For Dungeon Masters, the d20 calculator is a session-prep power tool. By checking the success probability at the DC you plan to set, you can ensure encounters feel appropriately tense without being unfair. A 55% success chance on a medium DC creates meaningful drama; a DC that gives your party a 95% chance is barely a speed bump, while a DC that gives them a 10% chance may feel punishing unless it is truly a desperate heroic moment.
Worked Examples
Standard DC 15 Check with +5 Modifier (Normal Roll)
Problem:
A fighter with a +5 Strength modifier attempts a DC 15 Athletics check to leap across a chasm. What is the success probability on a normal single d20 roll?
Solution Steps:
- 1Compute the needed roll: neededRoll = clamp(15 ā 5, 1, 20) = clamp(10, 1, 20) = 10
- 2Count winning faces: faces 10 through 20 = 11 faces out of 20
- 3P(success) = (21 ā 10) / 20 Ć 100 = 11 / 20 Ć 100 = 55.0%
- 4Critical hit chance = 5.00%, critical fumble chance = 5.00%
- 5Average total = 10.5 (average normal roll) + 5 (modifier) = 15.50
Result:
55.0% success chance; average total of 15.50 per roll
DC 15 Check with +5 Modifier and Advantage
Problem:
The same fighter is aided by a Bard's Bardic Inspiration and gains advantage on the same DC 15 Athletics check. How much does advantage improve the odds?
Solution Steps:
- 1Needed roll stays the same: neededRoll = clamp(15 ā 5, 1, 20) = 10
- 2Fail chance on a single die: failChance = (10 ā 1) / 20 = 9 / 20 = 0.45
- 3P(advantage) = (1 ā 0.45²) Ć 100 = (1 ā 0.2025) Ć 100 = 79.75%
- 4Critical hit (Natural 20 on either die): (1 ā 0.95²) Ć 100 = 9.75%; critical fumble: 0.05² Ć 100 = 0.25%
- 5Average roll with advantage = 13.825; average total = 13.825 + 5 = 18.825
Result:
79.75% success chance ā a gain of 24.75 percentage points over the normal roll
DC 20 Check with +2 Modifier under Disadvantage
Problem:
A rogue poisoned with a Slow spell must attempt a DC 20 Dexterity saving throw with a +2 modifier under disadvantage. What are the odds?
Solution Steps:
- 1Needed roll: neededRoll = clamp(20 ā 2, 1, 20) = clamp(18, 1, 20) = 18
- 2Success chance per single die: (21 ā 18) / 20 = 3 / 20 = 0.15
- 3P(disadvantage) = 0.15² à 100 = 0.0225 à 100 = 2.25%
- 4Critical hit under disadvantage: 0.05² Ć 100 = 0.25%; critical fumble: (1 ā 0.95²) Ć 100 = 9.75%
- 5Average roll under disadvantage = 7.175; average total = 7.175 + 2 = 9.175
Result:
Only 2.25% success chance ā nearly certain failure on this very hard saving throw
DC 10 Baseline Check with No Modifier (Normal Roll)
Problem:
An untrained commoner with no relevant modifier attempts a DC 10 Perception check. What are their base odds?
Solution Steps:
- 1Needed roll: neededRoll = clamp(10 ā 0, 1, 20) = 10
- 2Winning faces: 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 = 11 faces
- 3P(success) = (21 ā 10) / 20 Ć 100 = 11 / 20 Ć 100 = 55.0%
- 4Average total = 10.5 + 0 = 10.50 ā right on the cusp of DC 10
Result:
55.0% success; the commoner is slightly more likely to succeed than fail on an Easy check
Tips & Best Practices
- āGain advantage before any roll where you need 11+ on the die ā the benefit is greatest in the middle of the probability range.
- āA +1 modifier always equals exactly 5 percentage points of success probability on a normal roll, making it easy to compare feat vs. attribute score improvements.
- āDC 15 with a +5 modifier gives 55% success ā essentially a coin flip with a slight edge, ideal for tense but fair skill checks.
- āUse the calculator to confirm that a DC you are setting as a DM produces the drama level you want: 75ā85% feels heroically likely, 25ā35% feels like a desperate gamble.
- āWith disadvantage, your Natural 20 probability drops to just 0.25% ā avoid imposing disadvantage on saving throws against instant-death effects if you want fairness.
- āStacking advantage with a high modifier (e.g., +8 or more) against a DC 15 pushes success near 99% ā great for party-face builds, but worth telling your DM so they can set appropriately higher DCs.
- āTrack your roll history across a session to spot statistical runs; a streak of failures is frustrating but expected given variance in a 20-sided die.
- āFor opposed checks (e.g., Stealth vs. Passive Perception), you can treat the opponent's passive score as the DC to use this calculator's probability output directly.
Frequently Asked Questions
Sources & References
Last updated: 2026-06-05
Help us improve!
How would you rate the D20 Calculator?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: Standard Mathematical References
by Various