Binomial Distribution Calculator
| x | P(X = x) | Cumulative P(X ≤ x) |
|---|
A binomial distribution calculator finds the probability of getting exactly x successes in n independent trials, each with the same success probability p. Enter your n, p, and x above, pick a probability type, and press Calculate. You get P(X = x), cumulative probabilities like P(X ≤ x) and P(X ≥ x), the binomial coefficient nCx, plus the mean and standard deviation, all with a full step-by-step solution.
This page also walks through the nCx formula, the manual method, and real worked examples using the exact numbers students search for, so you can check your homework by hand or let the tool do it in one click.
What Is the Binomial Distribution?
The binomial distribution describes how likely you are to get a set number of successes across a fixed number of trials, when each trial has only two outcomes. Those two outcomes are usually called success and failure: heads or tails, pass or fail, defective or not defective.
A situation fits the binomial model when all four of these are true:
- The number of trials (n) is fixed before you start.
- Each trial is independent, so one result does not change the next.
- Each trial has exactly two possible outcomes.
- The probability of success (p) stays the same on every trial.
Flip a coin 10 times and count the heads. Answer 20 multiple-choice questions by guessing and count the correct ones. Inspect 50 parts and count the defective ones. All three are binomial experiments. Once your problem passes those four checks, you can calculate binomial distribution probabilities with the formula below or with the tool on this page.
What Is the Binomial Distribution Formula?
The binomial probability formula gives the chance of exactly x successes in n trials:
P(X = x) = nCx × px × (1 − p)n − x
Here is what each part means:
- P(X = x) is the probability of getting exactly x successes.
- n is the total number of trials.
- x is the number of successes you want.
- p is the probability of success on a single trial.
- (1 − p) is the probability of failure on a single trial.
- nCx is the binomial coefficient, the number of ways to choose x successes from n trials.
The tricky part for most people is the nCx term, so the next section breaks it down completely.
What Is nCx? (Binomial Coefficient)
nCx, also written as C(n, x) or “n choose x”, counts how many different ways x successes can be arranged among n trials. It is the first piece of the binomial formula, and it is the reason the same probability applies whether your 3 heads land on tosses 1-2-3 or 8-9-10.
The nCx formula is:
nCx = n! / ( x! × (n − x)! )
The exclamation mark means factorial: 4! = 4 × 3 × 2 × 1 = 24. Let’s calculate a few nCx values by hand.
Example 1: Find nCx for n = 8, x = 3.
8C3 = 8! / (3! × 5!)
= 40320 / (6 × 120)
= 40320 / 720
= 56
Example 2: Find nCx for n = 5, x = 2.
5C2 = 5! / (2! × 3!)
= 120 / (2 × 6)
= 120 / 12
= 10
Two shortcuts worth memorizing: nC0 = 1 and nCn = 1, because there is exactly one way to choose none or all of the trials. Also, nCx = nC(n−x), so 10C3 and 10C7 both equal 120. This nCx value plugs straight into the binomial formula as its first term. If you only need the coefficient, our tool shows it inside every step-by-step solution.
Quick nCx Reference Table
Common binomial coefficients you’ll reuse across homework problems:
| n | x | nCx |
|---|---|---|
| 5 | 2 | 10 |
| 6 | 2 | 15 |
| 7 | 4 | 35 |
| 8 | 3 | 56 |
| 10 | 0 | 1 |
| 10 | 3 | 120 |
| 10 | 5 | 252 |
| 10 | 10 | 1 |
| 52 | 5 | 2,598,960 |
What Is P(X) in a Binomial Distribution?
P(X) is the probability that the random variable X takes a specific value. In binomial problems X counts the number of successes, so P(X = 3) reads as “the probability of getting exactly 3 successes.” You’ll also see cumulative forms: P(X ≤ 3) covers 0, 1, 2, or 3 successes, and P(X ≥ 3) covers 3 up to n. The calculator above handles all five: equal to, less than, less than or equal, greater than, and greater than or equal.
How Do You Calculate Binomial Distribution Step by Step?
Here is the manual method for any binomial probability. We’ll use a coin tossed 10 times and ask for exactly 6 heads.
Step 1: Identify n. The coin is tossed 10 times, so n = 10.
Step 2: Identify p. A fair coin has a 0.5 chance of heads, so p = 0.5.
Step 3: Identify x. We want exactly 6 heads, so x = 6.
Step 4: Find nCx. 10C6 = 10! / (6! × 4!) = 210.
Step 5: Plug into the formula.
P(X = 6) = 210 × (0.5)6 × (0.5)4
= 210 × 0.015625 × 0.0625
= 0.2051
So there is about a 20.5% chance of exactly 6 heads in 10 tosses. Type n = 10, p = 0.5, x = 6 into the calculator and you’ll get the same 0.2051, with every step shown.
Binomial Distribution Worked Examples
These are the exact problem types people paste into search. Each one is verified, so use them to check your own answers.
Example: Multiple-choice guessing (exactly 3 correct)
A quiz has 8 questions, each with 4 answer choices. A student guesses every answer. What is the probability of exactly 3 correct?
n = 8, p = 0.25, x = 3
8C3 = 56
P(X = 3) = 56 × (0.25)3 × (0.75)5
= 56 × 0.015625 × 0.2373
= 0.2076 (about 20.8%)
Example: n = 15, p = 0.25, find P(X ≥ 8)
This adds the probabilities of 8, 9, 10, all the way up to 15 successes.
P(X ≥ 8) = P(8) + P(9) + … + P(15)
= 0.0173 (about 1.73%)
Getting 8 or more correct out of 15 by pure guessing is rare, which is exactly why P(X ≥ 8) comes out so small.
Example: binomial(18, 0.45), find P(X ≥ 10)
n = 18, p = 0.45, x = 10
P(X ≥ 10) = P(10) + P(11) + … + P(18)
= 0.2527 (about 25.3%)
Example: binomial(100, 0.8), find P(X ≤ 70)
n = 100, p = 0.8, x = 70
P(X ≤ 70) = P(0) + P(1) + … + P(70)
= 0.0112 (about 1.12%)
With 100 trials the expected number of successes is 80, so landing at 70 or fewer is well below average and the probability stays low. For big n like this, doing it by hand is impractical, which is where the calculator earns its keep.
How Do You Find the Mean and Standard Deviation of a Binomial Distribution?
Every binomial distribution has a simple mean, variance, and standard deviation:
Mean (expected value): μ = n × p
Variance: σ2 = n × p × (1 − p)
Standard deviation: σ = √( n × p × (1 − p) )
For n = 20 and p = 0.5, the mean is 20 × 0.5 = 10, the variance is 20 × 0.5 × 0.5 = 5, and the standard deviation is √5 = 2.236. The calculator shows all three every time you run a probability, so you don’t have to compute them separately. If you want to dig deeper into spread, our standard deviation calculator handles any raw dataset.
| n | p | Mean (np) | Std. Dev. |
|---|---|---|---|
| 10 | 0.5 | 5 | 1.581 |
| 10 | 0.3 | 3 | 1.449 |
| 20 | 0.5 | 10 | 2.236 |
| 100 | 0.8 | 80 | 4.000 |
When Should You Use the Binomial Distribution?
Reach for the binomial model whenever you’re counting successes in a fixed number of independent, two-outcome trials with a constant success rate. Common real cases:
- Quality control: defective vs non-defective units off a production line.
- Test scoring: correct vs incorrect answers on a fixed-length quiz.
- Coin and dice problems in probability class.
- Marketing: response vs no response across a fixed number of contacts.
- Sports: made vs missed across a set number of attempts.
If the number of trials isn’t fixed, or the success probability shifts trial to trial, the binomial model no longer applies. For hypothesis work built on these probabilities, our p-value calculator takes the next step.
What Is the Difference Between Binomial and Normal Distribution?
The binomial distribution is discrete: X can only be a whole number of successes (0, 1, 2, up to n). The normal distribution is continuous and forms a smooth bell curve over all real values. When n is large and p isn’t too close to 0 or 1, the binomial starts to look like a normal curve, which is why the normal approximation to the binomial exists. For quick lookups on the normal side, see our z-table.
Can You Calculate Binomial Distribution in Excel?
Yes. Excel’s BINOM.DIST function does it directly. The syntax is BINOM.DIST(x, n, p, cumulative), where cumulative is FALSE for exactly P(X = x) and TRUE for cumulative P(X ≤ x). For example, =BINOM.DIST(6, 10, 0.5, FALSE) returns 0.2051, matching the coin example above. The calculator on this page does the same thing without any setup, and it shows the working out, which Excel doesn’t.
Try These Next
- Hypothesis Testing Calculator
- Confidence Interval Calculator
- Chi-Square Calculator
- Sum of Squares Calculator