How to use Conditional Probability Calculator
- Choose Conditional probability from a joint probability or Bayes update from supplied assumptions.
- In joint mode, enter P(A and B) and P(B). P(B) must be positive and at least as large as the joint probability.
- In Bayes mode, enter the prior P(A), P(B given A), and P(B given not A). The joint-mode fields are ignored.
- Enter probabilities as decimals from 0 to 1, such as 0.2 for 20%. Review the substituted formula and event tree, then download probability-tree.svg if useful.
Example: Conditional Probability Calculator
If A and B occur together with probability 0.2 and B has probability 0.5, find the share of B outcomes that also satisfy A.
Options
- Joint-event mode
- Divide the entered P(A and B) by P(B). The joint probability cannot exceed the conditioning probability.
- Bayes inputs
- Enter the prior and the likelihood of the evidence under both alternatives. These inputs are assumptions supplied by you.
Supported inputs and limits
- Enter plain decimals, with at most 64 characters, 25 digits and 12 fractional places per number.
- Probabilities must be between 0 and 1.
- A zero conditioning denominator is undefined and refused.
- Joint mode requires P(A and B) ≤ P(B).
- Bayes mode uses A and not A as exhaustive alternatives, with the prior and likelihoods you supply.
More details
It does not derive those inputs from observations.
The tree shows the computed contributions to B; it is not additional evidence or a diagnostic conclusion.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
Reverse conditional probabilities are different questions
P(B given A) is not usually P(A given B). The prior and alternative likelihood affect the Bayes result. A zero conditioning probability makes the ratio undefined; the page refuses it instead of returning a misleading zero.
Questions about Conditional Probability Calculator
Why does a zero conditioning probability fail?
Division by zero cannot define this conditional probability. The result is undefined rather than zero.
Are likelihood and posterior the same?
No. Likelihood describes the evidence under a hypothesis. The posterior also depends on the prior and alternative likelihood.
Can this assess a real-world claim for me?
It applies the probabilities you enter. Choosing credible inputs and checking the model remain separate tasks.