A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Logic Gates Fundamentals

Middle & High School Depth 73 in the knowledge graph ☐ I know this ☆ Set as goal
626topics build on this
321prerequisites beneath it
See this on the map →
Boolean AlgebraBoolean Algebra and Fundamental Laws→→Combinational Circuit DesignHalf Adder Circuit Design+2 more
gates digital-logic fundamentals

Core Idea

Logic gates implement basic Boolean operations: AND (true when all inputs are true), OR (true when any input is true), and NOT (inverts input). These three gates form the foundation for all digital circuits.

Explainer

From Boolean algebra, you already know that logical expressions can be built from AND, OR, and NOT operations. Logic gates are the physical realization of these operations — tiny electronic circuits that take one or more binary inputs (high voltage = 1, low voltage = 0) and produce a binary output according to a fixed rule. The jump from abstract algebra to physical hardware happens here: every Boolean expression you can write corresponds directly to a circuit you can build from gates.

The three fundamental gates are AND, OR, and NOT. An AND gate outputs 1 only when *all* its inputs are 1 — think of it as two switches wired in series, where both must be closed for current to flow. An OR gate outputs 1 when *any* input is 1 — like two switches in parallel, where either one lets current through. A NOT gate (also called an inverter) has a single input and flips it: 0 becomes 1, 1 becomes 0. These three operations are functionally complete, meaning any Boolean function, no matter how complex, can be built using only these gates.

In practice, two derived gates appear constantly: NAND (AND followed by NOT) and NOR (OR followed by NOT). Each of these is individually functionally complete — you can build AND, OR, and NOT gates entirely from NAND gates alone, or entirely from NOR gates alone. This matters for manufacturing because chip fabricators can standardize on a single gate type. Two other common gates are XOR (exclusive OR, which outputs 1 when inputs differ) and XNOR (outputs 1 when inputs match). XOR is particularly important in arithmetic circuits because it captures the behavior of binary addition without the carry.

Each gate's behavior is fully specified by its truth table, which lists every possible input combination and the corresponding output. For a 2-input AND gate, the truth table has four rows (00→0, 01→0, 10→0, 11→1). As you connect gates together, the truth table of the combined circuit grows exponentially — an n-input circuit has 2n rows. This is exactly why Boolean algebra's simplification laws matter: they let you reduce complex expressions before building them in hardware, using fewer gates, less power, and less chip area. The bridge between Boolean algebra on paper and working digital circuits runs directly through these gates.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals

Longest path: 74 steps · 321 total prerequisite topics

Prerequisites (2)

Leads To (4)