Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Logic Gates & Truth Tables Reference cheat sheet - grade 9-12

Click image to open full size

Engineering Grade 9-12

Logic Gates & Truth Tables Reference Cheat Sheet

A printable reference covering AND, OR, NOT, NAND, NOR, XOR, XNOR gates, Boolean expressions, and truth tables for grades 9-12.

Download PNG

Logic gates are the basic building blocks of digital circuits, computers, calculators, sensors, and control systems. This cheat sheet helps students connect gate symbols, Boolean expressions, and truth tables in one quick reference. It is useful for reading circuit diagrams, predicting outputs, and designing simple digital systems.

Students in grades 9-12 need these skills before moving into electronics, robotics, coding, and engineering design.

Key Facts

  • An AND gate outputs 1 only when all inputs are 1, so for two inputs the expression is Y = A AND B.
  • An OR gate outputs 1 when at least one input is 1, so for two inputs the expression is Y = A OR B.
  • A NOT gate inverts one input, so if Y = NOT A, then input 0 gives output 1 and input 1 gives output 0.
  • A NAND gate is the opposite of AND, so Y = NOT(A AND B) and it outputs 0 only when all inputs are 1.
  • A NOR gate is the opposite of OR, so Y = NOT(A OR B) and it outputs 1 only when all inputs are 0.
  • An XOR gate outputs 1 when the two inputs are different, so for two inputs it is 1 for 01 and 10.
  • An XNOR gate outputs 1 when the two inputs are the same, so for two inputs it is 1 for 00 and 11.
  • A truth table with n binary inputs has 2^n rows because each input can be either 0 or 1.

Vocabulary

Logic Gate
A digital circuit element that takes one or more binary inputs and produces one binary output.
Binary
A number system or signal system that uses only two values, usually 0 and 1.
Boolean Expression
A symbolic expression that describes a logic circuit using variables and operators such as AND, OR, and NOT.
Truth Table
A table that lists every possible input combination and the output produced by a logic circuit.
Input
A binary value supplied to a logic gate or circuit before the output is determined.
Output
The binary result produced by a logic gate or circuit after applying its logic rule.

Common Mistakes to Avoid

  • Confusing OR with XOR is wrong because OR outputs 1 when either or both inputs are 1, while XOR outputs 1 only when the inputs are different.
  • Forgetting that NAND and NOR include NOT is wrong because their outputs are the exact opposites of AND and OR.
  • Leaving out input combinations in a truth table is wrong because a complete table must include 2^n rows for n inputs.
  • Applying NOT to only one variable when parentheses show a group is wrong because NOT(A AND B) means invert the result of the whole AND expression.
  • Reading 1 and 0 as ordinary numbers instead of logic states is wrong because in digital logic they represent true and false, high and low, or on and off.

Practice Questions

  1. 1 For inputs A = 1 and B = 0, find the outputs of AND, OR, NAND, NOR, XOR, and XNOR.
  2. 2 How many rows are needed in a truth table for a circuit with 4 inputs?
  3. 3 Complete the output column for Y = NOT(A OR B) for input pairs 00, 01, 10, and 11.
  4. 4 A safety system should turn on only when two sensors both detect a safe condition. Which basic logic gate best matches this requirement, and why?

Understanding Logic Gates & Truth Tables Reference

A digital signal is a physical voltage, but engineers treat it as one of two logical states. A low voltage represents zero. A higher voltage represents one.

Real voltages are not perfectly exact, so circuits use threshold ranges. A voltage safely below the lower threshold is read as zero. A voltage safely above the upper threshold is read as one.

Values between those ranges can cause unreliable behavior. This is why digital electronics can resist small amounts of electrical noise. The truth table describes the intended logical behavior, while the electronic parts must still produce clear voltage levels in the real world.

Truth tables become more useful when a circuit has several stages. Start by listing every possible input combination in a consistent binary order. Then make a separate column for the output of each gate inside the circuit.

These intermediate columns prevent mistakes because they show the result of one step before it enters the next step. A circuit with three inputs has eight possible combinations. Each added input doubles the number of cases to check.

This rapid growth is important in engineering because large circuits cannot usually be checked by guessing. Designers use systematic tables, simulation software, and tests to verify every important condition.

Boolean expressions are a compact language for describing the same decisions shown in a truth table. The order of operations matters. NOT is evaluated first, then AND, then OR, unless parentheses change the order.

Parentheses are especially important when an inverted result applies to a whole group of inputs. A small circle, called a bubble, on a gate symbol means inversion. Bubbles help students read diagrams quickly, but they can be easy to miss.

NAND and NOR gates are especially useful because either type can be combined to build any Boolean function. This matters in manufacturing because using fewer kinds of components can simplify a circuit design.

Logic appears in many familiar systems. A door alarm may require a sensor signal plus an armed signal before it activates. A keypad lock can accept one valid pattern while rejecting others.

XOR logic is used when a system needs to detect that two signals differ. XNOR logic can show that two binary values match. When studying circuits, pay close attention to the meaning of one and zero in the situation.

A one does not always mean something is on. Some controls are active low, meaning zero triggers the action. Label inputs clearly, follow signals one gate at a time, and compare the final result with the required behavior.