A truth table lists every possible combination of binary inputs and shows the corresponding output of each logic gate. To construct one, list all input combinations, calculate intermediate outputs in circuit order, and then determine the final output.
Method
- Identify the input variables, such as and .
- Create one column for each input. With inputs, there are possible input combinations.
- Add columns for intermediate outputs and the final output.
- Work through the circuit from inputs to output, one gate at a time.
The binary value represents true or a high signal, while represents false or a low signal.
Use a consistent counting pattern so no row is omitted: for two inputs, write , , , and . For three inputs, continue from to , giving eight rows. The most significant input changes least often, while the least significant input alternates every row.
| Gate | Output rule |
|---|---|
| AND | Output is only when all inputs are . |
| OR | Output is when at least one input is . |
| NOT | Output is the opposite of its single input. |
Worked Example
Suppose a circuit performs these operations:
There are two inputs, so the table needs rows.
The intermediate columns make the signal path visible. In the row , , NOT first changes to ; AND then gives ; OR finally gives . This order matters because each later gate uses the output produced by the preceding gate, not the original input.
A common misconception is that OR means “one input only.” Standard OR is inclusive: its output is also when both inputs are .
IB Exam Technique
For B3.4 electronic systems, show every input combination and include intermediate columns for multi-gate circuits. Examiners reward systematic tracing; calculating only the final column increases the risk of carrying an unnoticed gate error through the table.
