Home · Statistics · Probability & Combinatorics · Conditional Probability Calculator
Conditional Probability Calculator
The probability of A given that B has happened: the joint probability of A and B divided by the probability of B, in percentages.
What this calculator does
The probability of A given that B has happened: the joint probability of A and B divided by the probability of B, in percentages. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
Both inputs are percentages from 0 to 100; because both are scaled by 100, the ratio pab / pb is the same as with proportions, and multiplying by 100 returns the answer as a percentage.
Conditioning on B means restricting attention to the outcomes where B happened; within that smaller world, the share where A also happened is the joint probability divided by P(B).
P(B) must be greater than zero — conditioning on an impossible event is undefined.
Worked example
With the example inputs this page opens with (probability of a and b (%) 12, probability of b (%) 40), the result is 30.00 — p(a | b). Change any figure and the result updates with the same formula.
Quick reference
| Probability of A and B (%) | P(A | B) |
|---|---|
| 6 | 15.00 |
| 9.6 | 24.00 |
| 12 | 30.00 |
| 15 | 37.50 |
| 18 | 45.00 |
| 24 | 60.00 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
What does P(A | B) actually mean?
The probability of A in the world where B is already known to have happened. If 12% of outcomes are both A and B, and 40% are B at all, then among B outcomes the A share is 12/40 = 30%.
Is P(A | B) the same as P(B | A)?
Almost never. P(A | B) divides by P(B) and P(B | A) divides by P(A), so they coincide only when P(A) = P(B). Confusing the two is the classic error behind misread test results.
How does the Conditional Probability Calculator work?
The probability of A given that B has happened: the joint probability of A and B divided by the probability of B, in percentages. P(A and B) (%) · P(B) (%) → P(A | B) (%). The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Conditional Probability Calculator need?
P(A and B) (%) · P(B) (%) → P(A | B) (%). Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.