UTILS.
100% in-browser
🗡️

D20 Advantage / Hit-Chance Calculator

Work out your d20 hit or save chance against any AC or DC, with advantage and disadvantage odds plus the crit chance.

A natural 1 always fails and a natural 20 always succeeds, so the chance stays between 5% and 95%.

About this tool

The D20 Advantage Calculator gives the probability that a twenty-sided die roll plus your modifier meets or beats a target — an armour class to hit, or a difficulty class to pass a check or saving throw. It handles Normal, Advantage and Disadvantage and runs entirely in your browser.

The base single-roll chance is p = clamp((21 − (target − modifier)) / 20, 0.05, 0.95): you succeed on any face at or above (target − modifier), and the clamp encodes the rule that a natural 1 always fails and a natural 20 always succeeds, so the chance never leaves the 5%–95% range. Advantage rolls two dice and keeps the best, giving 1 − (1 − p)²; Disadvantage keeps the worst, giving p². The expected d20 face is 10.5 normally, 13.825 with advantage and 7.175 with disadvantage, and the natural-20 crit chance is 5%, 9.75% or 0.25% respectively.

Enter the target number, your total modifier and the roll mode to see the hit chance, the raw die face you need, the expected roll and the crit chance update instantly. For a target of 11 over your modifier the normal chance is 50%, rising to 75% with advantage.

Frequently asked questions

How is the base hit chance calculated?
p = (21 − (target − modifier)) / 20, clamped between 0.05 and 0.95. You need the die to show at least (target − modifier), and the clamp reflects that a natural 1 always misses and a natural 20 always hits.
How do advantage and disadvantage change the odds?
Advantage rolls two d20s and keeps the higher, so the success chance becomes 1 − (1 − p)². Disadvantage keeps the lower, giving p². Advantage helps most when your base chance is near 50%.
What is the crit (natural 20) chance?
A single d20 crits 5% of the time. With advantage the chance of at least one 20 is 9.75% (1 − 0.95²); with disadvantage you need both dice to show 20, which is 0.25% (0.05²).
Does this follow D&D 5e rules?
Yes — it uses the 5e conventions that a natural 1 always fails and a natural 20 always succeeds, and that advantage/disadvantage take the best/worst of two d20 rolls. It works for attack rolls, ability checks and saving throws alike.

More tools