Conditional Probability Calculator

P(A|B) from the intersection — or a full Bayes' rule update.

The formula behind it

P(A|B) = P(A∩B)/P(B)
A|B
A given that B happened
A∩B
both A and B occur

Conditioning shrinks the universe to B, so P(B) becomes the new denominator. In Bayes mode the same rule updates a base rate using evidence strength — the mathematics behind test results.

How to use this calculator

  1. 1

    Choose the mode: intersection-based or Bayes update.

  2. 2

    Enter the probabilities as decimals.

  3. 3

    Press Calculate — Bayes mode shows the full update path.

Worked examples

Card logic

Given the card is red, P(heart) = 13/26 = 0.5 — the red condition halved the universe.

Medical test

Prior 1%, sensitivity 99%, false-positive 5% → posterior ≈ 16.7%: most positives are still false.

Frequently asked questions

Explore more categories

Command Palette

Search for a command to run...