Skip to content
Omnikalc

Coin flip probability calculator: chance of k heads in n tosses

Find the probability of getting exactly, at least or at most a given number of heads when you flip a coin several times.

Updated on
Your inputs

Value out of range

Value out of range

%

Value out of range

Results

Exactly k heads

11.72%

At least k heads

17.19%

At most k heads
94.53%
Exactly k heads: 1 chance in
8.5
All heads
0.0977%
Expected number of heads
5.0

Probabilities for other numbers of heads

Exactly k headsAt least k heads
k = 0 current0.10%100.00%
k = 3 current11.72%94.53%
k = 4 current20.51%82.81%
k = 5 current24.61%62.30%
k = 6 current20.51%37.70%
k = 7 current11.72%17.19%
k = 8 current4.39%5.47%
k = 10 current0.10%0.10%

The mathematics of coin flips

A fair coin lands heads half the time, but the pattern over several flips is less intuitive than it seems. Getting exactly 5 heads in 10 flips is the single most likely result, yet it happens only about one time in four. The calculator gives the probability of exactly, at least or at most a number of heads, the chance of all heads, and the expected count. It also accepts a biased coin.

The formulas

The number of heads follows a binomial distribution with n flips and probability p of heads:

  • Exactly k heads: C(n, k) × p^k × (1 − p)^(n − k)
  • At least k heads: 1 − P(at most k − 1)
  • All heads: p^n, or 1 in 2^n for a fair coin
  • Expected heads: n × p

With a fair coin, every particular sequence of n flips has the same probability, 1 ÷ 2^n. Some totals are more likely only because more sequences lead to them.

Worked example

You flip a fair coin 10 times. What is the chance of 7 heads?

  1. There are 2¹⁰ = 1,024 equally likely sequences.
  2. C(10, 7) = 120 of them contain exactly 7 heads.
  3. P(exactly 7) = 120 ÷ 1,024 = 11.7%, or about 1 chance in 8.5.
  4. P(at least 7) = (120 + 45 + 10 + 1) ÷ 1,024 = 17.2%.
  5. P(10 heads in a row) = 1 ÷ 1,024 = 0.098%.

Ten flips at a glance

Heads Exactly At least
0 0.10% 100%
3 11.72% 94.53%
4 20.51% 82.81%
5 24.61% 62.30%
6 20.51% 37.70%
7 11.72% 17.19%
8 4.39% 5.47%
10 0.10% 0.10%

The gambler’s fallacy

After five heads in a row, many people feel tails is “due”. It is not: the coin has no memory, and the next flip is still 50/50. Long runs are also more common than intuition suggests. In 100 flips, a streak of at least 6 identical results in a row is more likely than not. People asked to write down a “random” sequence usually avoid such streaks, which is one way to tell made-up data from real flips.

Is any coin really fair?

Research by statisticians at Stanford and later a large experiment with hundreds of thousands of flips found that a tossed coin lands on the same side it started on slightly more often than half the time, about 51%. Spinning a coin on a table can be much more biased, depending on its weight distribution. For everyday decisions the effect is negligible; for anything that matters, use a proper random number generator. You can model a biased coin by changing the probability of heads.

Frequently asked questions

What is the probability of getting 7 heads in 10 flips?

About 11.7% for exactly 7 heads, and 17.2% for 7 or more, with a fair coin.

What is the probability of 10 heads in a row?

0.5^10 = 1 in 1,024, or about 0.1%.

After five heads, is tails more likely?

No. A coin has no memory, so each flip is still 50/50. Believing otherwise is called the gambler's fallacy.

What is the most likely result of 10 flips?

Exactly 5 heads, but it only happens about 24.6% of the time. Results between 4 and 6 heads cover about 65.6% of outcomes.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.