Venn Diagram Calculator
Enter two sets of comma-separated values to calculate union, intersection, and difference — with a visual Venn diagram.
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
Enter two sets of comma-separated values to calculate union, intersection, and difference — with a visual Venn diagram.
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-13 ·
Reviewed by Nham Vu