Dice Probability Calculator screenshot

Dice Probability Calculator

Count the exact ways and percentage for a dice total, plus the at-least chance, for up to 8 dice.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Runs in your browser

What the page computes

Counts the exact number of ordered rolls that total a target on NdS and converts it to a percentage. It also reports the at-least probability and the expected total.

What it does not do

The table is exact for identical fair dice with no rerolls, drops or exploding dice, so a keep-highest mechanic needs a different count. Dice must be 1 to 8, sides 2 to 12, and the target must lie between the dice count and dice times sides.

Why a reload prints the same answer

Everything runs in this tab with JavaScript: no request is made, no account is needed and nothing is stored, so the same inputs print the same lines after a reload.

Counts the exact number of ordered rolls that total a target on NdS and converts it to a percentage. It also reports the at-least probability and the expected total.

How to use it

Enter the number of dice, the sides on each and the target total, then press Run. The first line is the exact count and the second the chance of reaching the target or more.

The arithmetic

Ways are counted by dynamic programming: ways[n][s] is the sum over every face f of ways[n-1][s-f], with one way per face for a single die. The denominator is sides to the power of dice, so 2d6 has 36 outcomes and six of them total seven.

What to Expect

Best for

  • designers checking a dice mechanic
  • a quick check before or during a session

What this tool keeps

  • Runs entirely in this browser tab, with no upload.
  • Every figure is printed with the inputs that produced it.

Frequently asked questions

How do I use the Dice Probability Calculator?

Enter the number of dice, the sides on each and the target total, then press Run. The first line is the exact count and the second the chance of reaching the target or more. The printed lines replace the previous answer.

Is anything uploaded?

No. The arithmetic runs in this tab with JavaScript: no request is made, no account is needed and nothing is stored, so the page keeps working offline once loaded.

What are its limits?

The table is exact for identical fair dice with no rerolls, drops or exploding dice, so a keep-highest mechanic needs a different count. Dice must be 1 to 8, sides 2 to 12, and the target must lie between the dice count and dice times sides.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.