On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Sets & Logic · Grade 6-8

Complement

The complement A′ collects all elements of the universal set U that are NOT in A.

A′={x∈U:x∉A}

Quick Answer

The complement A′ collects all elements of the universal set U that are NOT in A. Use it whenever a problem asks about everything else: students not in any club, cards that are not hearts, days without rain. The universe U must be fixed first, because 'everything else' depends on it. Counting is then a subtraction, ∣A′∣=∣U∣−∣A∣, and in probability the same idea gives P(not A)=1−P(A).

Why This Matters

The complement turns many hard counts into easy ones. To count the results of 3 coin flips with at least one head, count the opposite: only TTT has none, so 8−1=7 of the 23=8 outcomes qualify. Without a named universe, 'not in A' has no definite answer, which is why every complement question starts by fixing U.

Intuitive Explanation

A class has 25 students and 9 of them wear glasses. The students who do not wear glasses are the complement of the glasses group, and there are 25−9=16 of them. You didn't have to list anyone: the complement is the whole class minus the set you know. In a Venn diagram it is everything inside the rectangle but outside the circle.

The rectangle matters. 'Not wearing glasses' means a different group if the universe is your class (16 people) or the whole school (hundreds). Take A={2,4}: with U={1,2,3,4,5,6}, A′={1,3,5,6}, but with U={1,2,3,4}, A′={1,3}. Two facts always hold: A and A′ share nothing, and together they make up all of U. Taking the complement twice brings you back to A.

Set difference looks similar but removes A from one particular set B rather than from everything. If B is the chess club, B∖A is the chess players without glasses, usually a much smaller group than A′. Ask yourself whether you are taking away from the whole universe or from one named set.

Think of it like this. Cut a star out of a sheet of paper: the star is A and the sheet with the star-shaped hole is A′. Together they make the whole sheet, and they never overlap. A bigger sheet leaves more paper around the same star, just as a bigger universe gives a bigger complement.

Core idea. The complement of A is every element of the universe U that is not in A.


When to Use

Use the complement when a problem asks about what is outside a group: 'not', 'everyone except', 'neither', 'the rest', 'outside'. Name the universe first, then subtract: ∣A′∣=∣U∣−∣A∣. It is also the shortcut for 'at least one' counts: the total minus the 'none' case. If the question removes a group from one specific set rather than from everything, use set difference B∖A.

Tip. Ask: Am I collecting everything in the fixed universe that is NOT in this set?

How to Recognize It

Before taking a complement, pin down the universal set, because the answer is everything in that universe that the set leaves out.

  1. Does the problem tell you, or let you work out, the whole universe, such as the 30 students in a class or the numbers 1 to 10?

    If yes, the complement is that universe minus the set. If no, choose one before you start, because 'not even' means different things among the numbers 1 to 10 and among all whole numbers.

  2. Are you removing the set from one particular group, such as only the girls in a class, rather than from everyone?

    If yes, you need set difference B∖A, which stays inside B. If no, and the removal is from the whole universe, it is the complement A′.

  3. Are you counting 'at least one', where the 'none' case is easier to count?

    If yes, count the complement: the total minus the cases with none. Two coins have 4 outcomes, and 1 has no heads, so 3 have at least one head. If no, count the set directly.

  4. Is the thing being denied a sentence rather than a group of objects?

    If yes, use logical negation, which flips true and false. If no, and you are collecting objects outside a group, the complement fits; the ideas match, since x∈A′ means 'it is not true that x∈A'.

Complement compared with Set difference B ∖ A, Negation, and Empty set

Complement, set difference, negation and the empty set are all about what is left out. Ask what you are taking something away from: the whole universe (complement), one particular set (difference), a true-or-false sentence (negation), or whether nothing at all remains (empty set).

Complement

Meaning
Use this when you want all elements outside a set, relative to a fixed universal set (the NOT condition).
Key test
Am I collecting everything in the fixed universe that is NOT in this set?
Formula
A′={x∈U:x∉A}
Example
Let U={1,2,3,4,5,6} and A={2,4,6}. Find A′.

Set difference B∖A

Meaning
Removes A from a specific set B, not from the whole universe.
Key test
Use when you subtract one set from another particular set.
Formula
B∖A={x∈B:x∉A}
Example
{1,2,3}∖{2}={1,3}

Negation

Meaning
Flips the truth value of a statement, not a set.
Key test
Use when you negate a logical claim, not collect non-members.
Formula
¬P
Example
¬(7 is prime)=7 is not prime

Empty set

Meaning
The result when A=U, but not the operation itself.
Key test
Use to name the no-elements set; U′=∅.
Formula
U′=∅
Example
Complement of the whole universe is empty

Formula & Notation

A′={x∈U:x∉A}
Ac={x∈U:x∉A}; equivalently Ac=U∖A

How to read it: A′ or Ac

Worked Examples

Example 1 — Take a complement

Easy

Let U={1,2,3,4,5,6} and A={2,4,6}. Find A′.
Show the steps and the answer
  1. Write out the universe: U={1,2,3,4,5,6}.

    The complement can only contain members of U, so U is the list to scan.

  2. Cross out the members of A: 2,4,6.

    Anything in A is excluded from A′.

  3. Keep what is left: A′={1,3,5}.

    These are exactly the members of U that are not in A.

  4. Check: ∣A∣+∣A′∣=3+3=6=∣U∣, and A∩A′=∅.

    A set and its complement split the universe with no overlap and nothing left over.

Answer: A′={1,3,5}

Takeaway: Scan the universe and drop the members of A; a set and its complement must add up to the whole universe.

