# Coin Flip - Heads or Tails with a Tally, Streaks and up to 1,000 Coins

Page: https://hirantha.me/tools/coin-flip
Part of: Hirantha Sandaruwan Lakshan free tools (https://hirantha.me/tools)
Updated: 2026-10-15

Flip a fair coin online: heads or tails with a running tally, a streak counter and up to 1,000 coins at once, from your browser's secure generator.

This is a free tool that runs in the browser: open the page to use it. File tools process files on the visitor's own device; files are never uploaded or stored. No account, sign-up, payment or watermark.

Flip a coin and get heads or tails, with a running tally of both, the percentage of each and a streak counter that shows the current run and the longest run. Flip up to 1,000 coins at once to see how a fair coin really behaves. Every flip comes from your browser's secure random number generator and gives each side exactly a 50% chance.

Each coin is one draw of 0 or 1 from crypto.getRandomValues: 0 is heads and 1 is tails. A range of two divides the 4,294,967,296 possible 32-bit values exactly, 2,147,483,648 for each side, so no random value has to be thrown away and the way the number is turned into a flip favours neither side.

A real coin is not exactly 50/50. Diaconis, Holmes and Montgomery (SIAM Review, 2007) showed that vigorously flipped coins tend to come up the same way they started, and their abstract puts the chance of coming up as started at about .51 for natural flips. A 2023 experiment by Bartoš and colleagues, with 350,757 real flips, measured 50.8% with a 95% credible interval of 50.6% to 50.9%. This tool has no starting side, so it has no such tilt: heads and tails each get exactly one half.

The tally counts every flip in order, and the coins of a multi-coin flip count as that many flips one after another. The current streak is how many of the same side have come up in a row up to the latest flip. The longest streak is the longest so far, and the first one to reach a length keeps the record on a tie. Streaks are normal in a fair coin: any 5 chosen flips all land heads with chance 1 in 32, which is 3.125%.

With more than one coin you get the heads and tails counts, the percentages, the longest run in the batch and every coin in order as a line of H and T that you can copy. A single coin gets the flip animation. The side is chosen first and the spin only turns the coin to show it. If your device asks for reduced motion, the coin turns over at once with no spin.

How many heads fair coins give: exactly half is rare, but the count stays close to half:
| Coins | Chance of exactly half heads | Likely range of heads | Chance of landing in that range |
| --- | --- | --- | --- |
| 10 | 24.6% (5 heads) | 3 to 7 | 89.06% |
| 100 | 7.96% (50 heads) | 40 to 60 | 96.48% |
| 1,000 | 2.52% (500 heads) | 469 to 531 | 95.37% |

Q: Is an online coin flip really 50/50?
A: Yes. Each flip is one fair draw of 0 or 1 from your browser's secure random number generator, so heads and tails each have a chance of exactly one half. There is no starting side, no spin and no throw to bias it.

Q: Is a real coin toss 50/50?
A: Not quite. Diaconis, Holmes and Montgomery found that a coin flipped and caught by hand tends to land the way it started, about 51 times in 100. A 2023 study of 350,757 flips measured 50.8%. The bias is small, and it depends on how the person flips.

Q: Why do I get streaks of heads or tails?
A: Random sequences contain streaks, and a sequence with none would be suspicious. The chance that 5 chosen flips all land the same chosen side is 1 in 32, so over many flips runs of 5 or more are expected to turn up.

Q: If I get five heads in a row, is tails more likely next?
A: No. The chance that a run continues for one more toss is always 0.5 for a fair coin. Thinking tails is due is called the gambler's fallacy.

Q: How many heads should I expect in 100 flips?
A: About 50, but not exactly. Exactly 50 heads happens about 8% of the time. Between 40 and 60 heads happens about 96.5% of the time. For 1,000 coins, 469 to 531 heads happens about 95.4% of the time.

Q: Can I flip more than one coin at once?
A: Yes, up to 1,000. You get the heads and tails counts, the percentages, the longest run in the batch and the whole sequence of H and T to copy. The coins also count towards the running tally and streaks, in order.

Q: Does the animation change the result?
A: No. The side is chosen before the coin starts to spin, and the animation only turns the coin so it lands showing that side. With reduced motion turned on in your device settings there is no spin at all.

Q: Can I use a coin flip to decide a prize draw?
A: It is a fair flip, but this page keeps no proof that anyone else can check, and it is not an approved or audited draw. If the draw has rules, follow them, and flip in front of the people affected if they need to trust the result.

Sources: Dynamical Bias in the Coin Toss, Diaconis, Holmes and Montgomery, SIAM Review 49(2), 2007 (https://www.stat.berkeley.edu/~aldous/157/Papers/diaconis_coinbias.pdf); Fair coins tend to land on the same side they started: Evidence from 350,757 flips - arXiv (https://arxiv.org/abs/2310.04153); Gambler's fallacy - Wikipedia (https://en.wikipedia.org/wiki/Gambler%27s_fallacy); Crypto: getRandomValues() method - MDN (https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues)

Related tools:

- [Dice roller](https://hirantha.me/tools/dice-roller.md): Roll up to 100 dice with 2 to 1000 sides, or type notation like 3d6+2, 2d20kh1 or 4d6dl1. See every die, the total and your history.
- [Random number generator](https://hirantha.me/tools/random-number-generator.md): Pick random whole numbers or decimals in any range, with or without repeats, drawn fairly from your browser's secure random number generator.
- [Random name picker](https://hirantha.me/tools/random-name-picker.md): Paste a list of names and pick one or more winners fairly, with optional extra chances, a spinning reveal, a history and winners removed after each draw.
- [Percentage calculator](https://hirantha.me/tools/percentage-calculator.md): Find X% of a number, what percent one number is of another, the whole from a part, or add and subtract a percentage, with the working shown.
