Boolean Logic: Gates and Truth Tables
Aligned to the AQA 8525 specification
- Topic
- Computer systems
- Level
- Intermediate
- Reading time
- 7 min
- Published
- 3 June 2026
- Updated
- 1 July 2026
On this page
Key takeaways
- A logic gate takes one or more binary inputs (0 or 1) and produces a single binary output by a fixed rule; AQA 8525 requires only NOT, AND, OR and XOR, and excludes NAND and NOR.
- AND outputs 1 only when all inputs are 1; OR outputs 1 when at least one input is 1; XOR outputs 1 only when its two inputs differ.
- OR and XOR differ in exactly one row: when both inputs are 1, OR gives 1 but XOR gives 0.
- A logic circuit with n inputs has exactly 2^n rows in its truth table: 1 input gives 2 rows, 2 inputs give 4, 3 inputs give 8.
- In Boolean expressions AND (.) has higher precedence than OR (+), so A.B + C means (A.B) + C, not A.(B + C).
Worth saving these ideas?
Turn what you've read into instant revision cards. Free to get started.
Key terms
- Logic gate
- A circuit component that takes one or more binary inputs and produces a single binary output according to a fixed rule.
- Boolean algebra
- A mathematical system where values are either true (1) or false (0), physically implemented by logic gates.
- NOT gate
- A single-input gate, also called an inverter, that outputs the opposite of its input; written as A with an overbar.
- AND gate
- A gate whose output is 1 only when all of its inputs are 1; written A.B.
- OR gate
- A gate whose output is 1 when at least one input is 1, and 0 only when all inputs are 0; written A+B.
- XOR gate
- An exclusive OR gate whose output is 1 only when its two inputs are different; written A ⊕ B.
- Truth table
- A table listing every possible combination of inputs and the resulting output for a gate or circuit.
- Boolean expression
- An algebraic description of a logic circuit's output using the symbols for AND, OR, XOR and NOT.
- Logic circuit
- A connection of gates in which the output of one gate can feed as an input into another.
Frequently asked questions
OR outputs 1 when at least one input is 1, including when both are 1. XOR outputs 1 only when the inputs are different, so when both inputs are 1 OR gives 1 but XOR gives 0. This single row is what distinguishes the two gates.
AQA 8525 requires four gates: NOT, AND, OR and XOR. NAND and NOR are explicitly excluded, so you should not use them in answers unless a question supplies them.
A circuit with n inputs has exactly 2^n rows. One input gives 2 rows, two inputs give 4 rows, and three inputs give 8 rows. Omitting or adding rows both lose marks.
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
Software Classification: System Software and Applications
Programming Languages and Translators
Related lessons
8 min
7 min