Binomial Distribution Calculator

Calculate binomial probabilities, cumulative distribution, mean, variance, and confidence intervals for any number of trials and success probability.

Maximum 1000
Result Probability
0.24609375
24.6094%
P(X = k)
0.24609375
Exactly 5 successes
P(X ≤ k)
0.62304688
At most 5
P(X ≥ k)
0.62304687
At least 5
Mean (μ)
5.0000
np = 10 × 0.5
Std Deviation (σ)
1.5811
√(np(1−p)) = √(2.5000)
95% CI for p̂
0.1901 – 0.8099
p̂ = 0.5000, SE = 0.1581
Skewness
0.0000
Approx. symmetric

Probability Distribution

kP(X=k)P(X≤k)Distribution
00.0009770.000977
10.0097660.010742
20.0439450.054688
30.1171880.171875
40.2050780.376953
50.2460940.623047
60.2050780.828125
70.1171880.945313
80.0439450.989258
90.0097660.999023
100.0009771.000000
Planning notes, formulas, and examples

About the Binomial Distribution Calculator

The binomial distribution calculator computes exact and cumulative probabilities for a fixed number of independent Bernoulli trials, each with the same success probability. Whether you need P(X = k), P(X ≤ k), or P(X ≥ k), This calculator gives the result directly.

The distribution fits yes/no situations such as coin flips, pass/fail inspections, free throws, survey responses, and medication response rates. Its two parameters, n and p, fully determine the probability model.

Beyond the probability itself, the calculator also shows the full distribution table, the mean, the standard deviation, skewness, and an approximate confidence interval for the underlying proportion.

When This Page Helps

Binomial probability is the right model whenever you count successes in a fixed number of independent trials. That covers a lot of common work: product defect checks, election polling, A/B tests, and basic clinical or lab-style yes/no outcomes.

Putting the exact probability, the full distribution, and summary statistics on the same page makes it easier to see both the single event you care about and the wider shape of the trial outcomes.

How to Use the Inputs

  1. Enter the number of trials (n) — e.g., 20 coin flips.
  2. Enter the probability of success (p) for each trial — e.g., 0.5 for a fair coin.
  3. Enter the number of successes (k) you want to evaluate.
  4. Select the probability type: exactly k, at most k, at least k, or more than k.
  5. Optionally adjust the confidence level for the proportion confidence interval.
  6. Review the probability result, distribution statistics, and full distribution table.
Formula used
P(X = k) = C(n, k) × p^k × (1−p)^(n−k). Mean μ = np. Variance σ² = np(1−p). CDF: P(X ≤ k) = Σ P(X = i) for i = 0 to k.

Example Calculation

Result: P(X = 5) ≈ 0.2461 (24.61%)

With 10 fair coin flips, the probability of exactly 5 heads is C(10,5) × 0.5^10 = 252/1024 ≈ 24.61%.

Tips & Best Practices

  • For large n and moderate p, the binomial approaches a normal distribution with μ = np and σ = √(np(1−p)).
  • When p is very small and n is very large, the Poisson distribution is a good approximation with λ = np.
  • The mode of the binomial is near ⌊(n+1)p⌋ — the most likely number of successes.
  • For quality control, use P(X ≥ k) to find the probability of k or more defects.
  • The confidence interval for p uses the normal approximation — for small n, consider the exact Clopper-Pearson interval.
  • Independence is a key assumption — if trials influence each other, consider the hypergeometric distribution.

When to Use Binomial vs. Other Distributions

Use binomial when trials are independent with fixed p. Use hypergeometric for sampling without replacement. Use Poisson when n is very large and p is very small (rare events). Use negative binomial when you're counting trials until a fixed number of successes.

Normal Approximation Rule of Thumb

The binomial can be approximated by a normal distribution when both np ≥ 5 and n(1−p) ≥ 5. Apply a continuity correction: P(X ≤ k) ≈ Φ((k + 0.5 − np) / √(np(1−p))). This is useful for quick calculations when exact computation is impractical.

Applications in Quality Control

In acceptance sampling, a manufacturer tests a sample of n items. If the number of defects k is below a threshold c (acceptance number), the lot is accepted. The operating characteristic curve plots the acceptance probability vs. true defect rate — this is directly computed from the binomial CDF.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Fixed number of trials (n), exactly two outcomes per trial, constant probability (p), and independent trials. If any of those assumptions fail, another distribution is usually a better fit.