Toss a virtual coin to settle a decision, start a game or teach probability. Flip one coin or many, and keep a running count of heads and tails.
How to use it
- Press Flip. The coin shows H for heads or T for tails.
- To toss several coins at once, change Coins (up to 1,000).
- The totals, percentages and longest streak count every flip until you press Reset count.
How the coin is tossed
There's no physics simulation deciding the result. When you press Flip, the page asks your browser's cryptographic random number generator, the same kind used for passwords and encryption keys, for a random 32-bit number. Even numbers are heads and odd numbers are tails. Because exactly half of the 4,294,967,296 possible numbers are even, both sides have exactly the same chance, and nothing about earlier flips affects the next one. The spinning coin is just for show.
The maths of coin tosses
- One fair coin: 1 in 2 for heads.
- Two heads in a row: ½ × ½ = 1 in 4. Five in a row: (½)5 = 1 in 32. Ten in a row: 1 in 1,024.
- Each flip is independent: after five heads, the next flip is still 50/50.
For a choice between more than two options, use the random name picker or roll the dice roller.
Frequently asked questions
Is this coin flip really 50/50?
Yes. Each flip takes a random number from your browser's cryptographic generator (crypto.getRandomValues): even numbers are heads and odd numbers tails. Exactly half of all possible numbers are even, so both sides are equally likely, and no flip depends on the one before.
I got heads five times in a row. Is something wrong?
No. Streaks are normal: in a run of flips, the chance of five heads in a row starting at any given flip is 1 in 32. Flip 100 coins at once and look at the longest streak to see how long runs get.
Why isn't it exactly 50% heads after many flips?
Random results wobble around the expected split. The share of heads usually gets closer to 50% as you flip more coins, but the gap in the raw count can still grow.
Can I flip more than one coin?
Yes, set Coins to any number from 1 to 1,000. The result shows how many heads and tails that toss gave, and the running totals add up every flip since you opened the page.