Coin Flip Probability Calculator
Enter the number of flips and number of heads to get the probability.
Result
How it is calculated
For a fair coin the chance of exactly k heads in n flips is P = C(n, k) × 0.5n, where C(n, k) = n! ÷ (k! × (n − k)!) counts the ways to choose which flips are heads. The tool also reports the probability of one specific sequence, such as HTHHT, which is always 0.5n. Flips and heads must be whole numbers, flips between 1 and 1000, and heads between 0 and flips. The exact-heads figure is a percentage with two decimals; the sequence probability is a decimal with eight places, so it shows 0.00000000 once n is 28 or more, although it is not truly zero. Each flip is assumed fair and independent of the others.
Worked example
Flip a coin 10 times and ask for exactly 5 heads. Ways to choose them: C(10, 5) = 252. Probability of any single sequence: 0.510 = 1 ÷ 1024 = 0.00097656. Exactly 5 heads: 252 × 0.00097656 = 24.61%. So roughly one 10-flip run in four gives an even 5 and 5 split.
Common mistakes
- Expecting an even split to be likely. Exactly 5 heads in 10 flips is only 24.61%, and the chance of an exact half falls further as n grows (2.52% for 500 heads in 1000).
- Confusing "exactly k heads" with "at least k heads". This tool gives only the exact count; to get at least k you must add the probabilities for k, k + 1, ... n.
- Believing a streak makes the opposite side due. Each flip is independent, so after 5 heads in a row the next flip is still 50/50.
- Comparing the two outputs as if they were the same thing. One specific sequence is far less likely than the count of heads, because many sequences share the same count.
- Entering a decimal or more than 1000 flips, which the tool rejects.
About this calculator
This calculator applies the binomial probability formula, P(k) = C(n,k) × 0.5ⁿ, to find the chance of getting exactly k heads in n flips of a fair coin, where C(n,k) is the number of ways to choose which k of the n flips land heads (n choose k) and 0.5ⁿ accounts for every flip having a 50/50 chance independent of the others.
It also reports the probability of any one specific exact sequence of heads and tails, which is always simply 0.5ⁿ regardless of how many heads it contains — a distinction that trips people up, since a specific sequence like HHHHH feels rarer than “3 heads out of 5” even though both are governed by the same binomial math underneath. It's a clean, hands-on introduction to discrete probability and combinatorics.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)