KS3 · Computer Science
Boolean logic: AND, OR, NOT
Every decision your computer makes boils down to true or false, and three tiny words do all the deciding.
Predict, then check
In a switch circuit, a switch that is on stands for true (1) and a switch that is off stands for false (0).
Circuit 1 has two switches in a line. Circuit 2 has two switches side by side, in parallel. In both circuits, switch 1 is on and switch 2 is off. What happens?
Computer Science · Logic gates
Three gates, three rules
A logic gate is an electronic device that performs Boolean logic: it takes binary inputs and gives a single binary output. Gates are the basic building blocks of digital circuits. Step through each row, and say the output out loud before you read it.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
How a computer makes every decision with nothing but true and false.
What you need to know
- Boolean means an expression that is either true or false. True is often written as 1 and false as 0, the same two values used in binary.
- AND is true only when all its inputs are true. OR is true when at least one input is true, and that includes both. NOT reverses a value: true becomes false and false becomes true.
- A logic gate is an electronic device that takes one or more binary inputs and gives a single binary output. AND and OR gates have two inputs; a NOT gate has one.
- Logic gates are combined into circuits so computers can make decisions and run programs. Modern processors contain billions of them.
The big picture
Boolean logic is about making decisions with just two values: true (often written 1) and false (often written 0). Three operators do the work: AND is true only when all its inputs are true, OR is true when at least one input is true (including both), and NOT flips a value to its opposite. Inside a computer these operators are built as logic gates, small electronic devices that take binary inputs and give a single binary output. Gates are combined into circuits, and a modern processor contains billions of them, which is how a computer makes its decisions.
Key points
Worked example
Problem
A logic gate is drawn with a flat back and a rounded front: half square, half semicircle. Its two inputs are 1 and 0. Which gate is it, and what is its output?
⚠ Watch out
Reading OR as 'one or the other, but not both'. In Boolean logic, A OR B is also true when A and B are both true.
Memory hook
AND is fussy: everyone has to say yes. OR is easy-going: one yes is enough, and two yeses are fine too. NOT is contrary: whatever you say, it says the opposite.
Check yourself
Can you find a pair of inputs where A AND B and A OR B give different answers? Now find one where they give the same answer. How many of each can you find?
Flashcards
(15)What does Boolean mean?
What are the only two values in Boolean logic, and how are they often written?
When is A AND B true?
When is A OR B true?
What does NOT do?
How is a logical operation different from an arithmetic one?
What is a logic gate?
Describe the symbol for an AND gate.
Which gate is drawn as an arrowhead, and how many inputs does it have?
Which gate's symbol ends in a small circle?
What is a truth table?
Who was George Boole?
What did Claude Shannon prove in 1940?
How can switches show AND and OR?
How do logic gates let a computer make decisions?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore KS3 Computer Science topics
- Abstraction in computational thinking
- Adding binary numbers
- Binary to denary conversion
- Bubble sort
- Building truth tables
- Client-server vs peer-to-peer
- Collecting and recording data
- Comparing sorting algorithms
- Compressing data
- Creating a 3D animation
- Decomposition: splitting problems up
- Designing a mobile app
How this lesson was checked. This KS3 Computer Sciencelesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 2 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.