Track progress, take quizzes and save notes on this lesson.

Free forever · no card needed

Start free
Intermediate

Boolean Algebra

4.6.5 Boolean algebra

Aligned to the AQA 7517 specification

Level
Intermediate
Reading time
6 min
Published
13 June 2026
Updated
1 July 2026
On this page
  1. 1.Boolean Algebra Fundamentals
  2. 2.Boolean Identities
  3. 3.De Morgan's Laws
  4. 4.Simplifying Boolean Expressions
  5. 5.Simplification: Circuit Reduction
  6. 6.Common Exam Mistakes

Key takeaways

  • Boolean algebra provides a set of rules for manipulating logical expressions, where variables take only two values: 0 (false) and 1 (true).
  • De Morgan's laws are NOT(A AND B) = NOT A OR NOT B and NOT(A OR B) = NOT A AND NOT B: every term is negated and the operator flips.
  • The complement laws state A AND NOT A = 0 and A OR NOT A = 1; a variable AND its inverse is always 0, and a variable OR its inverse is always 1.
  • The absorption laws are A AND (A OR B) = A and A OR (A AND B) = A, where the second term is absorbed because A already determines the result.
  • Simplifying a Boolean expression reduces the number of terms and operations, which corresponds to using fewer logic gates in a circuit.

Boolean Algebra Fundamentals

Boolean algebra provides a set of rules for manipulating logical expressions. Just as ordinary algebra lets you simplify , Boolean algebra lets you simplify logic circuits — fewer gates, cheaper hardware, faster operation.

Notation:

OperationSymbolMeaning
AND or both true
ORat least one true
NOT or inverse
XORexactly one true

In Boolean algebra, variables take only two values: 0 (false) and 1 (true).

Boolean Identities

These laws hold for any Boolean expression and can be applied in any order.

Identity laws (neutral elements)

Multiplying by 1 (AND with 1) leaves the variable unchanged. Adding 0 (OR with 0) leaves it unchanged.

Null/Domination laws

AND with 0 always gives 0. OR with 1 always gives 1.

Idempotent laws

AND-ing or OR-ing a variable with itself returns the same variable.

Complement laws

A variable AND its inverse is always 0. A variable OR its inverse is always 1.

Double negation

Inverting twice returns the original value.

Commutative laws

Associative laws

Distributive laws

Absorption laws

The second term is absorbed because already determines the result.

De Morgan's Laws

De Morgan's laws relate AND to OR through negation. They are among the most useful laws for simplifying complex Boolean expressions.

In words:

  • The NOT of an AND = the OR of the NOTs
  • The NOT of an OR = the AND of the NOTs

Verification by truth table for :

ABA·B
0001111
0101101
1001011
1110000

Application: NAND is , which equals by De Morgan's first law. So a NAND gate can be replaced by OR gate with inverted inputs — useful when designing with limited gate types.

Simplifying Boolean Expressions

The goal is to reduce the number of terms and operations in an expression, which corresponds to using fewer gates in a circuit.

Strategy:

  1. Identify terms that match a known identity
  2. Apply the identity to simplify
  3. Repeat until no further simplification is possible

Worked example 1

Simplify :

Worked example 2

Simplify :

Worked example 3

Simplify :

Worked example 4

Simplify :

This simplification means that a circuit computing can be replaced with just the single variable — a significant reduction.

Worked example 5 — using De Morgan's law

Simplify :

Apply De Morgan's second law to the outer NOT:

Worth saving these ideas?

Turn what you've read into instant revision cards. Free to get started.

Make flashcards

Simplification: Circuit Reduction

Boolean simplification directly reduces hardware. Each term saved removes one logic gate.

Worked example — simplify and draw:

Original expression:

Step 1 — factor the first two terms:

Expression is now:

Step 2 — apply distributive law:

Simplified:

Original: 7 gates (3 ANDs, 2 NOTs, 2 ORs). Simplified: 1 gate (one OR).

Confirming by truth table:

ABABABA+B
001100000
011000111
100101011
110010011

Truth table matches — simplification is correct.

Common Exam Mistakes

1. Applying De Morgan's law incorrectly to three or more variables

De Morgan's laws apply to two terms at a time: (extended form). Changing only some terms — or failing to flip the operator — is a common error. Every term is negated AND the operator flips.

2. Forgetting to flip the operator

— the AND becomes OR. — the OR becomes AND. A very common mistake is writing (negating terms but keeping the AND). This is wrong.

3. Applying absorption without verifying the form

Absorption () applies when one term is a subset of another. It does not apply to (no common factor). Check that the simpler term appears as a factor before applying absorption.

4. Confusing simplification steps

Show each step with the law used. In exam answers, each line should reference one law. Jumping multiple steps in one line causes marks to be lost if the intermediate result is wrong.

Key terms

Boolean algebra
A set of rules for manipulating logical expressions, where variables take only the values 0 (false) and 1 (true).
Identity laws
The laws A AND 1 = A and A OR 0 = A, where AND with 1 or OR with 0 leaves the variable unchanged.
Null / domination laws
The laws A AND 0 = 0 and A OR 1 = 1, where AND with 0 always gives 0 and OR with 1 always gives 1.
Idempotent laws
The laws A AND A = A and A OR A = A, where AND-ing or OR-ing a variable with itself returns the same variable.
Complement laws
The laws A AND NOT A = 0 and A OR NOT A = 1, relating a variable to its inverse.
Double negation
The law NOT(NOT A) = A, where inverting twice returns the original value.
Distributive laws
The laws A AND (B OR C) = (A AND B) OR (A AND C) and A OR (B AND C) = (A OR B) AND (A OR C).
Absorption laws
The laws A AND (A OR B) = A and A OR (A AND B) = A, where the second term is absorbed because A already determines the result.
De Morgan's laws
The laws NOT(A AND B) = NOT A OR NOT B and NOT(A OR B) = NOT A AND NOT B, relating AND to OR through negation.

Frequently asked questions

De Morgan's laws are NOT(A AND B) = NOT A OR NOT B and NOT(A OR B) = NOT A AND NOT B. In words, the NOT of an AND equals the OR of the NOTs, and the NOT of an OR equals the AND of the NOTs. Every term is negated and the operator flips.

Simplifying reduces the number of terms and operations in an expression, which corresponds to using fewer gates in a circuit. Fewer gates means cheaper hardware, faster operation, and each term saved removes one logic gate.

A very common mistake is negating the terms but failing to flip the operator, for example writing NOT(A AND B) = NOT A AND NOT B, which is wrong. The correct result is NOT(A AND B) = NOT A OR NOT B: the AND must become OR, and every term must be negated.

Generate revision on any topic you study

Type any topic you're studying and Aicademy generates a complete lesson, quiz, and flashcard set, personalised to your level.

Lessons on anything

Structured, level-matched lessons on any topic you study

Practice quizzes

Find out what you actually know before the exam does

Flashcard sets

Lock in key concepts with instant revision cards

Ask Aica

Stuck on something? Get a clear explanation, any time

Prev

Logic Gates and Circuits

Next

CPU Architecture and the Stored Program Concept

Related lessons

Top students don’t revise more. They revise what counts.

Start revising free

Free to start. No card needed.