Skip to content

Coin Flip Probability Calculator

Enter how many times you flip the coin and how many heads you are asking about, to get the chance of exactly that many, at least that many and at most that many heads.

Calculator Details

P(X = 5):0.24609375 (24.6094%)See results ↓

Two independent events, repeated trials (binomial), Bayes’ theorem or a normal distribution

How many times the experiment is repeated

The count of successes you are asking about

From 0 to 1, the same on every trial (0.5 for a fair coin)

Your Results

P(X = 5): 0.24609375 (24.6094%)

P(X = 5)

0.24609375 (24.6094%)

Repeated trials (binomial)

P(X ≤ 5)

0.62304688 (62.3047%)

5 or fewer successes

P(X ≥ 5)

0.62304688 (62.3047%)

5 or more successes

P(X < 5)

0.37695313 (37.6953%)

P(X > 5)

0.37695313 (37.6953%)

At least one success

0.99902344 (99.9023%)

1 − (1 − p)^n

Mean and standard deviation

5 ± 1.58113883

np and √(np(1 − p))

In 10 trials with p = 0.5, the chance of exactly 5 successes is 24.61%, and of 5 or more is 62.3%.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Distribution of successes in 10 trials

Distribution of successes in 10 trials

Detailed Breakdown

Probability of each number of successes in 10 trials
Successes (k)P(X = k)
00.000976563
10.00976563
20.0439453
30.117188
40.205078
5 (yours)0.246094
60.205078
70.117188
80.0439453
90.00976563
100.000976563

How This Calculator Works

How the Probability Is Calculated

Formulas for repeated trials (binomial), with your numbers. Results are calculated in double precision; the normal distribution uses a series accurate to about 15 decimal places.

P(X = k) = C(n, k) × p^k × (1 − p)^(n − k)

P(X = 5) = C(10, 5) × 0.5^5 × 0.5^(10 − 5)

C(10, 5) = 252

= 0.24609375

P(X ≤ 5) = sum of P(X = 0) … P(X = 5) = 0.623046875

P(at least one) = 1 − 0.5^10 = 0.9990234375

Frequently Asked Questions

After five heads in a row, is tails more likely?

No. Each flip of a fair coin is independent: the chance of heads on the next flip is still 1/2 whatever came before. Believing otherwise is the gambler's fallacy. What is unlikely is the whole sequence of six heads in advance, 1/64, not the sixth flip on its own.

What are the chances of getting all heads?

Multiply 1/2 by itself once per flip: 1/2ⁿ. Three heads in three flips is 1/8 = 12.5%; ten in ten is 1/1,024, about 0.1%. Getting at least one tails in ten flips is therefore 1,023/1,024, about 99.9%.

How likely is a streak of heads in many flips?

More likely than people expect. In 100 flips of a fair coin, a run of at least five heads in a row turns up in about 81% of sequences. Short streaks in real data are not evidence that a coin or a process is biased.

Can I use this for a biased coin or other yes/no events?

Yes. Change the probability of success from 0.5 to the real chance, such as 0.6 for a weighted coin or 0.17 for rolling a six. The same binomial formula then gives the chance of k successes in n tries.

Included: independent two- and three-event rules (and, or, neither, exactly one or two), binomial probabilities with cumulative tails and the at-least-once rule, Bayes’ theorem for one binary event, and normal distribution areas from z-scores (Φ to about 15 digits).

Left out: dependent events other than through Bayes’ theorem, more than three events, permutations and combinations on their own, Poisson, geometric and other distributions, and continuity corrections.

Coin Flip Probability Calculator: Chance of k Heads in n Flips

By FindMySum · Last reviewed

A coin flip probability calculator answers questions like "what are the chances of exactly five heads in ten flips?" Each flip is an independent yes-or-no trial with probability 1/2, so the number of heads follows the binomial distribution. The calculator counts the ways the heads can fall among the flips and multiplies by the chance of each way.

Worked example

Flip a fair coin 10 times (probability of heads 0.5). What is the chance of exactly 5 heads?

  1. Number of ways to place 5 heads among 10 flips: C(10, 5) = 252.
  2. Chance of any one particular sequence: 0.5¹⁰ = 1/1,024.
  3. Probability: 252 ÷ 1,024 = 0.2461, about 24.6%.

So even the most likely result happens only about a quarter of the time. The chance of at least 5 heads is about 62.3%, and of more than 5 heads about 37.7%. On average you get 5 heads, with a standard deviation of about 1.58.

Reading the results

"Exactly" is a single outcome; "at least" and "at most" add up a range of outcomes. With many flips the shape approaches the bell curve: in 100 flips, between 40 and 60 heads happens about 96% of the time. For dice, use the dice probability calculator; for other combinations of events, Bayes' theorem and the normal distribution, the full probability calculator.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy