Probability Calculator
Give the probabilities of two events and get every combination: both, either, neither, exactly one, and conditional probabilities.
The rules in one place
P(A∪B) = P(A) + P(B) − P(A∩B) · P(A|B) = P(A∩B) ÷ P(B)
Independent: P(A∩B) = P(A)·P(B). Mutually exclusive: P(A∩B) = 0. Complement: P(not A) = 1 − P(A). For the number of successes over many independent trials, move on to the binomial distribution calculator.
Frequently asked questions
What is the difference between “and” and “or” probability?
P(A and B) is the chance both happen. P(A or B) is the chance at least one happens, found with the addition rule P(A) + P(B) − P(A and B). Subtracting the overlap stops it being counted twice.
How do I know if events are independent?
Events are independent if one happening does not change the chance of the other, so P(A and B) = P(A) × P(B). Two coin flips are independent. Drawing two cards without replacement is not.
What are mutually exclusive events?
Events that cannot happen together, such as rolling a 2 and a 5 on one die. Then P(A and B) = 0 and P(A or B) = P(A) + P(B). Mutually exclusive events with non-zero probability are never independent.
How do I calculate conditional probability?
P(A | B) = P(A and B) ÷ P(B): the chance of A once you know B happened. If 10% of students take both French and Spanish and 40% take Spanish, P(French | Spanish) = 0.10 ÷ 0.40 = 0.25.
What is the probability of at least one success in n tries?
One minus the probability of no successes: 1 − (1 − p)ⁿ for independent tries. With a 5% chance each time, 20 tries give 1 − 0.95²⁰ ≈ 64%, not 100%.