How this calculator works
- Step 1WaysC(n, k)How many orders give k successes.
- Step 2Each waypᵏ (1 − p)ⁿ⁻ᵏProbability of one such order.
- Step 3AddΣ over the rangeFor at most, at least and so on.
A binomial experiment repeats the same yes-or-no trial a fixed number of times, with the same chance of success each time. The count of successes then follows the binomial distribution.
The chance of exactly k successes is the number of ways to choose which trials succeed, times the chance of any one such pattern.
Worked example: OpenStax Example 4.13
- P(X ≤ 12)
Σ C(20, k) 0.41ᵏ 0.59²⁰⁻ᵏ for k = 0 to 12
- Mean20 × 0.418.20
- Standard deviation√(20 × 0.41 × 0.59)2.20
- P(X ≤ 12)0.9738
OpenStax gives 0.9738, μ = 8.2 and σ = 2.20.
Read the result
Even the most likely result is far from certain: exactly 5 heads in 10 tosses happens with probability 0.2461.
- n = 200, p = 0.0150.1011Probability of exactly 5 cases.
- Mean3.00Expected number of cases.
Assumptions and limits
- Fixed nThe number of trials is set in advance.
- Same pEvery trial has the same chance.
- IndependentOne result does not change the next.
- Two outcomesEach trial is success or failure.
Related probability tools
The binomial counts successes in a fixed number of tries. Rates over time use the Poisson instead.
For events at an average rate, use the Poisson distribution calculator. With many tries, the normal distribution calculator gives a close approximation, and the permutation and combination calculator counts the ways.
Common mistakes
Mistake: Using it for draws without replacement from a small group.
Instead: Use the hypergeometric distribution then.
Mistake: Mixing up at least and more than.
Instead: At least k includes k; more than k does not.
Checking the method
A separate script works every probability as an exact fraction with exact combinations and reproduces OpenStax Examples 4.13 to 4.15.
Read how we test our calculators, or browse more maths calculators.