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

Karnaugh Map Simplification

College Depth 75 in the knowledge graph ☐ I know this ☆ Set as goal
623topics build on this
323prerequisites beneath it
See this on the map →
Implementing Boolean Functions with GatesBoolean Algebra and Fundamental Laws→→Combinational Circuit Design
optimization boolean-algebra logic-design

Core Idea

Karnaugh maps simplify Boolean expressions visually by grouping adjacent 1s. Larger groups yield simpler expressions, reducing gate count and improving circuit efficiency.

Explainer

You already know how to express logic functions as Boolean equations and implement them with gates. The problem is that a truth table or sum-of-products expression straight from a specification often contains redundancy — terms that can be combined because they differ in only one variable. Boolean algebra gives you the laws to simplify, but applying them algebraically is error-prone and unsystematic. The Karnaugh map (K-map) solves this by turning algebraic simplification into a visual pattern-matching exercise.

A K-map is a grid where each cell represents one row of the truth table. The key design choice is that adjacent cells differ in exactly one variable — the columns and rows are ordered using Gray code, not standard binary counting. This means that any two physically neighboring cells (including wrap-around from the last column back to the first) share all variable values except one. When two adjacent cells both contain a 1, those two minterms can be combined, eliminating the variable that differs between them. This is exactly the Boolean algebra rule A·B + A·B' = A, but you find it by sight instead of by manipulation.

The grouping rules are straightforward: groups must be rectangular, and their size must be a power of two (1, 2, 4, 8, or 16 cells). A group of two eliminates one variable, a group of four eliminates two, a group of eight eliminates three, and so on. Your goal is to cover every 1 in the map using the fewest, largest possible groups. Each group becomes one product term in the simplified expression, and the variables that stay constant across the group form that term. For example, in a 4-variable K-map, a group of four cells where A=1 and C=0 throughout (while B and D vary) simplifies to the term A·C'.

Don't-care conditions — inputs that will never occur or whose output doesn't matter — are marked with X and can be included in groups if doing so makes a group larger. This is where K-maps really shine compared to algebraic simplification: you can opportunistically absorb don't-cares to create bigger groups without affecting the circuit's behavior on valid inputs. The result is a minimal sum-of-products (or product-of-sums) expression that maps directly to a gate-level implementation with fewer gates, fewer inputs per gate, and lower propagation delay than the unsimplified version.

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 → Implementing Boolean Functions with Gates → Karnaugh Map Simplification

Longest path: 76 steps · 323 total prerequisite topics

Prerequisites (2)

Leads To (1)