Skip to content

Coin flip: heads or tails

Tap the coin and see if it lands heads or tails. Both have the same chance.

Example

Heads

Heads 1/2Tails 1/2

Press the button for your own result.

Drawn with crypto.getRandomValues, with rejection sampling so every outcome has the same chance.

Heads
0
Tails
0
Flips
0

Guide and details

Heads or tails, drawn at exactly even odds by your browser’s cryptographic generator before the coin turns.

1,000,000 test flips: heads 49.96%, tails 50.04% (p = 0.371). Full test.

Is a real coin exactly 50/50?

Close, but not exactly. A 2023 study by researchers at the University of Amsterdam that recorded 350,757 flips by hand found the coin landing on the side it started from about 50.8% of the time. This confirmed what Stanford mathematician Persi Diaconis showed in 2007: a tossed coin precesses, so it spends slightly longer with its starting face up in the air.

The coin on this page has no starting face and no wobble. The result is drawn between two values with equal probability by your browser’s cryptographic generator (crypto.getRandomValues) before the animation begins. The coin then makes the same four turns every time and comes to rest on the face already drawn.

How rare is a run of heads or tails?

The counter beside the coin tracks a run of either side: the first flip can land on any face, and only the flips after it have to match. If you name the face beforehand, every flip has to match it:

RunEither sideOne named sideFrequency
2 in a row1 in 21 in 4Every 2 attempts
3 in a row1 in 41 in 81 in 4 attempts
4 in a row1 in 81 in 161 in 8 attempts
5 in a row1 in 161 in 32Expected in about 30 flips
6 in a row1 in 321 in 64Expected in about 60 flips
7 in a row1 in 641 in 128Expected in about 100 flips

A run never changes the next flip. Believing that heads is “due” after five tails is the gambler’s fallacy. Each flip is an independent trial with equal 50% probability.

The relief test for difficult choices

Give heads to one option and tails to the other, then flip. The clearest answer often surfaces while the coin turns or immediately upon seeing the face: if you feel genuine relief, the decision is made. If you feel an immediate urge to flip again to see if the other side comes up, your intuition has already chosen the second option.

When another tool fits

Phrase the question as yes or no and you can spin the yes or no wheel instead. With three or more candidates, enter them in the wheel of names or draw several winners at once with the random name picker. For tabletop games use the dice roller, for whole numbers use the random number generator, and for options with multiple trade-offs use the decision matrix.

Why use Choose Tools

  • One source of randomness

    Every draw calls crypto.getRandomValues and throws away the values that would cause modulo bias. A test fails if Math.random ever appears in the source.

  • The result comes first

    The wheel, the coin and the dice pick the outcome before they move. The animation only shows what was drawn.

  • A slice is a chance

    Each option on the wheel is one slice, and the size of a slice is the chance of that option.

  • Lists stay on your device

    They are kept in this browser. Shared links carry the list after the #, a part the browser leaves out of requests to servers. There is no account.

  • Quiet by default

    Sound is off until you turn it on, and with “reduce motion” set in your system the result appears with no animation.

Questions and answers

Is it exactly 50/50?

Yes. The flip asks the generator for one of two values with equal probability and shows the matching face. The animation always makes the same number of turns, so it cannot tilt the result. That makes it a 50/50 generator you can use for any two-way call.

Is a digital flip closer to 50/50 than a real coin?

A real coin is slightly biased toward the side it started from, because a tossed coin precesses. The coin on this page has no starting side and no wobble: the result is drawn before the animation begins.

I got five heads in a row. Is something wrong?

No. Each flip ignores the ones before it. After four heads the fifth is still an even bet, and in a hundred flips a run of six or seven is ordinary.

How do I play a series of 3 or 5 flips?

Flip the coin and read the count of heads and tails beside it. The first side to reach 2 wins a series of 3, and the first to reach 3 wins a series of 5. Reset the count before the next series.

Can the coin land on its edge?

No. There are two outcomes, heads and tails.