Mathematics · Formula

Conditional probability

The probability of A given that B has occurred.

Mathematics librarySymbols definedWorked example
Formula
P(A | B) = P(A ∩ B) / P(B)

The probability of A given that B has occurred.

What the symbols mean

  • P(A | B) — the conditional probability
  • P(A ∩ B) — the probability of both
  • P(B) — the probability of the condition

What it means

Restricting attention to the cases where B occurred shrinks the sample space to B, and the favourable cases are the intersection. Events are independent exactly when P(A | B) = P(A).

Worked example

Example

If P(A ∩ B) = 0.10 and P(B) = 0.40, then P(A | B) = 0.10/0.40 = 0.25.

Related formulas

These relationships often appear alongside the conditional probability in the same problems.

Frequently asked questions

What is the conditional probability formula?

The relationship is P(A | B) = P(A ∩ B) / P(B). The probability of A given that B has occurred.

When should I use the conditional probability formula?

Restricting attention to the cases where B occurred shrinks the sample space to B, and the favourable cases are the intersection. Events are independent exactly when P(A | B) = P(A).

How do I avoid unit mistakes?

Write each quantity with its unit before substituting, convert to the units the formula expects, and check that the result's unit matches the quantity you are solving for. Angles must be in radians for calculus-based expressions unless the page says degrees.

Sources and standards

The equation form, symbols and expected units on this page are checked against the reference works below.

How these are used: sources and standards.

Reviewed November 2026 · Educational reference. See the disclaimer and methodology.