D20 Probability Calculator

D20 Probability Calculator









Every tabletop roleplayer knows the ritual: the twenty-sided die tumbles, the table holds its breath, and a single number decides whether the hero lands the blow or face-plants into the dungeon floor. Behind that drama sits clean, computable probability.

A d20 roll against a target number is one of probability's friendliest problems. Each face is equally likely, modifiers shift the needed roll up or down, and advantage or disadvantage bends the odds in beautifully quantifiable ways.

The D20 Probability Calculator quantifies all of it. Enter the target number, your modifier, how many rolls you get, and the roll type to see your success chance per roll, across all rolls, and your expected successes.

The Basic d20 Probability Formula

A fair d20 lands on each face with probability 1/20, or 5 percent. If you need to roll N or higher on the die itself, the faces that succeed are N through 20, giving (21 - N)/20 as the success chance.

Modifiers shift the required face. With a +5 bonus against target 15, you only need a 10 on the die, so the chance is (21-10)/20 = 55 percent. Every +1 of modifier is worth exactly 5 percentage points until you hit the edges.

The edges matter: a natural 1 always misses and a natural 20 always hits in most rule systems, which clamps probabilities between 5 and 95 percent regardless of modifiers. The calculator applies similar clamping between 0 and 100 percent.

This linear structure is what makes d20 math so tractable. Unlike dice pools with bell curves, every modifier point buys the same 5 percent, which keeps mental math honest at the table.

Expected value thinking extends the formula beyond hit chances: multiply each outcome's probability by its payoff and sum them to rank options numerically. A 40 percent chance at 20 damage beats a 70 percent chance at 8 damage in expected terms, 8.0 versus 5.6, though variance makes the safer option feel better. Professional gamblers and game designers both live in expected values; the d20 formula is simply the cleanest classroom for the concept.

Advantage, Disadvantage, and Elven Accuracy

Advantage means rolling two d20s and keeping the higher. Mathematically the success chance becomes 1 - (1-p)^2, which helps most in the middle: a 50 percent chance jumps to 75 percent, while 95 percent barely moves to 99.75 percent.

Disadvantage keeps the lower of two dice, giving p^2. That same 50 percent collapses to 25 percent, which is why disadvantage feels so punishing: it squares your hopes.

The pattern generalizes. Rolling with triple advantage (keep highest of three) gives 1 - (1-p)^3, the mechanic some tables call elven accuracy, pushing a 50 percent chance to 87.5 percent.

Key insight: advantage is worth the most when your base chance is near 50 percent and the least at the extremes. Granting advantage on a near-certain roll wastes the benefit; saving it for coin-flip rolls maximizes it.

The general formula for keep-highest-of-n is 1 - (1-p)^n, and for keep-lowest-of-n it is p^n, which means the calculator's logic extends to any exotic advantage scheme your table invents. Triple advantage at 50 percent reaches 87.5 percent; quintuple advantage hits 96.9. Diminishing returns set in fast, which is useful knowledge when a DM wonders whether stacking three advantage sources breaks the game: mathematically, the third source adds surprisingly little.

Multiple Rolls and Expected Successes

When you get n rolls, the chance of at least one success is 1 - (1-p)^n, the complement of failing every roll. Three attempts at 50 percent succeed at least once 87.5 percent of the time, which is why persistence pays.

Expected successes is simply n times p: the long-run average if you repeated the situation many times. Four attacks at 60 percent average 2.4 hits, though any single round varies wildly around that.

These two numbers answer different questions. At-least-one tells you whether the plan probably works; expected successes tells you how much damage or progress to plan around. Smart players check both.

Diminishing returns apply to extra rolls. Going from one to two rolls at 50 percent gains 25 points of at-least-one chance, but going from four to five gains under 2 points. Spend resources where the marginal gain is real.

Binomial distribution governs the full picture: the chance of exactly k successes in n rolls is the choose coefficient times p^k times (1-p)^(n-k). The at-least-one figure is just one minus the zero-success case, and expected successes is the distribution's mean. Understanding the whole distribution explains streaks: at 50 percent over 4 rolls, all-miss runs happen 6.25 percent of the time, rare enough to feel cursed but common enough to happen regularly.

How to Use the D20 Probability Calculator

Describe your roll to see the complete odds picture.

Step 1: Select the target number you must meet or beat on the d20.

Step 2: Enter your modifier, positive for bonuses or negative for penalties.

Step 3: Enter the number of rolls you will attempt.

Step 4: Select the roll type: normal, advantage, or disadvantage.

Step 5: Click Calculate to see per-roll chance, at-least-one chance, and expected successes.

Step 6: Read the number needed on the die to sanity-check the result against table intuition.

Worked Example 1: Picking a Lock With Advantage

A rogue with +7 to thieves' tools attempts a DC 15 lock with advantage, getting 2 attempts before the guards patrol back.

