Advertisement
Advertisement

Coin Flip

Tap the button for a fair heads-or-tails result, or flip a whole handful of coins at once and watch the percentages settle toward 50/50.

🔒 Everything runs in your browser. Nothing you enter or open here is uploaded to a server.
Ready to flip
0
Heads
0
Tails
—
Heads %
—
Tails %

History

How to use the Coin Flip

  1. Leave Coins at 1 for a single heads-or-tails decision, or enter any number up to 100.
  2. Click Flip. A single coin spins and lands on its result; several coins appear as a row of small coins with the count for that flip.
  3. Watch the tallies and percentages update. They include every coin you have flipped since loading the page.
  4. Scroll the history list to see earlier flips, newest first.
  5. Click Reset to clear the tallies and start a fresh experiment.

How it works

Every coin is decided by your browser's cryptographic random number generator (crypto.getRandomValues), which picks heads or tails with exactly equal probability. The spinning animation is just for show: the result is chosen first, then the coin is turned to land on that face. Each flip is independent, so a streak of five heads does not make tails "due."

The percentages show the law of large numbers in action. With only a few flips, results can look lopsided. With hundreds of flips they drift toward 50%. A useful rule of thumb: for n fair flips, the share of heads is usually within about 1/√n of 50%. For 100 flips that's roughly 40% to 60%; for 10,000 flips it's roughly 49% to 51%.

Worked example: flip 100 coins and you might see 47 heads and 53 tails. That isn't a sign of a broken coin; it is well inside the normal range. Probability of exactly 50 heads in 100 flips is only about 8%.

The coin faces are simple drawings made for this page (a star for heads, a "T" for tails), not a real currency design.

Frequently asked questions

Is this coin flip fair?
Yes. Heads and tails each have exactly a 50% chance. The tool uses your browser's cryptographic random source with an unbiased method, so it doesn't lean either way and ignores past results.

Is a real coin 50/50?
Very close, but not perfectly. Studies of real tosses suggest a slight tendency to land on the side that started facing up. A virtual flip avoids that physical bias.

Why did I get heads five times in a row?
Streaks are normal. The chance of five heads in a row is 1 in 32, so if you flip often you will see them. Each flip is independent of the ones before it.

Can I flip more than one coin?
Yes, up to 100 at once. The result shows how many landed heads and tails, and the totals and percentages add them in.

Is my history saved?
No. History and tallies live only in this page and disappear when you reload or close it.

Advertisement

You might also need