GENERATOR TOOL

Coin Flip

Flip a virtual coin instantly, once or many times at once. Nothing is sent to a server.

🪙
Tap to flip

About this tool

This coin flip uses your browser's random number generator for a fair, independent 50/50 result on every flip. Flip once for a quick decision, or flip hundreds of times at once to see how the heads/tails split evens out over a larger sample.

How to use the Coin Flip

  1. Set the number of flips — leave it at 1 for a single flip.
  2. Tap Flip to get your result.
  3. Check the tally if you ran multiple flips at once.

Common use cases

Why flips can "streak" even though it's fair

Getting several heads in a row can feel suspicious, but it's a normal and expected outcome of true randomness — each flip is independent, with no memory of what came before, so the coin is exactly as likely to land heads after five heads in a row as after five tails. Over a small number of flips (say, 10), it's common to see a 6-4 or even 7-3 split purely by chance. The 50/50 split becomes more reliable the more flips you run — that's why the "flip many at once" option is useful for seeing the law of large numbers in action rather than judging fairness from just one or two flips.

Things to watch out for

This is a software random number generator, not a physical coin — it's suitable for games, casual decisions, and everyday fairness, but it's not built for cryptographic or high-stakes gambling use, where a different class of randomness (and often independent auditing) is expected.

Using a coin flip to decide

A fair coin lands heads or tails with a 50% chance each, so it is a neutral way to break a tie. One trick: if you feel disappointed by the result, that tells you which option you actually wanted. For best-of-three or best-of-five decisions, flip repeatedly and count wins. Flips in this tool are independent, so five heads in a row makes the next flip no more likely to be tails.

How often a fair coin really splits evenly

Every flip here is independent, with a 1 in 2 chance of heads. Flip it n times and the chance of getting exactly k heads is the binomial formula: C(n, k) ÷ 2 to the power n, where C(n, k) is the number of ways to choose which k flips are heads. The results are less tidy than most people expect:

FlipsOutcomeProbability
10exactly 5 heads24.6%
100exactly 50 heads8.0%
10a run of 4 or more of the same side46.5%
20a run of 5 or more of the same side45.8%
100a run of 6 or more of the same side80.7%
100a run of 7 or more of the same side54.2%

So in 10 flips, a perfect 5-5 split happens only about a quarter of the time. In 100 flips, an exact 50-50 result happens under 8% of the time, even though the share of heads usually lands close to half. A run of five or more heads or tails in a row turns up in almost half of all 20-flip sessions. Seeing a long streak is not evidence that the coin is broken.

Streaks of the same side: the math

The chance that the next k specific flips all land heads is (1/2) to the power k: 1 in 8 for three in a row, 1 in 32 for five and 1 in 1,024 for ten. That sounds rare, but in a long session there are many places a streak can start, which is why the table above shows streaks being common. The table values were computed exactly by counting every possible sequence.

Using a coin flip fairly

Frequently asked questions

Is a virtual coin flip actually random?

This tool uses your browser's built-in random number generator (Math.random), which is suitable for games, decisions, and everyday fairness — each flip has an independent 50/50 chance, with no memory of previous flips.

Can I flip multiple coins at once?

Yes — set the number of flips to more than one, and the tool shows the result of each flip along with a running heads/tails total.

Does this store or share my flip results?

No. Every flip happens locally in your browser and nothing is sent to or stored on a server.

What are the odds of flipping heads 5 times in a row?

For five specific flips, the chance that all land heads is (1/2) to the power 5, which is 1 in 32, or about 3.1%. Across a longer session the chance that a streak of five or more of either side appears somewhere is much higher: about 46% in 20 flips.

If I flip a coin 100 times, how many heads should I get?

The expected number is 50, but getting exactly 50 happens only about 8% of the time. Results in the mid-40s to mid-50s are all ordinary. The larger the number of flips, the closer the share of heads tends to get to one half.