Worked examples
Grade 11: flip a coin 10 times and get exactly 3 heads
10C3 × (1/2)^10 = 15/128 ≈ 11.7%
Grade 11: at most 2 successes in 5 trials with p = 0.3
about 83.7%
Grade 11: roll a die 4 times and get a multiple of 3 at least twice
about 40.7%
How to use it
- Choose the shape of the probability (exactly / at most / at least / range).
- n is the number of trials, p the success probability each time and k the number of successes; for a range also enter the end value k2.
- Read the probability, mean and standard deviation.
What this calculates
The binomial distribution describes the number of successes X when a trial with success probability p is repeated n times independently. The probability of exactly k successes is nCk × p^k × (1−p)^(n−k); the mean is np and the variance np(1−p). It fits yes-or-no trials such as coin flips, defective items or correct answers. It is part of the probability and statistics unit of upper secondary school.
The formulas
- Exactly k P(X = k) = nCk × p^k × (1−p)^(n−k)
- At most k P(X ≤ k) = P(X=0) + … + P(X=k)
- Mean E(X) = np
- Variance and standard deviation V(X) = np(1−p), σ(X) = √(np(1−p))
Reference table
| Input | Probability | |
|---|---|---|
| n=10, p=1/2 | 5 | 24.61% |
| n=10, p=0.3 | 3 | 26.68% |
| n=5, p=1/6 | 1 | 40.19% |
| n=20, p=0.1 | 2 | 28.52% |
| n=6, p=1/2 | 3 | 31.25% |
Good to know
- For nCk on its own, use the Permutation and Combination Calculator.
- For the mean and standard deviation of data, use the Mean, Median and SD Calculator.
Sources
Frequently asked questions
When do I use the binomial distribution?
When each trial has only success or failure, the success probability is the same every time and the trials do not affect each other.
Is "at most k" different from "fewer than k"?
Yes. "At most" here includes k; for "fewer than k" use at most k−1.
Can p be 0 or 1?
Yes. p = 0 always fails and p = 1 always succeeds, so the probability is 0 or 1.
What if n is very large?
This calculator gives exact fractions up to n = 200. For larger n approximate with a normal distribution and use the z-score calculator.
What does the mean np tell me?
It is the typical number of successes over many repetitions, not a promise that this exact count happens each time.
Are my numbers stored?
No. Everything is calculated in your browser and nothing is sent to a server or saved.
Last updated 2026-12-02 · For reference only; not investment, tax or legal advice.