Compound Probability Calculator (AND / OR)
Compute P(A and B), P(A or B), and P(A|B) for two events, whether they are independent or dependent.
Result
How to use this calculator
- Enter the individual probabilities P(A) and P(B), each between 0 and 1.
- Choose whether the events are independent or dependent.
- For dependent events, enter the joint probability P(A and B).
- Read P(A and B), P(A or B), and the conditional probabilities.
About this calculator
Compound probability deals with how two events combine. The "AND" probability, P(A and B), is the chance both happen; for independent events — where one has no effect on the other, like two separate coin flips — it is simply the product P(A)·P(B). The "OR" probability, P(A or B), is the chance at least one happens, found by adding the individual probabilities and subtracting the overlap so it is not double-counted: P(A) + P(B) − P(A and B). The conditional probability P(A|B) is the chance of A given that B has occurred, equal to the joint probability divided by P(B). This calculator handles both independent events (where it computes the joint probability for you) and dependent events (where you supply the joint probability), and reports all the combinations along with a check of whether the events are actually independent.
How it works — the formula
Independent: P(A∩B) = P(A)·P(B)
P(A∪B) = P(A) + P(B) − P(A∩B)
P(A|B) = P(A∩B) ÷ P(B)The union adds the two probabilities and removes the double-counted overlap; the conditional renormalizes the joint probability by the probability of the conditioning event.
Worked examples
- Inputs:
- pa=0.5, pb=0.4, mode=independent
- Output:
- AND 0.2, OR 0.7, P(A|B) 0.5
- Inputs:
- pa=0.5, pb=0.5, mode=independent
- Output:
- AND 0.25, OR 0.75
- Inputs:
- pa=0.5, pb=0.4, mode=dependent, pand=0.3
- Output:
- OR 0.6, P(A|B) 0.75
Limitations
- Dependent mode requires a valid joint probability you supply.
- Assumes well-defined probabilities in [0, 1].
- Does not handle more than two events at once.
Results follow from the probability axioms given consistent inputs.
Frequently asked
How do I find the probability of A and B?+
How do I find the probability of A or B?+
What does independent mean?+
What is conditional probability P(A|B)?+
Can P(A and B) be larger than P(A) or P(B)?+
Are mutually exclusive events the same as independent?+
Related calculators
More tools you might like
Hand-picked tools that pair well with this one — same audience, same intent.
Compute the posterior probability P(A|B) from the prior P(A), the evidence P(B), and the likelihood P(B|A).
Paste a list of numbers to get the mean, median, mode, range, count, and sum — the core measures of central tendency.
Find the probability that at least two people in a group share a birthday — the famous, counterintuitive birthday problem.
P(X = k) = C(n,k) p^k (1−p)^(n−k). Probability of exactly k successes in n trials.
Compute sample (n−1) and population (n) standard deviation from a list of numbers.
Future value of an investment growing with compound interest plus monthly contributions, with a year-by-year line chart (linear or log scale) of balance vs. cumulative contributions.