Binomial Distribution Calculator
Test cases replayed : 4 of 4 match · Methodology · No outside source listed
Enter the number of trials, the probability of success on each trial and a number of successes.
Result
P(X = k), exactly k successes
P(X ≤ k), at most k
- P(X ≥ k), at least k
- P(X < k), fewer than k
- P(X > k), more than k
- Mean (n × p)
- Standard deviation √(n p (1 − p))
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Number of trials (n): enter 0 or more.
- Probability of success on each trial (0 to 1): enter a number from 0 to 1.
- Number of successes (k): enter 0 or more.
- Read the result: P(X = k), exactly k successes; the panel also shows P(X ≤ k), at most k, P(X ≥ k), at least k, P(X < k), fewer than k, P(X > k), more than k, Mean (n × p) and Standard deviation √(n p (1 − p)).
How this calculator works
P(X = k) = C(n, k) × p^k × (1 − p)^(n − k), where C(n, k) = n! ÷ (k! (n − k)!) is the number of ways to choose the k successes.
Cumulative probabilities add the exact terms: P(X ≤ k) = Σ P(X = i) for i = 0 to k, and P(X ≥ k) = 1 − P(X ≤ k − 1).
The binomial model needs a fixed number of independent trials, each with the same probability of success.
The formula
| Symbol | Meaning |
|---|---|
| Number of trials | |
| Probability of success on each trial (0 to 1) | |
| Number of successes | |
| P(X = k), exactly k successes | |
binompmf(k, n, p) | the probability of exactly k successes in n trials, each with success probability p. |
Worked example
| Number of trials (n) | 10 |
|---|---|
| Probability of success on each trial (0 to 1) | 0.5 |
| Number of successes (k) | 3 |
| P(X ≤ k), at most k | 0.1719 |
|---|---|
| P(X ≥ k), at least k | 0.9453 |
| P(X < k), fewer than k | 0.0547 |
| P(X > k), more than k | 0.8281 |
| Mean (n × p) | 5 |
| Standard deviation √(n p (1 − p)) | 1.5811 |
P(X = k), exactly k successes 0.1172
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the probability of exactly 3 heads in 10 coin flips?
C(10, 3) × 0.5¹⁰ = 120 ÷ 1,024 ≈ 0.1172.
What is the difference between P(X ≤ k) and P(X < k)?
P(X ≤ k) includes k itself; P(X < k) stops at k − 1. For 10 flips, P(X ≤ 3) = 0.1719 and P(X < 3) = 0.0547.