The formula behind coin flip probability
Each flip of a fair coin has two equally likely outcomes, so a sequence of n flips has 2n equally likely sequences. Ten flips give 1,024 possible sequences. To find the chance of exactly k heads, count how many of those sequences contain exactly k heads and divide by the total.
That count is the binomial coefficient, written C(n, k) and read "n choose k". The full formula is P = C(n, k) / 2^n. For exactly 5 heads in 10 flips, C(10, 5) is 252, so the probability is 252 / 1,024, or about 24.6%. "At least" and "at most" simply add up the exact probabilities for every count in the range. The calculator above does this precisely for up to 1,000 flips.
Worked examples
| Question | Probability |
|---|---|
| Exactly 5 heads in 10 flips | 24.6% (about 1 in 4) |
| At least 8 heads in 10 flips | 5.5% (about 1 in 18) |
| Exactly 50 heads in 100 flips | 7.96% (about 1 in 12.6) |
| Between 40 and 60 heads in 100 flips | 96.5% |
| At least 60 heads in 100 flips | 2.8% (about 1 in 35) |
| 10 heads in 10 flips | 0.098% (1 in 1,024) |
Notice the 50 heads in 100 flips result. Fifty is the most likely single count, yet you will hit it exactly less than one time in twelve. What you can count on is landing close to 50, which is the law of large numbers in action: the more you flip, the closer the share of heads gets to half, even though the exact count wanders.
Streaks are more common than you think
Most people badly underestimate streaks. In 100 flips, there is about a 55% chance of seeing at least 6 heads in a row somewhere, and about an 81% chance of a run of 6 or more of the same side. Even 7 in a row of either side turns up more often than not. When someone shows you a "suspicious" streak in a long run of coin flips, the streak calculator usually reveals it is perfectly ordinary.
This is why the gambler's fallacy is so persuasive. After five tails, heads feels "due". It is not. The coin has no memory, and the next flip is 50/50 every time. The streak was likely all along; it just happened to show up now.
Using this in a probability lesson
The three tools on this page work as a short lesson on their own. Ask students to guess the chance of exactly 50 heads in 100 flips; most will say something like 50%. Calculate it, then use the simulator to run 100 flips a few times and record the head counts. Students see for themselves that results cluster near 50 without often hitting it exactly. Repeat with the streak calculator and ask whether a run of 6 heads is "lucky". For a quicker hands on version, the yes or no coin flip keeps a live tally, and the coin flip simulator can flip 100 times at once. To compare experimental and theoretical probability for coins, dice and a spinner in one live table, with a printable worksheet, use the experimental probability simulator.