Coin Flip Probability Calculator

Work out any coin flip probability instantly: the chance of exactly, at least, or at most k heads in n flips, and the odds of a streak of heads somewhere in a run. Answers come as a percent, odds (“1 in …”), and an exact fraction for small runs, with the binomial formula explained below.

Heads in a run of flips

Example: the chance of exactly 5 heads in 10 flips is 252/1024 ≈ 24.6%.

Set the per-flip chance to 0.5 for a fair coin, or change it to model a biased coin. Exact fractions are shown for runs of 30 flips or fewer with a fair coin.

Test it for real: flip a coin 10 times and count the heads, or try a weighted coin with your own chance of heads.

Streak probability

Example: a run of 7+ heads somewhere in 100 fair flips has about a 31.8% chance.

Computes the chance that at least one unbroken run of length s (or longer) appears anywhere in n fair flips. Long streaks are a normal feature of randomness, not proof of a rigged coin.

Look for the streak yourself: flip a coin 100 times in one tap.

Quick reference (fair coin)

QuestionProbability
Heads on a single flip1/2 = 50%
Two heads in a row (2 flips)1/4 = 25%
Exactly 2 heads in 3 flips3/8 = 37.5%
At least 2 heads in 3 flips1/2 = 50%
Exactly 5 heads in 10 flips252/1024 ≈ 24.6%
All heads in 5 flips1/32 ≈ 3.1%
Ten heads in a row (10 flips)1/1024 ≈ 0.098%
A run of 2+ heads somewhere in 10 flips880/1024 ≈ 85.9%
Exactly 50 heads in 100 flips≈ 8.0%

Odds of heads in a row (1 to 20 flips)

What are the odds of flipping heads n times in a row? Each flip halves the chance, so the probability is (1/2)n. The same numbers apply to tails in a row, and to calling every flip correctly.

Heads in a rowProbabilityOdds
150%1 in 2
225%1 in 4
312.5%1 in 8
46.25%1 in 16
53.13%1 in 32
61.56%1 in 64
70.781%1 in 128
80.391%1 in 256
90.195%1 in 512
100.098%1 in 1,024
110.049%1 in 2,048
120.024%1 in 4,096
130.012%1 in 8,192
140.006104%1 in 16,384
150.003052%1 in 32,768
160.001526%1 in 65,536
170.000763%1 in 131,072
180.000381%1 in 262,144
190.000191%1 in 524,288
200.000095%1 in 1,048,576

These are the odds for one attempt of exactly n flips. In a longer session a streak is far more likely to turn up somewhere: use the streak calculator above, or see it for yourself by flipping a coin 100 times and looking for the longest run in the result details.

The formula

The probability of getting exactly k heads in n independent flips follows the binomial distribution:

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

C(n, k) counts how many orderings put the k heads among the n flips, and p is the chance of heads on one flip (0.5 for a fair coin). Worked example (exactly 2 heads in 3 flips): C(3, 2) = 3 orderings (HHT, HTH, THH), each with probability (1/2)³ = 1/8, so P = 3/8 = 37.5%. For “at least” or “at most” questions, add up the matching terms; that is exactly what the calculator above does.

See probability happen

Frequently asked questions

What is the probability of getting heads in a coin flip?
A fair coin lands heads with probability 1/2 (50%). Each flip is independent, so the chance stays 50% no matter what came before.
What are the odds of flipping heads twice in a row?
For a fair coin, two heads in a row has probability 1/2 × 1/2 = 1/4 (25%). Ten heads in a row is 1/1,024, about 0.098%.
What are the odds of flipping 5 heads in a row?
Five heads in a row has probability (1/2)^5 = 1/32, about 3.1%. Seven in a row is 1 in 128 and twenty in a row is 1 in 1,048,576. The table on this page lists every streak from 1 to 20.
What formula do I use for coin flip probability?
Use the binomial formula: the probability of exactly k heads in n flips is C(n, k) × p^k × (1−p)^(n−k), where C(n, k) is the number of ways to choose which flips are heads and p is the chance of heads (0.5 for a fair coin).
Does the previous flip change the next one?
No. Coin flips are independent events, so a streak of heads does not make tails "due". Believing otherwise is the gambler's fallacy.
What is the probability of exactly 50 heads in 100 flips?
About 8%. Even though 50 is the most likely single count, there are many nearby outcomes (49, 51, 52…), so hitting exactly 50 is fairly rare.

Share this link via

Or copy link