Coin Flip Probability Calculator

Calculate coin flip probabilities, simulate flips, and explore binomial distribution for heads/tails outcomes. Streaks, runs, and fairness testing included.

P(X = 7)
11.7188%
1 in 9
P(X โ‰ค 7)
94.5313%
At most k heads
P(X โ‰ฅ 7)
17.1875%
At least k heads
Expected Heads
5.00
ฯƒ = 1.58
Most Likely
5 heads
24.61% chance
Simulation
Click Simulate

Distribution (PMF)

Streak Probabilities

Streak LengthP(streak of heads)Odds
3 in a row65.64%1 in 2
4 in a row36.35%1 in 3
5 in a row17.34%1 in 6
6 in a row7.57%1 in 13
7 in a row3.09%1 in 32
8 in a row1.17%1 in 86
10 in a row0.10%1 in 1,024
Full Probability Table
k (heads)P(X = k)P(X โ‰ค k)
00.0977%0.0977%
10.9766%1.0742%
24.3945%5.4688%
311.7188%17.1875%
420.5078%37.6953%
524.6094%62.3047%
620.5078%82.8125%
711.7188%94.5313%
84.3945%98.9258%
90.9766%99.9023%
100.0977%100.0000%
Planning notes, formulas, and examples

About the Coin Flip Probability Calculator

The Coin Flip Probability Calculator computes exact probabilities for coin-flip experiments with a customizable coin bias. It is built around the binomial model, so it can answer questions like "What is the chance of exactly k heads?" as well as cumulative questions such as "What is the chance of at least k heads?" It is a simple way to turn repeated coin flips into a real probability model instead of a guess.

Enter the number of flips, the desired outcome count, and a bias value to view exact probabilities, a simulated sequence, and streak analysis. That makes it useful for classroom probability, informal games, and quick checks of random-looking sequences.

The fairness test checks whether the observed results fit a fair coin using a chi-squared approach. You can also explore how likely streaks are, which is helpful because humans tend to underestimate runs of the same outcome. It is a handy way to separate random variation from a real bias.

When This Page Helps

Use this calculator for games, teaching, fairness checks, and binomial probability experiments. It combines exact binomial results with simulations, streak estimates, and a fairness test, which makes it useful both for classroom examples and for checking whether a result is actually unusual. It is especially helpful when you want to compare intuition about streaks with the actual binomial odds.

How to Use the Inputs

  1. Enter the total number of coin flips (n).
  2. Enter the desired number of heads (k).
  3. Adjust the coin bias (0.5 = fair, >0.5 = biased toward heads).
  4. View exact and cumulative probabilities.
  5. Click "Simulate Flips" to generate a random sequence.
  6. Check the streak probability table for expected run lengths.
Formula used
P(X = k) = C(n,k) ร— p^k ร— (1-p)^(n-k). Where: C(n,k) = n! / (k! ร— (n-k)!). Expected Heads = n ร— p. Variance = n ร— p ร— (1-p). Streak of m heads probability โ‰ˆ 1 - (1 - p^m)^(n-m+1) (approximation).

Example Calculation

Result: P(X = 7) = 11.72%, P(X โ‰ฅ 7) = 17.19%

With 10 fair coin flips, P(exactly 7 heads) = C(10,7) ร— 0.5^10 = 120/1024 = 11.72%. P(at least 7 heads) = P(7) + P(8) + P(9) + P(10) = 17.19%.

Tips & Best Practices

  • P(at least 1 head in n flips) = 1 - (1-p)^n. For a fair coin: 1 - 0.5^n.
  • The most likely number of heads in n fair flips is n/2, but actual results vary with standard deviation โˆš(n/4).
  • To fairly decide between 2 people with a biased coin: flip twice. HT = person A, TH = person B, HH or TT = reflip (von Neumann trick).
  • In statistics, a p-value < 0.05 from coin flip data suggests the coin is unfair (reject null hypothesis).
  • Streak probabilities are often underestimated โ€” a streak of 7+ heads is expected in just 200 fair flips.

The Mathematics of Coin Flipping

The binomial coefficient C(n,k) counts the number of ways to arrange k heads among n flips. For n = 10, k = 5: C(10,5) = 252 arrangements, each with probability 0.5^10 = 0.00098. So P(exactly 5 heads) = 252 ร— 0.00098 = 24.6%.

The distribution is symmetric for fair coins and skews toward the higher-probability outcome for biased coins. The central limit theorem says that for large n, the distribution of heads approaches a normal distribution.

Streaks and the Psychology of Randomness

Humans consistently underestimate streak lengths in random sequences. In 200 fair coin flips, the expected longest streak of either outcome is about 7-8 flips. Research shows people expect random sequences to alternate more than they actually do.

This misperception drives the "hot hand" debate in sports: are shooting streaks real or statistical artifacts? The answer: some streaks exceed random expectation, but many are within normal variance.

Von Neumann's Fair Coin From a Biased One

Given a biased coin with P(H) = p and P(T) = 1-p: flip twice. If HT, output heads. If TH, output tails. If HH or TT, discard and reflip. P(HT) = p(1-p) = P(TH), so the outputs are perfectly fair regardless of p. Expected flips per output = 2/(2p(1-p)).

Sources & Methodology

Last updated:

Frequently Asked Questions

  • With a fair coin, the probability is 0.5^10, or about 0.0977%. That is rare for one specific run of 10 flips, but streaks become much less surprising when you look at a long sequence of flips instead of a single segment. In 1,000 flips, a streak of that length is no longer unusual.