Flip a coin
Heads or tails? Tap the coin or press the space bar to toss a fair, random coin.
Tap to flip
- Heads
- 0
- Tails
- 0
- Longest streak
- 0
- Flips
- 0
How to use the flip a coin
- Tap Flip, tap the coin itself, or press the space bar.
- Watch the coin land on heads or tails.
- To flip several coins at once, choose how many under Coins: 3 for a best of three, or 10, 50 or 100 to count heads and tails. flipj says which side won.
- Your running tally, longest streak and recent flips appear below. Reset tally clears them.
Is an online coin flip really 50/50?
Yes. Each flip has exactly a 1 in 2 chance of heads and a 1 in 2 chance of tails, and every flip is independent of the last one. flipj uses your browser's built-in cryptographic random number generator (crypto.getRandomValues), the same source browsers use for encryption keys. We also avoid "modulo bias", a subtle flaw where some results come up slightly more often than others. Every result is generated on your device, so nothing you enter is sent to us.
A real coin is very slightly less fair, in a way nobody would guess. In a very large experiment, a team of researchers flipped coins 350,757 times between them and recorded which side started facing up. The coins landed on the same side they started on 50.8% of the time (the paper gives a 95% interval of 50.6% to 50.9%), as a 2007 physics model by Diaconis, Holmes and Montgomery had predicted: a tossed coin wobbles as it spins, so it spends a little more of its flight with the starting side up. Heads and tails themselves came out even, at 50.0%, and the size of the same-side effect varied a good deal from one person to the next. (František Bartoš and 49 co-authors, "Fair coins tend to land on the same side they started: Evidence from 350,757 flips".)
So if you are flipping a real coin for something that matters, don't let the caller see which side is up before the toss. Our virtual coin has no starting side, so it doesn't have that bias.
Flip 10 coins: how many heads?
Ten flips can come out 1,024 different ways. Exactly five heads is the most likely result, but it happens less than a quarter of the time; a 6–4 or 4–6 split is nearly as common, and together the three middle results cover 65.63% of all sets of ten.
| Heads out of 10 | Ways (of 1,024) | Chance | This many or more |
|---|---|---|---|
| 0 | 1 | 0.10% (1/1024) | 100.00% |
| 1 | 10 | 0.98% (5/512) | 99.90% |
| 2 | 45 | 4.39% (45/1024) | 98.93% |
| 3 | 120 | 11.72% (15/128) | 94.53% |
| 4 | 210 | 20.51% (105/512) | 82.81% |
| 5 | 252 | 24.61% (63/256) | 62.30% |
| 6 | 210 | 20.51% (105/512) | 37.70% |
| 7 | 120 | 11.72% (15/128) | 17.19% |
| 8 | 45 | 4.39% (45/1024) | 5.47% |
| 9 | 10 | 0.98% (5/512) | 1.07% |
| 10 | 1 | 0.10% (1/1024) | 0.10% |
Ten heads in a row is a 1 in 1,024 event. It feels impossible, yet it is exactly as likely as any other particular sequence, such as HTTHHTHTTH.
Flip 100 coins: how close to 50?
Choose 100 under Coins and flip a few times: you will rarely see exactly 50 heads, but you will almost never see 65.
| Heads out of 100 | Chance |
|---|---|
| Exactly 50 | 7.96% |
| 48 to 52 | 38.27% |
| 45 to 55 | 72.87% |
| 40 to 60 | 96.48% |
| 60 or more | 2.84% |
| 65 or more | 0.18% |
This is the law of large numbers at work: the share of heads closes in on a half as you flip more coins, even though the gap between the number of heads and tails tends to grow. It makes a good classroom experiment, because every student's set of 100 is different but nearly all of them land between 40 and 60.
Best of three
"Best of three" does not change anyone's odds: with a fair coin each side still wins half the time. What it changes is how the result feels, because one unlucky flip no longer settles it. Half of all best-of-three contests are over after two flips (the same side twice, 50%); the other half go to a decider. To play it here, set Coins to 3 and flip once: the side with two or more wins, and flipj shows the count and the winner. An odd number of coins can never tie; an even number can, and with two coins it does half the time.
Streaks are normal
Flip a coin 20 times and there is a 76.84% chance you will see a run of at least four heads or four tails in a row, and a 45.84% chance of a run of five. In 100 flips a run of six or more is the usual outcome (80.68%). People often think streaks mean something is wrong, but they are exactly what real randomness looks like; sequences invented by people usually give themselves away by switching sides too often. The coin has no memory: after five heads in a row, the next flip is still 50/50.
Ways to use a coin toss
- Settle a decision, like who goes first, who pays or which film to watch.
- Sports kick-offs, when you don't have a coin to hand.
- Teaching probability: flip 100 coins at once and compare the result with the table above.
- Breaking a tie between two equally good options. If you feel disappointed by the result, that tells you which one you really wanted.
- More than two options? Use the wheel or roll a die. For a decision a whole group needs to see, flip in a live room: the coin is tossed on our server and every phone shows the same result.
Questions
Is heads or tails more likely?
Neither. Each flip is an independent 50/50 chance, no matter what came up before.
Can I flip more than one coin?
Yes. Choose up to 100 coins and flipj tosses them all at once, counts the heads and tails and says which side won.
What are the odds of getting heads 3 times in a row?
1 in 8 (12.5%), because each flip is 1 in 2. Ten heads in a row is 1 in 1,024.
What are the odds of exactly 5 heads in 10 flips?
24.61% (63/256). It is the most likely single result, but some other split is more likely than not.
How do I do a best of three?
Set Coins to 3 and flip once. Whichever side shows on two or three of the coins wins.
Do real coins land on their starting side more often?
Slightly. A study of 350,757 flips by Bartoš and colleagues found coins landed on the side they started on 50.8% of the time. A virtual coin has no starting side.