Difference of Two Sets

How to find the difference of two sets?

If A and B are two sets, then their difference is given by A - B or B - A. 

 If A = {2, 3, 4} and B = {4, 5, 6} 

A - B means elements of A which are not the elements of B.

i.e., in the above example A - B = {2, 3} 

In general, B - A = {x : x 
 B, and x  A} 

 If A and B are disjoint sets, then A – B = A and B – A = B 

Solved examples to find the difference of two sets:

1. A = {1, 2, 3} and B = {4, 5, 6}. 

Find the difference between the two sets:

(i) A and B

(ii) B and A


The two sets are disjoint as they do not have any elements in common.

(i) A - B = {1, 2, 3} = A

(ii) B - A = {4, 5, 6} = B 

2. Let A = {a, b, c, d, e, f} and B = {b, d, f, g}.

Find the difference between the two sets:

(i) A and B

(ii) B and A


(i) A - B = {a, c, e}

Therefore, the elements a, c, e belong to A but not to B 

(ii) B - A = {g)

Therefore, the element g belongs to B but not A. 

3. Given three sets P, Q and R such that:

P = {x : x is a natural number between 10 and 16},

Q = {y : y is a even number between 8 and 20} and

R = {7, 9, 11, 14, 18, 20}

(i) Find the difference of two sets P and Q

(ii) Find Q - R

(iii) Find R - P

(iv) Find Q – P


According to the given statements:

P = {11, 12, 13, 14, 15}

Q = {10, 12, 14, 16, 18}

R = {7, 9, 11, 14, 18, 20}

(i) P – Q = {Those elements of set P which are not in set Q}

            = {11, 13, 15}

(ii) Q – R = {Those elements of set Q not belonging to set R}

             = {10, 12, 16}

(iii) R – P = {Those elements of set R which are not in set P}

             = {7, 9, 18, 20}

(iv) Q – P = {Those elements of set Q not belonging to set P}

              = {10, 16, 18}

Set Theory


Objects Form a Set

Elements of a Set

Properties of Sets

Representation of a Set

Different Notations in Sets

Standard Sets of Numbers

Types of Sets

Pairs of Sets


Subsets of a Given Set

Operations on Sets

Union of Sets

Intersection of Sets

Difference of two Sets

Complement of a Set

Cardinal number of a set

Cardinal Properties of Sets

Venn Diagrams

7th Grade Math Problems

8th Grade Math Practice

From Difference of Two Sets to HOME PAGE

Didn't find what you were looking for? Or want to know more information about Math Only Math. Use this Google Search to find what you need.

New! Comments

Have your say about what you just read! Leave me a comment in the box below. Ask a Question or Answer a Question.

Share this page: What’s this?

Recent Articles

  1. Formation of Greatest and Smallest Numbers | Arranging the Numbers

    May 19, 24 03:36 PM

    Formation of Greatest and Smallest Numbers
    the greatest number is formed by arranging the given digits in descending order and the smallest number by arranging them in ascending order. The position of the digit at the extreme left of a number…

    Read More

  2. Formation of Numbers with the Given Digits |Making Numbers with Digits

    May 19, 24 03:19 PM

    In formation of numbers with the given digits we may say that a number is an arranged group of digits. Numbers may be formed with or without the repetition of digits.

    Read More

  3. Arranging Numbers | Ascending Order | Descending Order |Compare Digits

    May 19, 24 02:23 PM

    Arranging Numbers
    We know, while arranging numbers from the smallest number to the largest number, then the numbers are arranged in ascending order. Vice-versa while arranging numbers from the largest number to the sma…

    Read More

  4. Comparison of Numbers | Compare Numbers Rules | Examples of Comparison

    May 19, 24 01:26 PM

    Rules for Comparison of Numbers
    Rule I: We know that a number with more digits is always greater than the number with less number of digits. Rule II: When the two numbers have the same number of digits, we start comparing the digits…

    Read More

  5. Worksheets on Comparison of Numbers | Find the Greatest Number

    May 19, 24 10:42 AM

    Comparison of Two Numbers
    In worksheets on comparison of numbers students can practice the questions for fourth grade to compare numbers. This worksheet contains questions on numbers like to find the greatest number, arranging…

    Read More