Free Coin Flip & Dice Roller

Flip coins or roll dice with cryptographically secure randomness. Runs entirely in your browser β€” no server, no logs.

Enter your details
Result
Enter your details on the left, then press Calculate.

What is this calculator for?

You and your partner are deciding between two restaurants. You can't decide. Time to flip a coin. Or you're playing a tabletop game and don't have dice handy. Or you're trying to break a 7-game tie between two teams. The coin flip and dice roller produces random outcomes for binary decisions (heads/tails) and standard polyhedral dice rolls (d4, d6, d8, d10, d12, d20).

Coin flips: 50/50 binary decision. Heads or tails, true random. Used for: small-stakes decisions, sports captaincy choices, breaking ties, settling arguments. Dice rolls: standard tabletop gaming dice β€” d4 (4-sided), d6 (regular cube), d8, d10, d12, d20 (Dungeons & Dragons standard). Used for: gaming, statistical sampling, decision-making with more than 2 options.

This tool produces verifiable random flips and rolls. Optionally roll multiple dice at once or flip multiple coins for statistical patterns.

How to use this calculator

For coin flip: click flip. Result is heads or tails, 50/50 probability.

For dice roll: pick die type (d4, d6, d8, d10, d12, d20). Roll. Or roll multiple dice at once (4d6 = roll 4 six-sided dice). Sum or list individual results.

For multi-flip statistics: flip 50 or 100 coins at once to see the distribution. Useful for demonstrating that "random" doesn't mean "alternating perfectly" β€” clumps and streaks are normal.

Understanding your results

The tool outputs random flips/rolls with the underlying randomness producing fair 50/50 (coins) or uniform distribution (dice).

Probability for dice rolls. d6: equal 1/6 chance of each face. Two d6 (2d6, sum 2-12): triangular distribution peaking at 7 (most likely sum), tapering to 2 and 12 (least likely). For each-result-equal probability, use single die; for sums, results are distributed (most likely is in the middle).

