Truth tables with three inputs

Real systems often depend on three conditions at once. A truth table with three inputs shows every possible situation.

Practise this lesson free (7 questions)

More tools

Eight rows

Each input can be 0 or 1, so 3 inputs give 2 ร— 2 ร— 2 = 8 combinations.
List them in binary order: 000, 001, 010, 011, 100, 101, 110, 111.

Work in stages

Add a column for each part of the expression. Here P = (A AND B) OR C.
ABCA AND BP
00000
00101
01000
01101
10000
10101
11011
11111

From a problem to logic

Pick out the conditions and join them with AND, OR, NOT.
"The alarm (P) sounds if the door is open (A) AND the system is on (B), OR the panic button (C) is pressed."
P = (A AND B) OR C
Worked example

Find P = A AND NOT B when A = 1, B = 0.

  1. NOT B = NOT 0 = 1
  2. A AND 1 = 1 AND 1 = 1

Answer: P = 1

Key idea

Three inputs give 8 rows. Work through the expression in stages with extra columns. Turn word problems into logic by finding the conditions and the joining words.

Key words
Truth table
A table showing the output of a logic statement for every combination of inputs.
Binary
Base 2: the number system that uses only the digits 0 and 1.

All GCSE and International GCSE Computer Science key terms and definitions โ†’

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. How many rows (not counting the heading) does a truth table with 4 inputs have?

    Show the answer

    Answer: 16

    Each input doubles the rows: 24 = 16.

  2. P = (A AND B) OR NOT C. What is P when A = 1, B = 1, C = 1?

    Show the answer

    Answer: 1

    A AND B = 1 AND 1 = 1. NOT C = NOT 1 = 0. 1 OR 0 = 1.

Check you have got it

Answer 7 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.

What do exam command words like explain and evaluate mean? โ†’

Related lessons