Probability Calculator

Enter the probabilities of two events to find the chance of both, either, or one given the other.

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.12, P(B)=0.4P(A \cap B) = 0.12,\ P(B) = 0.4

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

As a percentage

30%\displaystyle 30\%
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.12P(A \cap B) = 0.12 and P(B)=0.4P(B) = 0.4.

    P(A∣B)=P(A∩B)P(B)=0.120.4=0.3\begin{aligned} P(A \mid B) &= \frac{P(A \cap B)}{P(B)} \\ &= \frac{0.12}{0.4} \\ &= 0.3 \end{aligned}
  2. Result

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

Worked examples