01
Binomial probability formula
P(X = k) = C(n, k) × p^k × (1 − p)^(n − k)
mean = n × p, variance = n × p × (1 − p)
C(n, k) is the number of ways to choose k of the n trials: n! ÷ (k! × (n − k)!). Cumulative probabilities add the formula over every count in the range.
02
Worked example
A fair coin is tossed 10 times. What is the chance of exactly 3 heads?
P(X = 3) = C(10, 3) × 0.5³ × 0.5⁷ = 120 ÷ 1024 = 0.1172
| Question | Probability |
|---|---|
| Exactly 3 heads | 0.1172 |
| At most 3 heads | 0.1719 |
| At least 3 heads | 0.9453 |
A second case: with a 10% defect rate, the chance of exactly 2 defects in a batch of 20 is 0.2852, and of 2 or fewer is 0.6769.
03
When the binomial distribution applies
- A fixed number of trials, decided in advance.
- Each trial has two outcomes: success or failure.
- The chance of success is the same on every trial.
- Trials are independent. Sampling without replacement from a small group breaks this; use the hypergeometric distribution there.
04
Common mistakes with binomial probabilities
- “At least 3” is not “more than 3”. For 10 fair tosses P(X ≥ 3) = 0.9453 but P(X > 3) = 0.8281.
- The normal approximation when n × p is small. For 2 or fewer defects among 20 items at a 10% rate the exact answer is 0.6769; the normal curve gives 0.5000 without a continuity correction and 0.6453 with one.
- Sampling without replacement from a small group. Drawing 5 items from 20, of which 6 are defective, the chance of exactly 2 defectives is 0.3522 (hypergeometric); the binomial with p = 0.3 gives 0.3087.
Trust
How this page is checked
- The calculation runs on code with automated tests against worked reference values. Every number in the examples on this page was produced by that same code, not typed by hand.
- The formulas and conventions used are stated on the page, so you can reproduce the result yourself or compare it with your own software.
- Last reviewed by the Sciloom team, Zebra Nine Studio Inc. It is a tool for research and teaching, not a substitute for a statistician, a validated lab method or medical advice.
Cite this page
Sciloom. (2026). Binomial distribution calculator. Zebra Nine Studio Inc. https://sciloom.si/binomial-distribution-calculator
Frequently asked questions
How do I calculate a binomial probability?
Multiply the number of ways to get k successes, C(n, k), by p to the power k and (1 − p) to the power n − k. For 3 heads in 10 fair tosses that is 120 × 0.5¹⁰ = 0.1172.
What is the difference between "at most" and "fewer than"?
At most k includes k itself: P(X ≤ k). Fewer than k does not: P(X < k), which equals P(X ≤ k − 1).
When can I use the normal approximation?
A common rule is when both n × p and n × (1 − p) are at least 10. This calculator computes the exact value, so the approximation is not needed.
Binomial or Poisson?
Use the binomial when you know the number of trials and the chance on each. Use the Poisson for counts of events in time or space with a known average rate and no fixed number of trials.