Probability Calculator (P(A), P(A∩B), P(A|B))
Basic event probabilities + union + intersection + conditional + Bayes' theorem from two-event inputs.
Result
How to use this calculator
- Enter P(A) and P(B) as percentages.
- Pick the relationship: independent (default for fair coins, dice, separate trials), mutex (cannot both happen), or custom joint (enter P(A∩B) directly for known correlation).
- The tool shows all 2×2 contingency cells plus both conditional probabilities (A|B and B|A).
About this calculator
Three classical probability quantities from two-event inputs. P(A∩B) is the joint probability — both events occur. P(A∪B) is the union — at least one occurs, via the inclusion-exclusion principle P(A∪B) = P(A) + P(B) − P(A∩B). P(A|B) is the conditional probability of A given B, defined as P(A∩B)/P(B) (the proportion of A within B). Independence is a special case where P(A∩B) = P(A)·P(B), equivalent to P(A|B) = P(A) — B tells you nothing about A. Mutually exclusive events have P(A∩B) = 0 (they cannot co-occur). The tool also surfaces the 2×2 contingency-table cells: P(A∩B), P(A∩¬B), P(¬A∩B), P(¬A∩¬B), which always sum to 1. Bayes' theorem is implicit in the conditional outputs: P(B|A) = P(A∩B)/P(A) — useful when the conditional direction matters (e.g. updating from prior to posterior).
Frequently asked
What's the difference between independent and mutually exclusive?+
How do I model "given the test was positive"?+
Why is P(A∩B) capped at min(P(A), P(B))?+
Source?+
Related calculators
More tools you might like
Hand-picked tools that pair well with this one — same audience, same intent.
All 5 descriptive statistics from a list of numbers — sample + population variants for std dev / variance.
P(X = k) = C(n,k) p^k (1−p)^(n−k). Probability of exactly k successes in n trials.
C(n, r) = n! / (r!(n−r)!). Number of ways to choose r items from n where order doesn't matter.
P(n, r) = n! / (n−r)!. Number of ways to arrange r items from n where order matters.
lim x→a of polynomial ratios (basic substitution + L'Hopital for 0/0).
Convert an HTML file to PDF — keeps headings, paragraphs, lists, blockquotes, and basic bold/italic. Lightweight, no upload.