Random tool · Free · No sign-up

Flip a Coin

Short answer

To flip a coin online, press Flip, tap the coin or press the Space bar. Each flip is decided by your browser’s cryptographic random source at the moment you press, so heads and tails are exactly 50% each, and the spin is only for show. You can flip up to 100 coins at once or play best of 3.

Nothing is sent anywhere, and it works offline.

Heads or tails?Press Flip, tap the coin or press the Space bar.Each side has a 50% chance on every flip.
Flips
0
Heads
0
Tails
0
Current streak
–
Longest streak
–
Heads share (95% range)
–

The odds of your longest streak appear from the second flip.

The fairness check starts at 20 flips.

History, 10,000 flips and settings

The last 100 flips, newest first

  1. No flips yet.

10,000 flips at once

Draws 10,000 fair flips in one go and plots the share of the first side as they add up. It does not change your tally.

Share of the first side over 10,000 flips70%50%30%010,000 flips

Each flip is decided by your browser’s cryptographic random source, crypto.getRandomValues, at the moment you press; the spin is for show, and holding the button changes nothing. Nothing is sent anywhere.

Pick what the coin says, how many coins to flip and whether to play a match, then flip. The tally under the coin keeps each side’s count, the longest streak and how unusual it is for that many flips, and from 20 flips it checks whether the results look like a fair coin.

A coin flip, or coin toss, settles a choice between two outcomes by throwing a coin and seeing which side lands face up. A fair coin gives each side a probability of exactly one half on every throw, whatever came before.

  • No sign-up
  • Nothing sent anywhere
  • 50/50 by design
  • Works offline

Key facts

Coin flip at a glance
DetailAnswer
Chance of heads1 in 2 (50%) on every flip, whatever came before
5 heads in a row1 in 32 (3.125%) for the next five flips
10 heads in a row1 in 1,024 (about 0.098%)
Longest streak in 100 flips6.98 of the same side on average; 7 or more happens 54.2% of the time
A real, hand-caught coinLands on the side it started on 50.8% of the time, over 350,757 recorded flips
A coin on its edgeAbout 1 in 6,000 for a US nickel, from a physics model
Heads and tailsHeads is the obverse, the front of a coin; tails is the reverse, the back
Random sourcecrypto.getRandomValues, one byte per coin; never Math.random

How to flip a coin online

Six steps; the result is fixed the moment you press.

  1. Choose what the coin says

    Heads and tails, yes and no, stay and go, 1 and 2, or two labels of your own.

  2. Choose how many coins

    One, or up to 100 at once. With more than one, the board gives the chance of the count you got.

  3. Choose a match if you want one

    Best of 3, 5 or 7, with a name for each caller. The board keeps the score and says who won.

  4. Flip

    Press Flip, tap the coin or press the Space bar. Holding the button longer changes nothing.

  5. Read the tally

    Each side’s count, the current and longest streak with its odds, and from 20 flips a check on whether the split looks fair.

  6. Keep or share it

    Copy the history, download it as a CSV file, or copy a link that opens the same coin.

What people flip a coin for

A coin is the oldest fair way to settle a two-way choice: nobody can predict it, and everyone can see it.

  • Who kicks off or serves first

    Most sports start with a toss. The cricket score counter and the tennis score counter both start from its result.

  • Two options, no preference

    This film or that one, pizza or curry. Many people find they know what they wanted the moment the coin lands. For staying or leaving, the stay or go coin asks how the answer felt.

  • Who goes first in a game

    Board games, card games and matches: one flip, or best of 3 when the loser asks for another go.

  • A streak game

    How many in a row can you hit? The luck test counts the streak and shows how rare it is.

  • Testing a hunch

    Call a side before each flip and see whether you beat chance: guess heads or tails scores your calls over 10 to 100 rounds.

  • Teaching probability

    Flip 10 coins at once and compare the count with the odds on the board, or run 10,000 flips and watch the share settle near 50%. To check the exact chance of any count or run, use the coin flip probability calculator.

  • A yes or no answer

    Set the coin to Yes / No and ask, or use the yes or no generator, which adds Maybe. To count yes and no answers from people, use the yes/no counter.

  • 1 or 2, and beyond

    The 1 / 2 coin settles which of two; for more choices the random number generator draws from any range.