The "streaks are normal" fact. Flip 10 coins and you'd expect to see HHHH or TTTT streaks sometimes (about 50% chance of seeing a 4+ streak in 10 flips). True randomness produces these streaks naturally. The mental "random should be HTHTHTHT alternating" is wrong β€” that's anti-random. Researchers can identify human-generated "random" sequences because they have too few clusters (humans actively avoid streaks they think don't "feel random").

Coin flip fairness. Modern minted coins are extremely close to 50/50 fair. Research using high-speed cameras has identified tiny biases β€” a coin caught (not bouncing off ground) very slightly biases toward whichever side faced up at flip start (about 51% to start-up). Practical impact: negligible for decision-making; meaningful only for thousands of repeated flips. For everyday decisions: coins are fair.

D20 critical hits. In Dungeons & Dragons and similar tabletop RPGs, rolling a natural 20 on a d20 (probability 1/20 = 5%) is a "critical hit" β€” auto-success often with bonus damage. Rolling natural 1 is a "critical fumble" β€” auto-fail. Players sometimes feel they roll 20s or 1s more often than 5% probability suggests; this is confirmation bias. Across hundreds of rolls, distribution follows true probability.

A worked example

Marcus and Aisha can't decide between Italian or sushi for dinner. They coin flip. Heads = Italian, Tails = sushi. Flip: tails. They go for sushi. Decision made in 3 seconds; they enjoy dinner.

The 'coin flip as decision aid' works because: (a) any conscious deliberation has reached an impasse, (b) the coin removes responsibility (neither chose; chance did), (c) often after the flip you realize you wanted the OTHER option β€” useful information that your unconscious preference was real but unspoken. Some couples use coin flips as decision aids and find that they often "want the other option" after the flip; that's the data point.

Variation: Daniel is running a D&D campaign. Players are about to attack a dragon. Each player rolls a d20 for their attack roll, comparing to the dragon's AC of 18. Players: Marcus rolls 18 (hits), Aisha rolls 7 (misses), Lin rolls 20 (critical hit β€” automatic + bonus damage), James rolls 14 (misses). The randomness of dice rolls is the entire mechanic β€” outcomes feel earned by the dice rather than imposed by the GM.

Variation: Lisa is teaching her statistics class about randomness. She has students flip a coin 20 times and record results. Class average across 30 students: about 50.2% heads β€” close to expected 50%. But individual students see varying results: some 13 heads, some 7 heads, most 9-11 heads. The point: 20 flips is too few to expect exactly 50/50; the variation IS the randomness. With 200 flips: results converge much closer to 50/50. With 2,000: very close. The "law of large numbers" demonstration; small samples can deviate significantly while still being from a fair process.

Related resources

For broader random number generation, see Random Number Generator. For password and key generation requiring cryptographic randomness, the Password Generator. For statistical math underlying randomness, the Percentage Calculator. Random.org uses atmospheric noise for true random; Wikipedia's dice article covers the history and mathematical properties of polyhedral dice.

Related calculators

Frequently asked questions

Is this a fair / random coin flip or dice roll?

Yes. This tool uses the Web Crypto API (crypto.getRandomValues) β€” the same source browsers use to generate encryption keys. It draws entropy from your operating system's secure random pool, not a predictable algorithm. Each flip or roll is statistically independent.

What is a D20 dice?

A D20 is a 20-sided die used in tabletop RPGs like Dungeons & Dragons. The 'D' stands for die; the number after it is the number of faces. Other common types: D4 (pyramid), D6 (standard cube), D8 (octahedron), D10, D12, and D100 (percentile, used by rolling two D10s).

What is the probability of getting heads?

Exactly 50% for a fair coin β€” each flip is independent so prior flips never affect the next one. With 2 coins: both heads = 25%, one of each = 50%, both tails = 25%. With n coins, the probability of exactly k heads follows the binomial distribution: C(n,k) x 0.5^n.

Are coins really 50/50?

Extremely close. Modern minted coins are designed to be very nearly symmetric. Research using high-speed video has identified tiny biases β€” a flipped coin caught in hand (not bouncing off floor) has about a 51% probability of landing same side up as it started. The effect is tiny; for practical decision-making purposes, coins are 50/50. For thousands of repeated flips in scientific contexts: the bias might matter; in your dinner-decision context, irrelevant. Worn coins (significant chip on one side) might shift slightly; everyday currency is fair enough.

What's the probability of getting heads 10 times in a row?

1 in 1,024 (0.0977%). Probability = (0.5)^10. Counter-intuitively: this is the same probability as any other specific sequence of 10 flips. HHHHHHHHHH has the same probability as HTHTTHHTHH or any other specific 10-flip sequence. The 10-heads streak feels rare because we're pattern-matching to 'all same' as a specific category. To estimate 'getting at least 10 in a row sometime in N flips': use the formula 1 βˆ’ (1 βˆ’ 0.5^10)^N β€” for N=10,000 flips, probability of seeing a 10-streak is about 99.99%.

If I flip 5 heads in a row, is tails more likely next?

No β€” the gambler's fallacy. Coins have no memory. Each flip is independent with 50% probability regardless of previous flips. The intuition that 'tails is due' is wrong; the probability is 50/50 every single flip. The gambler's fallacy costs people money in casinos (betting against 'hot' streaks at roulette, despite no actual correlation), and is a foundational cognitive bias studied in behavioral economics. Trust the probability, not the gut feel about 'streaks owing reversal.'

What does d20, d10, d6 mean?

Polyhedral dice nomenclature. The 'd' stands for 'die,' and the number indicates the number of sides. d4 = tetrahedron (4 faces, looks like a pyramid). d6 = standard cube. d8 = octahedron (8 faces, diamond shape). d10 = pentagonal trapezohedron (10 faces). d12 = dodecahedron (12 faces). d20 = icosahedron (20 faces, classic 'D&D die'). Other less common: d24, d30, d100 (often two d10s representing tens and ones digits). Notation '4d6' means 'roll 4 d6 dice and sum.' Used in Dungeons & Dragons and most tabletop RPGs.

Can I trust online coin flippers?

Mostly yes. Reputable online flippers use cryptographically-secure random number generators that are practically indistinguishable from true randomness. For audit-required randomness (legal raffles, official sports decisions): use Random.org (uses atmospheric noise for genuine randomness; provides certificates of randomness). For casual decisions: any reasonable online flipper is fine; even a basic Math.random()-based flipper is fair enough for dinner decisions. The 'rigged online random' fear is unfounded for any reputable service; the real risk is using sketchy gambling sites that may rig outcomes against users (different from random number generators per se).

Sources