Conditional Probability Calculator

Enter P(A and B) and P(B) to find the chance of A given that B has happened.

A probability from 0 to 1, as a decimal or a fraction.

A probability from 0 to 1, as a decimal or a fraction.

Try

Result

You enteredP(A∩B)=0.1, P(B)=0.5P(A \cap B) = 0.1,\ P(B) = 0.5

P(A∣B)=0.2\displaystyle P(A \mid B) = 0.2

As a percentage

20%\displaystyle 20\%
Show the work
  1. Conditional probability

    Knowing that BB has happened shrinks the possibilities to BB alone, so the chance of AA is the part of BB that also lies in AA. Here P(A∩B)=0.1P(A \cap B) = 0.1 and P(B)=0.5P(B) = 0.5.

    P(A∣B)=P(A∩B)P(B)=0.10.5=0.2\begin{aligned} P(A \mid B) &= \frac{P(A \cap B)}{P(B)} \\ &= \frac{0.1}{0.5} \\ &= 0.2 \end{aligned}
  2. Result

    So, given that BB has happened, the probability of AA is 0.20.2.

Worked examples