X ∼ B ( n , p ) : P ( X = r ) = ( r n ) p r ( 1 − p ) n − r
On this page
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 n independent trials, each with the same probability of success p . Examples are the number of heads in 10 tosses or the number of faulty items in a batch.
The probability of exactly r successes is the number of ways to choose which trials succeed, ( r n ) , times the probability of that pattern, p r ( 1 − p ) n − r .
For cumulative probabilities such as P ( X ≤ 4 ) , 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.
Finding the chance of getting a given number of heads, correct guesses or defective items. Hypothesis tests on a proportion .Finding the most likely number of successes.
How to use binomial distribution
Check the conditions: fixed number of trials, two outcomes, constant probability and independence. Write X ∼ B ( n , p ) . Substitute into ( r n ) p r ( 1 − p ) n − r . For a range of values, add the probabilities.
Graph Binomial distribution B(10, 0.5) 0 1 2 3 4 5 6 7 8 9 10 0 0.05 0.1 0.15 0.2 0.25 Binomial distribution B(10, 0.5) x P(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.
Try this in the solver: binomial n=10 p=0.3 x=4
Probability Answer checked
Answer
P ( X = 4 ) = 0.2001 P(X = 4) = 0.2001 P ( X = 4 ) = 0.2001 (4 d.p.)
X follows a binomial distribution
X ∼ B ( 10 , 0.3 )
Use P ( X = r ) = n C r p r ( 1 − p ) n − r
Substitute
P ( X = 4 ) = 210 × 0. 3 4 × 0. 7 6 = 0.20012
Check: all the probabilities add to 1
∑ P ( X = r ) = 1.000000
Example 2: at least 15 successes A fair coin is tossed 20 times. Find the probability of at least 15 heads.
Try this in the solver: binomial n=20 p=0.5 P(X>=15)
Probability Answer checked
Answer
P ( X ≥ 15 ) = 0.0207 P(X \ge 15) = 0.0207 P ( X ≥ 15 ) = 0.0207 (4 d.p.)
X follows a binomial distribution
X ∼ B ( 20 , 0.5 )
Use P ( X = r ) = n C r p r ( 1 − p ) n − r
Work out each probability that is needed
P ( X = 15 ) = 15504 × 0. 5 15 × 0. 5 5 = 0.01479 , P ( X = 16 ) = 4845 × 0. 5 16 × 0. 5 4 = 0.00462 , P ( X = 17 ) = 1140 × 0. 5 17 × 0. 5 3 = 0.00109 , P ( X = 18 ) = 190 × 0. 5 18 × 0. 5 2 = 0.00018 , P ( X = 19 ) = 20 × 0. 5 19 × 0. 5 1 = 0.00002 , P ( X = 20 ) = 1 × 0. 5 20 × 0. 5 0 = 0.00000
Add them
total = 0.02069
Check: all the probabilities add to 1
∑ P ( X = r ) = 1.000000
Example 3: at most 2 Find P(X ≤ 2) for n = 10, p = 0.2.
Try this in the solver: binomial n=10 p=0.2 P(X<=2)
Probability Answer checked
Answer
P ( X ≤ 2 ) = 0.6778 P(X \le 2) = 0.6778 P ( X ≤ 2 ) = 0.6778 (4 d.p.)
X follows a binomial distribution
X ∼ B ( 10 , 0.2 )
Use P ( X = r ) = n C r p r ( 1 − p ) n − r
Work out each probability that is needed
P ( X = 0 ) = 1 × 0. 2 0 × 0. 8 10 = 0.10737 , P ( X = 1 ) = 10 × 0. 2 1 × 0. 8 9 = 0.26844 , P ( X = 2 ) = 45 × 0. 2 2 × 0. 8 8 = 0.30199
Add them
total = 0.67780
Check: all the probabilities add to 1
∑ P ( X = r ) = 1.000000
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.
ⁿCᵣ 210 pʳ 0.0081 qⁿ⁻ʳ 0.117649 Multiply 0.2001 Check: ✓ 0.2001.
P(X = 2) X ~ B(5, 0.5). Find P(X = 2).
10 × 0.5⁵ 10/32 Check: 0.3125 ✓ 0.3125.
A tail Higher X ~ B(20, 0.5). Find P(X ≥ 15) to 4 decimal places.
Sum P(15) + … + P(20) Calculate 21700 ÷ 1 048 576 Check: 0.0207 ✓ 0.0207.
No successes Higher X ~ B(5, 0.2). Find P(X = 0).
q⁵ 0.8⁵ 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
ⁿCᵣ pʳ qⁿ⁻ʳ.
q = 1 − p.
Add for ≥ or ≤.
Check n, p, r.
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.
Foundation Higher Mixed New question
Solve: …
The practice generator needs JavaScript.
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.