Flip a fair coin for heads or tails, or flip many at once and see the count and the longest run. Each flip comes from your browser’s secure random generator.

Not drawn yet
A fair coin: one chance in two

Coins

From 1 to 100,000. Each coin is listed for up to 1,000.

History

    Your draws appear here. They stay in this tab unless you turn on “Save on this device”.

    Share this setup

    The number of coins goes into the link.

    More in Random and decisions

    What is the Coin Flipper?

    The Coin Flipper is a free online tool that simulates tossing a fair two-sided coin as many times as you choose, from a single flip up to 100,000 flips at once. Each toss is decided by a random number generator, recorded as Heads or Tails, and tallied so you can see exactly how many of each came up and what percentage of the total they represent. It is a universal probability tool with no country-specific rules.

    A coin showing heads on one side and tails on the other
    A fair coin has two equally likely outcomes: Heads or Tails.

    How to use it

    Press Flip or the Space bar for one fair coin: Heads or Tails, each with one chance in two. To toss many at once, set Coins per flip from 1 to 100,000: you get the number of heads and tails, the longest run of the same side, and each coin in order for up to 1,000 coins.

    The line under the button keeps a running total for this tab, so you can watch the share of heads settle near one half as the flips add up. Copy result copies the totals and the sequence, Full screen shows the coin to a room, and Copy link shares the number of coins. Past flips stay in this tab; turn on Save on this device to keep them.

    How fair is the draw?

    Every result comes from crypto.getRandomValues, the cryptographic random generator built into your browser. The tool turns those numbers into an outcome with rejection sampling, so no outcome gets an extra chance from a leftover remainder, and the animation only replays a result that was decided before it started. Nothing is sent to our server.

    Random does not mean even in the short run: in ten coin flips, seven heads or more happens about one time in six. Over many draws the counts settle near the stated chances. The tool cannot prove to someone else that you did not draw again, so for a prize draw, draw in front of the people taking part.

    Advertisement

    The formula explained

    Each flip is an independent Bernoulli trial with a 50% chance of Heads. The simulator draws a uniform random value \(r\) in \([0, 1)\); if \(r\) is below 0.5 the flip is Heads, otherwise Tails. After all flips it computes

    $$\%\,\text{Heads} = \frac{\text{Heads}}{\text{Number of Flips}} \times 100$$

    and \(\%\,\text{Tails} = \frac{\text{Tails}}{\text{Number of Flips}} \times 100\), which always add up to 100%.

    Bar chart of heads and tails counts converging toward fifty percent
    As the number of flips grows, the percentage of Heads approaches 50%.

    Worked example

    Suppose you flip 10 coins and the sequence comes out H, T, H, H, T, T, H, T, H, H. That is 6 Heads and 4 Tails.

    $$\%\,\text{Heads} = \frac{6}{10} \times 100 = 60\%$$

    $$\%\,\text{Tails} = \frac{4}{10} \times 100 = 40\%$$

    and the last flip result is Heads. Because the run is random, your own 10-flip run may differ.

    Advertisement

    FAQ

    Is the coin really fair? Yes. Each flip has an exact 50% chance of Heads and 50% chance of Tails, independent of every previous flip.

    Why isn't it exactly 50/50? Small samples vary by chance. As the number of flips grows, the observed percentages converge toward 50% (the law of large numbers), with the standard deviation of the heads proportion roughly \(\sqrt{0.25 / n}\).

    Does a streak of Heads make Tails more likely next? No. That is the gambler's fallacy. Past results never change the probability of the next flip.

    Last updated:

    Most popular in Math and Statistics

    View all Math and Statistics calculators