HandyBench

Coin Flip

Heads or tails — flip one coin or hundreds.

How to use the Coin Flip

  1. 1 Choose how many coins to flip.
  2. 2 Click Flip.
  3. 3 See the result, or the heads/tails breakdown for multiple coins.

Two outcomes, decided by one bit

For each coin the tool draws a 32-bit unsigned integer and reads its parity: even means Heads, odd means Tails. Because 232 is even, exactly half of the possible values fall on each side, so there is no modulo bias at all. A single flip shows a gold disc with the result. When you ask for 2 to 1,000 coins, the page switches to a summary of Heads, Tails and a Heads % figure that is rounded to a whole number. The individual order of the flips is not listed, only the counts.

What 100 or 1,000 flips should look like

Fair coins do not split exactly 50/50. The spread of the head count has a standard deviation of sqrt(n) / 2. Roughly 95% of the time the count lands within two standard deviations of half.

FlipsStd. deviation (heads)Typical 95% range
101.62 to 8 heads
100540 to 60 heads (40% to 60%)
1,00015.8about 468 to 532 heads (47% to 53%)

A result of 54% heads from 100 flips is therefore unremarkable, while 54% from 1,000 flips happens only about once in a hundred tries. The percentage converges toward 50 as the count grows, but the raw difference between heads and tails actually tends to grow, which is a frequent source of confusion in classroom demonstrations.

Streaks are normal

People expect a fair sequence to alternate, and genuinely random runs look suspiciously streaky. The chance that a specific set of 10 flips is all heads is 1 in 1,024. But the chance that 100 flips contain a run of 6 or more of the same face (either side) is about 81%, a run of 7 or more is about 54%, and a run of 8 or more is about 31%. The expected longest run in 100 flips is close to 7. In 1,000 flips it is about 10, and a run of 10 or longer shows up around 62% of the time.

Common mistakes

  • The gambler's fallacy: after five heads the next flip is still 50/50.
  • Flipping until you like the answer. If a decision matters, agree on the rule first, such as "heads means yes", then flip once.
  • Using a coin for three or more options. Use a dice roller for up to 20 outcomes, or the random picker to choose among named entries.

Examples

  • ▸ Settle a decision with a single heads-or-tails flip.
  • ▸ Flip 100 coins to demonstrate probability in a class.

Frequently asked questions

Is the coin flip really 50/50?

Yes. Each flip uses your browser’s cryptographically secure random generator, giving heads and tails an exactly equal chance with no bias.

Can I flip many coins at once?

Yes — set any count up to 1,000 and the tool shows the totals and percentage of heads, which is handy for probability demonstrations. For two or more coins it shows only the counts, not the order of the flips.

Why is 100 flips not exactly 50 heads?

Random results vary around the expected value. For 100 fair flips the head count has a standard deviation of 5, so anything from about 40 to 60 heads is normal. The Heads % figure is rounded to a whole number.

Are long streaks of heads a sign the coin is rigged?

Not by themselves. In 100 fair flips there is roughly an 81% chance of a run of six or more of the same side, and about a 54% chance of seven or more. A particular 10 flips are all heads only 1 time in 1,024.