The binomial distribution counts successes in a fixed number of independent yes/no trials that all have the same probability of success: heads in 10 coin flips, defective parts in a batch of 50, patients who respond to a treatment. Each trial is a Bernoulli trial; adding up n of them gives a binomial random variable X ~ B(n, p).
Questions usually come in one of five forms: exactly k successes, at most k (k or fewer), at least k (k or more), fewer than k, or more than k. The calculator gives all five, highlights the outcomes you asked about on the chart, and also reports the mean, variance and standard deviation of the distribution.
How to use the Binomial Distribution Calculator
- Number of trials (n)
- Probability of success on each trial (p)
- Number of successes (k)
- Probability of
Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.
How it works
P(X = k) multiplies the number of ways to choose which k trials succeed, C(n, k), by the probability of one such sequence. Cumulative probabilities add these terms; “at least k” is 1 − P(X ≤ k − 1).
Worked example
A fair coin is flipped 10 times. The probability of at least 6 heads is P(X ≥ 6) = P(6) + P(7) + P(8) + P(9) + P(10) = (210 + 120 + 45 + 10 + 1) / 1024 ≈ 37.7%.
Formula
P(X = k) = C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ · mean = n·p · variance = n·p·(1 − p)
Worked example
Inputs: Number of trials (n): 10; Probability of success on each trial (p): 50 %; Number of successes (k): 6; Probability of: At least k – P(X ≥ k).
Results: Requested probability = 37.6953 %; P(X = k) = 20.5078 %; P(X ≤ k) = 82.8125 %; P(X ≥ k) = 37.6953 %; P(X < k) = 62.3047 %; P(X > k) = 17.1875 %.
Key terms
- Bernoulli trial
- A single experiment with two outcomes, success or failure.
- Success probability (p)
- The chance of success on each trial.
- Cumulative probability
- The probability of k or fewer successes, P(X ≤ k).
Frequently asked questions
When can I use the binomial distribution?
When there is a fixed number of trials, each trial has two outcomes, the trials are independent and the success probability stays the same.
What is the probability of exactly 5 heads in 10 flips?
C(10, 5) × 0.5¹⁰ = 252/1024 ≈ 24.6%.
How do I find "at least" probabilities?
P(X ≥ k) = 1 − P(X ≤ k − 1). The calculator does this for you.
What are the mean and variance?
Mean n·p and variance n·p·(1 − p).
When is the normal approximation good enough?
When n·p and n·(1 − p) are both at least about 10. Otherwise use the exact binomial values shown here.
What if sampling is without replacement from a small population?
Use the hypergeometric distribution instead.