Is an online coin flip fair? How this one decides

An online coin is only as fair as the way it decides. This one takes one random byte per coin from crypto.getRandomValues, the browser’s cryptographic random source, and reads its last bit: 0 gives the first side and 1 the second. A byte has 256 equally likely values, 128 of them even and 128 odd, so each side has a chance of exactly one half, with no rounding and nothing to correct.

The result is fixed the moment you press, before the coin starts to turn. The spin, how long you hold the button and how fast you tap are all for show; there is no starting side and no throw to get right. The W3C’s Web Cryptography API specifies that the method “generates cryptographically strong random values”, and MDN describes Math.random, which many simple flippers use, as “a non-cryptographic source of random numbers”. This page never calls Math.random. The guide to Math.random against crypto.getRandomValues sets out what each promises.

How each part of a flip is decided
Part of the flipWhat decides it
Which side landsOne bit of crypto.getRandomValues, read at the press
The spin and how long it lastsAnimation only: the result is already set
Holding or tapping the buttonIgnored: a press is a press
Earlier flipsIgnored: every flip is independent
More than one coinOne byte per coin, each read the same way

Fair does not mean even. A fair coin flipped 100 times lands on exactly 50 heads only 7.96% of the time, and streaks of six or seven are normal. The tally under the coin shows how likely your own split and your own longest streak are, so a run of tails can be checked rather than suspected.

Is a real coin flip 50/50?

Nearly, and the reason is physics rather than the coin. Persi Diaconis, Susan Holmes and Richard Montgomery modelled a flipped coin as a spinning, precessing disc and concluded that “vigorously flipped coins tend to come up the same way they started”, with the chance of landing on the starting side about .51 (Dynamical Bias in the Coin Toss, SIAM Review, 2007).

In 2023 a team led by František Bartoš put it to the test: 48 people flipped coins of 44 currencies 350,757 times and recorded the side each coin started on. It landed on its starting side 50.8% of the time (95% interval 50.6% to 50.9%), while heads against tails overall stayed at 50.0% (Fair coins tend to land on the same side they started, arXiv:2310.04153). Their advice for a fair toss: “the starting position of the coin is best concealed”. The spread between flippers and why the bias took so many flips to see are in the guide is a coin flip really 50/50?

A virtual coin and a real, hand-caught one
This coinA real coin
Chance of each side50% exactly50.0% heads, 50.0% tails over 350,757 flips
Lands on the side it started onThere is no starting side50.8% of the time
Depends on how it is thrownNoYes: a spun coin can be far from fair
Can land on its edgeNo, unless the demo is onAbout 1 in 6,000 for a US nickel (model)

Spinning a coin on a table is worse than flipping it. Diaconis and his co-authors report class data from Berkeley in which spun pennies showed a pronounced proportion of tails, some under 10% heads, because a real coin’s weight is not perfectly even. Catching a flip in the air, with the starting side hidden, is the fair way with a real coin.

To see the difference, open History, 10,000 flips and settings under the coin and tick Behave like a hand-caught coin. The coin then lands on the side it was showing 50.8% of the time and on its edge about once in 6,000 flips. It is not a fair coin, the board says so, and it is off until you tick it.

How rare is a streak of heads? The exact odds

The chance of a streak depends on how many flips it has to turn up in, which is why the familiar 1 in 32 for five heads in a row answers a narrower question than most people ask. 1 in 32 is the chance that the next five flips are all heads. A streak of five or more of the same side somewhere in 20 flips happens 45.8% of the time, and in 100 flips 97.2%.

Chance of at least one streak of the same side (heads or tails) in a run of flips
Flips4 or more5 or more6 or more7 or more8 or more
1046.5%21.7%9.4%3.9%1.6%
2076.8%45.8%23.7%11.5%5.4%
5098.1%82.1%54.4%30.9%16.2%
100>99.9%97.2%80.7%54.2%31.5%

These figures are exact: they come from counting every possible sequence with a running record of the current streak, not from a simulation. The longest streak grows with the logarithm of the number of flips, as Wolfram MathWorld’s entry on runs sets out. On average the longest same-side streak is 3.66 in 10 flips, 4.66 in 20 and 6.98 in 100.

Counting one side only gives lower odds, because a streak of tails no longer counts: five or more heads in a row somewhere in 100 flips happens 81.0% of the time, and seven or more 31.8%.

