Binomial Distribution Calculator

Binomial Distribution Calculator

Find the chance of a number of successes in a fixed number of independent trials: exactly k, at most k, at least k or a range, with the mean and spread.

P(X = k) = C(n, k) pᵏ (1 − p)ⁿ⁻ᵏ

As a decimal (0.25), a percentage (25%) or a fraction (1/4). "Between" includes both ends.

Enter the trials, the chance of success and the number of successes

What is the Binomial Distribution?

The binomial distribution gives the chance of each possible number of successes in a fixed number of independent yes/no trials. Each trial has the same chance of success, p, and the trials don't affect one another.

Four conditions make a situation binomial: a fixed number of trials, two outcomes per trial, a constant chance of success and independence. Defective parts in a sample, patients who respond to a treatment and free throws made all fit when those hold.

It breaks down when trials influence each other or when sampling without replacement from a small group, as with drawing cards. That case needs the hypergeometric distribution instead.

Binomial Distribution Formula

As given in the NIST/SEMATECH e-Handbook, section 1.3.6.6.18. See Sources.

1. Probability of exactly k successes

P(X = k) = C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ

C(n, k) counts the orders in which the k successes can fall among the n trials.

2. Cumulative probabilities

P(X ≤ k) = P(0) + P(1) + … + P(k)
P(X ≥ k) = 1 − P(X ≤ k − 1)

3. Mean and spread

mean = np · variance = np(1 − p) · SD = √(np(1 − p))

Worked Example: Defective Parts in a Sample of 15

Given:
A machine makes 10% defective parts. An inspector checks 15. What's the chance of at least 2 defective?
Step 1:
None defective:
0.9¹⁵ = 0.2059
Step 2:
Exactly one:
15 × 0.1 × 0.9¹⁴ = 0.3432
Step 3:
Complement:
1 − (0.2059 + 0.3432) = 0.4510
Result:
P(at least 2 defective) = 45.1%

The expected number is only 1.5, yet almost half of samples contain two or more bad parts. A rule like "stop the line at two defects" would trigger often even when nothing has changed.

Binomial Table for the Defect Example

n = 15 and p = 0.1. Read across for exact, cumulative and upper-tail probabilities.

Binomial probabilities for n = 15, p = 0.1
kP(X = k)P(X ≤ k)P(X ≥ k)
00.20590.20591
10.34320.5490.7941
20.26690.81590.451
30.12850.94440.1841
40.04280.98730.0556
50.01050.99780.0127

Common Binomial Distribution Mistakes

  • Getting "at least" off by one. P(X ≥ 2) = 1 − P(X ≤ 1), not 1 − P(X ≤ 2).
  • Using it when the chance changes. Drawing without replacement from a small batch changes p each time. Use the hypergeometric distribution.
  • Ignoring dependence. Defects that come in clusters, or patients treated by the same doctor, aren't independent, and real spread will be bigger than √(np(1 − p)).
  • Approximating with a normal curve too early. With np below about 10 the binomial is noticeably skewed. This calculator gives exact values, so there's no need.

Binomial Distribution FAQs

What counts as a “success”?

Whichever outcome you’re counting. It needn’t be good: a defective part or a side effect can be the “success”.

How is binomial different from Poisson?

Binomial has a fixed number of trials. Poisson counts events in an interval with no fixed upper limit. With many trials and a small p, the two give nearly the same answers.

What is the most likely number of successes?

The mode is ⌊(n + 1)p⌋. For 15 parts at 10% it’s 1.

How do I calculate it in Excel?

=BINOM.DIST(k, n, p, FALSE) for exactly k, TRUE for at most k. For a range, use =BINOM.DIST.RANGE(n, p, k1, k2).

What is binompdf and binomcdf?

The TI calculator names: binompdf for exactly k, binomcdf for at most k.

Can n be very large?

Yes, up to 10,000 here. The calculator works in logarithms, so it doesn’t overflow the way factorials do.

When can I use the normal approximation?

A common rule is when np and n(1 − p) are both at least 10. Use a continuity correction of 0.5 at the boundaries.

Is “between” inclusive?

Yes. Between 2 and 4 means 2, 3 or 4 successes.

Sources

Related Tools