Skip to content
Calc.

Coin Flip Probability Calculator

Calculate the probability of getting exactly, at least or at most k heads in n fair coin flips with the binomial formula P = C(n, k) ÷ 2ⁿ. For example, exactly 5 heads in 10 flips is 252 ÷ 1,024 = 0.246, about 1 in 4.

Last updated: September 2026

Probability

0.246094

Formula below · 2 sources (itl.nist.gov, openstax.org) · Updated Sep 2026

Compare with similar

About this calculator

Each flip of a fair coin is heads with probability 1/2, independently of the others, so the number of heads in n flips follows a binomial distribution:

P(exactly k heads) = C(n, k) ÷ 2ⁿ, where C(n, k) = n! ÷ (k!(n − k)!) counts the orders in which k heads can appear.

"At least" and "at most" add up the exact probabilities over the range. The calculator works with logarithms, so it stays accurate for thousands of flips where n! itself would overflow. The single most likely count is n/2 (or the two counts either side of it for odd n), yet even that becomes unlikely as n grows: exactly 50 heads in 100 flips has only an 8% chance, because the probability is spread over many nearby counts. The chart below draws the whole distribution.

How to use

Example (the defaults): exactly 5 heads in 10 flips: C(10, 5) = 252, and 252 ÷ 1,024 = 0.246094 (about 1 in 4). Example 2: at least 8 heads in 10 flips: (45 + 10 + 1) ÷ 1,024 = 0.0546875. Example 3: exactly 3 heads in 3 flips: 1/8 = 0.125. Asking for more heads than flips gives 0.

Frequently asked questions

Is a tail more likely after five heads in a row?

No. The coin has no memory: the next flip is still 50/50. The belief that it is "due" is the gambler's fallacy.

What is the chance of getting all heads?

1/2ⁿ: 1/1,024 for 10 flips and about 1 in a million for 20.

How many heads should I expect in 100 flips?

50 on average, with a standard deviation of 5 (√(100 × ½ × ½)). About 96% of the time the count lands between 40 and 60 heads inclusive, and exactly 50 heads happens only about 8% of the time.

Related calculators

Sources & references

How we check our calculators

Think a result is wrong? Report a problem with this calculator.