Coin Flip & Dice Roller
Heads or tails, or roll up to six dice.
When a coin or a die settles it
A coin has two outcomes, so it is the quickest way to break a tie between two options: who goes first, which of two restaurants, which side of a bet. Dice suit bigger sets of choices. A single six-sided die picks one of six options, and a twenty-sided die covers up to twenty. Tabletop and board games use different dice for different jobs, which is why this page lets you choose 4, 6, 8, 10, 12 or 20 sides and up to six dice at once.
In short
Every flip and roll is a fresh, independent draw from your browser's secure random source, so past results never make an outcome due. Streaks are normal: five heads in a row turns up about 3% of the time.
Frequently asked questions
Is it fair?
Each result comes from your browser’s cryptographic random source, and the tool avoids modulo bias, so no side is favored over another.
Our test: 1.1 million coin flips and 96,000 dice rolls
Instead of trusting the code, we pressed the buttons on this page in Chromium 153.0.8010.12 with a script and tallied what appeared on screen. The coin was flipped 100,000 times in a row, and then another 1,000,000 times in blocks of 1,000 to see how long streaks get. A single six-sided die was rolled 60,000 times, and two dice 36,000 times.
| Total | Rolls | Expected |
|---|---|---|
| 2 | 988 | 1,000 |
| 3 | 1,988 | 2,000 |
| 4 | 2,966 | 3,000 |
| 5 | 4,102 | 4,000 |
| 6 | 5,069 | 5,000 |
| 7 | 5,988 | 6,000 |
| 8 | 4,928 | 5,000 |
| 9 | 4,023 | 4,000 |
| 10 | 2,962 | 3,000 |
| 11 | 1,965 | 2,000 |
| 12 | 1,021 | 1,000 |
- Coin: 50,049 heads in 100,000 flips (50.0%). A fair coin lands within about 0.3 percentage points of 50% about 95% of the time in a run this long, so this is an ordinary result.
- One die: each face came up between 9,909 and 10,134 times out of 60,000, against 10,000 expected.
- Streaks: in 1,000 separate blocks of 1,000 flips, the longest run of the same side was typically 10 (median), never shorter than 7 and once as long as 23. A streak of 8 or more appeared in 980 of the 1,000 blocks.
You can download the data behind these numbers and check it yourself. The .txt files are plain text and the .csv files open in any spreadsheet; each .csv starts with a header row.
- 100,000 coin flips: every flip in order, written as H or T with no separators, 100 flips per line.
- The 1,000 streak blocks: a summary with one row per block of 1,000 flips (heads, tails and the longest run); the individual flips of these blocks are not included.
- 60,000 rolls of one die: every roll in order as a digit from 1 to 6 with no separators, 100 rolls per line.
- 36,000 rolls of two dice: one row per roll with columns roll, die1, die2 and total.
The streak result is the practical lesson. If you flip a coin 1,000 times for a classroom demonstration, a run of eight or more of the same side is not a sign that something is broken; in our test it turned up in 980 of 1,000 such sessions.
More details
What the numbers really look like
With one die every face is equally likely, about 16.7% for a six-sided die and 5% for a twenty-sided one. Adding dice changes the shape. With two six-sided dice there are 36 combinations, and a total of 7 can be made six ways, so it comes up about 16.7% of the time, while 2 and 12 each come up only once in 36, about 2.8%. That is why 7 is the most common total in many board games. Rolling three or more dice pushes the totals even further toward the middle.
Streaks are normal
Five heads in a row happens about 3% of the time, so across many flips you will see it now and then. It does not mean the next flip is “due” to be tails; every flip starts fresh with the same 50% chance. If you are teaching probability, run the coin a few dozen times and count how often streaks appear, then compare with the numbers above.
Matching a die to your list of options
If the number of options divides the number of sides evenly, group the faces. With three options on a six-sided die, 1–2 picks the first, 3–4 the second and 5–6 the third, each with exactly a one-in-three chance. If it does not divide evenly, reroll the leftover faces: for five options, roll a six-sided die and roll again on a 6, which keeps every option at exactly 20%. Rerolling sounds slow, but in the five-option case you need a second roll only one time in six, and three or more rolls about one time in 36 (1/6 × 1/6). Games that need a number from 1 to 100 roll two ten-sided dice marked 0 to 9, one for the tens and one for the ones: a 3 and a 7 read as 37, a 0 and a 7 as 7, and a double 0 as 100.
Totals with two and three dice
When you roll more than one die, the page also shows the total. Totals are not equally likely, because more combinations add up to the middle numbers. For two six-sided dice:
| Total | Ways out of 36 | Chance |
|---|---|---|
| 2 or 12 | 1 | 2.8% |
| 3 or 11 | 2 | 5.6% |
| 4 or 10 | 3 | 8.3% |
| 5 or 9 | 4 | 11.1% |
| 6 or 8 | 5 | 13.9% |
| 7 | 6 | 16.7% |
With three six-sided dice there are 216 combinations. Totals of 10 and 11 can each be made 27 ways (12.5%), while 3 and 18 can each be made only one way (about 0.5%).
How often long streaks turn up
A run of five heads in a row is about a 3% event on any given five flips, but over a longer session it becomes likely. Counting runs of five or more heads anywhere in the sequence, it happens in about 25% of sessions of 20 flips, about 55% of sessions of 50 flips and about 81% of sessions of 100 flips. If a class flips a coin a hundred times, a streak like that is the normal outcome, not a sign that something is wrong.