A streak does not change the next flip. After seven heads the eighth is still 50/50, and expecting tails to be “due” is the gambler’s fallacy. Streaks also mislead in a subtler way: Joshua Miller and Adam Sanjurjo showed that in a short run of fair flips, the share of heads that follow a streak of heads is on average below one half, a selection effect that had misled researchers studying streaks (Econometrica, 2018). To watch the odds fall flip by flip, the luck test shows the chance of each streak under every slot, for any other flip count or run length the coin flip probability calculator gives the exact answer, and to score a hunch about the next flip against these odds, guess heads or tails gives the exact chance that a pure guesser does as well.

Flipping many coins: what the spread should look like

With more than one coin, the number of heads follows the binomial distribution: for n fair coins, the chance of exactly k heads is the number of ways to choose k coins from n, divided by 2n. The mean is n/2 and the standard deviation √n/2 (NIST/SEMATECH e-Handbook, binomial distribution).

10 coins at once: the chance of each number of heads
HeadsChance
00.098%
10.98%
24.39%
311.7%
420.5%
524.6%
620.5%
711.7%
84.39%
90.98%
100.098%

For 100 coins the spread narrows in proportion: exactly 50 heads happens 7.96% of the time, 45 to 55 heads 72.9% and 40 to 60 heads 96.5%. The board under the coin gives the exact chance of the count you got and the likeliest count, so 62 heads in 100 can be judged on the spot: 62 or more heads, or 62 or more tails, happens about 2.1% of the time with fair coins.

The US Mint’s coin game for children puts the long-run rule simply: “The more you flip a coin, the closer you will be towards landing on heads 50%”. Run 10,000 flips under the coin to watch it happen: the share wanders early, then settles near 50%. The share settles; the gap between the number of heads and the number of tails does not, and usually grows as the flips go on.

Best of 3, best of 5: is it still fair?

Yes. Each flip is fair and the rules are the same for both callers, so each has exactly a 50% chance of winning best of 3, best of 5 or best of 7. What changes is how long it takes and how often a single lucky flip decides it.

Best-of matches with a fair coin
MatchWins neededChance for each callerAverage flipsMost flips
Single flip150%11
Best of 3250%2.53
Best of 5350%4.135
Best of 7450%5.817

Name the callers before the first flip. The board records who called which side, so nobody can change a call after a bad first flip. A match ends as soon as one caller has the wins they need, and the next flip starts a new match.

Yes or no, stay or go, 1 or 2, and your own coin

Any two-way choice fits on a coin. The presets relabel the two sides; the chance stays exactly 50% each.

Yes or no

Ask the question, then flip the Yes / No coin. The yes or no generator does the same with your question shown, an exact Maybe and a note on what your reaction to the answer means. To count yes and no answers from a group of people rather than let chance answer, the yes/no counter tallies them with the split.

Stay or go

The stay or go coin puts the choice and your reaction on one card. The economist Steven Levitt invited people stuck on a big decision to let a coin decide. Those whose coin said to make the change were more likely to make it, and reported being happier six months later, which led him to suggest that “people may be excessively cautious when facing life-changing choices” (NBER Working Paper 22487). A coin can also work as a test of what you want: a study in PLOS ONE found that flipping strengthens people’s feelings about the options, which then guide the choice (Jaffé, Reutner and Greifeneder, 2019). It cannot weigh what is at stake, and for a decision about safety, health or money, talk it through with someone you trust.

1 or 2

A coin labelled 1 and 2 is a two-sided die: who goes first, which of two teams, which of two tasks. For more sides, the dice roller rolls a d3, a d6 or a d20 with the odds shown (the d20 roller adds advantage and the DnD dice roller the fifth-edition rules); the 3D dice roller throws up to six six-sided dice that tumble on screen and roll two dice throws a pair and flags doubles; the d100 roller reads a tens die and a ones die as 1 to 100; the random number generator draws from any range without bias, and the random picker chooses from a list of names. For cards rather than a coin, the yes or no tarot, the one card tarot and the daily tarot draw from a fair shuffle of all 78 cards.

Your own coin

