Coin Flip
Probability Calculator
Calculate the exact probability of any coin flip outcome (exactly k heads, at least k heads, or at most k heads) with a live binomial distribution chart.
Coin Flip Probability Calculator: Binomial Probability Explained
How likely is it to flip 7 heads in 10 tries? Or 15 or more in 20? This free coin flip probability calculator answers questions like these using the binomial distribution formula. Enter the number of flips, the number of heads you care about, and the chance of heads on each flip, and it returns the exact probability, the odds, a distribution chart, and a plain-English reading of the result. The same math applies to trading win streaks, A/B tests, quality checks, and any other series of independent yes-or-no outcomes.
Quick answer: The probability of getting exactly 5 heads in 10 fair coin flips is 24.609375% (≈ 1 in 4). The probability of getting at least 15 heads in 20 flips is approximately 2.07%. Use the calculator above to compute any scenario instantly.
What Is Coin Flip Probability?
Coin flip probability is the study of outcomes when a coin is flipped one or more times. A fair coin has exactly equal probability of landing heads or tails on each flip: p = 0.5. A biased coin has a different probability: for example, p = 0.6 means heads appears 60% of the time.
The key insight of coin flip probability is that each flip is independent, meaning the outcome of one flip has no effect on any other flip. This makes coins one of the clearest examples of what statisticians call a Bernoulli process: a sequence of independent trials each with two possible outcomes.
Coin Flip Probability Formula: Binomial Distribution
The probability of getting exactly k heads in n coin flips is given by the binomial probability formula:
This formula has three components that each play a distinct role:
- C(n, k): the number of ways k heads can be arranged among n flips
- p^k: the probability of k heads occurring
- (1−p)^(n−k): the probability of the remaining (n−k) tails occurring
How to Calculate Coin Flip Probability Step by Step
Example 1: 10 flips, exactly 5 heads (fair coin)
n = 10, k = 5, p = 0.5
Step 1: C(10, 5) = 10! / (5! × 5!) = 252
Step 2: p^5 = 0.5^5 = 0.03125
Step 3: (1−p)^5 = 0.5^5 = 0.03125
Step 4: P = 252 × 0.03125 × 0.03125 = 0.24609 = 24.609%
Example 2: 20 flips, at least 15 heads
n = 20, k ≥ 15, p = 0.5
This requires summing P(X=15) + P(X=16) + P(X=17) + P(X=18) + P(X=19) + P(X=20)
Result: P(X ≥ 15) ≈ 2.069%
Interpretation: Getting 15 or more heads in 20 fair flips happens roughly 1 in 48 times.
Example 3: 5 flips, at most 2 heads
n = 5, k ≤ 2, p = 0.5
P(X=0) + P(X=1) + P(X=2) = 3.125% + 15.625% + 31.25% = 50%
Exactly half of all possible 5-flip sequences have 2 or fewer heads, a perfect illustration of symmetry.
How the Coin Flip Probability Calculator Formula Works
The calculator measures one thing: how likely a specific number of heads is across a fixed number of independent flips. It works from three inputs, n (the number of flips), k (the number of heads you care about), and p (the chance of heads on a single flip, written as a decimal between 0 and 1). The result is a probability between 0% and 100%, shown as a percentage, a decimal, and as “1 in X” odds.
For every possible head count from 0 to n, the calculator works out P(X = i) with the binomial formula. “Exactly k” returns that single value. “At least k” adds up the values from k to n, and “At most k” adds up the values from 0 to k. The bar chart plots all of those individual values, and the bars for your selected outcome are highlighted.
Step-by-step calculation walkthrough
Step 1: Identify the inputs. A coin (or a free-throw shooter) succeeds 60% of the time. You want the chance of exactly 6 successes in 8 tries, so n = 8, k = 6, p = 0.6, and the mode is “Exactly k heads.”
Step 2: Apply the formula. P(X = k) = C(n, k) × pk × (1 − p)n − k, which becomes C(8, 6) × 0.66 × 0.42.
Step 3: Perform the calculation. C(8, 6) = 8! ÷ (6! × 2!) = 28. Then 0.66 = 0.046656 and 0.42 = 0.16. Multiplying: 28 × 0.046656 × 0.16 = 0.20901888, which the calculator shows as 20.901888%.
Step 4: Interpret the result. There is about a 21% chance, or roughly 1 in 5, of exactly 6 successes. The expected number of successes is n × p = 4.8, so 6 is a little above average but far from unusual.
Under the hood, the calculator takes the logarithm of each factorial, adds the terms, and converts back with an exponent. That keeps the math accurate for up to 200 flips, where the factorials themselves would be too large for a computer to store directly. Entries outside the allowed range are adjusted: n is limited to 1 through 200, n and k are rounded to whole numbers, k cannot exceed n, and p is limited to 0 through 1.
Assumptions and limitations: the formula assumes every flip is independent and every flip has exactly the same chance of heads. That holds well for a coin, but it is only an approximation for things like trading results or sports performance, where conditions change from one attempt to the next. A small probability tells you an outcome is rare under the model you entered. It does not prove the coin is biased or that a trader has skill.
What Is Binomial Distribution?
The binomial distribution is a probability distribution that describes the number of successes in a fixed number of independent trials, where each trial has the same probability of success. NIST’s engineering statistics glossary describes it the same way: it counts events across a fixed number of trials and assumes each trial’s outcome is independent of the others. Coin flipping is the classic example, with each flip a “trial” and heads the “success.”
Key properties of the binomial distribution for coin flips:
- Mean (expected value): μ = n × p (for a fair coin, expect n/2 heads)
- Standard deviation: σ = √(n × p × (1−p))
- Shape: Symmetric for p=0.5; skewed right for p<0.5; skewed left for p>0.5
- Convergence: As n increases, the binomial approaches a normal distribution (Central Limit Theorem)
The bar chart in the calculator above visualises the full binomial distribution for your inputs. Each bar represents the probability of exactly that many heads, with your selected region highlighted in purple.
Real-World Applications of Coin Flip Probability
Trading win/loss streaks
A trader with a 50% win rate who wins 15 out of 20 trades might feel on a hot streak, but the binomial distribution shows this happens about 2% of the time purely by chance.
A/B testing
A/B testing in product and marketing uses the binomial model to determine whether a conversion rate difference is statistically significant or within the expected range of random variation.
Clinical trials
Medical researchers use binomial probability to assess whether a drug works better than chance. If a treatment “succeeds” in 18 of 20 patients vs an expected 10, binomial tells us how significant that is.
Gambling analysis
Casino games and betting systems are evaluated using binomial probability. Understanding the math reveals why “hot streaks” are illusions and why the house always wins over large sample sizes.
Probability of Various Coin Flip Outcomes
| Scenario | Probability | Odds (1 in X) |
|---|---|---|
| 2 flips, 2 heads | 25.00% | 1 in 4 |
| 5 flips, exactly 5 heads | 3.125% | 1 in 32 |
| 10 flips, exactly 5 heads | 24.609% | 1 in 4 |
| 10 flips, all 10 heads | 0.098% | 1 in 1,024 |
| 20 flips, exactly 10 heads | 17.620% | 1 in 6 |
| 50 flips, exactly 25 heads | 11.228% | 1 in 9 |
| 100 flips, exactly 50 heads | 7.959% | 1 in 13 |
| 100 flips, all 100 heads | 7.9×10⁻²⁹% | Essentially impossible |
3 Real-Life Examples
Three situations where the same formula answers a practical question. In each, “heads” simply means “success.”
| Situation | Inputs | Result | What it means |
|---|---|---|---|
| A trader wins 15 of her last 20 trades and wonders whether it was luck | n = 20, k = 15, p = 0.5, at least k | 2.069473% (about 1 in 48) | If every trade were a coin flip, a streak this good would show up roughly once in 48 twenty-trade stretches. That is uncommon, but not proof of skill, especially if she has been tracking many strategies at once. |
| A basketball player who shoots 70% from the line wants to know how often he hits 9 or more of 10 | n = 10, k = 9, p = 0.7, at least k | 14.930835% (about 1 in 7) | A 70% shooter will do this about one night in seven with no change in ability, so a single strong night is weak evidence of improvement. |
| A student guesses every answer on a 10-question quiz with four choices per question | n = 10, k = 6, p = 0.25, at least k | 1.972771% (about 1 in 51) | Guessing gets 6 or more right only about 2% of the time. The expected score from pure guessing is 2.5 correct answers. |
These figures come straight from the calculator’s formula. They show how unusual a result is under the assumptions you enter, not whether those assumptions are true.
Important Notes
- Independence and a constant p are assumptions. They fit a physical coin well. For trading, sports, or surveys, check whether each attempt really has the same chance of success before relying on the number.
- Input limits. The calculator accepts 1 to 200 flips. Values outside the allowed range are adjusted automatically, and n and k are rounded to whole numbers.
- Rounding and tiny probabilities. The percentage shows six decimal places, so extremely unlikely outcomes display as 0.000000%. For example, 100 heads in 100 flips is about 7.9×10⁻²⁹%. The “1 in X” odds are rounded to a whole number and are approximate for outcomes that unlikely.
- Real coins are very slightly biased. The physics research linked in the FAQ puts the same-side bias at about 51%. Using p = 0.5 is still the standard assumption and makes almost no practical difference over a handful of flips.
- Past flips do not change the next one. After five heads in a row, the chance of heads on the next flip is still p. The calculator answers questions about a whole sequence, not about what comes next.
- A rare result is not proof of bias. If you test many coins, strategies, or players, some will produce unlikely streaks by chance alone. Treat a low probability as a prompt to look closer.
- Data privacy. Calculations and the PDF are generated in your browser. The “Share result” button copies a link that contains your inputs, so anyone with the link can see them.
Related Calculators
Frequently Asked Questions
Explore more free calculators
Probability, finance, health, lifestyle: 50+ premium calculators, all free and instant.
Explore all calculators →