What is a coin flip probability calculator?
A coin flip probability calculator works out how likely a particular number of heads is when you toss a coin several times. Each toss is an independent trial with two possible outcomes — heads or tails — so a sequence of flips follows the binomial distribution. The calculator answers questions such as “What is the chance of getting exactly 5 heads in 10 flips?” or “What is the chance of at least 2 heads in 3 flips?”.
It works for both fair and biased coins. You set the probability of heads to any value between 0 and 1, so the same tool also covers loaded coins, weighted dice with two outcomes, and any other yes/no experiment repeated a fixed number of times.
How does the calculator work?
You provide three inputs and choose what to calculate:
- Number of flips () — how many times the coin is tossed (an integer ).
- Number of heads () — the count of heads you are interested in (an integer with ).
- Probability of heads () — the chance of heads on a single toss, between 0 and 1 (0.5 for a fair coin).
The Calculate option selects one of three questions:
- Exactly k heads — the probability of getting precisely heads.
- At most k heads — the cumulative probability of getting or fewer heads.
- At least k heads — the cumulative probability of getting or more heads.
The result is shown as a probability between 0 and 1 (rounded to six decimal places) and also as a percentage.
Formulas
The probability of exactly heads in flips is the binomial probability mass function:
where the binomial coefficient is
The cumulative cases sum the individual terms:
Worked examples
-
Exactly 5 heads in 10 fair flips. With , , : , so (about 24.61%).
-
Exactly 1 head in 2 fair flips. With , , : , so (50%).
-
At least 2 heads in 3 fair flips. With , , : (50%).
Practical notes
- Setting with “at least” always returns 1, and with “at most” always returns 1, because every outcome satisfies the condition.
- For a biased coin, change . For example, , , gives .
- The binomial model assumes the flips are independent and that stays the same on every toss.
To explore related ideas, see the Bayes’ theorem calculator for updating probabilities with evidence, or the average calculator for summarising data.