Skip to main content
Mathovia

Math / Probability & Statistics

Binomial Distribution Calculator

Enter the number of trials n, the probability of success p on each trial, and the number of successes x. The calculator returns the exact probability of x successes, every cumulative tail, and the mean, variance and standard deviation of the distribution.

Probability of exactly x successes
0.25028
At most x successes (≤ x)
0.77588
Fewer than x successes (< x)
0.52559
At least x successes (≥ x)
0.47441
More than x successes (> x)
0.22412
Mean (expected successes)
2.5000
Variance
1.8750
Standard deviation
1.3693
012345678910mean 2.50.2503number of successes k
The dark bar is P(X = 3). Together with the light-blue bars it makes up P(X ≤ 3); the grey bars are P(X > 3).

P(X = k) = C(n, k) · p^k · (1 − p)^(n − k). Cumulative values add these terms over every k in the tail you ask for.

Written by
MPhil in Mathematics, Founder of Mathovia
Published

Mathematics verification: Mathematical formulas, calculations, worked examples and solutions are reviewed for accuracy before publication. How we check our work

A binomial distribution answers a question people ask all the time without naming it: if something has a fixed chance of happening on every try, how likely is it to happen a certain number of times? Guessing on a multiple-choice quiz, free throws in a game, defective parts in a box of twelve. Each one is a count of successes across repeated, independent tries, and the binomial formula gives you the exact odds of every possible count.

Binomial probability formula: P of X equals k equals n choose k, times p to the k, times one minus p to the n minus k
The Binomial Distribution formula

The binomial probability formula

The probability of getting exactly successes in trials is

Each piece has a job. is the chance that k particular trials all succeed. is the chance that the remaining trials all fail. And the binomial coefficient , read “n choose k”, counts how many different ways those k successes can be scattered across the n trials, because getting the right answers on questions 1, 2 and 3 is a different outcome from getting them on questions 4, 7 and 9, yet both count as “3 correct”.

Before you trust any binomial answer, check that the situation actually fits. You need a fixed number of trials, two outcomes per trial (success or failure), the same on every trial, and trials that don’t influence each other. A quiz where every question has four options passes. Drawing five cards from a deck without putting them back doesn’t, since the odds shift after every draw.

How to calculate a binomial probability (step by step)

The calculator’s defaults describe a familiar situation: you guess blindly on a 10-question quiz where each question has 4 options. So n = 10, p = 0.25, and we want the probability of getting exactly x = 3 right.

Step One: Count the arrangements with n choose k

C(n, k) = n! / (k! × (n − k)!)
C(10, 3) = 10! / (3! × 7!) = (10 × 9 × 8) / (3 × 2 × 1) = 720 / 6 = 120

There are 120 different ways to pick which 3 of the 10 questions you get right.

Step Two: Find the probability of one specific arrangement

p^k × (1 − p)^(n − k)
0.25^3 = 0.015625
0.75^7 = 0.13348
0.015625 × 0.13348 = 0.0020857

That tiny number is the chance of one particular pattern, say right on questions 1 to 3 and wrong on the other seven.

Step Three: Multiply to get P(X = x)

P(X = 3) = 120 × 0.0020857 = 0.25028

So a pure guesser hits exactly 3 out of 10 about 25% of the time. That matches the calculator’s primary result, P(X = x) = 0.25028.

Step Four: Add terms for the cumulative probabilities

A cumulative probability is just a sum of exact probabilities. “At most 3” means 0, 1, 2 or 3 correct:

P(X ≤ 3) = P(0) + P(1) + P(2) + P(3)
         = 0.056314 + 0.187712 + 0.281568 + 0.250282 = 0.77588

The other tails come from the same pieces:

P(X < 3) = P(0) + P(1) + P(2)  = 0.525594 → 0.52559
P(X > 3) = 1 − P(X ≤ 3)        = 1 − 0.77588 = 0.22412
P(X ≥ 3) = 1 − P(X < 3)        = 1 − 0.52559 = 0.47441

Keep at least six decimals in the individual terms when you add by hand. Rounding each one to five places first can push the last digit of the total off by one.

Step Five: Find the mean, variance and standard deviation

mean     μ  = n × p           = 10 × 0.25         = 2.5
variance σ² = n × p × (1 − p) = 10 × 0.25 × 0.75  = 1.875
std dev  σ  = √1.875                              = 1.3693

On average a guesser gets 2.5 questions right, and most results land within about 1.4 of that.

The 10-question guessing example split into fewer than 3, exactly 3, and more than 3 correct answers, with the three factors of the binomial formula
A visual read of the worked example above — the same numbers the calculator returns for its default inputs.

Reading the full distribution

Here is every outcome for the guessing example. The cumulative column is P(X ≤ k), the number a TI-84’s binomcdf would give you.

Correct answers (k)P(X = k)P(X ≤ k)
00.05630.0563
10.18770.2440
20.28160.5256
30.25030.7759
40.14600.9219
50.05840.9803
60.01620.9965
70.00310.9996
80.00041.0000
90.000031.0000
100.0000011.0000

