Coin Flip Probability Calculator

🪙 Free Probability Tool

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.

Binomial Distribution Engine
Live Bar Chart
Shareable Results
Quick presets
10
5
50%
0.5 = fair coin. Adjust for biased coins.
Choose cumulative or exact probability.
Probability
—
—
Odds (1 in X)
—
Flips (n)
—
Target heads (k)
—
📊 Binomial distribution: all outcomes (highlighted = selected region)
—
ℹ️ Note: This tool performs standard calculations for informational and educational purposes. Results are accurate to standard floating-point precision. Please double-check important results independently.

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:

P(X = k) = C(n, k) × p^k × (1 − p)^(n − k) Where: n = total number of flips k = desired number of heads p = probability of heads on one flip (0.5 for fair coin) C(n, k) = n! / (k! × (n−k)!) = combinations

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

ScenarioProbabilityOdds (1 in X)
2 flips, 2 heads25.00%1 in 4
5 flips, exactly 5 heads3.125%1 in 32
10 flips, exactly 5 heads24.609%1 in 4
10 flips, all 10 heads0.098%1 in 1,024
20 flips, exactly 10 heads17.620%1 in 6
50 flips, exactly 25 heads11.228%1 in 9
100 flips, exactly 50 heads7.959%1 in 13
100 flips, all 100 heads7.9×10⁻²⁹%Essentially impossible

3 Real-Life Examples

Three situations where the same formula answers a practical question. In each, “heads” simply means “success.”

SituationInputsResultWhat 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

What is the probability of getting 50 heads in 100 coin flips?
The probability of getting exactly 50 heads in 100 fair coin flips is approximately 7.96%, about 1 in 13. Despite being the most likely single outcome, it’s far from guaranteed. The binomial distribution for 100 flips is bell-shaped and centred at 50, but spread across many values. About 73% of the time you’ll get between 45 and 55 heads (inclusive), and about 96% of the time between 40 and 60 heads.
Is a coin toss really 50/50?
In theory, yes: a perfectly balanced, fairly flipped coin has a 50% probability of heads and 50% of tails. In practice, Diaconis, Holmes, and Montgomery’s analysis of coin tossing shows that vigorously flipped coins are very slightly biased to land on the same side they started, a bias of at least 0.01 (about 51%) caused by the coin’s precession as it spins. For practical probability calculations, p = 0.5 remains the correct assumption. Our calculator lets you adjust p for biased coins.
What are the odds of getting all heads in n flips?
The probability of getting all heads is (0.5)^n. For 5 flips: 3.125% (1 in 32). For 10 flips: 0.098% (1 in 1,024). For 20 flips: 0.000095% (1 in 1,048,576). For 50 flips: about 1 in 1.1 quadrillion (roughly 1 in 10^15). The probability halves with each additional required head.
How does probability change with more coin flips?
As you increase the number of flips, the distribution of outcomes spreads wider in absolute terms but narrows as a proportion. With 10 flips, getting exactly 5 heads (50%) has probability 24.6%. With 100 flips, getting exactly 50 heads has probability 8.0%. With 1,000 flips, getting exactly 500 heads has probability about 2.5%. The most likely outcome always remains n×p, but the distribution spreads, making any single exact outcome less probable while the range around the mean becomes more concentrated proportionally.
What is the difference between “exactly k,” “at least k,” and “at most k”?
“Exactly k heads” (P(X=k)) gives the probability of getting precisely that number, no more and no less. “At least k heads” (P(X≥k)) is a cumulative probability summing P(X=k) + P(X=k+1) + … + P(X=n). “At most k heads” (P(X≤k)) sums P(X=0) + P(X=1) + … + P(X=k). Cumulative probabilities are often more useful in practice: “at least 15 heads in 20 flips” is a natural question for evaluating whether a trader’s results are genuinely skilled or random.
Can I use this calculator for biased coins?
Yes. The probability of heads input (p) lets you model any value from 0 to 1. Set p=0.6 for a coin that lands heads 60% of the time, or p=0.3 for a coin that rarely lands heads. The same binomial formula applies: P(X=k) = C(n,k) × p^k × (1−p)^(n−k). Adjusting p skews the distribution: a p=0.8 coin will have its distribution peak shifted far to the right.
What is the law of large numbers and how does it apply to coin flips?
The Law of Large Numbers states that as the number of trials increases, the observed proportion of heads converges to the true probability p. With 10 flips, you might get 8 heads (80%) by chance. With 1,000 flips, the share of heads lands between 45% and 55% about 99.9% of the time. With 1,000,000 flips, it stays within 0.15 percentage points of 50% (three standard deviations) in roughly 99.7% of runs. This is why casinos profit reliably over thousands of games despite individual results being random.
If I get five heads in a row, is tails more likely next?
No. Each flip is independent, so the chance of heads on the next flip is still p, whatever happened before. The belief that tails is “due” is called the gambler’s fallacy. What the calculator tells you is how unlikely the whole sequence was, not what comes next.
Can I download my coin flip results as a PDF?
Yes. Use the “Download results as PDF” button under the chart to save your inputs, the probability, the odds, the distribution chart, and the formula. The file is created in your browser and nothing is uploaded.

Explore more free calculators

Probability, finance, health, lifestyle: 50+ premium calculators, all free and instant.

Explore all calculators →