Exact closed-form results, not a simulation

Coin Flip Probability

Enter a number of flips, a head count, and a streak length. Every figure is calculated exactly for independent flips, and the reference tables below are generated from the same module.

Set up the question
24.61%Exactly 5 of 10 heads
62.30%At least 5 heads
62.30%At most 5 heads
50.78%A run of 3 heads somewhere
82.62%A run of 3 of either side
5.0Expected heads

Reading these numbers

  • Exactly 5 is roughly 1 in 4.1. The most likely single head count is the one nearest 5.0, and even that usually stays below 50%.
  • A run of 3 heads somewhere is far more likely than 3 heads on the next 3 flips, because a long sequence offers many overlapping places for the run to start.
  • Either side counts heads and tails runs together, which is what people usually mean by “a streak”.

These are exact independent-flip results, not a simulation. Generate matching trial data in the probability lab.

The one formula behind all of it

Coin flips are independent, so the probability of a specific sequence of n results is always 0.5n. Counting how many sequences match what you asked for is the only part that changes. For a head count, that number is the binomial coefficient; for a streak, it needs a short recurrence because runs can start in many overlapping places.

Heads in a row

The classic question. This is the probability that the next few flips are all heads, which is much lower than the chance of a streak turning up somewhere in a long session.

Probability of a given number of heads in a row on a fair coin
Heads in a rowExact oddsProbability
11 in 250.00%
21 in 425.00%
31 in 812.50%
41 in 166.250%
51 in 323.125%
61 in 641.563%
71 in 1280.7813%
81 in 2560.3906%
91 in 5120.1953%
101 in 1,0240.0977%

Head counts in ten flips

Notice that the single most likely result, five heads, still happens less than a quarter of the time. An exact even split is the mode, not the expectation of any particular run.

Probability of each head count in ten fair coin flips
HeadsExactly (odds)ExactlyAt least
01 in 1,0240.0977%100%
15 in 5120.9766%99.90%
245 in 1,0244.395%98.93%
315 in 12811.72%94.53%
4105 in 51220.51%82.81%
563 in 25624.61%62.30%
6105 in 51220.51%37.70%
715 in 12811.72%17.19%
845 in 1,0244.395%5.469%
95 in 5120.9766%1.074%
101 in 1,0240.0977%0.0977%

Chance a streak appears at all

This is the table that resolves most “the coin must be broken” arguments. It gives the probability that at least one run of that length, of heads or tails, occurs somewhere in the session.

Probability that a streak of a given length appears within a session of fair coin flips
Streak length10 flips25 flips100 flips1,000 flips
3 in a row82.62%99.28%100.00%100.00%
4 in a row46.48%84.77%99.97%100.00%
5 in a row21.68%54.96%97.17%100.00%
6 in a row9.375%29.97%80.68%100.00%
7 in a row3.906%15.08%54.23%99.97%
8 in a row1.563%7.323%31.48%98.17%

A run of five in a row is close to certain across a thousand flips. If a session feels streaky, the arithmetic usually agrees with it. Generate your own sequence in the probability lab and compare the longest streak it reports with the row above.

Coin flip probability questions

What is the probability of 5 heads in a row?
One in 32, or 3.125%. Each flip is independent, so the probability of five specific results in a row is 0.5 to the power of 5. The same rule gives 1 in 1,024 for ten heads in a row.
Why is a streak of five heads so common if it is only 3.125%?
Because 3.125% is the chance that the next five flips are all heads, not the chance that a run of five turns up somewhere in a longer session. Across 100 flips, a run of at least five identical results appears about 97% of the time, and about 81% of the time for heads specifically. A long sequence gives a streak many overlapping places to start.
What is the probability of getting exactly 5 heads in 10 flips?
About 24.61%, or 63 in 256. It is the most likely single outcome of ten flips and still happens less than a quarter of the time, which is why an exact even split should not be treated as the expected result.
Does a coin become more likely to land tails after several heads?
No. That belief is the gambler’s fallacy. A fair coin has no memory, so the probability of tails is 50% on every flip regardless of what came before. What does happen is that the running proportion drifts back toward 50% simply because later flips outnumber the early streak.
How many coin flips do I need to see a 50/50 split?
None will guarantee it, and an exact split is impossible with an odd number of flips. The proportion converges, the count does not: the average gap from an even split is about 1.2 flips out of 10 and about 12.6 flips out of 1,000. The absolute gap grew tenfold, yet it fell from 12% of the session to 1.3% of it.

These figures describe a perfectly fair coin. Whether a real coin qualifies is a separate question, answered in is a coin flip really 50/50.