Exact odds for any NdS roll: full sum distribution, expected value, and P(sum = / ≥ / ≤ X), counted not simulated
- Runs locally
- Category Calculator
- Best for Getting a realistic range before a purchase, plan, workout, or schedule decision.
Roll N dice with S sides each and read the exact probability of every possible sum — computed by combinatorial counting, not simulation, so the numbers never drift.
| Sum | Ways | Percent |
|---|---|---|
| 2 | 1 | 2.78% |
| 3 | 2 | 5.56% |
| 4 | 3 | 8.33% |
| 5 | 4 | 11.11% |
| 6 | 5 | 13.89% |
| 7 | 6 | 16.67% |
| 8 | 5 | 13.89% |
| 9 | 4 | 11.11% |
| 10 | 3 | 8.33% |
| 11 | 2 | 5.56% |
| 12 | 1 | 2.78% |
What this tool does
A dice probability calculator that gives the exact odds for rolling N dice with S sides each, for any combination from a single d6 up to 20 dice with 100 faces. It does not simulate rolls. Instead it counts every possible outcome with a dynamic-programming convolution, so the probability of each sum is a true fraction (ways to make that sum divided by the total Sᴺ outcomes), not a noisy estimate that changes every time you reload. The page draws the full distribution as a bar chart, reports the expected value, variance and standard deviation, and answers the three questions players actually ask: what is the chance the total is exactly X, at least X, or at most X. Counts use BigInt, so even the hundred-digit way-counts inside a 20d20 roll stay precise with no floating-point drift. Useful for D&D and tabletop GMs balancing encounters, board-game designers tuning a 2d6 curve, and statistics students checking homework. Everything runs client-side, with a copy button for the whole table and a shareable URL that reproduces your exact dice and query.
Tool details
- Input
- Files + Numbers
- The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
- Output
- Live result + Copy + Preview
- The result area focuses on usable output, with copy, download, or preview actions when supported.
- Privacy
- Browser-side processing
- The main tool logic does not call an external API, so inputs normally stay in the current tab.
- Save / share
- Shareable URL state
- Key settings are encoded in the URL so another person can reopen the same setup.
- Performance budget
- Initial JS <= 11 KB
- No WASM budget is declared, keeping the tool quick to open on mobile.
- Best fit
- Calculator · Student
- Category and role tags drive related tools, internal links, and quick fit checks.
How to use
-
1. Input
Paste or drop your content into the tool panel.
-
2. Process
Click the button. All processing is local in your browser.
-
3. Copy / Download
Copy the result or download to disk in one click.
How Dice Probability Calculator fits into your work
Use it for fast estimates, comparisons, and planning numbers before you make the final call.
Calculation jobs
- Getting a realistic range before a purchase, plan, workout, or schedule decision.
- Comparing scenarios by changing one input at a time.
- Turning rough assumptions into a number you can discuss.
Calculation checks
- Double-check units, dates, rates, and rounding assumptions.
- Treat health, finance, tax, and legal outputs as planning aids, not professional advice.
- Save the inputs that produced an important result so you can reproduce it later.
Good next steps
These links move the current task into a more complete workflow.
- 1 Dice Roller Roll D4-D100 + 3d6+2 notation, advantage/disadvantage — fair CSPRNG, browser-only Open
- 2 Probability Distribution Visualizer Probability distribution visualizer — normal/t/chi-sq/F/binomial/poisson/exp/uniform PDF+CDF, P(a≤X≤b) area, z/p table replacement. Open
- 3 Permutation & Combination Calculator nPr, nCr, n!, n^r and combinations-with-repetition — exact BigInt results with the formula and worked steps — browser-only Open
Real-world use cases
Balance a D&D encounter before the session
You want to know how hard a save-or-suck spell really is. Set the attack as the right NdS, ask «sum ≥ DC», and you get the exact hit chance instead of a gut feel. Comparing 3d6 against 1d20 for an ability check shows why the bell-shaped 3d6 makes average outcomes far more common and crits far rarer — useful when you are deciding which resolution system fits the tone of your table.
Tune a board-game dice curve
Designing a game where players roll for movement or combat? The 2d6 curve peaks at 7 and tapers symmetrically, which is why so many classics use it. Punch in your candidate dice, read the distribution shape, and check whether the modal result lands where your reward structure expects it. Switching from 2d6 to 1d12 flattens the curve and changes the whole feel of the game.
Check a probability homework answer
A stats assignment asks for P(sum of three dice ≥ 15). Rather than enumerate 216 cases by hand and risk a slip, set N=3, S=6, pick the ≥ comparator and read both the fraction and the percentage. The exact way-count next to it lets you show your working: numerator over Sᴺ.
Settle a tabletop rules argument with a real number
Two players disagree on whether rolling at least a 10 on 2d6 is likely. Instead of arguing, share the tool URL with N=2, S=6 and «≥ 10» already filled in. The link reopens to exactly that query — 6/36, about 16.7% — so the answer is reproducible and not a matter of opinion.
Common pitfalls
Treating «exactly X» and «at least X» as the same thing. P(sum = 7) on 2d6 is 6/36, but P(sum ≥ 7) is 21/36 — almost four times larger. Always pick the comparator that matches the rule you are checking; a saving throw of «DC 7 or higher» is an «at least» question, not an «exactly».
Assuming every sum is equally likely. Only a single die is flat. With two or more dice the middle sums are far more common than the extremes, so guessing that 2d6 has a 1-in-11 chance of any given total is wrong — 7 is six times as likely as 2.
Confusing the number of dice with the number of faces. «3d6» means three six-sided dice (sums 3 to 18), while «6d3» means six three-sided dice (sums 6 to 18). They share an upper bound but have completely different shapes and means; enter N and S in the right boxes.
Privacy
Every count, probability and statistic is computed in your browser with plain JavaScript and BigInt arithmetic. No roll, query or result is ever sent to a server, and nothing is logged. The one caveat: the shareable URL encodes your dice count, face count and the cumulative query in the query string, so a link pasted into chat records those values in the recipient server's access log. The inputs here are not sensitive, so for this tool that is harmless — but it is the same mechanism that makes «share my exact odds» work.
FAQ
Tool combos
Folks in your role tend to reach for these alongside this tool.
- Chinese Acupoint Locator 200+ meridian acupoints / WHO 2008 standard locations / with contraindications, manipulation, and combinations.
- Affine Cipher Encoder & Decoder Encrypt and decrypt the ax+b affine cipher with live modular-inverse check, browser-only
- Anagram Solver Check if two words are anagrams, rearrange a set of letters into every ordering, and read the sorted letter fingerprint, all in your browser
- Angle Converter Degrees, radians, gradians, turns, arcminutes, arcseconds and NATO mils, all from one input, copyable, browser-only