Academics · Study Skills · The odds behind one attack roll

Know the odds
behind the roll.

In many tabletop and video games an attack succeeds when a twenty-sided die plus a bonus reaches a target number. Type the bonus, the number to beat, the damage dice and the target's hit points. The page works out the chance to hit, the average damage each round with a critical hit on a natural 20 doubling the dice, and the rounds it takes to wear the target down.

The game mechanics simulator

The worked example is a bonus of +5 against a 15, one eight-sided die plus 3 damage, and a target with 30 hit points. Nothing you type leaves this browser.

Loading the calculator. If nothing appears, turn on JavaScript.

What you get

Academics · Study SkillsOpen to everyone · no sign-in

What you finish with
The chance to hit with a twenty-sided die, the average damage on a hit and per round with critical hits, the rounds to defeat a target and a table of other attack bonuses.
Who it is for
Players and game designers of tabletop and video games, and the students who use game mechanics to learn probability and expected value.
Format
Browser calculator for a phone, tablet or computer, by touch or keyboard. Prints a summary; downloads a spreadsheet (.csv); export and import a file.
Access
Open to everyone with the link: no account, no sign-in, nothing to buy and nothing to install. Everything you type stays in this browser; nothing is sent to Caveat.
Where it lives
The Study Skills space in Caveat Academics.
Support
Questions, a correction or a request: team@caveatacademic.com.

How to use it

  1. Name the attack.
  2. Type the attack bonus and the number to beat.
  3. Choose the damage dice and type the damage bonus.
  4. Type the target's hit points.
  5. Read the chance to hit and the rounds to win, then try other bonuses in the table.

Roll the odds

How the figures are worked out

Faces that hit, times damage, over the hit points.

The worked example: +5 against a 15, 1d8 + 3Roll needed10+15 − 5Chance to hit55%11 faces of 20Per round4.35average damageRounds to win6.930 ÷ 4.35The worked example: +5 against a 15, 1d8 + 3Roll needed10+15 − 5Chance to hit55%11 faces of 20Per round4.35average damageRounds to win6.930 ÷ 4.35
A 10 or higher on the die hits, and the average round does a little over four damage.

Odds from counting faces

A twenty-sided die has 20 equally likely faces, so the chance of reaching a target number is the count of good faces divided by 20. Each point of bonus turns one more face into a hit, which is 5 percentage points. Common Core standard 7.SP.C.7 asks students to develop a probability model and use it to find probabilities of events.

Expected values for balance

Designers use the expected value of an attack to balance a game: chance to hit times damage, plus the extra from rare critical hits. A game can feel unfair when two options with very different expected values are made to look alike, so comparing them by average damage is a quick test.

Sources

  1. National Governors Association Center for Best Practices and Council of Chief State School Officers. (2010). Common Core State Standards for Mathematics, 7.SP.C.5 to 7.SP.C.8 and HSS-MD.A.2: probability models and expected value. corestandards.org.
  2. Schell, J. (2019). The Art of Game Design: A Book of Lenses (3rd ed.). CRC Press: chance, expected value and balance in game design.
  3. Weisstein, E. W. Dice. MathWorld, Wolfram Research: probabilities and expected values for dice. mathworld.wolfram.com.
  4. Any introductory probability text: expected value of a discrete random variable.

Figures worked from your own numbers. Nothing you type is sent to Caveat. The worked example is made up. Your entries stay in this browser. Support: team@caveatacademic.com.

Written with AI, then checked before it is published. How we checkFound a mistake? Report it and we fix it, or refund you.Cancel anytime.