Click the coin or the button — heads or tails?
Add this Coin Flip to your website or blog for free — just paste this code:
This online coin flip tool gives you an instant, unbiased heads-or-tails result whenever you need to settle a decision, break a tie, or teach probability. It runs entirely in your browser, keeps a running tally of heads and tails, and works on phones, tablets, and desktops with no app to install.
Each flip calls your browser's random number generator and maps the result to two equally likely outcomes: heads (0) or tails (1). Because the odds are fixed at 50/50 for every single flip, the coin has no memory — a run of five heads does not make tails "due" on the next toss. This independence is what makes a virtual coin flip a fair way to decide between two options.
The tool also tracks your session history so you can watch the percentages settle toward 50/50 over many flips. This is the law of large numbers in action: individual results are unpredictable, but the long-run average converges on the true probability.
Yes. It uses your browser's built-in random number generator to produce a genuinely unpredictable result on every flip, with a true 50% chance of heads and 50% chance of tails.
No. Each flip is independent, so the odds reset to 50/50 every time. Believing past results affect future flips is known as the gambler's fallacy.
A coin flip is great for low-stakes choices or settling a tie between two equally good options. For big decisions, use it to notice your gut reaction to the result rather than to decide outright.
Small samples naturally vary. The more you flip, the closer your ratio gets to 50/50 — a principle called the law of large numbers.