NumerSpace

Categories

Finance & InvestmentHealth & FitnessWork & CareerTime & DateMarketing & AnalyticsMath & ConvertersEducation & ProductivityHome & LivingClothing & SizingPetsVehicle & TravelFaithAstrologyTax & BillsUnit Converters
Blog
TR EN
Math & Conversion

Coin Flip

Flip a coin to get heads or tails, and keep track of the statistics and recent flips.

?

Press the button to flip

This tool is for information and fun. Results come from Math.random(), which is not suitable for anything that needs cryptographic security.

Advertisement

Coin Flip and Probability Mathematics

Coin flipping is one of the simplest ways to make a decision, and it goes back at least to ancient Rome. The Roman writer Macrobius describes children tossing coins and calling out "capita aut navia" (heads or ships), because old Roman coins showed a head on one side and a ship on the other.

Theoretical Probability: 50/50?

For an ideal coin, the probability of heads on any flip is exactly ½, or 50%. Real flips show a small bias, but it favors the side the coin started on, not heads or tails. A 2007 model by Diaconis, Holmes and Montgomery at Stanford predicted this effect at about 51%. In 2023, Bartoš and colleagues measured it over 350,757 flips: coins landed on their starting side 50.8% of the time, while heads came up 50.0% of the time. A digital simulator has no starting side, so the effect does not exist here.

The Law of Large Numbers

Whether a single flip lands heads or tails is completely unpredictable. But as the number of flips grows, results move toward 50%. Statistics calls this the law of large numbers. Getting 8 or more of the same side in 10 flips is not unusual, with a probability of 112/1,024, about 10.9%. In 10,000 flips, by contrast, the number of tails lands between 4,900 and 5,100 about 95.6% of the time. To look at this more closely, use the standard deviation calculator.

Coin Flip Probability Table

OutcomeProbability
Heads in 1 flip1/2 = 50%
2 heads in 2 flips1/4 = 25%
At least 1 heads in 3 flips7/8 = 87.5%
Exactly 5 heads in 10 flips252/1,024 ≈ 24.6%
Exactly 50 heads in 100 flips≈ 8.0%
40 to 60 heads in 100 flips≈ 96.5%
Advertisement

Is the Simulator Different from a Real Coin Flip?

The browser simulator uses JavaScript's Math.random() function. It is not cryptographic, but its results are unpredictable enough for everyday use. It works well for choosing between two options, deciding who goes first or learning about probability. If you need more options, use the random number generator.

Advertisement

Online Coin Flip Simulator

A fair coin flip simulator for choosing between two options, deciding who goes first in a board game or just for fun. Each flip is independent; earlier results don't affect the next one. Results and statistics update as you go.

When to Use It

Decision Making

Quickly and impartially decide between two options

Game Start

Determine who goes first in board games and sports

Group Selection

Determine who goes first or who picks

Probability Learning

Observe the law of large numbers and probability

Frequently Asked Questions

They are random enough for everyday decisions, but technically pseudorandom. Each flip uses the browser's Math.random() generator, so heads and tails each have a 50% chance and no flip depends on the one before. Math.random() is not cryptographically secure, so it is unsuitable for security or high-stakes uses. A streak of five heads does not make tails any more likely on the next flip.
Advertisement

Related Tools