Coin Flip

Flip a virtual coin and get heads or tails instantly. You can flip a single coin to settle a decision or up to 1,000 at once to see how counts and percentages behave. Each flip is independent and has an equal chance of landing either way.

Press Flip.
Total so far: 0 flips

How to use it

Leave the number of coins at 1 and press Flip to get heads or tails. To run an experiment, enter a larger number such as 100 or 1000. The result box shows that batch, and the totals box keeps a running count across all flips until you press Reset totals.

How it is calculated

Each coin uses a random bit from the browser's secure random number generator when available, with Math.random as a fallback. A bit of 1 is heads and 0 is tails, so each outcome has a probability of exactly one half, and earlier flips never influence later ones.

Percentages are the count divided by the number of flips. With few flips the split can be far from 50 percent. As the number grows, the share of heads tends to move closer to 50 percent, though the absolute difference between heads and tails can still grow.

Examples

Flipping one coin might show Tails. Flipping 10 coins could give 6 heads and 4 tails, which is 60.0% and 40.0%. That is normal; getting exactly 5 and 5 happens only about 25 percent of the time.

Flipping 1,000 coins typically gives between about 470 and 530 heads, since the standard deviation is roughly 16.

FAQ

Is the coin flip really fair?

Yes. Each result comes from a random bit with equal probability for heads and tails, and no flip depends on a previous one.

If I get five heads in a row, is tails due next?

No. Each flip is independent, so the next one is still 50 percent heads and 50 percent tails. Believing otherwise is known as the gambler's fallacy.

Can I use it to make a decision?

It is fine for low-stakes choices such as who goes first. Decide in advance which side means which option.

Why are my totals not exactly 50-50?

Random results vary. A perfect split is uncommon in small samples, and even large samples rarely land exactly on half.

See also

Need a number instead of a coin? Try BMI Calculator.
Deciding between several options? Visit Age Calculator.
Curious about how probability works? Read Percentage Calculator.
Rolling dice for a game night? Use Tip Calculator.
Organising a team draw? Have a look at Days Between Dates.

More free tools