Step 1: Record the inputs: target 15, modifier +7, 2 rolls, advantage.

Step 2: Needed on the die is 15 - 7 = 8, so base chance p = (21-8)/20 = 65 percent.

Step 3: With advantage, per-roll chance is 1 - (0.35)^2 = 1 - 0.1225 = 87.75 percent.

Step 4: At-least-one success over 2 rolls is 1 - (0.1225)^2, about 98.5 percent.

Step 5: Expected successes are 2 times 0.8775, about 1.76.

Result: The D20 Probability Calculator shows the lock is nearly certain to open: 87.8% per roll, 98.5% overall.

Worked Example 2: Three Attacks at Disadvantage

A fighter with +5 to hit attacks AC 18 three times while suffering disadvantage from poison.

Step 1: Record the inputs: target 18, modifier +5, 3 rolls, disadvantage.

Step 2: Needed on the die is 18 - 5 = 13, so base chance p = (21-13)/20 = 40 percent.

Step 3: With disadvantage, per-roll chance is 0.40 squared = 16 percent.

Step 4: At-least-one hit over 3 rolls is 1 - (0.84)^3, about 40.7 percent.

Step 5: Expected hits are 3 times 0.16, about 0.48.

Result: The D20 Probability Calculator reveals the grim math: disadvantage turns a fair fighter's round into a long shot.

Why Advantage Is Worth About +5 (But Not Exactly)

Players often hear that advantage equals +5, and the average is close: across all target numbers, advantage adds about 3.3 to the effective roll, commonly rounded to +5 in design guidance. But the value swings wildly by situation.

At target 11 (50 percent base), advantage adds a full 25 percentage points, equivalent to +5. At target 19 (10 percent base), it adds only 19 points, and at target 2 it adds almost nothing since success was near-certain.

This nonlinearity is tactically rich. Bless-like bonuses that add to the roll stack best where advantage helps least, at the extremes, while advantage shines on coin-flip rolls.

When choosing between granting advantage or a flat bonus, check the target number first. The calculator makes the comparison instant and exact.

Passive checks bake the +5 equivalence into the rules: 5th edition D&D grants +5 to passive scores with advantage and -5 with disadvantage, directly encoding the approximation. The designers knew the true value varies by target number but chose playability over precision. The calculator lets you see exactly where the approximation over- or under-credits the mechanic, which matters most at extreme DCs.

The Lucky feat offers a revealing comparison: three luck points per day each grant advantage on one roll, effectively banking about three +5-equivalent boosts for the moments that matter most. Players who understand the math spend luck on mid-range clutch rolls rather than near-certain ones, extracting maximum value. Feat design like this shows the game's math working as intended when players grasp the underlying probabilities.

Critical Hits and Critical Fails in the Math

A natural 20 always hits in most d20 systems and often doubles damage dice, adding about 5 percent times the crit bonus to expected damage regardless of the target number.

A natural 1 always misses, which is already inside the (21-N)/20 formula whenever N is 2 or more. Only systems with fumble tables add extra sting beyond the automatic miss.

Expanded crit ranges, like a champion's 19-20, double the crit chance to 10 percent. The expected damage gain is 5 percent of the crit bonus per point of range expansion, a clean linear trade.

The calculator clamps probabilities at the edges to respect auto-hit and auto-miss logic. Beyond those rails, modifiers change crit confirmation, not success itself.

Confirmation rolls from older editions multiplied the probability machinery: threatening a crit on a 20 then confirming against AC meant crit chance was 5 percent times hit chance, roughly 2.5 percent for typical attacks. Modern systems dropped confirmation for speed, effectively doubling crit frequency. The math got simpler and crits got more exciting, a trade the designers made deliberately and the probabilities justify.

Brutal Critical and similar features add extra damage dice on crits, scaling the value of expanded crit ranges nonlinearly. A barbarian's brutal critical makes each point of crit range worth substantially more than the baseline calculation suggests. When features multiply crit damage, the probability math of range expansion becomes a build-defining consideration rather than a footnote.

Probability Literacy at the Table

Knowing the odds changes decisions, not just expectations. A 40 percent plan with a backup beats a 60 percent plan with no fallback, and the calculator lets you compare such options numerically.

Resource spending becomes rational: use limited rerolls and bonuses where they move the needle most, typically on mid-range chances, rather than on near-certain or near-impossible rolls.

DMs benefit too. Setting DCs with the party's modifiers in mind keeps challenges tense but fair: DC 15 against +7 is a 65 percent task, challenging without being punishing.

Share the math openly. Tables that understand probability argue less about fairness and enjoy the drama more, because everyone knows exactly how brave each roll really was.

Monte Carlo thinking is the table's superpower once the basics click: simulate a combat's key rolls mentally through their distributions instead of fixating on single outcomes. The paladin's smite has a 65 percent hit chance, so across three rounds expect about two hits; plan the spell slots around the expectation, not the hope. Players who think in distributions make fewer tilted decisions and enjoy better stories.

