How to flip a coin online
- Press Flip, click the coin, or press the space bar. The coin spins for about a second and lands on heads or tails.
- To toss several coins at once, choose how many in the Coins box. Each result is shown, and the big coin shows the first one.
- The counts, the current run and the longest run so far are kept below, along with the last 40 flips. Press Reset counts to start again.
Your counts are saved in this browser, so you can close the page and carry on later. If your device is set to reduce motion, the result appears without the spinning animation. Once the page has loaded, flipping needs no internet connection, so it keeps working on a weak signal.
How the flip stays fair
A computer can’t toss a real coin, so it needs a source of randomness. This page uses your browser’s cryptographic random number generator, the one designed for encryption keys, and takes one random bit for each coin: 0 is heads and 1 is tails. Every flip has exactly a 50% chance of each side, and no flip depends on the ones before it. The result is decided the moment you press Flip; the animation only shows it.
Is a real coin toss fair?
Almost. In 2007, the mathematician Persi Diaconis and colleagues showed with a physics model that a tossed coin spends slightly more time with its starting face up, predicting it lands that way about 51% of the time. In 2023 a team led by František Bartoš tested this with 48 people tossing coins from 46 currencies 350,757 times. The coins landed on the side they started on about 50.8% of the time: a small but measurable bias, which varied between people. They found no sign that heads or tails themselves were favored. So a real toss is close to fair, especially if the person tossing doesn’t look at the coin first. Spinning a coin on a table instead of tossing it can be much less fair, because small differences in weight between the two sides can tip the result.
Streaks and the gambler’s fallacy
Runs of the same side happen far more often than most people expect. The chance that every flip lands heads (or every flip lands tails) halves with each extra flip:
| Flips | Chance they all land heads |
|---|---|
| 2 | 1 in 4 (25%) |
| 3 | 1 in 8 (12.5%) |
| 5 | 1 in 32 (3.1%) |
| 7 | 1 in 128 (0.8%) |
| 10 | 1 in 1,024 (0.1%) |
Those are the chances for one particular stretch of flips. Over a long session, runs appear all the time: in 100 flips, the chance of a run of six or more of the same side somewhere is about 81%. The “longest run” count on this page lets you see it for yourself. After a long run, it is tempting to think the other side is “due”, but each flip is independent, so the chance is still 50/50. This mistake is called the gambler’s fallacy.
Why the percentages even out
With only a few flips, the share of heads can be far from 50%: three heads out of four is 75%. As the number of flips grows, the percentage gets closer and closer to 50%, which is called the law of large numbers. The difference in raw counts doesn’t disappear, though; after 1,000 flips it is normal to be 20 or 30 heads ahead or behind. For example, 7 or more heads out of 10 flips happens about 17% of the time, but 70 or more heads out of 100 flips happens only about 4 times in 100,000. Try flipping 100 coins a few times and watch the totals settle.
A classroom probability experiment
- Ask everyone to predict how many heads they will get in 10 flips, and write the guesses down.
- Flip 10 coins at once and compare the result with the guesses. Most groups find results like 3, 4, 6 or 7 heads are common, and exactly 5 happens only about a quarter of the time (252 of the 1,024 possible results).
- Flip 100 coins several times and note the percentage of heads each time. It stays much closer to 50% than the 10-coin results did.
- Reset the counts, flip one coin 50 times, and look at the longest run. Ask the class whether they would have believed a run that long was random.
The experiment shows three ideas at once: single results are unpredictable, averages become predictable over many trials, and true randomness looks streakier than people expect.
Heads or tails: which should you call?
With this page it makes no difference: both sides have exactly the same chance, and nothing you do changes the result. With a real coin, the small same-side bias found in research means that, if you can see which side is up before the toss, calling that side gives you a very slight edge, about 50.8% in the 2023 study. That’s one reason the person who calls is usually not the person who tosses.
When to flip a coin
- Settling a choice between two equally good options: who goes first, which film to watch, or where to eat.
- Sports and games: choosing who kicks off, serves first or picks sides, as long as one player calls heads or tails before the flip.
- Breaking ties in a vote, a quiz or a game when two options or players end up level and you need a quick, neutral way to decide.
- Classrooms: probability experiments, true-or-false games, or splitting a class into two groups.
- Hard decisions: a popular trick is to flip and notice how you feel about the result. If you are disappointed, you have learned what you really wanted.
For more than two options, use the spin the wheel picker, or roll dice with the random number generator.
Frequently asked questions
Is this coin flip really 50/50?
Yes. Each flip uses your browser’s cryptographic random number generator, so heads and tails each have exactly a 50% chance, and every flip is independent of the ones before it.
Is a real coin toss 50/50?
Very nearly, but not exactly. In a 2023 study of 350,757 tosses, coins landed on the same side they started on about 50.8% of the time, close to what a 2007 physics model by Persi Diaconis and colleagues predicted. An online flip doesn’t have that bias.
What are the chances of getting heads 5 times in a row?
1 in 32, about 3.1%. Each flip halves the chance: 1 in 2 for one flip, 1 in 4 for two, 1 in 8 for three, and so on. That is the chance of a particular five flips; in a long series of flips, a run of five somewhere is very likely.
After several tails, is heads more likely?
No. Coins have no memory, so the next flip is still 50/50 no matter what came before. Believing otherwise is called the gambler’s fallacy.
Can I flip more than one coin?
Yes. Choose 2, 3, 5, 10 or 100 coins. The page shows every result and how many came up heads and tails, and adds them all to the running totals.
Is the coin flip fair for making decisions?
Yes, as long as everyone agrees which side means what before you flip. If two people are deciding, let one person call heads or tails before the flip.