Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Dice & card probability lab

Exact chances for dice totals (keep highest, advantage), card draws and poker hands, plus a simulator that rolls for real so you can compare.

How to use

  1. Dice: choose how many dice and how many sides, and whether every die counts or only the highest or lowest few. Then ask for a total: exactly, at least or at most. The bar chart shows every total; the coloured bars are the ones you asked about.
  2. Cards: fill in the deck size, how many of the cards you care about are in it, how many you draw and how many you hope to get. Or pick an example.
  3. Poker hands: the exact number of ways to get each hand in five cards.
  4. Simulator: roll the dice for real, many times, and watch the shares move towards the exact chances.

Keyboard and touch

Enter in any boxWork it out
↑ ↓ in a number boxChange the number by one
TabMove between boxes and buttons

Tips

  • Role-playing games: "4d6, keep the highest 3" is 4 dice with 6 sides, counting only the highest 3. Advantage means rolling a d20 twice and keeping the better roll.
  • More dice make middle totals much more likely than the edges. Compare 1d12 (flat) with 2d6 (a peak at 7).
  • "At least one" chances grow slower than people expect: rolling a six at least once in six rolls is only about 66.5 %.
  • In the simulator, a few rolls can look very lopsided. That is normal: luck evens out only over many rolls.

About this lab

All chances are exact, not estimates. Dice totals are counted by adding one die at a time (a convolution), and "keep highest" or "keep lowest" rolls by checking every possible roll, up to two million of them. Card chances use the hypergeometric distribution, which counts combinations of cards drawn without putting them back. Poker hand counts are the standard combination counts for one 52-card deck.

It is a learning tool for games, classrooms and curiosity. It does not help you win games of chance against a house edge, and it is not a betting tool.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product