BrightChamps Logo
Login

Summarize this article:

Live Math Learners Count Icon276 Learners

Last updated on November 20, 2025

De Morgan's Law

Professor Greenline Explaining Math Concepts

De Morgan’s Law is a pair of rules in boolean algebra, logic, and set theory. It relates the intersection and union of sets through complements. De Morgan’s Law is applied in the fields of mathematics, computer science, and design. In this article, we will learn more about De Morgan’s Law.

Professor Greenline from BrightChamps

What is De Morgan’s Law

De Morgan’s laws are two key transformation rules in Boolean algebra and set theory. They show how the union and intersection of sets relate to their complements. These laws help simplify complex expressions, making calculations and Boolean operations easier to handle.

 

According to De Morgan’s Laws:
 

  • The complement of the union of two sets is the same as the intersection of their individual complements.
  • The complement of the intersection of two sets is the same as the union of their individual complements.

 

These relationships can be clearly understood with the help of Venn diagrams. In this lesson, we will explore the statements of De Morgan’s laws, see how they are proven, and understand their applications with examples.

 

For example,

Let:

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


Universal set U = {1, 2, 3, 4, 5, 6}
 

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

Its complement \((A ∪ B)’ = ∅\)
 

A’ = {5, 6}
 

B’ = {1, 2}
 

Now,

\(A' \cap B' = \{ \} = \varnothing \)
 

So,

