MyVIPWebTools logo

Inclusion-Exclusion Calculator — Find the Size of a Union of Sets

Our Inclusion-Exclusion Calculator computes |A ∪ B| or |A ∪ B ∪ C| directly from the sizes of the sets and their pairwise (and triple, for 3 sets) intersections — no element lists required, just counts — applying the inclusion-exclusion principle exactly and showing the full formula substitution.

Quick Answer

Enter the sizes of your sets and their intersections below to instantly compute the size of their union via the inclusion-exclusion principle, for 2 or 3 sets.

How to Use the Inclusion-Exclusion Calculator — Union of 2 or 3 Sets Online

  1. 1

    Choose 2 sets or 3 sets.

  2. 2

    Enter the size of each set and the size of each intersection (and the triple intersection, for 3 sets).

  3. 3

    Click 'Calculate' to see the size of the union and the formula substitution.

Why Use Inclusion-Exclusion Calculator — Union of 2 or 3 Sets Online?

Simply adding up the sizes of overlapping sets double-counts every element that appears in more than one — the inclusion-exclusion principle corrects for that by alternately adding and subtracting the sizes of every possible intersection: add the individual sets, subtract the pairwise overlaps (which were counted twice), then add back the triple overlap (which got subtracted out entirely by the pairwise correction). This calculator works purely from counts rather than actual element lists, making it useful when you know set sizes and overlap sizes from survey data or other aggregate counts rather than the underlying elements themselves — distinct from the site's Set Theory Calculator, which operates on explicit lists of elements.

Frequently Asked Questions

Related Tools

Inclusion-Exclusion Calculator — Union of 2 or 3 Sets Online | MyVIPWebTools