Venn Diagram Calculator
Enter two sets of comma-separated values to calculate union, intersection, and difference — with a visual Venn diagram.
Use the Venn Diagram Calculator
Enter Your Sets
Only in A
Only in B
A ∩ B (both)
Neither
—
|A| (Set A size)
—
|B| (Set B size)
—
|A ∪ B| (Union)
—
|A ∩ B| (Intersection)
Summary
This tool computes the classic set operations — union, intersection, and difference — for any two sets you provide. Enter items as comma-separated values, and the calculator instantly shows you which elements are shared, which are unique to each set, and the totals for every region. A color-coded Venn diagram makes the relationships easy to understand at a glance.
How it works
- Enter the elements of Set A as comma-separated values (e.g., 1, 2, 3, apple).
- Enter the elements of Set B in the same way.
- Click "Calculate" or type and the results update immediately.
- The tool parses each input, trims whitespace, and removes duplicate values within each set.
- Union (A ∪ B), intersection (A ∩ B), and both differences (A − B and B − A) are computed and displayed.
- A canvas-drawn Venn diagram shades each region to match the results.
Use cases
- Check which items two product lists have in common.
- Find overlapping student names across two class rosters.
- Compare two keyword lists to identify unique and shared terms.
- Solve set theory homework problems step by step.
- Audit two configuration files for common and differing keys.
- Identify shared tags between two blog categories.
Frequently Asked Questions
Last updated: 2026-06-11 · Reviewed by Nham Vu