Statistics

Conditional Probability Calculator

Calculate the probability of an event given another has occurred.


Conditional Probability Calculator

Advertisement

Calculates the probability of event A occurring, given that event B is already known to have occurred.

How it works

The probability of both events happening together is divided by the probability of the condition (event B) alone.

What this does not include

This does not include updating a probability using a reversed conditional — for that, use this site’s Bayes’ theorem calculator instead, which starts from P(B|A) rather than P(A∩B) directly.

How to use this calculator

  1. Enter P(A and B) and P(B).

A worked example

P(A and B) = 0.2, P(B) = 0.5 → P(A|B) = 0.2 ÷ 0.5 = 0.4.

P(A and B) = 0.1, P(B) = 0.4 → P(A|B) = 0.25.

What the variables mean

Variable Meaning
P(A and B) Probability both events happen together
P(B) Probability of the condition (event B) on its own

Edge cases worth knowing

A P(B) of zero makes the condition itself impossible — there’s no meaningful way to condition on an event that never happens, so the calculator returns no result.

If A and B are independent, P(A|B) equals the plain probability of A — knowing B happened tells you nothing new about A, the defining property of statistical independence.

Frequently asked questions

What does “conditional” mean in this context?

The probability is calculated under the assumption that event B has already happened — it’s a narrower question than the plain (unconditional) probability of A.

Can conditional probability be higher than the plain probability of A?

Yes — if event B makes event A more likely, P(A|B) can be higher than P(A) alone; this is what “informative evidence” looks like in probability terms.

What happens if A and B are independent?

P(A|B) equals P(A) exactly — knowing B happened tells you nothing new about A’s likelihood.

Be the first to rate this

Written by

J. Adeyemi

Statistics writer

J. Adeyemi writes the statistics and probability calculators, from descriptive summaries through to distributions and conditional probability. The recurring theme is scope: each page states precisely which question it answers, because most statistical mistakes come from applying a correct formula to the wrong question. Related-but-different measures get separate pages rather than being quietly merged.

Reviewed by

K. Novak

Calculator reviewer — statistics

K. Novak reviews the statistics and probability calculators, checking formula correctness and the scope boundary each page draws around itself. Closely related measures are routinely confused with one another, so review confirms that a page computing one of them says clearly that it is not computing the others.

How we write and review

Related calculators