Two things stand out. The most likely single result is 2, not the mean of 2.5, because the count has to be a whole number. And passing by luck is close to hopeless: scoring 6 or more (a 60%) has a probability of about 0.0197, roughly one guesser in fifty. If you’d rather think in percentages, multiply by 100, or run any value through the fraction to percent calculator.

Which probability should you use?

Most homework mistakes come from picking the wrong tail, not from bad arithmetic. Translate the wording first:

  • “exactly 3”: P(X = 3)
  • “at most 3”, “no more than 3”, “3 or fewer”: P(X ≤ 3)
  • “fewer than 3”, “less than 3”: P(X < 3), which is P(X ≤ 2)
  • “at least 3”, “3 or more”, “no fewer than 3”: P(X ≥ 3)
  • “more than 3”, “over 3”: P(X > 3), which is P(X ≥ 4)

“At least one” problems deserve a special mention, because the complement makes them easy. A factory part fails 5% of the time and you install 12 of them. The chance that none fail is 0.95¹², about 0.5404, so the chance that at least one fails is about 0.4596. Set n = 12, p = 0.05 and x = 0 and the calculator shows that as P(X > 0). Nearly a coin flip, even with a part that’s 95% reliable. That surprises people every time.

Real situations where the binomial shows up

A basketball player who makes 90% of free throws takes 20 of them. The chance she makes exactly 17 is 0.1901, and the chance she makes at least 17 is 0.8670. Her chance of a perfect 20 for 20? Only 0.1216, which is why perfect nights are rarer than shooting percentages suggest.

Quality control runs on the same math. If 2% of light bulbs are defective, an inspector who samples 50 bulbs from a perfectly normal batch will still find 2 or more bad ones about 26% of the time (P(X ≥ 2) = 0.2642). A rule of “reject at 2 defects” would throw out one good batch in four, so the cutoff has to sit higher than intuition suggests. Clinical trials, A/B tests and polling all lean on the same idea. Count the yes answers and ask whether that count is plausible under a given p.

Common mistakes

  1. Using a percentage for p. Enter 0.25, not 25. The probability has to sit between 0 and 1.
  2. Forgetting the n choose k factor. on its own is the chance of one specific order, and it’s usually far too small.
  3. Off-by-one tails. “More than 3” starts at 4. Write the inequality down before you calculate.
  4. Applying it to dependent trials. Without replacement, the probability changes from draw to draw, and the binomial overstates the spread.
  5. Rounding p before multiplying. Keep full precision through the calculation and round only the final answer. The powers magnify small rounding errors.

The exponent steps are ordinary power rules, and the exponent rules lesson is a quick refresher if looks intimidating. For more practice turning probabilities into percents and back, try the percentage problem generator.

About the formula: P(X = k) = C(n, k) · p^k · (1 − p)^(n − k). Cumulative values add these terms over every k in the tail you ask for.

Frequently Asked Questions

What is the binomial distribution formula?+

P(X = k) = C(n, k) × p^k × (1 − p)^(n − k), where C(n, k) = n! ÷ (k!(n − k)!) counts the ways to place k successes among n trials. For n = 10, p = 0.25 and k = 3 that is 120 × 0.015625 × 0.13348 = 0.25028.

What is the difference between P(X ≤ x) and P(X < x)?+

P(X ≤ x) includes x itself, P(X < x) stops one short. With n = 10, p = 0.25 and x = 3, P(X ≤ 3) = 0.77588 but P(X < 3) = 0.52559. The gap between them is exactly P(X = 3) = 0.25028.

How do I find the probability of at least one success?+

Use the complement: P(X ≥ 1) = 1 − (1 − p)^n. If a part fails 5% of the time, the chance that at least one of 12 parts fails is 1 − 0.95^12 ≈ 0.4596, which this calculator gives as P(X > 0) when you set x = 0.

What are the conditions for a binomial distribution?+

A fixed number of trials, only two outcomes per trial, the same probability of success every time, and trials that don't affect each other. Drawing cards without replacement breaks the last two, so that situation needs the hypergeometric distribution instead.

How do you calculate the mean and standard deviation of a binomial distribution?+

The mean is n × p and the standard deviation is √(n × p × (1 − p)). Ten guessed questions with p = 0.25 give a mean of 2.5 correct answers and a standard deviation of about 1.3693.

Is binompdf the same as binomcdf?+

No. On a TI-84, binompdf(n, p, x) returns the exact probability P(X = x), and binomcdf(n, p, x) returns the cumulative P(X ≤ x). This calculator shows both at once, plus the other three tails, so you don't need to subtract by hand.

When can I use the normal approximation instead?+

The usual rule of thumb is np ≥ 10 and n(1 − p) ≥ 10. Below that the binomial is too lopsided for a bell curve to fit well, and since this calculator computes exact values for n up to 100,000, there is little reason to approximate anyway.

Related calculators