Encounter design runs on the same math from the DM's side: monster hit chances against party AC determine combat length and lethality far more than damage dice do. A monster hitting on 12+ deals steady pressure; one needing 17+ whiffs into irrelevance. DMs who calculate both sides' odds build fights that threaten without slaughtering, which is the entire art of the job.

Limitations of This Calculator

The model assumes a fair d20 with equally likely faces. Worn, misprinted, or intentionally loaded dice violate this, and no calculator can fix physical dice.

Only single-target, single-threshold rolls are modeled. Contested rolls, dice pools, exploding dice, and degrees of success need different probability machinery.

Modifiers are treated as flat shifts to the needed face. Systems with exploding crits, fumbles, or special natural-20 rules add wrinkles beyond the clamped linear model.

Use it for fast, exact d20 odds at the table. For exotic dice mechanics, dedicated anydice-style tools handle the weirder distributions.

Anydice-style tools handle the exotic cases this calculator skips: dice pools counting successes, exploding dice that reroll maximums, and opposed rolls where both sides roll. Those distributions need convolution or simulation rather than closed forms. The d20's linear single-die math is the friendly special case; the moment your mechanic involves multiple dice interacting, reach for the heavier tools built for exactly that.

Digital rollers use pseudorandom number generators whose fairness exceeds any physical die ever manufactured, settling table debates about loaded dice permanently. But humans remain terrible at judging randomness: we see patterns in streaks and suspect the roller after three natural 1s, when the math says such clusters are routine. Trust the algorithm over your gut; the gut is the biased one.

Tips

  1. Memorize the base formula: (21 - needed)/20 is your 5-second table math.
  2. Spend advantage on coin flips: near 50 percent is where it gains the most.
  3. Check at-least-one odds: persistence turns shaky single rolls into solid plans.
  4. Clamp at the edges: no modifier beats a natural 1 or 20 in most systems.
  5. Compare bonus vs advantage: flat bonuses win at extremes, advantage mid-range.
  6. Plan around expected hits: n times p sets realistic damage expectations.
  7. Count the needed face first: target minus modifier keeps every calc grounded.
  8. Teach the table the odds: shared probability literacy ends fairness arguments.

1. What is the chance of rolling a specific number on a d20?

Five percent. Each of the 20 faces is equally likely on a fair die, so any single face has a 1-in-20 chance.

2. How do I calculate d20 success probability?

Find the lowest face that succeeds: target minus modifier. Success chance is (21 - that number) divided by 20, clamped between 0 and 100 percent.

3. What does advantage do mathematically?

It rolls two dice and keeps the higher, changing success chance from p to 1 - (1-p)^2. A 50 percent chance becomes 75 percent.

4. What does disadvantage do?

It keeps the lower of two dice, changing p to p^2. A 50 percent chance collapses to 25 percent.

5. Is advantage really worth +5?

Roughly on average, but it varies: about +5 equivalent near 50 percent base chance, much less near the extremes. The calculator shows the exact value.

6. How do multiple rolls change the odds?

The chance of at least one success in n rolls is 1 - (1-p)^n. More rolls help most when single-roll chances are middling.

7. What are expected successes?

The long-run average: number of rolls times per-roll chance. Four rolls at 60 percent average 2.4 successes.

8. Does a natural 20 always hit?

In most d20 systems yes, and it usually crits. The calculator clamps success at 100 percent to respect auto-hit logic.

9. Does a natural 1 always miss?

In most systems yes. The base formula already gives 5 percent for needing a 1, which the clamp handles as the automatic-miss edge.

10. How do crits affect expected damage?

Each point of crit range adds about 5 percent times the crit bonus damage. A 19-20 range roughly doubles the crit contribution versus 20-only.

11. When should I use a reroll ability?

Where it gains the most: mid-range chances. Rerolling a 90 percent roll wastes the resource; rerolling a 50 percent roll is excellent value.

12. What is elven accuracy in probability terms?

Keep-highest-of-three, giving 1 - (1-p)^3. At 50 percent base it reaches 87.5 percent, the best standard accuracy booster.

13. Do modifiers have diminishing returns?

At the edges, yes: once you only miss on a 1, further bonuses cannot raise success, only confirm crits or beat higher DCs.

14. How should DMs set fair DCs?

Against the party's typical modifier: DC 12-15 for routine tension, 18-20 for real challenges. Check the resulting percentages with the calculator.

15. Can this calculator handle dice pools?

No, it models single d20 rolls against a target. Dice pools follow bell-curve distributions needing different tools.

CONCLUSION

The D20 Probability Calculator replaces table arguments with exact odds: per-roll chances, multi-roll success, advantage and disadvantage effects, and expected results. Four inputs, complete clarity.

Use it to plan bold moves, spend resources wisely, and savor the drama with full knowledge of the stakes. The die is still random, but now you know exactly how random.