In simple terms
A friendly intro before the formal notes — no formulas yet.
The Building Blocks of Logic
Logic gates are simple electronic circuits that take one or more binary inputs and produce a single binary output. By combining these gates, we can build complex systems that perform everything from simple arithmetic to running a full operating system.
Imagine you have two light switches controlling one bulb. If they must both be ON for the bulb to light up, that's an AND gate (switches in series). If either one being ON is enough to light the bulb, that's an OR gate (switches in parallel). A NOT gate is like a switch that turns the bulb ON when the switch is OFF, and vice-versa.
- 1
Basic gates like NOT, AND, and OR have defined behaviours. Their output for every possible combination of inputs is captured in a truth table.
- 2
NAND and NOR gates are 'universal'. This means you can construct any other logic gate, and therefore any logic circuit, using only NAND gates or only NOR gates.
- 3
Boolean algebra is the mathematics used to analyse and simplify logic circuits. Key rules, like De Morgan's laws, allow us to find equivalent circuits with fewer gates, saving cost and power.
- 4
Logic circuits are combinations of gates designed to perform specific tasks. These range from simple adders in a CPU to complex control logic in memory systems.
Explore the concept
Use the live diagram and synced steps — play it or tap a step card to walk through.
Key formulas
Tap any symbol to reveal exactly what it means and its units.
Full topic notes
Formal explanation with the rigour you need for the exam.
The Fundamental Logic Gates
There are several fundamental logic gates, each performing a simple operation. They operate on binary values: 0 (False, Off) and 1 (True, On). For your exam, you must know the name, symbol, and function of each. The three most basic gates are NOT, AND, and OR.
NOT Gate: Has one input and one output. It inverts the input. If input A is 1, output X is 0. If A is 0, X is 1. Boolean expression: .
AND Gate: Has two or more inputs and one output. The output is 1 only if all inputs are 1. Boolean expression: .
OR Gate: Has two or more inputs and one output. The output is 1 if any input is 1. Boolean expression: .
Compound and Universal Gates
By combining the basic gates, we can create more complex ones. The NAND (NOT-AND) and NOR (NOT-OR) gates are crucial because they are 'universal gates'. This means any logic circuit can be constructed using only NAND gates, or only NOR gates. The XOR (Exclusive-OR) gate is also very common, particularly in arithmetic circuits.
NAND Gate: The output is the opposite of an AND gate. It is 0 only when all inputs are 1. Boolean expression: .
NOR Gate: The output is the opposite of an OR gate. It is 1 only when all inputs are 0. Boolean expression: .
XOR Gate: The output is 1 only if the inputs are different. If inputs A and B are both 0 or both 1, the output is 0. Boolean expression: .
From Gates to Circuits: Boolean Algebra
Boolean algebra is the mathematical system used to analyse and simplify logic circuits. Using a set of laws and identities, we can manipulate Boolean expressions to create circuits that are simpler, cheaper, and faster. This is a vital skill for hardware design and a common exam topic. The most powerful rules for simplification are De Morgan's Laws.
Key Boolean Identities:\nIdentity: , \nAnnulment: , \nIdempotent: , \nComplement: , \nCommutative: , \nAssociative: , \nDistributive: , \nAbsorption: , \nDe Morgan's Laws: ,
Worked examples
See the formulas applied — reveal one step at a time, like the exam.
A logic circuit is represented by the Boolean expression .
(i) Draw the logic circuit for this expression. [3 marks] (ii) Complete the truth table for this circuit. [4 marks]
- 1
(i) To draw the circuit, we identify the gates needed: two AND gates, one NOT gate, and one OR gate.
- The first AND gate takes inputs A and B.
- The NOT gate takes input B to produce .
- The second AND gate takes inputs and C.
- The OR gate takes the outputs of the two AND gates to produce the final output X.
Simplify the following Boolean expression using algebraic laws. Draw the logic circuit for the original expression and the simplified expression.
- 1
Original Expression:
How it all connects
The big idea sits in the middle — tap a linked idea to explore the link.
Tap a linked idea to see how it connects back to the main topic — that connection is what examiners reward.
Glossary
Try to recall each definition before you reveal it.
Quick check
Answer in your head first — then tap to check. No pressure.
Revision flashcards
Flip the card. Test yourself before the exam.
What is a logic gate?
An electronic component that performs a basic logical function, taking one or more binary inputs (0 or 1) to produce a single binary output.
Key takeaways
Review these before you close the topic — retrieval beats re-reading.
- ✓
NOT Gate: Has one input and one output. It inverts the input. If input A is 1, output X is 0. If A is 0, X is 1. Boolean expression: .
- ✓
AND Gate: Has two or more inputs and one output. The output is 1 only if all inputs are 1. Boolean expression: .
- ✓
OR Gate: Has two or more inputs and one output. The output is 1 if any input is 1. Boolean expression: .
Practice — then mark it
The whole point: a real Cambridge question, marked mark-by-mark.
Test Your Knowledge on Logic Gates
Test Your Knowledge on Logic Gates
Extra simulations & links
PhET, GeoGebra and other curated tools — open in a new tab.
Frequently asked
Checkpoint
One marked question is worth ten re-reads — close the loop before you move on.
Reading it isn’t knowing it — prove it.
Before you move on: do Test Your Knowledge on Logic Gates on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.