Binomial Distribution Calculator

This binomial distribution calculator gives the probability of exactly, at most or at least k successes in n trials, plus the mean, standard deviation and the full distribution table.

Example: Find: at most k successes: P(X ≤ k) · Number of trials n 10 · Probability of success p 0.5 · Number of successes k 3 → Probability: P(X ≤ 3) = 0.171875 (17.19%). Source: NIST/SEMATECH e-Handbook of Statistical Methods – Binomial Distribution. Updated: .

whole number from 1 to 100,000
between 0 and 1, e.g. 0.25 for 25%
My ToolboxYour inputs are saved in this browser only.

Result

Probability
P(X ≤ 3) = 0.171875 (17.19%)
Key figures
  • Mean μ = n · p = 5
  • Variance σ² = n · p · (1 − p) = 2.5
  • Standard deviation σ = 1.5811
  • Most likely value (mode): 5
  • On average this happens in about 1 of 6 series of trials.
Distribution table
kP(X = k)P(X ≤ k)P(X ≥ k)
00.000976560.000976561
10.00976560.0107420.99902
20.0439450.0546870.98926
30.117190.171870.94531
40.205080.376950.82813
50.246090.623050.62305
60.205080.828130.37695
70.117190.945310.17187
80.0439450.989260.054687
90.00976560.999020.010742
100.0009765610.00097656

How it is calculated

In 10 coin flips, the chance of at most 3 heads is 17.19%. The binomial distribution describes how often an event with probability p occurs in n independent trials.

How it is calculated

For exactly k successes, P(X = k) = C(n, k) · pk · (1 − p)n − k. For “at most”, “at least” and “between”, the calculator adds the matching single probabilities directly instead of using 1 − P, so even very small probabilities stay accurate. Mean and variance are μ = n · p and σ² = n · p · (1 − p).

Good to know

Frequently asked questions

How do you calculate a binomial distribution?

With P(X = k) = C(n, k) · p^k · (1 − p)^(n − k), where C(n, k) is the binomial coefficient “n choose k”. For ranges, add the single probabilities.

What do at most and at least mean?

At most k means 0 to k successes, P(X ≤ k). At least k means k to n successes, P(X ≥ k). More than k means P(X > k) = P(X ≥ k + 1).

What are the mean and standard deviation?

The mean is μ = n · p and the standard deviation σ = √(n · p · (1 − p)). With 100 trials and p = 0.3, μ = 30 and σ ≈ 4.58.

When can you use the binomial distribution?

When there are n identical, independent trials with only two outcomes each and a constant success probability p, such as coin flips, a die (six or not) or drawing with replacement.

Sources and legal basis

As of: · Editorial policy

Related tools