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 LawsCombinational 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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesBoolean AlgebraBoolean Type and Truth ValuesComparison Operators and Boolean TestsLogical Operators and Boolean AlgebraBoolean Algebra and Fundamental LawsLogic Gates Fundamentals

Longest path: 74 steps · 321 total prerequisite topics

Prerequisites (2)

Leads To (4)