Example 2 — Wrong universe

Standard

Using U={1,2,3} instead, with A={2}, what is A′?
Show the steps and the answer
  1. Read the new universe: U={1,2,3}.

    The question changes U, and a complement is always taken inside the stated universe.

  2. Remove A={2} from U: A′={1,3}.

    Only 1 and 3 are in U and not in A.

  3. Explain why {1,3,4,5,6} is wrong: 4,5,6∉U.

    That answer uses the old universe {1,…,6}; a number outside U cannot be in a complement taken inside U.

  4. Check: ∣A∣+∣A′∣=1+2=3=∣U∣.

    The pieces add up to the current universe, not the old one.

Answer: A′={1,3}, not {1,3,4,5,6}

Takeaway: The same set can have different complements; always take A′ inside the universe the problem gives you.

Example 3 — Find the mistake: complement or set difference?

Application

A school has 300 students. 120 are in the music program and 80 play a sport; 30 of the sport players are also in music. Zoe is asked how many students are not in music and writes: "Not in music means the sport players minus music: 80−30=50." Find the mistake and correct it.
Show the steps and the answer
  1. Identify the universe: all 300 students.

    'Not in music' refers to the whole school unless a smaller group is named.

  2. Compute the complement: ∣M′∣=300−120=180.

    Every student outside the music program counts, whether or not they play a sport.

  3. Name what Zoe found: S∖M, the sport players not in music, 80−30=50.

    She removed music from the sport set only, which is a set difference, not the complement.

  4. Check that the parts fit: 180−50=130 students are in neither music nor sport, and 120+80−30+130=300.

    Zoe's 50 are part of the complement, but she left out the 130 who do neither activity.

Answer: 180 students are not in music (Zoe's 50 counts only the sport players outside music).

Takeaway: A complement removes the set from the entire universe; removing it from one other group gives a set difference, which is usually smaller.

Where You'll See It

  • The chance of rolling at least one six

    With two dice it is easier to count rolls with no six than rolls with at least one. No six: 5×5=25 of the 36 possible rolls. The complement, at least one six, is 36−25=11 rolls, so the chance is 1136, about 31%.

  • Taking attendance

    A teacher with 28 students on the roll counts the 3 absent students rather than the 25 present ones. Present is the complement of absent within the class: 28−3=25. The roll is the universe; without it, 'everyone who isn't absent' would have no fixed size.

Common Mistakes

  1. The slip: Computing a complement without naming the universe U

    Instead: fix U first, since 'everything else' depends on it.

  2. The slip: Confusing A′ with B∖A

    Instead: the complement removes A from all of U; set difference removes it from a specific B.

  3. The slip: Including elements of A in A′

    Instead: the complement holds only elements NOT in A.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Let U={1,2,3,…,10} and A={1,4,9}. Find A′.

    Hint: Start with the whole universe and cross out the elements of A.

  2. Let U be the 7 days of the week and W={Saturday,Sunday}. Find W′ and ∣W′∣.

    Hint: Which days are in the universe but not in W?

  3. A class has 28 students, and 17 of them have a pet. If P is the set of pet owners and U is the class, what is ∣P′∣?

    Hint: How many students in the class are not pet owners?

  4. Let U={1,2,…,8}, A={1,2,3} and B={3,4,5}. Find (A∪B)′.

    Hint: Find A∪B first, then take what is left in U.

  5. With U={1,…,10}, A={2,4} and B={1,2,3}, is "the elements of B that are not in A" the complement A′ or the set difference B∖A? Find it.

    Hint: Are you removing A from all of U, or only from B?

  6. With U={red,blue,green,yellow} and A={red,blue}, Ella writes A′={green,yellow,purple,…}, "all the other colors." Correct Ella.

    Hint: Where does the complement get its elements from?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

What is the complement of the complement?

It is the original set: (A′)′=A(A')' = A. Taking everything outside AA, and then everything outside that, brings you straight back to AA. This matches double negation in logic, where 'not not true' means true. It is handy in probability: if the chance of A′A' is 0.30.3, the chance of AA is 0.70.7 straight away.

What is the complement of a union?

It is the intersection of the complements: (A∪B)′=A′∩B′(A \cup B)' = A' \cap B'. Being outside 'A or B' means being outside A and also outside B. In a class, the students who play neither soccer nor tennis are exactly those who do not play soccer and do not play tennis. In the same way, (A∩B)′=A′∪B′(A \cap B)' = A' \cup B'. These two rules are called De Morgan's laws.

Why do some books write Ac and others A′ or A‾?

All three mean the same complement; the choice is the author's habit. AcA^c, with c for complement, is common in probability books, A′A' appears in many school texts, and A‾\overline{A}, with a bar on top, is popular in logic and computer science. Some books write U∖AU \setminus A to keep the universe in view. Whichever you use, say what UU is.

Is 'not tall' the complement of 'tall'?

Only once 'tall' has a clear cut-off. If tall means over 170 cm, the complement is everyone 170 cm or under, and every person lands in exactly one of the two groups. Without a cut-off, 'tall' is not a set, so it has no complement. Note also that the complement is 'not tall', which includes people of medium height, so it is not the same as 'short'.

Learning Path

← Before

Set
Complement

You are here

Next →

Nothing after this yet
You need Set first, plus the idea of a universal set U that holds everything under discussion. Complement adds the 'not' operation: everything in U outside a set. With it you can count by subtraction, turn 'at least one' problems into 'all minus none', read the outside region of a Venn diagram, and later use P(not A)=1−P(A) in probability.

See Also