# Set Calculator - Union, Intersection, Difference and Symmetric Difference

> Free online set calculator: union, intersection, differences and symmetric difference of two groups, with subset and disjoint checks and Jaccard similarity.

- URL: https://qilingtools.com/en/math/set
- Category: Math Tools (https://qilingtools.com/en/math)
- Tags: [Math](https://qilingtools.com/en/tags/math), [Education](https://qilingtools.com/en/tags/education), [Algorithms](https://qilingtools.com/en/tags/algorithm)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Paste two groups of elements — numbers or words — to get the union, intersection, A−B, B−A and the symmetric difference, together with subset, superset, equality and disjoint checks, the Jaccard similarity, the power set size and the size of the Cartesian product. Duplicates are removed automatically.

## How to use

1. Enter the elements of set A and set B in the two boxes
2. Separate elements with spaces, commas or line breaks
3. Read the results and choose whether to sort them numerically

## Features

- Union, intersection, both differences and the symmetric difference at once
- Subset, superset, equality and disjoint checks
- Jaccard similarity to measure the overlap
- Power set size 2^|A| as an exact big integer, and the Cartesian product size
- Duplicates removed, with a note saying how many

## FAQ

### What is the difference A−B?

The elements of A that are not in B. A−B and B−A are generally different, so both are listed.

### What is the symmetric difference?

A △ B holds the elements in exactly one of the sets: (A−B) ∪ (B−A), equivalently the union minus the intersection.

### Why are there fewer elements than I typed?

Sets contain no duplicates, so repeated entries are merged — the tool tells you how many were removed.

### What does the Jaccard similarity mean?

The size of the intersection divided by the size of the union, from 0 to 1. It measures how similar two sets are and is widely used in text and data deduplication.

## Related tools

- [Graphing Calculator](https://qilingtools.com/en/math/graph): Free online function graphing calculator: type sin(x), x^2 or 1/x and see the curve at once, with several functions, parametric and polar curves, PNG export.
- [Scientific Calculator](https://qilingtools.com/en/math/calculator): Free online scientific calculator: type 2*(3+4)^2, sin(pi/6) or log(8,2) and see the answer as you type, with degrees or radians and a history list.
- [Equation Solver](https://qilingtools.com/en/math/equation): Free online equation solver: enter coefficients for linear, quadratic (with discriminant, vertex and complex roots) and cubic equations, plus 2×2 systems.
- [Fraction Calculator](https://qilingtools.com/en/math/fraction): Free online fraction calculator: add, subtract, multiply and divide fractions with automatic reduction, plus fraction ↔ decimal with repeating digits.
- [Percentage Calculator](https://qilingtools.com/en/math/percentage): Free online percentage calculator: X% of Y, X as a percent of Y, increase and decrease, a value after a percentage change and the original behind it.
- [Prime Factorization](https://qilingtools.com/en/math/prime): Free online prime factorization: factor an integer with exponents, list every divisor and their sum, test primality with neighbouring primes, or list a range.
- [GCD and LCM](https://qilingtools.com/en/math/gcd-lcm): Free online GCD and LCM calculator: works with two or more integers, says whether they are coprime, shows each prime factorization and every Euclidean step.
- [Statistics Calculator](https://qilingtools.com/en/math/statistics): Free online statistics calculator: paste a data set for the mean, median, mode, range, quartiles, variance, standard deviation, standard error and outliers.
