Math

Binomial Probability Calculator

Calculate exact and cumulative binomial probabilities, expected value, and variance. See the full distribution and step-by-step formula.

Quick Answer

The binomial probability formula is P(X=k) = C(n,k) × pk × (1-p)n-k, where n is the number of trials, k is the number of successes, and p is the probability of success on each trial.

Enter Parameters

Specify the number of trials, successes, and probability of success.

Results

Exact Probability P(X = 3)
0.117188
= 11.7188%
P(X ≤ 3)
0.171875
P(X ≥ 3)
0.945313
C(10,3)
120
Expected Value E(X)
5.0000
Variance
2.5000
Std Deviation
1.5811

Probability Distribution

P(X=0) = 0.0010
P(X=1) = 0.0098
P(X=2) = 0.0439
P(X=3) = 0.1172
P(X=4) = 0.2051
P(X=5) = 0.2461
P(X=6) = 0.2051
P(X=7) = 0.1172
P(X=8) = 0.0439
P(X=9) = 0.0098
P(X=10) = 0.0010
0510

About This Tool

The Binomial Probability Calculator computes the probability of getting exactly k successes in n independent trials, where each trial has the same probability p of success. It also provides cumulative probabilities, expected value, variance, standard deviation, and a visual probability distribution. Whether you are a student learning probability theory or a professional running quality assurance tests, this calculator gives you instant, accurate results with a transparent step-by-step breakdown.

Understanding the Binomial Distribution

The binomial distribution models the number of successes in a fixed number of independent Bernoulli trials. Each trial has exactly two outcomes: success (with probability p) and failure (with probability 1-p). The key assumptions are: (1) the number of trials n is fixed, (2) each trial is independent, (3) the probability p is the same for every trial, and (4) each trial results in success or failure. When these conditions hold, the probability of exactly k successes is given by the binomial probability mass function: P(X=k) = C(n,k) × p^k × (1-p)^(n-k), where C(n,k) is the binomial coefficient "n choose k."

Cumulative Probabilities Explained

In addition to the exact probability P(X=k), this calculator provides two cumulative probabilities. P(X ≤ k) is the probability of getting at most k successes and is the sum of P(X=0) + P(X=1) + ... + P(X=k). This is the cumulative distribution function (CDF). P(X ≥ k) is the probability of getting at least k successes, computed as 1 - P(X ≤ k-1) or equivalently as the sum from k to n. These cumulative values are essential for answering practical questions like "what is the probability of getting 3 or fewer defects?" or "what is the chance of at least 7 correct answers?"

Expected Value and Variance

The expected value (mean) of a binomial distribution is E(X) = n × p, which represents the average number of successes you would expect over many repetitions. The variance is Var(X) = n × p × (1-p), measuring the spread of the distribution. The standard deviation is the square root of the variance and shares the same units as the original data. Together, these parameters fully characterize the shape and location of the binomial distribution. The distribution is symmetric when p = 0.5 and becomes increasingly skewed as p moves toward 0 or 1.

Real-World Applications

The binomial distribution appears throughout science, business, and everyday life. In quality control, it models the number of defective items in a batch. In medicine, it describes the number of patients who respond to a treatment in a clinical trial. In marketing, it models how many recipients click an email link. In genetics, it calculates the probability of inheriting specific traits. In sports analytics, it estimates the probability of a basketball player making a certain number of free throws. Any scenario with a fixed number of independent yes/no trials follows the binomial distribution.

When to Use Approximations

For large n, computing binomial probabilities directly can involve very large factorials. In such cases, approximations are useful. When n is large and p is not too close to 0 or 1, the normal distribution with mean np and variance np(1-p) provides a good approximation (using continuity correction). When n is large and p is small, the Poisson distribution with lambda = np is a convenient alternative. This calculator handles exact computation for n up to 170, which covers virtually all practical scenarios without needing approximations.

Connection to Other Distributions

The binomial distribution is closely related to several other probability distributions. A single binomial trial (n=1) is a Bernoulli distribution. The negative binomial distribution counts the number of trials needed to achieve a fixed number of successes. The hypergeometric distribution is similar but applies when sampling without replacement. The multinomial distribution generalizes the binomial to more than two outcome categories. Understanding these connections helps you choose the right model for your specific problem and recognize when binomial assumptions may not apply.

Frequently Asked Questions

What is the binomial probability formula?
The binomial probability formula is P(X=k) = C(n,k) * p^k * (1-p)^(n-k), where C(n,k) = n!/(k!(n-k)!) is the binomial coefficient, n is the number of trials, k is the desired number of successes, and p is the probability of success on each trial.
What is the difference between P(X=k), P(X<=k), and P(X>=k)?
P(X=k) is the exact probability of getting exactly k successes. P(X<=k) is the cumulative probability of k or fewer successes (CDF). P(X>=k) is the probability of k or more successes. Use cumulative probabilities when you need 'at least' or 'at most' answers.
When can I use the binomial distribution?
Use it when you have a fixed number of independent trials, each with the same probability of success, and you're counting the number of successes. Classic examples include coin flips, defect rates in manufacturing, and pass/fail testing. If trials are not independent or probability changes, other distributions may be more appropriate.
What happens when n is very large?
For very large n, exact binomial calculations can become computationally intensive. The normal approximation (with continuity correction) works well when both np >= 5 and n(1-p) >= 5. The Poisson approximation is better when p is very small. This calculator handles exact computation for n up to 170.
Can the probability p change between trials?
No. The standard binomial distribution requires that p remains constant across all trials. If the probability changes between trials, you have a non-homogeneous Bernoulli process, which requires different formulas. For varying probabilities, consider the Poisson binomial distribution instead.
How do I calculate 'at least one success'?
The probability of at least one success is P(X >= 1) = 1 - P(X = 0). For P(X = 0), use the formula: (1-p)^n. For example, with 10 trials at p = 0.3, P(at least 1) = 1 - 0.7^10 = 1 - 0.0282 = 0.9718 or about 97.2%.

Was this tool helpful?