Flip a Coin

Heads or tails? Tap the coin for a fair, crypto-random toss. Call it, play best of 3, 5 or 7, or flip up to 100 coins at once.

Heads or Tails?

Tap the coin or the button to flip.

Call it

Your stats

Flips
0
Heads
0 –
Tails
0 –
Current streak
–
Longest streak
–
Calls right
–
Customize sides

Up to 14 characters each. The names show on the coin, the result and your stats.

Stats are kept in this browser only.

Why flip a coin online?

A coin toss is the quickest fair way to settle a two-way choice, but there isn't always a coin in your pocket, and a real one isn't quite even: a hand-caught coin favours the side it started on by a fraction of a percent. This coin is exactly 50/50, decided by your browser's cryptographic random generator the moment you tap. It can also play a best-of series, flip a hundred coins at once and keep score of every flip, streak and call, all on your device.

How to flip

  1. Tap the coin or Flip the coin, or press Space. The coin spins and lands on heads or tails.
  2. Optional: tap Heads or Tails under Call it first to see whether you called it right.
  3. Choose Best of for a best of 3, 5 or 7 series, or Many coins to flip up to 100 at once.
  4. Watch your counts and streaks under Your stats, rename the sides under Customize sides, and share the result.

Is a coin flip really 50/50?

For this coin, yes, exactly: each flip is one random bit fromcrypto.getRandomValues, and a bit has two equally likely values. A real coin comes very close. In 2007 the mathematicians Persi Diaconis, Susan Holmes and Richard Montgomery showed that a coin caught in the hand slightly favours the side that was facing up when it was tossed, about 51% to 49% (Dynamical Bias in the Coin Toss). A team led by František Bartoš then tested it with 48 people and 350,757 flips and found the coin landed on its starting side 50.8% of the time, while heads and tails overall split 50.0% each (Fair coins tend to land on the same side they started).

The practical lesson for a real toss: don't let the caller see which side starts up, or have them call while the coin is in the air. For everyday decisions the edge is far too small to matter, and on this page it doesn't exist.

Best of 3, 5 or 7

A best-of series ends as soon as one side has won a majority, so a best of 3 is won by the first side to 2 and a best of 7 by the first to 4. It doesn't change the odds, which stay 50/50 for each side, but it stops a single lucky flip from deciding something that matters, and it is a time-honoured way to settle things: Portland, Oregon got its name from a best two out of three toss in 1845, when Francis Pettygrove beat Asa Lovejoy, who wanted to call the town Boston (Oregon Encyclopedia).

How best-of series work with a fair coin
SeriesWins neededAverage flipsGoes the distance
Best of 322.550%
Best of 534.1337.5%
Best of 745.8131.3%

Streaks: how often the same side comes up in a row

Each flip ignores the last one, so after five tails in a row the next flip is still exactly 50/50. Believing heads is "due" is the gambler's fallacy. Long runs are also more common than most people expect: in 100 flips the longest run of one side averages about 6.98 flips, and a run of six or more turns up 80.7% of the time. When people write down "random" coin sequences by hand they tend to switch sides too often, which is one way made-up results give themselves away.

Chance of a run of at least 4 to 8 of the same side in 10, 20 and 100 flips
Flips4+ in a row5+ in a row6+ in a row7+ in a row8+ in a row
1046.5%21.7%9.38%3.91%1.56%
2076.8%45.8%23.7%11.5%5.44%
100>99.9%97.2%80.7%54.2%31.5%

The chance of a streak starting with the very next flip is simpler: halve it for each flip, so 3 heads in a row is 1 in 8 and 10 in a row is 1 in 1,024.

Flip a coin to make a decision

Open Customize sides and name the options, such as Yes and No, or Pizza and Tacos; the names go on the coin, the result and your stats. Then flip and pay attention to your first reaction. A coin can't know what is best for you, but if the result makes you relieved or disappointed, you have learned which option you were leaning toward. For more than two options, a spinning wheelpicks one from a whole list, and for a number in a range the random number generator does the job.

