How it’s calculated
Adding the probabilities of events counts the outcomes where they overlap more than once. The inclusion–exclusion rule fixes this: subtract each pairwise overlap, then add back the triple overlap, which the subtraction removed once too often. It works for any events, independent or not, as long as you know the overlaps.
The calculator checks that your numbers can all be true at once: every overlap must be no bigger than the events it belongs to, every one of the seven Venn regions must be zero or more, and the union cannot exceed 1. If not, it tells you which region goes negative.
Worked example (Siegrist, §2.3 Probability Measures): P(A) = 0.3, P(B) = 0.2, P(C) = 0.4, P(A ∩ B) = 0.04, P(A ∩ C) = 0.1, P(B ∩ C) = 0.1 and P(A ∩ B ∩ C) = 0.01. Then P(A ∪ B ∪ C) = 0.3 + 0.2 + 0.4 − 0.04 − 0.1 − 0.1 + 0.01 = 0.67, so none of the three happens with probability 0.33. Exactly one happens with probability 0.45 and exactly two with probability 0.21, as in the source.
Frequently asked questions
Why add back P(A ∩ B ∩ C)?
Outcomes in all three events are counted three times when you add P(A), P(B) and P(C), then removed three times when you subtract the three pairwise overlaps. Adding P(A ∩ B ∩ C) back once counts them exactly once.
What if my events are independent?
Then each overlap is a product: P(A ∩ B) = P(A)·P(B) and P(A ∩ B ∩ C) = P(A)·P(B)·P(C). Enter those products, or use the probability calculator for two independent events.
What if the events cannot happen together?
For mutually exclusive events every overlap is 0 and the union is just the sum of the probabilities. The calculator will reject the inputs if that sum is more than 1.
Why does it say my numbers are inconsistent?
Some combination of overlaps is impossible, for example P(A ∩ B) larger than P(A), or overlaps so large that a region such as “A only” would have a negative probability. Recheck where each number came from.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
- Probability, Mathematical Statistics, and Stochastic Processes (Siegrist), §2.3 Probability Measures — LibreTexts
- Introductory Statistics 2e, §3.3 Two Basic Rules of Probability — OpenStax
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator