Conditional Probability Formula with Examples

#Formula
TL;DR
The conditional probability formula is P(B∣A)=P(A∩B)P(A)P(B \mid A) = \frac{P(A \cap B)}{P(A)}, the probability of BB once AA is known. This article gives five worked examples.
BT
Bhanzu TeamLast updated on November 7, 20266 min read

Key Points

  • The conditional probability formula is P(B∣A)=P(A∩B)P(A)P(B \mid A) = \frac{P(A \cap B)}{P(A)}, valid whenever P(A)>0P(A) > 0.

  • Conditioning on AA shrinks the sample space to AA alone, which is why the formula divides by P(A)P(A).

  • P(B∣A)P(B \mid A) and P(A∣B)P(A \mid B) are different quantities, and swapping them is the most consequential error in probability.

  • Bayes' theorem links the two directions as P(A∣B)=P(B∣A)P(A)P(B)P(A \mid B) = \frac{P(B \mid A)P(A)}{P(B)}.

  • When the events are independent, P(B∣A)=P(B)P(B \mid A) = P(B), so conditioning changes nothing.

What Is the Conditional Probability Formula?

The conditional probability formula gives the chance of one event once another is known to have happened:

P(B∣A)=P(A∩B)P(A),P(A)>0P(B \mid A) = \frac{P(A \cap B)}{P(A)}, \qquad P(A) > 0

It is the multiplication rule rearranged. MacTutor records Thomas Bayes, who lived from 1702 to 1761, as the English clergyman who set out his theory of probability in 1764, and notes his work as the first occurrence of a probability logic result involving conditional probability.

Why the Formula Divides by P(A)

Knowing that AA happened throws away every outcome outside AA. The question is no longer about the whole sample space but about the part of it where AA is true.

Within that reduced space, the outcomes where BB also happens are exactly those in A∩BA \cap B. So the proportion wanted is the size of A∩BA \cap B relative to the size of AA, which is what the division computes.

That reading also explains the condition P(A)>0P(A) > 0. Conditioning on an impossible event leaves no sample space at all, so the formula has nothing to divide by.

Variable Key

Symbol

Meaning

Unit or type

Notes

P(A)P(A)

probability of the condition

greater than 0

the new sample space

P(A∩B)P(A \cap B)

both occur

0 to 1

the numerator

P(B∣A)P(B \mid A)

BB given AA

0 to 1

the result

P(A∣B)P(A \mid B)

AA given BB

0 to 1

a different quantity

Examples of the Conditional Probability Formula

Example 1

P(A)=0.4P(A) = 0.4 and P(A∩B)=0.1P(A \cap B) = 0.1. Find P(B∣A)P(B \mid A).

P(B∣A)=0.10.4=0.25P(B \mid A) = \frac{0.1}{0.4} = 0.25

Final answer: 0.25

Example 2

In a class, 60 per cent play football and 25 per cent play both football and tennis. A tennis player is chosen. What is the probability they play football, if 40 per cent play tennis?

The figures 0.25 and 0.60 are both to hand, so dividing the overlap by the football share looks right:

0.250.60≈0.417\frac{0.25}{0.60} \approx 0.417

But that answers a different question: the chance a footballer plays tennis. The person chosen is known to play tennis, so tennis is the condition and its probability must be the denominator.

P(football∣tennis)=0.250.40=0.625P(\text{football} \mid \text{tennis}) = \frac{0.25}{0.40} = 0.625

Final answer: 0.625. The condition always goes in the denominator, and the two answers differ by half as much again.

Example 3

A die shows an even number. What is the probability it is a 6?

The even outcomes are 2, 4 and 6, so the reduced sample space has three members:

P(6∣even)=1/61/2=13P(6 \mid \text{even}) = \frac{1/6}{1/2} = \frac{1}{3}

Final answer: 13\frac{1}{3}

Conditioning on an even result raised the chance of a six from one sixth to one third.

Example 4

P(A)=0.5P(A) = 0.5, P(B)=0.3P(B) = 0.3 and P(A∩B)=0.15P(A \cap B) = 0.15. Find P(B∣A)P(B \mid A) and comment.

P(B∣A)=0.150.5=0.3P(B \mid A) = \frac{0.15}{0.5} = 0.3

Final answer: 0.3, which equals P(B)P(B), so the events are independent and conditioning on AA tells us nothing about BB.

