Part of the Maths & Statistics suite · 235 calculators

Conditional Probability Calculator

P(A given B) from the joint and marginal probabilities — with Bayes' theorem run in both directions and a check on whether the two events are independent.

Conditional probability rescales the world to the cases where B happened: P(A | B) = P(A ∩ B) ÷ P(B).

%
%
%
Results update as you type
Results
P(A | B)
45%
P(B | A)
P(A or B)
P(A) × P(B) — what independence would give
Lift (joint ÷ independent)
Relationship
Reviewed September 2026. Pure mathematics: the result does not depend on where you are. Terminology follows the national curriculum (maths, brackets, decimal point).
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About conditional probability

How the conditional probability calculator works

Conditional probability rescales the world to the cases where B happened: P(A | B) = P(A ∩ B) ÷ P(B). Bayes' theorem then reverses it, P(B | A) = P(A | B) P(B) ÷ P(A), which is how a test result becomes a probability about the thing being tested.

If P(A | B) equals P(A), knowing B told you nothing and the events are independent.

Formula: P(A | B) = P(A ∩ B) / P(B)

Worked examples

InputsP(A | B)Note
P(A)=30%, P(B)=40%, joint 18%45%P(A|B) = 45%
Independent events50%P(A|B) = P(A) = 50%
Mutually exclusive0%P(A|B) = 0

Frequently asked questions

What does P(A | B) mean?

The probability of A among only the cases where B happened — the world narrowed to B.

How is it different from P(A and B)?

The joint is a share of everything; the conditional is a share of B alone. The joint is always the smaller of the two.

What if P(A | B) equals P(A)?

The events are independent — knowing B changed nothing.

Why does the order matter?

P(A | B) and P(B | A) are different questions and usually different numbers. Confusing them is the base-rate fallacy, and it is the single most common statistical mistake in medicine and law.

What is lift?

The joint probability divided by what independence would predict. Above 1 means the events go together more often than chance.

Where these figures come from

Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.