Venn Diagram Calculator

Find the regions of a two-set Venn diagram.

A ∪ B 45
Only in A 20
Only in B 15

Formula: A ∪ B = A + B − (A ∩ B)

Step-by-step with your numbers:
1. Values used:
2. Size of A = 30
3. Size of B = 25
4. Size of A ∩ B = 10
5.
6. A ∪ B = 45
7. Only in A = 20
8. Only in B = 15
Did we solve your problem today?

A Venn diagram splits two sets into the overlap and the parts unique to each.

The math behind it

Union = |A| + |B| − |A ∩ B| (inclusion–exclusion). Only-A = |A| − overlap.

Worked example

A 30, B 25, overlap 10 → union 45, only-A 20, only-B 15.

FAQ

What if the sets don't overlap?

Set the intersection to 0; the union is then just A + B.