Union of Two Events Formula Solver with Worked Examples

The addition rule is : add the probabilities and subtract the overlap. Use the calculator to find any one of the four.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Give every value except the one you want, or write the letter with a question mark, for example a=0.5, b=0.4, J=0.2 or U=0.8, a=0.5, b=0.4. Every answer is checked by putting it back into the formula.

  • : P(A or B)
  • : P(A)
  • : P(B)
  • : P(A and B)

Before you start

This page is easier if you are comfortable with:

What Union of two events (addition rule) means

When events can both happen, adding and counts the overlap twice. Subtracting corrects this.

A Venn diagram makes this clear: the union is the whole of both circles, and the intersection is where they overlap.

If the events are mutually exclusive, and the rule reduces to simple addition. For events that cannot overlap see mutually exclusive events, the complement is probability of not A, and the intersection uses conditional probability and the multiplication rule.

This page is part of Conditional probability and Venn diagrams in Probability. Topics that work alongside it: Mutually exclusive events, Conditional probability, Probability of not A, Dependent events (tree diagram), Independent events and Sum of probabilities.

What is it used for?

The addition rule says that P(A or B) = P(A) + P(B) − P(A and B). Subtracting the overlap stops it being counted twice.

How to use the union of two events (addition rule) formula

  1. Find , and .
  2. Add and .
  3. Subtract the overlap.
  4. Check that the result is between 0 and 1.

Diagram

ABA ∩ BS

P(A or B) = P(A) + P(B) − P(A and B). The overlap is counted once in A and once in B, so it is subtracted once.

Worked examples

Each example below was worked out by the solver on this page and checked by substituting the answer back into the formula.

Example 1: find P(A or B)

, and . Find .

Union of two events (addition rule) Answer checked
Answer
U=0.7U=0.7
  1. The formula
    Union of two events (addition rule). In this formula is the P(A or B), is the P(A), is the P(B), is the P(A and B).
  2. What we know and what we want
    We know and we want to find , the P(A or B).
  3. Substitute the numbers
  4. Calculate
  5. Check by substituting back
    Put all the values back into the original formula: both sides should match.

Example 2: find the overlap

, and . Find .

Union of two events (addition rule) Answer checked
Answer
J=0.1J=0.1
  1. The formula
    Union of two events (addition rule). In this formula is the P(A or B), is the P(A), is the P(B), is the P(A and B).
  2. What we know and what we want
    We know and we want to find , the P(A and B).
  3. Rearrange for
    Rearrange the formula to make J the subject.
  4. Substitute the numbers
  5. Calculate
  6. Check by substituting back
    Put all the values back into the original formula: both sides should match.

Example 3: find P(A)

, and . Find .

Union of two events (addition rule) Answer checked
Answer
a=0.5a=0.5
  1. The formula
    Union of two events (addition rule). In this formula is the P(A or B), is the P(A), is the P(B), is the P(A and B).
  2. What we know and what we want
    We know and we want to find , the P(A).
  3. Rearrange for
    Rearrange the formula to make a the subject.
  4. Substitute the numbers
  5. Calculate
  6. Check by substituting back
    Put all the values back into the original formula: both sides should match.

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

P(A or B)

0.5 + 0.4 − 0.2 = 0.7

Subtract the overlap once.

The overlap

U = 0.8, a = 0.5, b = 0.4: J = 0.1

J = a + b − U.

Finding P(A)

U = 0.7, b = 0.4, J = 0.2: a = 0.5

a = U − b + J.

Neither

P(neither) = 1 − 0.7 = 0.3

The complement of the union.

Word problems

P(A or B) = P(A) + P(B) − P(A and B). The overlap is counted twice, so subtract it once.

P(A or B)

P(A) = 0.5, P(B) = 0.4 and P(A and B) = 0.2. Find P(A or B).

  1. Add0.5 + 0.4 = 0.9
  2. Subtract the overlap0.9 − 0.2 = 0.7
  3. Check: at least as big as P(A) ✓0.7.

The overlap

P(A or B) = 0.8, P(A) = 0.5 and P(B) = 0.4. Find P(A and B).

  1. RearrangeJ = a + b − U
  2. Calculate0.9 − 0.8 = 0.1
  3. Check: 0.5 + 0.4 − 0.1 = 0.8 ✓0.1.

Finding P(A) Higher

P(A or B) = 0.7, P(B) = 0.4 and P(A and B) = 0.2. Find P(A).

  1. Rearrangea = U − b + J
  2. Calculate0.7 − 0.4 + 0.2 = 0.5
  3. Check: 0.5 + 0.4 − 0.2 = 0.7 ✓0.5.

Subjects Higher

In a class 60% like maths, 50% like science and 30% like both. What fraction like at least one, and what fraction like neither?

  1. At least one0.6 + 0.5 − 0.3 = 0.8
  2. Neither1 − 0.8 = 0.2
  3. Check: 0.8 + 0.2 = 1 ✓0.8 and 0.2.

Common mistakes

Forgetting the overlap

0.5 + 0.4 = 0.9 ✗

0.5 + 0.4 − 0.2 = 0.7 ✓

The overlap is counted twice.

Subtracting twice

0.5 + 0.4 − 0.2 − 0.2 ✗

subtract once ✓

Only one copy is extra.

Adding the overlap

0.5 + 0.4 + 0.2 = 1.1 ✗

0.5 + 0.4 − 0.2 ✓

Subtract it.

Multiplying

0.5 × 0.4 = 0.2 ✗

0.5 + 0.4 − 0.2 ✓

“Or” adds.

Exam tips

  1. U = a + b − J.
  2. Draw a Venn diagram.
  3. Exclusive: J = 0.
  4. Neither = 1 − U.
  5. Check U ≤ 1.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. P(A) = 0.6, P(B) = 0.3, P(A and B) = 0.1. Find P(A or B) Foundation

0.8

2. P(A) = 0.5, P(B) = 0.5, P(A and B) = 0.25. Find P(A or B) Foundation

0.75

3. P(A) = 0.4, P(B) = 0.35, P(A and B) = 0.15. Find P(A or B) Foundation

0.6

4. P(A or B) = 0.9, P(A) = 0.6, P(B) = 0.5. Find P(A and B) Higher

0.2

5. P(A or B) = 0.75, P(B) = 0.4, P(A and B) = 0.1. Find P(A) Higher

0.45

6. P(A or B) = 0.85. Find P(neither) Higher

0.15

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Union
A or B (or both).
Intersection
A and B.
Overlap
Outcomes in both.
Venn diagram
Overlapping circles.
Complement
Not in the union.
Addition rule
U = a + b − J.

Frequently asked questions

What is the addition rule?

P(A or B) = P(A) + P(B) − P(A and B).

Why subtract the overlap?

It is counted twice.

What if the events are exclusive?

The overlap is 0.

How do I find P(neither)?

1 − P(A or B).

Which page covers exclusive events?

mutually exclusive events.

Which page covers P(not A)?

probability of not A.

More in Probability and the formula sheets.