L✦ LogicLab
DIGITAL LOGIC · LEARN BY DOING

Understand the logic.
See every step.

Explore Boolean simplification with interactive Karnaugh maps, step-by-step Quine–McCluskey, truth tables and digital code converters.

Your workspace · Your progress · Access from any device
LOGICLAB WORKSPACE● READY
MINIMIZED BOOLEAN EXPRESSIONF(A, B, C) = C
AB\C01010101
K-map solverQuine–McCluskeyCode converters
01 · VISUALIZE

Karnaugh maps

Group adjacent cells and follow the simplification.

02 · UNDERSTAND

Quine–McCluskey

See binary groups, combination rounds and prime implicants.

03 · CONVERT

Digital code lab

Explore number systems, digital codes and logic equations.

L✦

Create your account

Save your account securely and access LogicLab on any device.

Already registered?

Passwords are hashed on the server. Never share your password.

L✦LogicLabDIGITAL LOGIC LEARNING
DIGITAL SYSTEMS · LEARNING WORKSPACE

K-map solver

Explore Boolean functions with visual grouping and clear, step-by-step reasoning.

READY TO LEARN

DIGITAL LOGIC · PRACTICE TOOL

Work through the logic,
one group at a time.

Build a Karnaugh map from minterms or maxterms, inspect each group, and follow how the simplified Boolean expression is obtained.

ƒ
Learn how each simplified term is formed.

Enter a Boolean function and explore the K-map, group selections, truth table, and final minimized expression.

2–4 VARIABLES
01

Function setup

INPUT
ABC
Use decimal indices separated by commas.

SOP mode: enter the minterm indices (the input combinations where F = 1).

Use X terms only when your problem statement permits them.
TRY AN EXAMPLE
02

Answer overview

CALCULATED
MINIMIZED BOOLEAN EXPRESSION
F(A, B, C) = C
VISUAL 01

Logic-gate circuit

FROM MINIMIZED EQUATION

A gate-level view of the expression generated from your entered minterms or maxterms.

MINTERMS4
TERMS1
LITERALS1
✦
How to explain this result

The function is minimized by grouping adjacent 1s and removing variables that change within a group.

Expression terms

If multiple equally minimal solutions exist, this tool displays one valid minimum-cost cover.

03

Truth table

ALL INPUTS
8 input combinations
04

K-map values

GRAY ORDER

A compact cell view of your function. Values are arranged in Gray-code order for easier manual grouping.

1 · minterm X · don't care 0 · maxterm selected group
05

Grouping walkthrough

STEP BY STEP

Groups are chosen to cover every required cell using the fewest groups, then the fewest literals. Select any group to highlight it on the map.

∑
Understand every step of Quine–McCluskey.

Enter a function here independently. These inputs are separate from the K-map solver, so you can study both methods with different examples.

2–8 VARIABLES
01

Enter your function

QUINE–MCCLUSKEY INPUT

Choose the variable count and expression format, then enter the required indices and optional don't-care terms. This form works independently of the K-map solver.

Enter decimal minterm indices separated by commas.
Don't-care indices must not overlap with required indices.
02

How the algorithm works

TABULAR MINIMIZATION

Quine–McCluskey is a systematic method for minimizing Boolean functions. It is especially useful when you want a repeatable tabular process instead of visually grouping cells.

1 · Convert to binary

Write each entered index using exactly the selected number of variables. Keep permitted don't-care terms in the same list.

2 · Group by 1-count

Place terms into groups according to how many 1s appear in their binary pattern. Only neighboring groups need comparison.

3 · Combine terms

Combine two patterns only when they differ in exactly one bit. Replace that differing bit with a dash (–).

4 · Repeat the rounds

Group and compare the newly combined patterns again until no more combinations can be made.

5 · Find prime implicants

Any valid term that cannot be combined further becomes a prime implicant. It represents a product term covering multiple input combinations.

6 · Build the chart

List prime implicants as rows and required minterms/maxterms as columns. A mark shows which required index each implicant covers.

7 · Select a minimum cover

Choose essential implicants first, then select the remaining implicants needed to cover every required index with a low-cost expression.

8 · Write the equation

Translate each selected binary pattern into a Boolean term. A dash means that variable is eliminated because it changes within the group.

How to read a pattern: For variables A, B, C, the pattern 1–0 means A = 1, C = 0, and B can be either value. Its SOP term is A C̅.
03

Your entered function — live derivation

DYNAMIC STEPS

Enter the function in the form above and run the algorithm. The result below includes the generated truth table, circuit diagram, combination rounds, prime-implicant chart and selected cover.

Enter a function above and run the algorithm.
Ready for your input

Enter minterms or maxterms above to see every Quine–McCluskey calculation step.

⇄
Every conversion, one clean workspace.

Switch between number bases and common digital codes without installing anything.

INSTANT RESULTS
01

Number-system converter

BASE 2–36
45
02

Digital code converter

CODE LAB
111011
i
Conversion logic

Gray code keeps the most significant bit and XORs adjacent binary bits.

04

Converter logic equations

CIRCUIT DESIGN

Choose a converter below to see the bit-by-bit Boolean equations used to design its logic circuit.

03

Digital code reference table

DECIMAL DIGITS 0–9

Reference codes shown here are 8421 BCD, Gray code and Excess-3.