Home / Set Operations Calculator

Set Operations Calculator

Set operations compare two collections of labels and show the combined values, shared values, and values found in only one collection. Repeated entries are removed before the results are calculated.

How to use this calculator

  1. Enter comma- or semicolon-separated values in each set. The calculator trims spaces and removes exact duplicate labels.
  2. Check the labels and units before applying the result to a real task.
  3. Change one input at a time when comparing scenarios.

Formula and method

A ∪ B = values in either set; A ∩ B = values in both; A B = values in A but not B

  • A ∪ B = values in either set; A ∩ B = values in both; A B = values in A but not B
  • Items are compared as text labels rather than coerced to numbers. For example, “01” and “1” are different items.

Worked examples

Worked example

Set A is {1, 2, 3}; set B is {2, 3, 4}.

The union is {1, 2, 3, 4}, the intersection is {2, 3}, and A minus B is {1}.

The union is {1, 2, 3, 4}, the intersection is {2, 3}, and A minus B is {1}.

Understanding the result

Set operations compare two collections of labels and show the combined values, shared values, and values found in only one collection. Repeated entries are removed before the results are calculated.

Items are compared as text labels rather than coerced to numbers. For example, “01” and “1” are different items.

Important notes

Items are compared as text labels rather than coerced to numbers. For example, “01” and “1” are different items.

Displayed values are rounded for readability; retain appropriate precision when continuing a calculation.

Frequently asked questions

Does order matter for a set?

Mathematically a set is unordered. The displayed values are sorted for readability, but that display order does not change the membership of a set.

How is the intersection different from the union?

The intersection keeps only values present in both sets. The union includes every distinct value appearing in either set.

Are duplicate inputs counted more than once?

No. Exact duplicate labels are removed before union, intersection and difference results are shown.

Affiliate recommendations

Tools related to Set Operations Calculator

These tools are selected for the calculator topic. The Calc Studio may earn a commission from purchases made through affiliate links.

  • Growth Wise SAT & ACT prep Visit partner ↗

    SAT and ACT study tools, flashcards, and preparation resources for students.

See the Affiliate Disclosure for details.

Related calculators

  • Percent Difference Calculator — Calculate percent difference between two values using their average magnitude.
  • 2×2 Matrix Calculator — Add, subtract and multiply 2×2 matrices and calculate each determinant with transparent row and column inputs.
  • Circle Calculator — Calculate circle area, circumference, and diameter from radius.
  • Pythagorean Theorem Calculator — Find the hypotenuse of a right triangle from the two perpendicular sides.
  • Test Grade Calculator — Calculate the score needed on a final assessment to reach a target overall grade.
  • Arc Length Calculator — Calculate circular arc length and sector area from a radius and central angle in degrees.

Related explanations

Learn the method behind the number or compare the terminology before using the calculator.

  • Percentage Change vs Percentage Difference — Understand the difference between percentage change and percentage difference, including when each formula is appropriate.
  • How to Calculate Percent Error — Learn the percent error formula and how to compare an experimental value with a reference or accepted value.
  • Percent Difference — Understand percent difference, when it is appropriate, and how it differs from percentage change and percent error.

This page provides a calculation tool plus explanatory information so you can understand what the result means and when the underlying method may not fit your situation.

Explore more calculation resources

Keep exploring related tools, explanations, conversions, and topic pages in The Calc Studio. These links are selected around the subject of this page so you can move to the next useful calculation without returning to search.

Related calculators

  • Percent Difference Calculator — Calculate percent difference between two values using their average magnitude.
  • 2×2 Matrix Calculator — Add, subtract and multiply 2×2 matrices and calculate each determinant with transparent row and column inputs.
  • Pythagorean Theorem Calculator — Find the hypotenuse of a right triangle from the two perpendicular sides.
  • Circle Calculator — Calculate circle area, circumference, and diameter from radius.
  • Test Grade Calculator — Calculate the score needed on a final assessment to reach a target overall grade.
  • Arc Length Calculator — Calculate circular arc length and sector area from a radius and central angle in degrees.
Browse by categoryMath CalculatorsDate & Time CalculatorsScience & Electronics CalculatorsBusiness CalculatorsEveryday ToolsFinancial Calculators

Task collections

  • Math & Statistics Calculators — Free math and statistics calculators for Bayes theorem, set operations, matrices, complex numbers, vector products, normal distributions, averages, percentages, standard deviation, geometry, equations, and number systems.
  • Calculators for Students — Free student calculators for grades, percentages, fractions, probability, normal distributions, matrices, vectors, complex numbers, statistics, geometry, and scientific math.
  • Time & Date Calculators — Free time and date calculators for age, date differences, date arithmetic, business days, time duration, time zones, and countdowns.
  • Home Project Calculators — Free home and construction calculators for square footage, roofing, stairs, tile, concrete, framing stud counts, steel plate weight, siding, countertops, insulation, and material estimates.

Related guides

  • How to Calculate Percent Error — Learn the percent error formula and how to compare an experimental value with a reference or accepted value.
  • How to Calculate Age from a Date of Birth — Learn how exact age is calculated using years, months, and days rather than a rough year difference.
  • CAGR Explained: Compound Annual Growth Rate — Learn the CAGR formula and how to use it to compare growth over multiple years.

Related terms

  • Budget — Learn what a budget is and how simple income-minus-expenses calculations can support planning.
  • Discount — Understand discounts, percent-off pricing, and how to calculate the amount saved and the final price.
  • Markup — Learn what markup means, how markup is calculated from cost and selling price, and how it differs from margin.

Useful conversions

  • cm to inches — Convert centimeters to inches with a fast cm to inches converter, formula, examples, and common conversion values.
  • feet to cm — Convert feet to centimeters instantly with a free feet to cm converter, formula, examples, and common values.
  • feet to meters — Convert feet to meters with a free feet to meters converter, formula, examples, and common values.

Browse all calculators · Read all guides · Open the glossary · See all converters · Browse collections

Want to keep learning? Move from a calculator to its formula guide, glossary definition, unit conversion, or task collection to compare related methods and tools.

Optional Premium: save calculation history across visits and remove promotional blocks. See Premium.