A mathhammer calculator for Warhammer 40,000, Age of Sigmar and similar games: attacks, hit, wound, save and damage with re-rolls, critical hits and wounds, feel no pain or ward, and the full damage distribution with models destroyed, not just the average.
Nothing is sent. Everything you type is calculated by your own browser.
No account, no sign-up. Nothing to install and no permissions to grant.
Works offline once the page has loaded. Turn off your connection and try it.
Same code for everyone. SHA-256: e97129e6e41be848…
How to use it
- Enter the attacks: a number or dice such as D6, 2D6 or D3+3.
- Set the hit roll (or tick that it hits automatically), its modifier, re-rolls and what a critical hit does: extra hits, an automatic wound or mortal damage that skips the wound and save.
- Set the wound roll directly, or type Strength and Toughness to work it out, and the critical wound value (for example 4+ for an anti- ability). Tick if a critical wound skips the save.
- Choose the save, the armour penetration or rend, the invulnerable save and the roll that ignores damage points.
- Type the damage (1, D3, D6+1…) and, if you want models destroyed, the wounds per model and the unit size.
- Read the average, the chance of doing at least the damage you need, the chart and the table.
What you get
- The exact probability of every damage total, calculated, not simulated.
- The average at each stage: attacks, hits, wounds, unsaved wounds and damage.
- The chance of doing at least a given amount of damage, the number that decides a charge or a kill.
- Models destroyed with damage that doesn’t spill over.
The maths behind it
Each attack goes through the same steps: roll to hit, roll to wound, the defender saves, and the damage is rolled and reduced by any feel no pain. The calculator works out the chance of every result of one attack, including the extra hits from critical hits, and then combines all the attacks with exact convolution. That is why it can show the whole curve: two units can have the same average and very different odds of doing the 6 damage you need.
Why this calculator
Most mathhammer tools give you the average and stop there. Here you see the risk: how often the unit whiffs, how often it overkills and how many models it really removes. It works on a phone during the game and doesn’t need an account or an app.
Frequently asked questions
What is mathhammer?
Working out with probability what a unit is likely to do before you roll: how many hits, wounds, unsaved wounds and damage. This calculator gives the exact distribution, so you also see how likely the bad and the lucky rolls are.
How is the average worked out?
Multiply the chances of each step. Ten attacks hitting on 3+ (2/3), wounding on 4+ (1/2) against a 3+ save with AP −1 (fails 1/2) do 10 × 2/3 × 1/2 × 1/2 = 1.67 damage on average with Damage 1.
How do critical hits and wounds work here?
An unmodified roll at or above the critical value (6+ by default, 5+ if you set it) always succeeds. A critical hit can add extra hits, wound automatically or skip the wound and save rolls; a critical wound can skip the save. Those are the usual effects in 40K and Age of Sigmar.
Are re-rolls done before modifiers?
Yes, as in the games: you re-roll 1s or every failed roll first, and then apply the ±1 modifier. A 1 always fails and a 6 always succeeds.
Does damage spill over to the next model?
No. If you give the wounds per model, the calculator applies the damage one unsaved attack at a time and loses any damage left over when a model is destroyed, which is how most attacks work in 40K and Age of Sigmar.
Does it work for Kill Team?
Only roughly: Kill Team rolls defence dice that cancel hits instead of making one save per wound, so the hit and save steps here are an approximation for it.
Trademarks
Unofficial fan tool. Warhammer 40,000, Kill Team, Age of Sigmar and Warhammer are trademarks of Games Workshop Limited, mentioned only to say what this calculator is compatible with. It is not endorsed by, sponsored by or affiliated with Games Workshop. It uses only dice mechanics, explained in our own words: no rules text, team or unit names, datasheets or artwork.
