StudyDeck

Logic Expressions

Exam code: 2210
Written by: Ashika|Reviewed by: Caroline Carroll|Updated 2 July 2026

Logic Expressions

Logic Expressions

  • A logic expression is a way of expressing a logic gate or logic circuit as an equation

  • The output appears on the left of the equals sign with the inputs and logic gates on the right

Gate

Symbol

Truth Table

Logic Expression

NOT

not

A

Z

0

1

1

0

Z = NOT A

AND

and

A

B

Z

0

0

0

0

1

0

1

0

0

1

1

1

Z = A AND B

OR

or

A

B

Z

0

0

0

0

1

1

1

0

1

1

1

1

Z = A OR B

NAND

nand

A

B

Z

0

0

1

0

1

1

1

0

1

1

1

0

Z = A NAND B

NOR

nor

A

B

Z

0

0

1

0

1

0

1

0

0

1

1

0

Z = A NOR B

XOR

xor

A

B

Z

0

0

0

0

1

1

1

0

1

1

1

0

Z = A XOR B

  • Logic circuits containing multiple gates can also be expressed as logic expressions/statements

An example logic circuit containing two inputs

screenshot-2023-05-30-at-09-28-55

  • The logic circuit above can be expressed as the logic expression Q= NOT(A OR B) 

 

An example logic circuit containing two inputs

screenshot-2023-05-30-at-09-29-06
  • The logic circuit above can be expressed as the logic expression Q= (NOT A) AND B 

 

An example logic circuit containing three inputs


  • The logic circuit above can be expressed as the logic expression P = ((NOT A) OR B) NAND C

 

An example logic circuit containing three inputs

screenshot-2023-05-30-at-09-35-30
  • This logic circuit above can be expressed as X = NOT (A NAND B) OR (B NOR C)