Works on this device
Coin Flip
Flip a coin and get heads or tails at once. You can flip many times, flip several coins together, or give the two sides your own names. Each flip is made on your device with the secure random generator of your browser.
Choose your settings
Check these values
The coin is flipped in this browser. Nothing is sent to a server.
Your flip will show here
Choose Flip to toss the coin.
Your result
How it was worked out
How to flip a coin here
- Choose Flip. With the starting settings you get one result: Heads or Tails.
- For more flips, enter a number from 1 to 10,000 in How many flips. The page then shows the count of each side, the share in percent, the longest run and a table of every flip.
- To decide between two things, choose Yes and No or My own names under Names of the two sides.
- Choose Flip again for a new result. Use Copy results, Download CSV or Print to keep a list.
What each option does
- A fair coin, once or many times is the normal coin flip. Each side has a chance of 1 in 2.
- Several coins at once, in rounds flips 2 to 10 coins together and repeats this for up to 1,000 rounds. It counts how many rounds gave 0, 1, 2 or more of side 1. Use it for questions such as "flip 2 coins 100 times".
- A weighted coin (not fair) lets you set the chance of side 1, for example 60% or 51%. The result always says that the coin is weighted. Use it to study unfair coins, not to trick someone.
- A three-sided coin picks one of three results with the same chance, 1 in 3 each.
What fair means here
A fair flip means two things. First, each side has the same chance, 1 in 2, on every flip. Second, a flip does not depend on the flips before it. After five heads in a row, the chance of heads on the next flip is still 1 in 2. Tails is not due.
The tool asks your browser for random bytes from its secure generator (the Web Crypto function crypto.getRandomValues). One random bit decides a fair flip: 0 gives side 1 and 1 gives side 2. The tool never uses Math.random. If your browser has no secure generator, the tool stops and tells you.
For a three-sided coin the tool draws a number from 0 to 2. For a weighted coin it draws a whole number from 0 to 9,999. Numbers that do not fit are thrown away and drawn again, so no result is favoured by the method.
Worked examples
Ten flips can come out in 2 × 2 × 2 × 2 × 2 × 2 × 2 × 2 × 2 × 2 = 1,024 different orders. Each order has the same chance. So the chance of ten heads in a row is 1 in 1,024, which is about 0.098%. Exactly five heads can happen in 252 of the 1,024 orders, which is about 24.6%. Five heads is the most likely count, but it happens less than one time in four.
Two coins have four equally likely results: heads and heads, heads and tails, tails and heads, tails and tails. So about 1 round in 4 gives two heads, 2 rounds in 4 give one head, and 1 round in 4 gives no heads.
A weighted coin set to 60% gives side 1 when the number drawn is below 6,000. That is 6,000 of the 10,000 possible numbers, so the chance is exactly 60%.
Limits you should know
- You can make 1 to 10,000 flips at a time, or 2 to 10 coins for up to 1,000 rounds. The table on the page shows the first 500 rows. The copied text and the CSV file hold every flip.
- The result is shown as words. There is no picture of a coin, no spinning animation and no sound.
- In a short list, uneven counts and long runs are normal. They do not mean that the coin is unfair.
- A coin flip cannot predict anything, and no pattern in past flips helps to guess the next one. Do not use it to decide a bet.
- This page is not a witnessed draw. For a decision that others must trust, flip where everyone can see the result.
- The page does not save or send the names you type for the sides.