Union & Intersection Probability Calculator

Apply the addition rule instantly.

How it is calculated

Enter P(A), P(B) and the overlap P(A ∩ B) as percentages. The tool applies the addition rule P(A ∪ B) = P(A) + P(B) − P(A ∩ B) and also returns the non-overlapping parts only A = P(A) − P(A ∩ B) and only B = P(B) − P(A ∩ B). Results are percentages with 2 decimal places. The overlap must be consistent with the other two numbers. It cannot be negative or larger than the smaller of P(A) and P(B), and by inclusion-exclusion it cannot be below P(A) + P(B) − 100, otherwise the union would exceed 100 %. Inconsistent inputs, values outside 0–100 and empty boxes give no result. Unlike the independent-events tool, no independence is assumed here, because you supply the overlap yourself.

Worked example

Suppose 40 % of customers bought product A, 30 % bought product B, and 10 % bought both. The union is 40 + 30 − 10 = 60.00%, the share who bought at least one. Only A: 40 − 10 = 30.00%. Only B: 30 − 10 = 20.00%. Check: only A + only B + both = 30 + 20 + 10 = 60 %, which equals the union.

Try this example →

Common mistakes

  • Adding P(A) and P(B) and stopping. 40 % + 30 % = 70 % counts the 10 % overlap twice, so the true union is 60 %.
  • Entering the probability of both as the probability of only one of them. The third box is the overlap itself, and "only A" is calculated for you.
  • Entering an overlap larger than either event, for example 35 % when P(B) is 30 %. The overlap cannot exceed the smaller event, and the tool returns nothing.
  • Entering an overlap that is too small. With P(A) = 80 % and P(B) = 80 % the overlap must be at least 60 %; a value of 10 % is impossible and is refused.
  • Using the product P(A) × P(B) as the overlap without checking independence. If the events are dependent, the product is wrong and the union will be off.

About this calculator

The addition rule of probability states that P(A ∪ B) = P(A) + P(B) − P(A ∩ B): to find the probability that event A or event B (or both) occurs, you add their individual probabilities and then subtract the overlap, because that overlap would otherwise be counted twice. This rule is one of the first non-trivial results taught in any probability or statistics course, and it generalizes the simpler additive rule used for mutually exclusive events (where P(A ∩ B) = 0).

Beyond the classroom, the union-intersection relationship underlies real risk and reliability calculations: an insurance analyst estimating the chance that a claim involves fire damage or water damage needs to subtract the overlap where both occurred; a quality engineer estimating the probability that a product fails test A or test B uses the same correction; marketers analyzing customer segments who bought product A or product B rely on it to avoid double-counting shared customers. Once P(A∪B) is known, the "only A" and "only B" probabilities — P(A) − P(A∩B) and P(B) − P(A∩B) — describe the parts of each event that don't overlap.

Was this helpful?

You can pick up to 3 reactions.

Comments

  • Be the first to comment.

Popular calculators

All Calculators