Coin tosses in sport and history

  • Rome. Romans called the toss navia aut caput, "ship or head", after coins with a ship on one side and the emperor on the other; in medieval England it was "cross and pile".
  • Football and cricket. The toss decides kick-off and ends in association football, the opening kickoff in American football, and whether to bat or bowl first in cricket, where it can shape the whole match.
  • The first flight. Wilbur and Orville Wright tossed a coin on December 14, 1903 to decide who would fly first. Wilbur won, but stalled on take-off; Orville made the first successful flight three days later (National Park Service).
  • Games and classrooms. A coin picks who goes first, sides for a game, or a fair turn order; to split a bigger group into sides, use the random team generator, and for board games reach for the dice roller. Prefer to play it out? Try rock paper scissors.

Frequently asked questions

Is flipping a coin really 50/50?

This virtual coin is exactly 50/50: each flip is one random bit from your browser's cryptographically secure generator. A real coin is very close but not perfect. In a 2023 study, 48 people flipped coins 350,757 times and the coin landed on the side it started on 50.8% of the time, close to the roughly 51% that a 2007 physics model by Diaconis, Holmes and Montgomery predicted. Heads and tails themselves came up equally often.

Is this online coin flip random?

Yes. Every flip uses crypto.getRandomValues, the same source browsers use for encryption keys, rather than Math.random. Each flip is independent of the ones before it, so a run of heads makes the next flip neither more nor less likely to be tails. The animation is only decoration: the result is decided the moment you tap.

What are the odds of getting heads 3, 5 or 10 times in a row?

Halve the chance for every flip in the streak: 3 heads in a row is 1 in 8 (12.5%), 5 in a row is 1 in 32 (3.125%) and 10 in a row is 1 in 1,024 (about 0.1%). Those odds are for a streak starting now. Over many flips long runs are common: in 100 flips there is about an 81% chance that one side comes up at least 6 times in a row.

Is best of 3 fairer than a single coin flip?

With a fair coin both are exactly 50/50, so best of 3 isn't more fair, just harder to argue with: one lucky flip can't decide it on its own. A best of 3 takes 2.5 flips on average and goes to a deciding third flip half the time; best of 5 averages about 4.1 flips and best of 7 about 5.8.

Does heads or tails come up more often?

Neither. Across the 350,757 real flips in the 2023 study, heads came up 50.0% of the time; what mattered was which side was facing up before the toss, not which side was heads. On this coin both sides have exactly the same chance on every flip, and the stats panel lets you watch the split settle toward 50% as your flips add up.

Should I call heads or tails?

On this coin it makes no difference. With a real coin caught in the hand, the side facing up at the start is very slightly favoured, about 50.8% in the 2023 study, so a caller who can see it has a tiny edge. To remove that edge, let the caller call while the coin is in the air, or start with the coin hidden in a closed hand.

Can I flip more than one coin at once?

Yes. Choose Many coins and flip anywhere from 2 to 100 coins at a time. You get every result, the count and percentage of heads and tails, and the longest run in the batch, and all of them are added to your running stats.

How do I flip a coin to make a decision?

Rename the sides under Customize sides, for example Pizza and Tacos or Yes and No, then flip. Many people find the flip helps even when they ignore it: if you feel relieved or disappointed by the result before you look at it twice, that reaction tells you what you actually wanted.

Where does heads or tails come from?

The Romans called a coin toss navia aut caput, ship or head, because some of their coins showed a ship on one side and the emperor's head on the other. In medieval England the game was called cross and pile. Today the toss settles who kicks off in football, who bats first in cricket, and once even the name of a city: Portland, Oregon was named on a best two out of three coin toss in 1845.

How does Call it work?

Tap Heads or Tails under Call it before you flip. After the coin lands you see whether your call was right, and your record (for example 7 of 12) builds up in the stats. The call stays selected for the next flip; tap it again to clear it. Calls are not used in Many coins mode.

Are my flips and stats saved?

Your stats, the last 40 flips, a best-of series in progress and your settings are kept in this browser's local storage, so they are still there when you come back. Nothing is uploaded. Reset stats clears the tally, and clearing the site's data in your browser removes everything.

Advertisement