D20 Calculator

Roll d20 dice with advantage/disadvantage, modifiers, and probability calculations.

D20 Roll

Probability Analysis

Need to Roll10+ on d20
Success Chance55.0%
Average Roll10.50 (total: 15.50)

Critical Chances

Natural 205.00%
Natural 15.00%

DC Reference

DC 5Very Easy
DC 10Easy
DC 15Medium
DC 20Hard
DC 25Very Hard
DC 30Nearly Impossible

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

neededRoll = clamp(DC āˆ’ modifier, 1, 20) P(normal) = (21 āˆ’ neededRoll) / 20 Ɨ 100 P(advantage) = [1 āˆ’ ((neededRoll āˆ’ 1) / 20)²] Ɨ 100 P(disadvantage) = [(21 āˆ’ neededRoll) / 20]² Ɨ 100

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%
205.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:

  1. 1Compute the needed roll: neededRoll = clamp(15 āˆ’ 5, 1, 20) = clamp(10, 1, 20) = 10
  2. 2Count winning faces: faces 10 through 20 = 11 faces out of 20
  3. 3P(success) = (21 āˆ’ 10) / 20 Ɨ 100 = 11 / 20 Ɨ 100 = 55.0%
  4. 4Critical hit chance = 5.00%, critical fumble chance = 5.00%
  5. 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:

  1. 1Needed roll stays the same: neededRoll = clamp(15 āˆ’ 5, 1, 20) = 10
  2. 2Fail chance on a single die: failChance = (10 āˆ’ 1) / 20 = 9 / 20 = 0.45
  3. 3P(advantage) = (1 āˆ’ 0.45²) Ɨ 100 = (1 āˆ’ 0.2025) Ɨ 100 = 79.75%
  4. 4Critical hit (Natural 20 on either die): (1 āˆ’ 0.95²) Ɨ 100 = 9.75%; critical fumble: 0.05² Ɨ 100 = 0.25%
  5. 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:

  1. 1Needed roll: neededRoll = clamp(20 āˆ’ 2, 1, 20) = clamp(18, 1, 20) = 18
  2. 2Success chance per single die: (21 āˆ’ 18) / 20 = 3 / 20 = 0.15
  3. 3P(disadvantage) = 0.15² Ɨ 100 = 0.0225 Ɨ 100 = 2.25%
  4. 4Critical hit under disadvantage: 0.05² Ɨ 100 = 0.25%; critical fumble: (1 āˆ’ 0.95²) Ɨ 100 = 9.75%
  5. 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:

  1. 1Needed roll: neededRoll = clamp(10 āˆ’ 0, 1, 20) = 10
  2. 2Winning faces: 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 = 11 faces
  3. 3P(success) = (21 āˆ’ 10) / 20 Ɨ 100 = 11 / 20 Ɨ 100 = 55.0%
  4. 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

DC stands for Difficulty Class — the target number your d20 roll plus modifier must meet or exceed to count as a success. The Dungeon Master sets the DC based on how hard the task is, ranging from DC 5 (Very Easy) to DC 30 (Nearly Impossible). Meeting the DC exactly counts as a success, so a roll of 14 beats a DC 14.
On <em>attack rolls</em>, a Natural 20 is an automatic critical hit that always succeeds regardless of the target's Armor Class. On <em>ability checks and saving throws</em>, the official D&amp;D 5e rules do not grant automatic success on a Natural 20 — the DM may still rule a failure if the total falls short of the DC. Many tables adopt a house rule that any Natural 20 on any d20 roll succeeds, but that is not in the core rulebook.
Advantage is most powerful in the middle of the probability range. On a coin-flip roll (50% base), advantage raises your success chance to 75%, a 25-point improvement. On an easy roll (75% base), advantage takes you to approximately 93.75%. The improvement is always positive and ranges from near zero at the extremes to roughly 25 points at the center. The expected average roll also jumps from 10.5 to 13.825.
Yes. In D&amp;D 5e, if you have at least one source of advantage and at least one source of disadvantage on the same roll, they cancel completely and you roll a single d20 normally — regardless of how many sources of each you have. Extra sources of advantage or disadvantage beyond the first are irrelevant once both conditions apply. This rule keeps the math simple and prevents advantage from stacking.
The expected (average) value of rolling two d20s and keeping the higher result is approximately <strong>13.825</strong>. This is a mathematical result derived from the order statistics of the uniform discrete distribution on 1–20. With disadvantage (keeping the lower die), the expected value is approximately 7.175. On a normal single roll, the expected value is exactly 10.5.
Pathfinder 2e uses the same d20-plus-modifier-versus-DC structure, so you can enter your PF2e modifier and the DC directly. However, PF2e has four degrees of success (Critical Failure, Failure, Success, Critical Success) based on whether your total exceeds or falls short of the DC by 10 or more. This calculator reports a binary pass/fail probability, so for PF2e you will need to manually assess crit-success or crit-failure bands on top of the base success probability it provides.
No. A Natural 1 is determined by the face showing on the die before any modifier is added. No matter how large your modifier is, rolling a 1 on the d20 still triggers a critical fumble on attack rolls (and automatic failure in many house-ruled games). Modifiers shift your average and success probability but do not protect against the extremes of the die result.

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.

Source

Formula Source: Standard Mathematical References

by Various

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.

Privacy choices

MyCalcBuddy uses necessary storage for the site to work. Optional analytics, notifications, and future advertising features stay off unless you allow them.