Coin Flipper

This coin flipper gives you an instant, genuinely random heads or tails result, useful for settling an argument, deciding who goes first, breaking a tie, or teaching probability without needing an actual coin. There is nothing to enter: click the coin or press the flip button and JavaScript's random number generator returns heads or tails with an even 50/50 chance every time, completely independent of whatever came before. To see probability play out over a larger sample, use the Flip 10 or Flip 100 buttons to run many flips in one go instead of clicking repeatedly. As you flip, a live scoreboard below the coin tracks your total number of flips, the count and percentage of heads, the count and percentage of tails, and your current streak, meaning how many times in a row the same side has come up. A scrolling flip history also records the full sequence so you can look back over individual results, and pressing the spacebar flips the coin without touching the mouse. The reset button clears every stat back to zero when you want to start a fresh run. Watching the heads and tails percentages settle towards an even split as your flip count grows is a simple, hands-on demonstration of the law of large numbers, and a useful reminder that a run of heads never makes tails more likely on the next flip.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Calculate.co.nz partner: Premium Homes
H
Heads
Total Flips
0
Heads
0
0%
Tails
0
0%
Current Streak
0
-
Flip history will appear here

About this coin flipper

This coin flipper generates a genuinely random result using JavaScript's Math.random() function. Each flip is independent, meaning the result of previous flips has no influence on the next one. The probability is exactly 50% heads and 50% tails on every single flip, just like a fair physical coin.

Probability reference

  • 2 heads in a row: 25% (1 in 4)
  • 5 heads in a row: 3.125% (1 in 32)
  • 10 heads in a row: 0.098% (1 in 1,024)
  • 20 heads in a row: 0.0001% (1 in 1,048,576)

The gambler's fallacy

It is tempting to think that after five heads in a row, tails is somehow "due". It is not. The coin has no memory, so the next flip is still exactly 50/50. This mistaken belief is called the gambler's fallacy, and the multi-flip feature above is a good way to see how short runs can look lopsided while the long-run average still settles near 50%.

Related tools

This coin flipper uses pseudo-random number generation. For cryptographic or security-critical applications, use a hardware random number generator.

Who this tool is for

This tool is for anyone who needs a quick, fair heads-or-tails result to settle a decision, play a game, or teach probability.

What this tool assumes

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.