Binomial Distribution Equation Solver with Worked Examples

If , then . Type “binomial n=10 p=0.3 x=4” and the solver finds the probability.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Binomial distribution means

The binomial distribution models the number of successes in independent trials, each with the same probability of success . Examples are the number of heads in 10 tosses or the number of faulty items in a batch.

The probability of exactly successes is the number of ways to choose which trials succeed, , times the probability of that pattern, .

For cumulative probabilities such as , add up the individual probabilities, or use tables or a calculator. Sampling without replacement gives the hypergeometric distribution, and more than two outcomes give the multinomial distribution.

This page is part of Probability distributions in Statistics. Topics that work alongside it: Mean and variance of a binomial, Normal approximation to the binomial, Hypothesis test for a binomial proportion, Normal distribution: density, Outliers (rule of thumb) and Normal distribution: standardising.

What is it used for?

The binomial distribution gives the probability of exactly x successes in n independent trials, each with probability p of success.

How to use binomial distribution

  1. Check the conditions: fixed number of trials, two outcomes, constant probability and independence.
  2. Write .
  3. Substitute into .
  4. For a range of values, add the probabilities.

Graph

Binomial distribution B(10, 0.5)01234567891000.050.10.150.20.25Binomial distribution B(10, 0.5)xP(X = x)Graph with x from -0.5 to 10.5 and y from 0 to 0.28. Shows bars (11).

With p = 0.5 the distribution is symmetrical. The most likely outcome is 5 successes, with probability 252/1024 ≈ 0.246.

Worked examples

The examples marked with a button were worked out by the solver on this page. You can try each one yourself.

Example 1: exactly r successes

A trial has success probability 0.3. In 10 trials, find the probability of exactly 4 successes.

Probability Answer checked
Answer
P(X=4)=0.2001P(X = 4) = 0.2001
  1. X follows a binomial distribution
  2. Use
  3. Substitute
  4. Check: all the probabilities add to 1

Example 2: at least 15 successes

A fair coin is tossed 20 times. Find the probability of at least 15 heads.

Probability Answer checked
Answer
P(X≥15)=0.0207P(X \ge 15) = 0.0207
  1. X follows a binomial distribution
  2. Use
  3. Work out each probability that is needed
  4. Add them
  5. Check: all the probabilities add to 1

Example 3: at most 2

Find P(X ≤ 2) for n = 10, p = 0.2.

Probability Answer checked
Answer
P(X≤2)=0.6778P(X \le 2) = 0.6778
  1. X follows a binomial distribution
  2. Use
  3. Work out each probability that is needed
  4. Add them
  5. Check: all the probabilities add to 1

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

P(X = 4)

n = 10, p = 0.3: ¹⁰C₄ 0.3⁴ 0.7⁶ ≈ 0.2001

Exactly 4 successes.

P(X = 2)

n = 5, p = 0.5: 10/32 = 0.3125

Symmetric case.

P(X ≥ 15)

n = 20, p = 0.5: ≈ 0.0207

Add the tail.

P(X = 0)

n = 5, p = 0.2: 0.8⁵ = 0.32768

No successes.

Word problems

If X ~ B(n, p), then P(X = r) = ⁿCᵣ pʳ (1 − p)ⁿ⁻ʳ.

P(X = 4)

X ~ B(10, 0.3). Find P(X = 4) to 4 decimal places.

  1. ⁿCᵣ210
  2. pʳ0.0081
  3. qⁿ⁻ʳ0.117649
  4. Multiply0.2001
  5. Check: ✓0.2001.

P(X = 2)

X ~ B(5, 0.5). Find P(X = 2).

  1. 10 × 0.5⁵10/32
  2. Check: 0.3125 ✓0.3125.

A tail Higher

X ~ B(20, 0.5). Find P(X ≥ 15) to 4 decimal places.

  1. SumP(15) + … + P(20)
  2. Calculate21700 ÷ 1 048 576
  3. Check: 0.0207 ✓0.0207.

No successes Higher

X ~ B(5, 0.2). Find P(X = 0).

  1. q⁵0.8⁵
  2. Check: ✓0.32768.

Common mistakes

Forgetting ⁿCᵣ

P(X = 2) = 0.5² × 0.5³ ✗

10 × … ✓

Count the arrangements.

Using p for the failures

pʳ pⁿ⁻ʳ ✗

pʳ qⁿ⁻ʳ ✓

Failures have probability 1 − p.

P(X ≥ r) as P(X = r)

one term only ✗

add the tail ✓

At least means r or more.

Wrong n

n = number of successes ✗

n = trials ✓

n is the number of trials.

Exam tips

  1. ⁿCᵣ pʳ qⁿ⁻ʳ.
  2. q = 1 − p.
  3. Add for ≥ or ≤.
  4. Check n, p, r.
  5. Use a calculator mode if allowed.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. X ~ B(4, 0.5). Find P(X = 2) Foundation

0.375

2. X ~ B(3, 0.5). Find P(X = 3) Foundation

0.125

3. X ~ B(6, 0.5). Find P(X = 3) Foundation

0.3125

4. X ~ B(5, 0.2). Find P(X = 1) to 4 decimal places Higher

0.4096

5. X ~ B(8, 0.25). Find P(X = 2) to 4 decimal places Higher

0.3115

6. X ~ B(10, 0.5). Find P(X ≥ 9) to 4 decimal places Higher

0.0107

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Binomial distribution
Counts successes in n trials.
Trial
One repeat.
Success probability (p)
Chance of success.
ⁿCᵣ
Number of arrangements.
Cumulative probability
P(X ≤ r).
Independent trials
Do not affect each other.

Frequently asked questions

What is the binomial formula?

P(X = r) = ⁿCᵣ pʳ qⁿ⁻ʳ.

When can I use it?

Fixed n, two outcomes, independent trials, constant p.

How do I find P(X ≥ r)?

Add the probabilities from r to n.

What are the mean and variance?

np and npq.

Which page covers the mean?

mean and variance of a binomial.

Which page covers ⁿCᵣ?

binomial coefficient.

More in Statistics and the formula sheets.