Conditional Probability Calculator

Published on: November 26, 2026
Final Answer: Free | Full Steps: Plus

This Conditional Probability Calculator finds the probability of one event once another is known to have happened, and shows the working line by line. Knowing that B happened shrinks the possible outcomes down to B, so the probability of A becomes the share of B where A also happens. That share is the probability of both divided by the probability of B. The pattern is the starting point for the multiplication rule and for Bayes' theorem.

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the two probabilities into the formula.
  4. Divide to get the conditional probability.

Formula: Conditional Probability Formula

This formula gives the probability of A once B is known to have happened. Divide the probability of both by P(B).

\(P(A \mid B) = \frac{P(A \cap B)}{P(B)}\)

Useful Tips to Remember

Conditional probability is \(P(A \mid B) = \frac{P(A \text{ and } B)}{P(B)}\), the chance of \(A\) once \(B\) is known to have happened. Divide by the probability of the condition \(B\), not of \(A\). \(P(A \mid B)\) is usually different from \(P(B \mid A)\). If the events are independent, knowing \(B\) does not change the chance of \(A\).

Required knowledge

Where Is Conditional Probability Used?

Conditional probability finds the chance of an event once you know another event has happened, written \(P(A \mid B)\). It is how probabilities are updated with new information, which is the basis of medical testing, insurance pricing and weather forecasting. Doctors use it to find the chance of a condition given a symptom, insurers use it to price policies for drivers of different ages, and streaming services use it to recommend shows based on what you watched. Many real decisions depend on a probability under a certain condition.

  • Finding the chance of a condition given a symptom
  • Pricing insurance based on age or driving history
  • Recommending films and products based on past choices
  • Forecasting rain given today's weather
  • Working out card probabilities once some cards are known

Conditional Probability Practice Problems

Example 1 uses \(P(A \cap B) = 0.12\) and \(P(B) = 0.4\), and Example 2 uses the dice fractions \(\frac{1}{36}\) and \(\frac{1}{6}\). Try dividing yourself before opening each example. For two more free worked examples, check out the Conditional Probability Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(P(A \cap B) = 0.12,\; P(B) = 0.4\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the two probabilities into the formula.
  4. Divide to get the conditional probability.

Formula

Formula: Conditional Probability Formula

This formula gives the probability of A once B is known to have happened. Divide the probability of both by P(B).

\(P(A \mid B) = \frac{P(A \cap B)}{P(B)}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the probability of A once we know B has happened, when \(P(A \cap B) = 0.12\) and \(P(B) = 0.4\).

\(P(A \cap B) = 0.12,\; P(B) = 0.4\)

Step 2

Step 2 - Write the formula.

In this problem: Knowing B happened shrinks the possible outcomes to B, so the chance of both is divided by the chance of B.

\(P(A \mid B) = \frac{P(A \cap B)}{P(B)}\)

Step 3

Step 3 - Substitute the two probabilities into the formula.

In this problem: Replacing the two probabilities gives \(P(A \mid B) = \frac{0.12}{0.4}\).

\(P(A \mid B) = \frac{0.12}{0.4}\)

Step 4

Step 4 - Divide to get the conditional probability.

In this problem: Dividing gives \(0.12 \div 0.4 = 0.3\).

\(P(A \mid B) = \frac{0.12}{0.4} = 0.3\)

Final Answer

\(P(A \mid B) = 0.3\)
See Example 2 Hide Example 2

Problem

\(P(A \cap B) = \frac{1}{36},\; P(B) = \frac{1}{6}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the two probabilities into the formula.
  4. Divide to get the conditional probability.

Formula

Formula: Conditional Probability Formula

This formula gives the probability of A once B is known to have happened. Divide the probability of both by P(B).

\(P(A \mid B) = \frac{P(A \cap B)}{P(B)}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the probability of A once we know B has happened, when \(P(A \cap B) = \frac{1}{36}\) and \(P(B) = \frac{1}{6}\).

\(P(A \cap B) = \frac{1}{36},\; P(B) = \frac{1}{6}\)

Step 2

Step 2 - Write the formula.

In this problem: Knowing B happened shrinks the possible outcomes to B, so the chance of both is divided by the chance of B.

\(P(A \mid B) = \frac{P(A \cap B)}{P(B)}\)

Step 3

Step 3 - Substitute the two probabilities into the formula.

In this problem: Replacing the two probabilities gives \(P(A \mid B) = \frac{\frac{1}{36}}{\frac{1}{6}}\).

\(P(A \mid B) = \frac{\frac{1}{36}}{\frac{1}{6}}\)

Step 4

Step 4 - Divide to get the conditional probability.

In this problem: Dividing gives \(\frac{1}{36} \div \frac{1}{6} = \frac{1}{6} \approx 0.1667\).

\(P(A \mid B) = \frac{\frac{1}{36}}{\frac{1}{6}} = \frac{1}{6} \approx 0.1667\)

Final Answer

\(P(A \mid B) = \frac{1}{6} \approx 0.1667\)

Notes and Practice Mode

Example Problems

Click one to load it into the box and solve it.