In Set Theory, Difference of two sets A and B or set difference A-B is a set of all the elements of Set A which are not there in Set B. Similarly, B-A is the set of all the elements of Set B which are not there in Set A.

For Example,

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

Then, the difference between the two sets: A and B and B and A are,

A-B = {1, 3, 5}

Therefore, the elements 1, 3, 5 belongs to only Set A but not to Set B.

B-A = {7}

Therefore, the element 7 belongs to Set B only but not Set A.

The given algebra set theory calculator helps you in finding the difference between two sets A-B or B-A.