\(\ (A \cup B)' = A' \cap B' \ \)


This verifies the first De Morgan’s law.
 

Professor Greenline from BrightChamps

What is De Morgan’s Law Statement?

De Morgan’s laws are used in both Boolean algebra and set theory to simplify expressions involving unions, intersections, and complements. Let A and B be two subsets of a universal set U. The complements of A and B are written as A’ and B’ respectively. The symbol ∩ represents intersection, and ∪ means union.
Using these notations, De Morgan’s laws are stated as follows:

 

1. De Morgan’s Law of Union
The complement of the union of two sets A and B is equal to the intersection of their complements.
In symbolic form:
 

\((A ∪ B)’ = A’ ∩ B’\)

 

This rule can be extended to multiple sets. For a collection of sets \(\ \{A_1, A_2, \ldots, A_n\} \ \):

 

\(\ \left( \bigcup_{i=1}^{n} A_i \right)' = \bigcap_{i=1}^{n} A_i' \ \)

 

In the Venn diagram, the orange region shows A ∪ B, while the blue shaded region represents (A ∪ B)’.

 

2. De Morgan’s Law of Intersection
The complement of the intersection of sets A and B is equal to the union of their complements.
 

Symbolically:
 

\((A ∩ B)’ = A’ ∪ B’\)
 

This law also generalizes to multiple sets:

 

\(\ \left( \bigcap_{i=1}^{n} A_i \right)' = \bigcup_{i=1}^{n} A_i' \ \)

 

In the Venn diagram, the orange region indicates A ∩ B, while the blue area shows (A ∩ B)’.

Professor Greenline from BrightChamps

De Morgan’s Law Proof

In set theory, De Morgan’s laws show that when taking the complement of a union or intersection, the operations switch places. These laws can be proven using mathematical reasoning or truth tables.

 

1. Proof of \((A ∪ B)’ = A’ ∩ B’\)

Let \(R = (A ∪ B)’\) and \(S = A’ ∩ B’\).

To show \(R = S\), we must prove both \(R ⊂ S\)  and \(S ⊂ R\).
 

Step 1: Proving \(R ⊂ S\)
 

Take any element \(y ∈ R.\)
 

\(y ∈ (A ∪ B)’\)
 

\(y ∉ (A ∪ B)\)
 

⇒ \( y ∉ A\) and \(y ∉ B\)
 

\(y ∈ A’\) and \(y ∈ B’\)
 

\(y ∈ A’ ∩ B’\)
 

\(y ∈ S\)
 

Thus, \(R ⊂ S. …(1)\)

 


Step 2: Proving \( S ⊂ R\)
 

Take any element \(z ∈ S\).
 

\(z ∈ A’ ∩ B’\)
 

\(z ∈ A’\) and \(z ∈ B’\)
 

\(z ∉ A \) and \(z ∉ B\)
 

\(z ∉ (A ∪ B)\)
 

\(xz ∈ (A ∪ B)’\)
 

\( z ∈ R\)
 

Thus, \(S ⊂ R. …(2)\)
 

From (1) and (2), we conclude:
 

\((A ∪ B)’ = A’ ∩ B’\)

 

2. Proof of \((A ∩ B)’ = A’ ∪ B’\)
 

Let\( G = (A ∩ B)’ \) and \(H = A’ ∪ B’\).


To show G = H, we again prove \( G ⊂ H\) and \(H ⊂ G\).

 

Step 1: Proving \(G ⊂ H\)
 

Take any element \( y ∈ G\).
 

\(y ∈ (A ∩ B)’\)
 

\(y ∉ (A ∩ B)\)
 

⇒ \( y ∉ A \) or \(y ∉ B\)
 

\(y ∈ A’\) or \(y ∈ B’\)
 

\(y ∈ A’ ∪ B’\)
 

\(y ∈ H\)
 

Thus, \(G ⊂ H. …(1)\)
 

\( G ⊂ H. …(1)\)
 

Step 2: Proving \(H ⊂ G\)
 

Take any element \(z ∈ H\).
 

\(z ∈ A’ ∪ B’\)
 

\( z ∈ A’ or z ∈ B’\)
 

\(z ∉ A or z ∉ B\)
 

\(z ∉ (A ∩ B)\)
 

\(z ∈ (A ∩ B)’\)
 

\(z ∈ G\)
 

Thus, \(H ⊂ G. …(2)\)
 

Combining (1) and (2), we get:
 

\((A ∩ B)’ = A’ ∪ B’.\)

Explore Our Programs

Grade 1
arrow-left
arrow-right
Professor Greenline from BrightChamps

De Morgan’s Law in Boolean Algebra

De Morgan’s laws describe how logical operations behave under negation. In Boolean algebra, they are written as: 

 

  • \(¬(A • B) = ¬A + ¬B\)
  • \(¬(A + B) = ¬A • ¬B\)
     

Here, A and B are binary input variables that take values 0 or 1. Logical operations such as\( AND (A • B)\), \(OR (A + B)\), and NOT (negation) are represented using truth tables. These laws can be proved using these truth tables.

 

1. First De Morgan’s Law

Statement:
When two or more variables are OR’ed and then negated, the result is equal to the AND of their complements.

\(⇁(A+B)=⇁A⇁B\)
 

Truth Table Proof

A A+B ¬(A + B) ¬A ¬B ¬A • ¬B
0 0 1 1 1 1
1 1 0 0 1 0
0 1 0 1 0 0
1 1 0 0 0 0

 

The last two columns are identical, proving:

\(¬(A+B)=¬A⋅¬B\)

 

2. Second De Morgan’s Law

Statement:
When two or more variables are AND’ed and then negated, the result is equal to the OR of their complements.

 

\(¬(A⋅B)=¬A+¬B\)

 

Truth Table Proof

A A • B ¬(A • B) ¬A ¬B ¬A + ¬B
0 0 1 1 1 1
1 0 1 0 1 1
0 0 1 1 0 1
1 1 0 0 0 0

 

Again, the last two columns match, proving:

\(¬(A⋅B)=¬A+¬B\)

Professor Greenline from BrightChamps

What is De Morgan’s Law Formula

Let us learn more about De Morgan’s formulas in set theory, boolean algebra, and logic.

 

In set theory:
 

  • \((A ∪ B)’ = A’ ∩ B’\) (The complement of the union of two sets is the intersection of their complements.)

     
  • \((A ∩ B)’ = A’ ∪ B’ \)(The complement of the intersection of two sets is the union of their complements.)

 

Where:
 

  • \(∪\) = Union (OR in sets)
  • ∩ = Intersection (AND in sets)
  • ’ = Complement (NOT in sets)

 

In Logic: 
 

  • \(\ \sim (a \land b) \equiv \sim a \lor \sim b \ \)(The negation of “A AND B” is equivalent to “NOT A OR NOT B”)
     
  • \(\ \sim (a \lor b) \equiv \sim a \land \sim b \ \) (The negation of “A OR B” is equivalent to “NOT A  AND NOT B.”)
     


Where:
 

  •  ∼ → NOT (negation)
  • ∧ = AND
  • ∨ = OR
Professor Greenline from BrightChamps

Tips and Tricks to Master De Morgan's Law

De Morgan's law helps simplify complex logical expressions in math, programming, and circuits. Regular practice makes applying the rules faster and more accurate.
 

  • Know that \(¬(A ∧ B) = ¬A ∨ ¬B\) an\(¬(A ∨ B) = ¬A ∧ ¬B\).

     
  • Verify the law by creating truth tables for AND, OR, and NOT operations.

     
  • Rewrite complex logical expressions using De Morgan's Law for easier simplification.

     
  • Draw logic diagrams to see how AND/OR gates transform into equivalent forms.

     
  • Practice rewriting conditional statements in programming to strengthen understanding.

     
  • Parents can introduce basic logic diagrams to show how AND/OR gates change when the law is applied.

     
  • Children can practice rewriting conditional statements in coding, while parents or teachers give small exercises.
Max Pointing Out Common Math Mistakes

Common Mistakes and How to Avoid Them in De Morgan’s Law

De Morgan’s law can be quite overwhelming as there are many rules to remember. This may lead to students making mistakes. Here are a few common mistakes students make and ways to avoid them:

Mistake 1

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Incorrectly swapping \(AND (∧) \) and \(OR (∨)\).

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

When writing De Morgan’s law, students must remember to write the correct logical expression (AND, OR) and apply the negation properly. Writing incorrectly would completely change the expression and violate the law.

Mistake 2

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Not distributing the negation

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students must correctly apply negation to each term in the expression. Failing to do so would result in errors.

Mistake 3

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Getting confused with the set theory

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students must remember to swap the union and intersections correctly when solving for questions in set theory. Students must also remember to complement each term individually.

Mistake 4

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Errors when solving boolean algebra and digital logic

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

When simplifying logic circuits, students might incorrectly replace a NAND gate with an AND gate instead of a NOR gate. 

Mistake 5

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Applying De Morgan’s law when not needed

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students may sometimes apply De Morgan’s law when there is no negation present.

arrow-left
arrow-right
Professor Greenline from BrightChamps

Real-Life Applications of De Morgan's Law

De Morgan’s law is widely used in several fields, mainly computer science. Here are some real-world uses of De Morgan’s law:
 

  • Circuit design: Engineers use De Morgan’s law to simplify AND-OR logic and convert it into equivalent NAND or NOR circuits. 

     
  • Computer programming: Logical conditions used in programming can be rewritten to make the code more efficient.

     
  • Search engines: De Morgan’s law helps simplify complex search conditions for better accuracy.

     
  • Database queries: Simplifies complex NOT, AND, OR conditions in SQL queries for faster data retrieval.

     
  • Digital security systems: Helps design logic for alarms and access controls by simplifying security rules.
Max from BrightChamps Saying "Hey"
Hey!

Solved Examples on De Morgan’s Law

Ray, the Character from BrightChamps Explaining Math Concepts
Max, the Girl Character from BrightChamps

Problem 1

Simplify the logical expression ¬ ( A ∧ B ).

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

\(¬ A ∨ ¬ B\).

Explanation

De Morgan’s Law states that the negation of an AND is equivalent to the OR of the negations: \(¬ (A ∧ B) = ¬ A ∨ ¬ B\).

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 2

Express the complement of the intersection of sets A and B in terms of Ac and Bc

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

\((A ∩ B )^c = A^c ∪ B^c.\)

Explanation

De Morgan’s Law states that the complement of an intersection is the union of the complements.

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 3

Express the complement of the union of sets A and B in terms of A^c and B^c

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

\((A∪B)^c = A^c ∩ B^c.\)

Explanation

In sets, the complement of a union is given by the intersection of the complements.

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 4

Express the complement of the union of sets A, B, and C in terms of their complements.

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

\((A ∪ B ∪ C)^c = A^c ∩ B^c ∩ C^c.\)

Explanation

De Morgan’s law generalizes to multiple sets: the complement of a union equals the intersection of the complements.

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 5

Simplify the Boolean expression ¬((X ∧ Y) ∨ Z).

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

\( ( ¬ X ∨ ¬ Y) ∧ ¬ Z.\)

Explanation

First, apply De Morgan’s Law to the outer OR:

\(¬((X ∧ Y) ∨ Z) = ¬(X ∧ Y) ∧ ¬Z ¬((X ∧ Y) ∨ Z) = ¬(X ∧ Y) ∧ ¬Z.\)

Then, simplify  \(¬(X ∧ Y) = ¬X ∨ ¬Y ¬(X ∧ Y) = ¬X ∨ ¬Y\)

Thus, the final result is: \( ( ¬ X ∨ ¬ Y) ∧ ¬ Z\).

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Ray Thinking Deeply About Math Problems

FAQs On De Morgan’s Law

1.How do we use De Morgan’s Law in logic?

De Morgan’s Law can be used in logic, as it simplifies complex expressions that involve negations (NOT). They help us rewrite any compound statements into much simpler forms.

Math FAQ Answers Dropdown Arrow

2.How is De Morgan’s Law useful in set theory?

De Morgan’s Law in set theory shows how union and intersection work with complements. It states that the complement of a union is the intersection of the individual complements, and the complement of an intersection is the union of the individual complements.

Math FAQ Answers Dropdown Arrow

3.Why is De Morgan’s Law important in programming?

 It helps programmers rewrite their conditions in a much more readable and efficient manner. This can be helpful while debugging or optimizing codes.
 

Math FAQ Answers Dropdown Arrow

4.Who was the founder of De Morgan’s Law?

De Morgan’s Law was founded by a 19th-century British mathematician named Augustus De Morgan.
 

Math FAQ Answers Dropdown Arrow

5. Does De Morgan’s Law have any exceptions?

 No, De Morgan’s law does not hold any exceptions. 
 

Math FAQ Answers Dropdown Arrow

6.How can I make this fun for my child?

Try activities like:

  1. Household examples: “It’s not true that you cleaned your room and washed the dishes…”
  2. Game logic puzzles: Write simple true/false statements and ask your child to flip them using De Morgan’s Laws.
  3. Flashcards: One side shows a sentence (e.g., “Not (A and B)”), and the other side shows its equivalent (“Not A or Not B”).

Math FAQ Answers Dropdown Arrow

7.How can I connect this to school subjects of my child?

  1. Math: It’s part of set theory and logic.
  2. Computer Science: Used in coding, search filters, and Boolean logic.
  3. Language: Helps them reason carefully about statements and opposites.

Math FAQ Answers Dropdown Arrow

8.How can I check their understanding?

Ask your child to:

  1. Make up their own sentences using AND/OR.
  2. Write what happens when you add a NOT in front.
  3. Explain it back to you in their own words.

Math FAQ Answers Dropdown Arrow
Math Teacher Background Image
Math Teacher Image

Jaipreet Kour Wazir

About the Author

Jaipreet Kour Wazir is a data wizard with over 5 years of expertise in simplifying complex data concepts. From crunching numbers to crafting insightful visualizations, she turns raw data into compelling stories. Her journey from analytics to education ref

Max, the Girl Character from BrightChamps

Fun Fact

: She compares datasets to puzzle games—the more you play with them, the clearer the picture becomes!

INDONESIA - Axa Tower 45th floor, JL prof. Dr Satrio Kav. 18, Kel. Karet Kuningan, Kec. Setiabudi, Kota Adm. Jakarta Selatan, Prov. DKI Jakarta
INDIA - H.No. 8-2-699/1, SyNo. 346, Rd No. 12, Banjara Hills, Hyderabad, Telangana - 500034
SINGAPORE - 60 Paya Lebar Road #05-16, Paya Lebar Square, Singapore (409051)
USA - 251, Little Falls Drive, Wilmington, Delaware 19808
VIETNAM (Office 1) - Hung Vuong Building, 670 Ba Thang Hai, ward 14, district 10, Ho Chi Minh City
VIETNAM (Office 2) - 143 Nguyễn Thị Thập, Khu đô thị Him Lam, Quận 7, Thành phố Hồ Chí Minh 700000, Vietnam
UAE - BrightChamps, 8W building 5th Floor, DAFZ, Dubai, United Arab Emirates
UK - Ground floor, Redwood House, Brotherswood Court, Almondsbury Business Park, Bristol, BS32 4QW, United Kingdom