📢 Advertisement — 728×90
📢 Advertisement

This union and intersection calculator is provided by Hesapstan to compare finite sets and compute A ∪ B, A ∩ B, A\B, B\A and the symmetric difference without confusing them with interval operations.

What does this calculator compute?

This calculator compares finite sets written as comma-separated elements. Set A and set B are required, and set C can be added when you need a three-set union or intersection.

  • A ∪ B contains every element that is in A, in B, or in both.
  • A ∩ B contains only the elements that are common to A and B.
  • A\B contains elements in A that are not in B.
  • B\A contains elements in B that are not in A.
  • A△B contains elements that are in exactly one of A or B.
Finite sets only

The calculator works with explicitly listed finite elements, such as numbers, letters or short labels. It does not process interval objects such as [1, 5] or infinite sets.

What do union and intersection mean?

Union means everything that appears in at least one of the sets. Intersection means only what appears in all of the selected sets.

For example, if A = {1, 2, 3} and B = {3, 4, 5}, then A ∪ B = {1, 2, 3, 4, 5}, while A ∩ B = {3}. The element 3 appears in both sets, so it is the intersection.

Duplicates are ignored

In set theory, writing the same element more than once does not create a new element. A = {1, 1, 2} is treated like {1, 2} for set operations.

How are difference and symmetric difference read?

Set difference is directional: A\B keeps what belongs to A but not to B. Symmetric difference keeps what belongs to exactly one of the two sets.

  • A\B is the A-only part.
  • B\A is the B-only part.
  • A△B combines A\B and B\A.
  • Elements common to both sets are not included in the symmetric difference.

This is useful when comparing two lists, groups, filters, tags, categories or result sets and you want to know what overlaps and what is unique to each side.

📢 Advertisement

How to use the A, B and optional C inputs

Enter the elements of each set separated by commas. The calculator will de-duplicate repeated entries within the same set and then compare membership across the sets.

  1. Enter set A, such as red, blue, green.
  2. Enter set B, such as blue, yellow, green.
  3. Turn on set C only if you need a three-set union or intersection.
  4. Read the union, intersection, differences and symmetric difference from the result area.
Three-set mode

When set C is enabled, the calculator shows the three-set union and three-set intersection. The A\B, B\A and symmetric difference outputs remain the core two-set comparison for A and B.

Worked example: two sets

Let A = {apple, pear, cherry} and B = {cherry, banana, pear, fig}. The common elements are pear and cherry.

  • A ∪ B = {apple, pear, cherry, banana, fig}
  • A ∩ B = {pear, cherry}
  • A\B = {apple}
  • B\A = {banana, fig}
  • A△B = {apple, banana, fig}

The example shows why symmetric difference is not the same as union: it removes the elements that are shared by both sets.

Worked example: three sets

Let A = {1, 2, 3}, B = {2, 3, 4} and C = {3, 4, 5}. The union contains everything that appears anywhere; the intersection keeps only what appears in all three.

  • A ∪ B ∪ C = {1, 2, 3, 4, 5}
  • A ∩ B ∩ C = {3}
  • 2 is in A and B, but not in C, so it is not in the three-set intersection.
  • 5 is in C only, so it belongs to the union but not the intersection.
Three-set Venn limitation

The calculator gives numeric three-set union and intersection results, but it does not draw a proportional three-set Venn diagram. The visual Venn-style display is for the two-set mode.

What does the Venn diagram show?

In two-set mode, the Venn-style diagram is a conceptual guide that separates the A-only region, the shared region and the B-only region.

The drawing is not intended to scale circle areas proportionally to the number of elements. The result lists are the authoritative calculated output; the diagram helps you read the logic visually.

Schematic visual

Use the Venn graphic as a learning aid, not as a proportional data visualization.

This is not an interval union calculator

The words union and intersection are also used for intervals, but this calculator is for finite element sets, not interval notation.

Do not confuse set elements with intervals

If your input is something like [1, 5] ∩ [3, 8], use an interval-notation or number-line inequality tool instead. This page is for sets such as {1, 2, 3} or {a, b, c}.

A simple test: if you are listing separate items, this set calculator is appropriate. If you are working with lower and upper bounds, use an interval calculator.

Common mistakes

Most mistakes come from counting repeated elements twice, reversing set difference, or mixing finite sets with interval notation.

  • Do not count the same element twice in a union.
  • Do not treat A\B and B\A as interchangeable.
  • Do not include common elements in the symmetric difference.
  • Do not treat an empty intersection as an error.
  • Do not use this page for interval union or interval intersection.

Limitations and trust notes

The calculator performs exact membership operations on the elements you enter. It does not infer hidden categories, normalize spelling, or judge whether two differently written labels should be treated as the same item.

  • Set A and set B cannot be empty.
  • Set C is optional and only affects the three-set union and intersection outputs.
  • Spelling matters: apple and Apple may be treated as different entries depending on input handling.
  • The results are for finite listed sets, not infinite sets or interval objects.

Which related calculator should I use?

Choose the related calculator based on the type of set question you are asking.

  • Use kuvvet-kumesi for a power set.
  • Use alt-kume to check subset relationships.
  • Use aralik-gosterimi for interval notation.
  • Use sayi-dogrusunda-esitsizlik for inequalities on a number line.

Frequently Asked Questions

What is the difference between union and intersection?

Union includes every element that appears in at least one set. Intersection includes only elements that appear in all selected sets.

What does A\B mean?

A\B means the elements that are in A but not in B. It is directional, so it is not the same as B\A.

Are duplicate entries counted twice?

No. A set contains unique elements, so duplicate entries inside the same set are de-duplicated for the operation.

Can this calculator handle interval unions?

No. It handles finite element sets. Use an interval-notation or number-line tool for interval union and intersection.

What changes when set C is enabled?

The calculator adds three-set union and intersection results. The two-set difference and symmetric-difference outputs remain focused on A and B.

📢 Advertisement

Related Calculators

𝒫Power Set CalculatorSubset Calculator[,]Interval Notation Calculator↔<Graphing Inequalities on a Number Line Calculator