Binomial Distribution Calculator
Enter n, p and k (plus an optional range a to b) to get exact, at most, less than, at least, more than and between probabilities with the worked formula.
P(X = k) = C(n, k) × p^k × (1 − p)^(n − k), where C(n, k) = n! ÷ (k!(n − k)!).
Use the Binomial Distribution Calculator
Parameters
Integer from 1 to 1000
Decimal between 0 and 1 (e.g., 0.3 for 30%)
Integer from 0 to n
Inclusive integers; leave blank to skip
Results
Worked Formula
Normal Approximation Check
—
Probability Mass Function
PMF Table
Results will appear here
Quick answer
P(X = k) = C(n, k) × p^k × (1 − p)^(n − k), where C(n, k) = n! ÷ (k!(n − k)!). Add these terms for cumulative answers: "at most k" is P(X ≤ k), "fewer than k" is P(X ≤ k − 1), "at least k" is 1 − P(X ≤ k − 1), and "between a and b" is P(X ≤ b) − P(X ≤ a − 1). The mean is np and the variance np(1 − p).
Examples
| n = 10, p = 0.5, k = 5 | Probability |
|---|---|
| P(X = 5) | 0.246094 |
| P(X ≤ 5) at most | 0.623047 |
| P(X < 5) fewer than | 0.376953 |
| P(X ≥ 5) at least | 0.623047 |
| P(3 ≤ X ≤ 7) between | 0.890625 |
Enter n, p, k and an optional range to get all six probabilities, mean, variance, the chart and the full table.
Summary
The binomial distribution models the number of successes in a fixed number of independent trials, each with the same probability of success. Enter the number of trials (n), the success probability (p) and the number of successes (k). The calculator returns the exact probability P(X=k) and every cumulative form: at most, fewer than, at least and more than. An optional range gives P(a ≤ X ≤ b). It also shows the mean, variance and standard deviation, the formula with your numbers, a normal-approximation check, a probability bar chart and the full PMF and CDF table.
How it works
- Enter the number of trials (n) — a positive integer up to 1000.
- Enter the probability of success per trial (p) — a value between 0 and 1.
- Enter the number of successes (k) you want to evaluate — an integer from 0 to n.
- Optionally enter a range a to b to get the probability that X falls between them, inclusive.
- The calculator computes P(X=k) = C(n,k) × p^k × (1−p)^(n−k) and sums these terms for the cumulative and between probabilities.
- The worked formula, mean, variance, normal-approximation check, chart and full table update instantly.
Use cases
- Quality control: find the probability of at most 2 defective items in a batch of 50.
- Clinical trials: estimate the chance of observing k or more responders out of n patients.
- A/B testing: calculate the likelihood of achieving a conversion rate result by chance.
- Genetics: compute inheritance probabilities across offspring.
- Exam prep: solve textbook binomial distribution problems with step-by-step formulas.
- Finance: model binary outcome scenarios (up/down moves in discrete-time models).
- Sports analytics: estimate win probabilities over a series of independent games.
- Customer surveys: find the probability of exactly k positive responses from n respondents.