Skip to the formula

Conditional probability formula: P(A | B) = P(A ∩ B) / P(B)

The conditional probability formula is P(A | B) = P(A ∩ B) / P(B).

What each letter means

When to use it

When you are told something has already happened ('given that…'), so the sample space shrinks to B.

Worked example

Of 60 students, 24 study French and 9 study both French and Spanish. A student who studies French is chosen. Find the probability that they also study Spanish.

  1. \(P(S\mid F)=\dfrac{P(S\cap F)}{P(F)}=\dfrac{9/60}{24/60}=\dfrac{9}{24}\)

Answer: \(P(S\mid F)=0.375\)

Common mistake

Dividing by P(A) instead of P(B). Divide by the probability of the event after the bar.

Fix it with practice: Skill Builder: Probability (free account).

Try one yourself

One quick IB Maths question on the conditional probability. No sign-in needed.

\(P(A) = \frac{2}{5}\), \(P(B \mid A) = \frac{1}{2}\) and \(P(B \mid A') = \frac{1}{3}\). Find \(P(A \mid B)\).
Choose your answer · keys 1–4

On your IB Maths course

CourseIn the exam
AA SL
All IB AA SL formulas by topic
In the IB formula booklet
AI SL
All IB AI SL formulas by topic
In the IB formula booklet
AA HL
All IB AA HL formulas by topic
In the IB formula booklet
AI HL
All IB AI HL formulas by topic
In the IB formula booklet

From our own IB Maths formula sheets, in our words. The IB gives its booklet to schools, so we checked against our own copy: your teacher has the official one. Official: IB DP Mathematics page.

Practise and revise

Conditional probability formula card: P(A | B) = P(A ∩ B) / P(B). IB Math Revision
Conditional probability card for IB Maths: download (PNG).

IB Maths FAQ

Is the conditional probability in the IB formula booklet?

AA SL: in the IB formula booklet. AI SL: in the IB formula booklet. AA HL: in the IB formula booklet. AI HL: in the IB formula booklet.

How can I tell if A and B are independent?

A and B are independent when P(A | B) = P(A), or equivalently P(A ∩ B) = P(A) × P(B).

Our own wording, examples and card, checked by IB Math Revision. Not produced or endorsed by the International Baccalaureate Organization.