Flip a coin / Heads or tails generator / Flip 20 times

Flip a coin 20 times

Simulate 20 coin flips and see how heads and tails split.

Try:

This session

Rounds
0
Heads wins
0
Tails wins
0
Draws
0
Total flips
0

Share

Press flip to start
Heads
0
0%
Tails
0
0%
Longest streak: 0Gap between sides: 0

    Twenty flips: streaks start to matter

    At twenty flips the average run of identical results is still short, but the longest streak in a round is typically four or five. A streak of six or more shows up in roughly one round in four, which surprises people who expect coins to alternate.

    Twenty is a good size for testing intuition: write down a sequence you think looks random, flip twenty coins here and compare. Human-made sequences nearly always contain too few long streaks.

    Every possible result of 20 flips

    There are 1,048,576 equally likely sequences. Grouped by how many heads they contain, the chances are:

    HeadsTailsSequencesChance
    02010%
    119200.002%
    2181900.018%
    31711400.109%
    41648450.462%
    515155041.48%
    614387603.7%
    713775207.39%
    81212597012%
    91116796016%
    101018475617.6%
    11916796016%
    12812597012%
    137775207.39%
    146387603.7%
    155155041.48%
    16448450.462%
    17311400.109%
    1821900.018%
    191200.002%
    20010%

    The longest streak of identical results in 20 flips averages about 4.7. Getting every flip the same has odds of 1 in 1,048,576.

    More coin tools

    Frequently asked questions

    What are the odds of flipping 20 heads in a row?

    The odds are 1 in 1,048,576. Each flip is independent, so you multiply 50% by itself 20 times.

    How many heads should I expect in 20 flips?

    On average 10. About 95% of rounds land between 6 and 14 heads.

    Is a streak of 5 heads in 20 flips unusual?

    No. Streaks of five or more are common at this size, so they are not evidence that the coin is biased.

    Is the result truly random?

    Yes. Each flip uses your browser's secure random number generator (the Web Crypto API), so heads and tails are equally likely and no flip is influenced by an earlier one.