Coin Flip & Dice Roller
Flip up to 100 coins or roll up to 10 dice (d4 to d20) with secure randomness, totals, heads and tails counts and a result history.
- Free
- No sign-up
- Runs in your browser
Coin Flip & Dice
History (last 20)
No results yet.
Runs in your browser. Your inputs never leave your device.
In short
Quick Answer
Choose Coin or Dice, set how many, and press Flip or Roll. Each coin has exactly a 50% chance of heads, and each face of a die is equally likely, because results come from your browser's secure random generator with rejection sampling. Dice show every face and the total, and the last 20 results stay in the history.
Step by step
How to Use
- Choose coin or dice. Pick Coin to flip coins, or Dice to roll dice.
- Set how many. Choose 1 to 100 coins, or 1 to 10 dice and the type of die.
- Flip or roll. Press the button to see each coin or die, the heads and tails count or the total.
- Check the history. Your last 20 results are listed below the result.
Dice Odds at a Glance
One die gives every face the same chance. Add more dice and the totals bunch up in the middle, which is why 7 is the number to watch in board games played with two six-sided dice.
| Roll | Range | Average | Chance of one value |
|---|---|---|---|
| 1d4 | 1–4 | 2.5 | 25% |
| 1d6 | 1–6 | 3.5 | 16.67% |
| 2d6 | 2–12 | 7 | 7: 16.67%, 2 or 12: 2.78% |
| 1d8 | 1–8 | 4.5 | 12.5% |
| 1d10 | 1–10 | 5.5 | 10% |
| 1d12 | 1–12 | 6.5 | 8.33% |
| 1d20 | 1–20 | 10.5 | 5% |
When to Flip a Coin or Roll a Die Online
- Settling a decision: a coin flip is the classic fair tie-breaker between two options.
- Board games and role-playing games: replace missing dice, or roll handfuls of d6 or a d20 quickly with the total worked out.
- Teaching probability: flip 100 coins several times to show how the heads count varies, or compare 2d6 totals with the odds table above.
- Random choices: for a choice among more than six options, use the random number generator or the random name picker.
Physical coins and dice can be slightly biased by their shape and how they are thrown. A secure software generator does not have that problem: every outcome is exactly equally likely. Results are generated in your browser and the history stays on this page only.
The math
Probabilities
P(heads) = 1/2 · P(any face of a dN) = 1/N · Sum of k dice ranges from k to k × N
Every flip and roll is independent: earlier results do not change the next one. For one die all faces are equally likely, but sums of several dice are not: with 2d6 there are 36 equally likely combinations, six of which add up to 7, so 7 is the most common total (1 in 6) and 2 or 12 the rarest (1 in 36). The average total of k dice with N sides is k × (N + 1) ÷ 2.
- dN: A die with N faces numbered 1 to N: d4, d6, d8, d10, d12 or d20.
- kdN: Dice notation for rolling k dice with N sides, e.g. 2d6 or 1d20.
- Independence: Each result is drawn fresh; a streak of heads makes tails no more likely on the next flip.
Examples
Worked Examples
Roll 2d6
Dice: 2, type d6
- Each die shows 1-6, for example 4 and 3
- Total = 4 + 3 = 7; possible totals run from 2 to 12
Result: Total 7 (the most likely 2d6 total, probability 6/36)
Roll a d20
Dice: 1, type d20
- One number from 1 to 20, each with probability 1/20 = 5%
Result: For example 14; a natural 20 comes up 5% of the time
Flip 100 coins
Coins: 100
- Each coin is heads or tails with probability 1/2
- Heads + tails always equals 100
Result: Around 50 heads; anything from 40 to 60 is common (about 96% of the time)
Watch out
Common Mistakes to Avoid
- The gambler's fallacy: After five heads in a row, tails is still exactly 50%. Coins and dice have no memory, so past results never make a particular outcome "due".
- Assuming all dice totals are equally likely: With two dice, 7 comes up six times as often as 2 or 12. Only single-die results are evenly spread.
- Expecting exactly 50 heads in 100 flips: Exactly 50 heads happens only about 8% of the time. Results between 40 and 60 are normal; it takes many thousands of flips for the proportion to settle close to 50%.
- Using a predictable random source: Simple generators such as Math.random() are fine for animations but not for anything where fairness matters. This tool uses crypto.getRandomValues with rejection sampling so no face is favoured.
FAQ
Frequently Asked Questions
Is the online coin flip fair?
Yes. Each flip uses your browser's cryptographically secure random generator, so heads and tails each have exactly a 50% chance, and no flip depends on the previous one.
How do I roll 2d6 online?
Choose Dice, set the number of dice to 2 and the type to d6, then press Roll. You will see both dice and their total, which can be from 2 to 12.
What is the most common total with two dice?
7. Six of the 36 combinations add up to 7 (1+6, 2+5, 3+4, 4+3, 5+2, 6+1), so it comes up 1 time in 6 on average.
What dice can I roll?
d4, d6, d8, d10, d12 and d20, up to 10 dice at once, the standard set used in tabletop role-playing games.
How many coins can I flip at once?
Up to 100. The result shows every coin and counts the heads and tails.
Can I see my previous results?
Yes. The history keeps your last 20 flips and rolls on this page. It is cleared when you leave or press Clear history.
Can I turn off the animation?
The flip and roll animation is skipped automatically if your device is set to reduce motion.
References