Home › Statistics & Probability Calculators › Probability Calculator for Two Events
Probability Calculator (Two Events)
This probability calculator works out every combination of two events A and B. Enter P(A) and P(B) and say how the events are related: independent (one does not affect the other), mutually exclusive (they cannot both happen) or overlapping with a known P(A and B). The calculator returns the intersection, the union, both complements, exactly one, neither, and the two conditional probabilities.
The union uses the addition rule P(A or B) = P(A) + P(B) − P(A and B), which avoids counting the overlap twice. For independent events the overlap is P(A) × P(B); for mutually exclusive events it is 0. Conditional probability P(A | B) = P(A and B) ÷ P(B) is the chance of A once you know B happened. When the events are independent it equals P(A).
If you enter P(A and B) yourself, the calculator checks it is possible: it cannot exceed the smaller of P(A) and P(B), or be less than P(A) + P(B) − 1. For repeated independent trials, such as several coin tosses, use the binomial distribution calculator, and for counting outcomes see the combination calculator.
Result and step-by-step solution
P(A and B) = 0.2; P(neither) = 0.3
- IntersectionIndependent: P(A and B) = P(A) × P(B) = 0.5 × 0.4 = 0.2
- Union (addition rule)P(A or B) = P(A) + P(B) − P(A and B) = 0.5 + 0.4 − 0.2 = 0.7
- ComplementsP(A’) = 1 − 0.5 = 0.5; P(B’) = 1 − 0.4 = 0.6
- Conditional probabilityP(A | B) = P(A and B) ÷ P(B) = 0.5; P(B | A) = 0.4
| Event | Probability |
|---|---|
| A and B | 0.2 |
| A or B | 0.7 |
| Exactly one of A, B | 0.5 |
| Neither A nor B | 0.3 |
| Not A | 0.5 |
| Not B | 0.6 |
| A given B | 0.5 |
| B given A | 0.4 |
Frequently asked questions
- How do I calculate the probability of A and B?
- If A and B are independent, multiply: P(A and B) = P(A) × P(B). Otherwise use P(A and B) = P(A) × P(B | A).
- How do I calculate the probability of A or B?
- P(A or B) = P(A) + P(B) − P(A and B). For mutually exclusive events the last term is 0, so the probabilities simply add.
- What is the probability of neither event?
- 1 − P(A or B). With P(A) = 0.5 and P(B) = 0.4 independent, that is 1 − 0.7 = 0.3.
- Are mutually exclusive events independent?
- No (unless one has probability 0). If A happens, B cannot, so knowing A changes the probability of B to 0.
Last reviewed: October 7, 2026. Calculations run in your browser and were validated against SciPy.
