Binomial Distribution Calculator
Calculate exact and cumulative binomial probabilities
Binomial Distribution Calculator
The binomial distribution models the number of successes in a fixed number of independent trials, where each trial has the same probability of success. It answers questions like "what is the probability of getting exactly 3 heads in 10 coin flips?" or "what is the chance that at most 2 out of 15 parts are defective?"
This calculator computes exact and cumulative binomial probabilities instantly without requiring statistical tables or programming.
How to Use This Calculator
- Enter n â the total number of independent trials (e.g., 10 coin flips, 20 quality checks).
- Enter k â the number of successes you are interested in (must be between 0 and n).
- Enter p â the probability of success on a single trial (between 0 and 1).
- Select mode â choose "exactly k", "at most k" (cumulative CDF), or "at least k" (survival function).
Binomial Probability Formula
The probability mass function is:
P(X = k) = C(n, k) × pk × (1-p)n-k
where C(n, k) = n! / (k! × (n-k)!) is the binomial coefficient (number of ways to choose k from n).
The expected value (mean) is E[X] = n × p, and the standard deviation is σ = √(n × p × (1-p)).
Three Probability Modes Explained
Exactly k: P(X = k) â the probability of getting precisely k successes.
At most k: P(X ≤ k) = ∑ P(X = i) for i = 0 to k â the cumulative distribution function (CDF).
At least k: P(X ≥ k) = 1 - P(X ≤ k-1) â the complement of the CDF, also called the survival function.
Real-World Examples
Quality control: A factory has a 2% defect rate. A batch has 50 items. What is the probability of finding exactly 2 defective items? n=50, k=2, p=0.02 â P â 0.184 (18.4%).
Clinical trial: A treatment has 40% response rate. 10 patients are treated. What is the probability that at least 6 respond? n=10, k=6, p=0.4, mode="at least" â P â 0.166 (16.6%).
Marketing: An email campaign has a 30% open rate. 20 emails are sent. What is the probability that at most 5 are opened? n=20, k=5, p=0.3, mode="at most" â P â 0.416.
Conditions for Binomial Distribution
- Fixed number of trials n.
- Each trial is independent.
- Only two outcomes: success or failure.
- Constant probability p on each trial.