Free online formula calculators

Binomial Probability Calculator

Find the probability of getting exactly, at most, or at least k successes in n independent trials that each succeed with probability p.

Binomial Probability Calculator
Result
P(X = k)0.174560
P(X ≤ k)0.804208
P(X < k)0.629648
P(X ≥ k)0.370352
P(X > k)0.195792
Mean (expected successes)4
Standard deviation1.7889

Link to this calculation

Formula

P(X = k) = C(n, k) × pk × (1 − p)n − k
Mean = np,  σ = √( np(1 − p) )
SymbolMeaning
nNumber of trials
kNumber of successes
pProbability of success on each trial
C(n, k)Number of combinations of k from n

How to Use This Calculator

  1. Enter the Number of trials (n).
  2. Enter the Number of successes (k).
  3. Enter the Probability of success (p). A number from 0 to 1.
  4. Press Calculate. Results also update automatically as you type.

Worked Example

Using the values pre-filled in the calculator above:

Inputs
Number of trials (n)20
Number of successes (k)5
Probability of success (p)0.2
Results
P(X = k)0.174560
P(X ≤ k)0.804208
P(X < k)0.629648
P(X ≥ k)0.370352
P(X > k)0.195792
Mean (expected successes)4
Standard deviation1.7889

About This Calculation

The binomial distribution describes the number of successes in a fixed number of independent trials, where each trial has only two outcomes and the same probability of success. Typical examples are the number of heads in 10 coin flips, defective items in a batch of 50, or customers out of 20 who click an ad that converts 20% of the time.

Four conditions must hold for the model to apply: a fixed number of trials, two possible outcomes per trial, a constant success probability, and independence between trials. Sampling without replacement from a small group breaks independence; in that case the hypergeometric distribution is more accurate, although the binomial is a good approximation when the sample is under about 10% of the population.

Pay attention to which probability you need. "Exactly 5" is P(X = 5), "at most 5" includes 0 through 5, and "at least 5" includes 5 through n. Mixing up "at least" and "more than" is a common source of off-by-one errors. The mean np tells you the long-run average number of successes, and the standard deviation shows how much the count typically varies from run to run. For large n the distribution becomes close to normal, which is why the normal distribution is often used as an approximation.

Frequently Asked Questions

What is the probability of exactly 5 heads in 10 coin flips?
C(10, 5) × 0.510 = 252 ÷ 1024 ≈ 0.2461, or about 24.6%.
What is the difference between P(X ≥ k) and P(X > k)?
P(X ≥ k) includes k itself while P(X > k) starts at k + 1. They differ by exactly P(X = k).
When can I use the normal approximation?
A common rule of thumb is when both np and n(1 − p) are at least 10. Exact binomial calculation, as done here, is always preferable when it is available.

Category: Statistics & Probability. Found a problem with this calculator? Let us know.