Binomial Distribution Calculator

Calculate binomial probabilities: exact P(X = k), cumulative P(X ≤ k), and upper-tail P(X ≥ k) for any number of trials, successes, and success probability.

Share this calculator

0.18

P(X = 8)

0.6

P(X ≤ 8)

0.58

P(X ≥ 8)

P(X = 8) — exact probability0.18
P(X ≤ 8) — cumulative0.6
P(X ≥ 8) — upper tail0.58
P(X > 8)0.4
Mean (n · p)8
Variance (n · p · (1−p))4.8
Standard deviation2.19

Also in Statistics

Probability Distributions

Binomial distribution calculator — exact, cumulative, and upper-tail probabilities

The binomial distribution models the number of successes in a fixed number of independent trials, each with the same probability of success. Enter the number of trials (n), number of successes (k), and probability of success (p) to get exact and cumulative probabilities.

When to use the binomial distribution

The binomial distribution applies when: (1) there are a fixed number of trials n; (2) each trial has exactly two outcomes — success or failure; (3) the probability of success p is constant; and (4) trials are independent.

Classic examples: the number of heads in n coin flips, the number of defective items in a sample of n products, the number of patients who respond to treatment out of n patients.

Three key probabilities

P(X = k) is the exact probability of getting exactly k successes. P(X ≤ k) is the cumulative probability of getting k or fewer successes. P(X ≥ k) is the upper-tail probability of getting k or more successes.

For a significance test, the p-value is 2 × min(P(X ≤ k), P(X ≥ k)) for a two-tailed test, or the relevant one-tailed probability.

Frequently asked questions

What is the difference between P(X = k) and P(X ≤ k)?

P(X = k) is the exact (point) probability of getting exactly k successes. P(X ≤ k) is the cumulative probability of k or fewer successes — the sum of P(X = 0) through P(X = k). P(X ≤ k) is needed for one-tailed hypothesis tests.

When does the binomial approximate to the normal distribution?

When n is large and p is not close to 0 or 1, the normal approximation applies. A common rule: n·p ≥ 5 and n·(1−p) ≥ 5. For small n or extreme p, use exact binomial probabilities as computed here.

Can this calculator handle large n?

Yes. The calculator uses logarithmic arithmetic to compute binomial coefficients for large n without numerical overflow, handling n in the hundreds or thousands accurately.

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.