Choose Your own and type two labels of up to 20 characters: two names, two films, two routes home. Copy link to this coin gives an address that opens the same coin for someone else. A shared result cannot prove how it was flipped, so for a call that matters between two people, flip together, in the room or on a video call.

Heads or tails: which side is which, and can a coin land on its edge?

On a real coin, heads is the obverse and tails the reverse. The US Mint’s guide for children puts it plainly: “Obverse (heads) is the front of the coin and the reverse (tails) is the back” (Parts of a Coin). The obverse usually carries the portrait or the main design. The rim is the raised border on each face, and the edge is the outer side, which can be smooth, reeded or lettered.

A coin can land on its edge, though rarely. Daniel Murray and Scott Teare modelled a tossed US nickel and estimated about one landing on its edge in 6,000 tosses, a model they checked against experiment (Physical Review E, 1993). A thicker coin lands on its edge more often. The coin on this page has no edge to land on, unless the hand-caught demo is switched on.

This coin flip or a typical coin flipper

What this coin adds to a typical online coin flipper.

This coin flip compared with a typical online coin flipper
 This coin flipA typical coin flipper
How the side is decidedOne bit of crypto.getRandomValues, statedUsually not stated
Hold time or swipe changes the resultNeverSome flippers time the press
Streak oddsExact, for the number of flips madeNone, or 1/2k
Coins at once1 to 100, with the odds of the countUsually 1
Best of 3, 5 or 7 with named callersYesSometimes
Check on your own flipsFrom 20 flips, exact binomialNo
Sign-up to save settingsNone: kept in this browserSometimes needed
Your flips leave the browserNeverOften, for global counters

More random tools

Every random tool on the site runs in your browser, needs no sign-up, and sends nothing anywhere.

Coins & yes or no1

A fair coin and the choices it settles, 50/50 by design, with the odds of every streak shown.

All 6 random tools, by category: Coins & yes or no (2) · Dice (2) · Cards & draws (1) · Numbers & picks (1)

Frequently asked questions

Is this coin flip really 50/50?

Yes. Each coin takes one random byte from crypto.getRandomValues, the browser’s cryptographic random source, and reads its last bit. A byte’s 256 values split exactly into 128 even and 128 odd, so each side has a chance of exactly one half, with nothing rounded. Earlier flips have no effect on the next.

Does holding the button or flipping harder change the result?

No. The result is drawn the moment you press, before the coin starts to turn, and nothing about the press is used: not how long you hold it, not how fast you tap, not which side is showing. The spin is animation only. With reduced motion set on your device, the coin simply shows the result.

What are the odds of getting 10 heads in a row?

1 in 1,024, about 0.098%, for ten particular flips. In a longer run it is far likelier to turn up somewhere: a streak of ten or more of the same side happens in 8.7% of runs of 100 flips and 62.4% of runs of 1,000. Twenty heads in a row is 1 in 1,048,576.

Is a real coin toss fair?

Almost. In 350,757 recorded flips by 48 people, a caught coin landed on the side it started on 50.8% of the time, while heads and tails overall split 50.0% each. Diaconis and colleagues explain the slight bias with the physics of a spinning coin. Hide the starting side, or use a virtual coin, for an even call.

Can a coin land on its edge?

Yes, rarely. A physics model of a tossed US nickel, checked against experiment, gives about one landing on its edge in 6,000 tosses (Murray and Teare, 1993), and thicker coins land on edge more often. The coin on this page cannot land on its edge unless you switch on the hand-caught demo.

What's the difference between a coin toss and a coin flip?

None in practice: both mean throwing a coin into the air to let it decide between two outcomes, and the odds are the same, one half for each side. Sports rules tend to say toss, as in the toss before a cricket match, while everyday speech and online tools more often say flip.

What does best of 3 mean, and is it fair?

Best of 3 means the first caller to win two flips wins the match, so it takes two or three flips. It is exactly as fair as a single flip: each caller wins with probability one half. Best of 5 needs three wins and best of 7 four; they take longer, and no single lucky flip decides them.

Why did I get so many heads in a row?

Because streaks are normal. In 100 fair flips a streak of six or more of the same side happens 80.7% of the time, and the average longest streak is about seven. The tally under the coin gives the chance of your own longest streak for the number of flips you have made, and the next flip is still 50/50.

Open the flip a coin

Free, no sign-up, and what you enter stays in your own browser.