Coin Flip
Flip a coin online. Click to toss and see the result with animation.
How to use?
Clique em Flip para um resultado aleatório, ou escolha diretamente Heads ou Tails. O placar acumula as estatísticas da sessão.
Coin flip: history, probability and curiosities
History: from Rome (navia aut caput) to the Super Bowl
Tossing a coin to settle a question is a custom over two thousand years old. The Romans called it navia aut caput — literally "ship or head" — because the coins of the Republic and the Empire often featured the face of the god Janus on one side and the prow of a ship on the other. Janus, god of beginnings and passages, was depicted with two faces and was credited by tradition with inventing both the first bronze coins and the art of navigation.
Roman soldiers used the toss to decide guard duty and dangerous missions. The neutrality of chance was a tool of discipline: no centurion could be accused of favoritism if the decision came from the air. From the Latin expression derive variants in most European languages: heads or tails in English, pile ou face in French, Kopf oder Zahl in German. Portuguese says "cara ou coroa", from medieval Portuguese coins that bore the king's face on one side and the royal crown's coat of arms on the other.
In football, the coin toss has existed since the first codification of the rules by England's Football Association in 1863, to decide which team chooses the side of the pitch. The ritual was exported worldwide: at the Super Bowl, the NFL uses a commemorative coin minted for the edition, broadcast live to over one hundred million viewers. In cricket, the toss winner decides whether to bat or bowl. In tennis, it defines the initial server.
Is it really 50/50? The Persi Diaconis study
Intuition says a fair coin has identical probability of landing on each side. Mathematically, if the coin is symmetric and the toss is vigorous enough to erase the memory of its initial state, the outcome would indeed be 50% per face. But the statistician Persi Diaconis, a Stanford professor and former professional magician, suspected that the real physics of the toss tells a different story.
In 2007, Diaconis published with Susan Holmes and Richard Montgomery the paper Dynamical Bias in the Coin Toss. Using high-speed cameras and analysis of the angular momentum vector, they showed that a hand-tossed coin does not rotate around a perfectly horizontal axis: it rotates around a tilted axis that precesses in space, like a spinning top. This causes the coin to spend more time with its initial face up. Theoretical prediction: 51% chance of landing on the same side it started.
Empirical verification came in 2023. A team led by František Bartoš (University of Amsterdam) recruited 48 volunteers and recorded 350,757 coin flips across 46 currencies. The coin landed on the same side it started 50.8% of the time, with a 95% credible interval between 50.6% and 50.9%. In 2024 the trio received the Ig Nobel Prize in Probability. Over a few flips the bias is invisible, but over millions of decisions 0.8% is a statistically robust asymmetry.
How to make the toss fair
If you want a toss as close to 50/50 as possible, a few practices reduce the bias:
- Hide the starting face — ask someone to toss without showing which side started up.
- Let the coin fall to the floor or a table instead of catching it in your hand — the bounce adds enough chaos to cancel the bias.
- Use a coin with a smooth, symmetrical edge; commemorative coins with heavy relief on one side carry extra imbalance.
- Agree before the toss whether "heads" means "same side it started" or "opposite side" — making the bias explicit.
- For critical decisions, prefer a digital generator with cryptographic randomness.
Applications: sports, law and philosophy
In Brazil, the coin has decided elections. The Electoral Code (Law 4.737/1965, Art. 110) says that in a municipal vote tie the oldest candidate wins — but several small cities settled council disputes by public coin flip with notarized record, in famous cases like Cândido Godói (RS, 2000) and Nova Pádua (RS, 2016), in the presence of an electoral judge.
In the judicial sphere, coin tosses have been used to define case order and assign rapporteurs. In sports it survives as ritual: the referee shows the coin to the captains and throws it in the air. In decision theory, the coin flip is the limiting case of a decision under symmetric ignorance — when all information has been exhausted, resorting to chance is defensible. Philosophers like William James and Edna Ullmann-Margalit have used the coin metaphor to discuss pick versus choose: when "deciding" means merely selecting arbitrarily, and when it means opting with reasons.
True randomness vs pseudorandomness
A digital coin-flip generator does not use a physical coin, so it does not suffer Diaconis's bias — but it depends on the quality of the browser's pseudorandom number generator (PRNG). Functions like Math.random() in JavaScript use deterministic algorithms that, starting from a seed, produce statistically uniform sequences. For most everyday uses this is enough. For critical uses (cryptography, official drawings, regulated games of chance), the standard is the Web Crypto API: crypto.getRandomValues(), which mixes operating-system entropy (interrupt noise, hardware activity, sensors) with cryptographic primitives. This mechanism approaches true randomness: unpredictable even if the attacker knows all previous outputs.
Curiosities
- The most expensive coin in the world is the 1794 "Flowing Hair Dollar", sold at auction in 2013 for US$ 10 million.
- The documented record streak of "heads" in honest tosses is debatable: mathematician Jeffrey Hamilton claimed 17 in a row. Statistically, the probability of 17 heads in a row is 1 in 131,072 — improbable, but not impossible.
- The probability of a standard US coin landing on its edge is roughly 1 in 6,000, according to simulations by Daniel Murray and Scott Teare (1993).
- The Super Bowl saw 13 straight coin-toss wins for the NFC between 1998 and 2010 — a streak whose probability was 1 in 8,192.
Frequently asked questions
Is coin flipping really 50/50? On a physical coin tossed the traditional way, there is a slight bias (~51%) toward landing on the same side it started. On digital generators with good entropy, the result is imperceptibly close to 50/50.
Does a digital toss replace a physical coin for official decisions? It depends on the jurisdiction. For recreational use, it is equivalent. For official drawings (electoral, judicial), a physical coin in the presence of parties or a notary is usually required.
Can I train to control the result? Magicians like Persi Diaconis have shown it is possible to control the toss if the coin spins little. In a vigorous, high toss, control is practically impossible for ordinary hands.
Why "cara" and "coroa" in Portuguese? The old Portuguese coins bore the king's face (cara) on one side and the royal crown's coat of arms (coroa) on the other. In Brazil, "cara" today is the side with the effigy and "coroa" the side with the numeric value.
Does the 0.8% bias matter to me? For a single decision, no. For repeated bets or professional gambling, yes — some experienced bettors ask to see the starting side and bet on the same side.
A coin flip when you have no coin
Deciding who goes first, who does the dishes or simply settling a stalemate with a coin toss is an old habit, except there isn't always a coin in your pocket. This tool flips a virtual coin with one click and shows the result, heads or tails, with a quick animation that gives it real suspense.
The toss is fair. Each flip gives both sides the same chance, with no bias, because it uses the browser's randomness source. It works for any everyday yes-or-no decision, from games with the kids to tiebreakers in meetings.
Everything happens locally, with nothing to install and no results kept. Flip as many times as you like, since each toss is independent of the last.
Related Tools
Virtual Dice
Roll a virtual dice with 4, 6, 8, 10, 12 or 20 sides directly in the browser.
Name Picker
Draw a name from a list without repetition. Ideal for raffles, secret santa and giveaways.
Spin the Wheel
Add options, spin the wheel and let chance decide. Ideal for raffles and random decisions.