The Binomial Distribution Calculator computes P(X=k), cumulative distribution, mean, variance, and standard deviation from n trials, probability p, and success count k. The foundational discrete probability distribution for sequences of independent yes/no trials with a constant success probability.
0
5
2.5
1.5811
-1.2649
0
5
2.5
1.5811
-1.2649
Quality control engineers testing whether a manufacturing process produces an acceptable defect rate, A/B testing analysts measuring whether a new landing page has a higher conversion rate, epidemiologists tracking disease transmission rates — all are working with the binomial distribution, whether they name it or not. The binomial distribution calculator computes all key statistics for any binomial scenario from three parameters: trials, probability, and success count.
The probability of exactly k successes in n independent trials, each with success probability p:
P(X = k) = C(n, k) × p^k × (1 − p)^(n−k)
where C(n, k) = n! / (k!(n−k)!) is the binomial coefficient (ways to choose k positions from n for the successes). Three key statistics:
For a quality control scenario: testing 20 items, each with 5% defect rate (p=0.05). P(exactly 2 defects) = C(20,2) × 0.05² × 0.95¹⁸ = 190 × 0.0025 × 0.3972 = 0.1887 ≈ 18.9%. Mean defects = 20 × 0.05 = 1.0. Use this online calculator for any n, k, and p combination. The binomial probability calculator provides an alternative interface focusing on probability comparisons.
Most practical binomial questions involve cumulative probabilities rather than exact counts:
Practical example: a pharmaceutical trial with 100 patients, each having 70% probability of responding to a drug. What is the probability that at least 65 respond? P(X ≥ 65) = 1 − P(X ≤ 64). With n=100, p=0.70: mean = 70, σ = 4.58; using the normal approximation, P(X ≥ 65) ≈ P(Z ≥ (64.5−70)/4.58) ≈ P(Z ≥ −1.20) ≈ 0.885 = 88.5%.
Web conversion rate testing is a classic binomial application: each visitor either converts (success) or does not (failure), with some underlying conversion rate p. Testing whether a new variant's conversion rate p_B differs from control rate p_A:
The Bayesian updating calculator offers an alternative Bayesian approach to A/B testing. The probability distribution calculators cover the complete discrete distribution toolkit.
For large n with p not too close to 0 or 1, the binomial distribution is well approximated by a normal distribution with the same mean and variance. The rule of thumb for when the approximation is valid: n×p ≥ 5 AND n×(1−p) ≥ 5. With continuity correction: P(X ≤ k) ≈ P(Z ≤ (k + 0.5 − np) / √(np(1−p))). The continuity correction (+0.5) accounts for the approximation of a discrete distribution by a continuous one and significantly improves accuracy for moderate n. The Poisson approximation (λ = np) works well when n is large and p is small (rare events): n ≥ 20 and p ≤ 0.05.
The PMF P(X = k) is the exact probability of getting exactly k successes in n trials. For instance, if PMF = 0.1172 for k=3, n=10, p=0.5, there is an 11.72% chance of getting exactly 3 heads in 10 coin flips. The mean tells you the expected number of successes on average. The variance and standard deviation measure how much the actual number of successes typically deviates from the mean. A higher variance means more variability in outcomes. Note: the PMF returns 0 if k > n, since you cannot have more successes than trials.
Inputs
Results
The probability of getting exactly 3 heads in 10 fair coin flips is about 11.72%. The expected number of heads is 5 (half of 10), with a standard deviation of about 1.58.
Inputs
Results
With a 5% defect rate, the probability of finding exactly 2 defective items in a batch of 20 is about 18.87%. On average, you expect 1 defect per batch.
How helpful was this calculator?
5.0/5 (1 rating)