Example 5

A test detects a condition in 90 per cent of those who have it. The condition affects 1 per cent of people, and the test is positive for 10 per cent of everyone tested. Find the probability someone testing positive has the condition.

Use Bayes' theorem to reverse the given direction:

P(condition∣+)=0.90×0.010.10=0.0090.10=0.09P(\text{condition} \mid +) = \frac{0.90 \times 0.01}{0.10} = \frac{0.009}{0.10} = 0.09

Final answer: 0.09, or 9 per cent.

A test that catches 90 per cent of cases still leaves most positives false, because the condition is rare. Ignoring that base rate is the classic error in medical-test reasoning.

Quantity

Formula

What is known

P(B∣A)P(B \mid A)

P(A∩B)P(A)\frac{P(A \cap B)}{P(A)}

AA has happened

P(A∣B)P(A \mid B)

P(A∩B)P(B)\frac{P(A \cap B)}{P(B)}

BB has happened

P(A∩B)P(A \cap B)

P(A)P(B∣A)P(A)P(B \mid A)

neither, both wanted

Bayes' theorem

P(B∣A)P(A)P(B)\frac{P(B \mid A)P(A)}{P(B)}

one direction, the other wanted

The first two rows share a numerator and differ only in the denominator. That is the whole of the reversal error: the same overlap divided by two different conditions.

Conditional Probability, Common Confusions Cleared Up

Mistake 1: Reversing the condition

Where it slips in: Both conditional probabilities use the same intersection, so the denominator is the only thing distinguishing them.

Don't do this: Compute P(A∩B)P(A)\frac{P(A \cap B)}{P(A)} when the question says BB is known.

The correct way: Identify what has already happened and put its probability underneath. Reading the question for the words "given", "if" or "known to be" locates the condition before any arithmetic.

Students who underline the condition in the question and write its probability as the denominator first, before filling in the numerator, almost never reverse it. Building the fraction from the bottom up forces the condition to be identified.

Mistake 2: Ignoring the base rate

Where it slips in: A high detection rate feels like it should mean a high probability of having the condition.

Don't do this: Treat a 90 per cent accurate test as giving a 90 per cent chance the condition is present.

The correct way: Use Bayes' theorem, which weights by how common the condition is. For a rare condition, most positive results are false, as Example 5 shows.

Mistake 3: Conditioning on an impossible event

Where it slips in: The formula is applied mechanically without checking the denominator.

Don't do this: Divide by P(A)P(A) when P(A)=0P(A) = 0.

The correct way: The formula requires P(A)>0P(A) > 0. Conditioning on something that cannot happen leaves no sample space, so the quantity is undefined rather than zero.

The Short Version

  • The conditional probability formula is P(B∣A)=P(A∩B)P(A)P(B \mid A) = \frac{P(A \cap B)}{P(A)}.

  • Conditioning shrinks the sample space to AA, which is why P(A)P(A) is the denominator.

  • P(B∣A)P(B \mid A) and P(A∣B)P(A \mid B) differ only in that denominator, and confusing them is the costliest error here.

  • Bayes' theorem reverses the direction and forces the base rate into the calculation.

  • To work through probability with a teacher, explore a high school math tutor or math tuition.

A Practical Next Step

Given P(A)=0.6P(A) = 0.6, P(B)=0.5P(B) = 0.5 and P(A∩B)=0.3P(A \cap B) = 0.3, find both conditional probabilities and check whether the events are independent. Then reverse one of them with Bayes' theorem.

Want a live Bhanzu trainer to walk through more probability problems? Book a free demo class.

Read More

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the conditional probability formula?
P(B∣A)=P(A∩B)P(A)P(B \mid A) = \frac{P(A \cap B)}{P(A)}, provided P(A)P(A) is greater than zero.
Is P(B given A) the same as P(A given B) in the conditional probability formula?
No. They share the same numerator but divide by different probabilities, so they are generally different numbers. Bayes' theorem converts between them.
What does conditional probability mean when events are independent?
It means conditioning changes nothing, so P(B∣A)=P(B)P(B \mid A) = P(B). That is the definition of independence.
Why must P(A) be greater than zero?
Because conditioning on AA makes AA the new sample space. If AA cannot occur there is no sample space to work in, so the formula is undefined.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →