Skip to main content

Numbers, Units & Calculators

Set Difference Calculator

Calculate a result with Set Difference from the values you enter. Enter the required values, adjust the options, and review the calculated result.

Tool workspace

Your input stays in this browser.

Add the required input to continue.

Needs input

You can run the tool again after any change.

Options

Your result appears here

Calculate a result with Set Difference from the values you enter. Enter the required values, adjust the options, and review the calculated result.

This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.

Set Difference Calculator returns items in one set that are absent from the other set.

It returns the relative complement of the two sets. The calculation runs in your browser. Processing runs in the browser.

Instructions

  1. Provide values for this tool.
  2. Enter two samples.
  3. Set sample and item delimiters.
  4. Check item spelling and duplicates.

Example

Input: a,b b,c

Settings: Set Difference Calculator: Sample delimiter: newline; item delimiter: comma.

Result: It returns the relative complement of the two sets.

Limits

  • Set Difference Calculator: Delimiter characters split items.
  • Set Difference Calculator: It treats input as text.
  • Set Difference Calculator: The direction of difference matters.