Free online digital logic tools

Digital logic, from Boolean algebra to breadboard.

LogicsBench is a logic gate simulator, truth table generator, Karnaugh map solver and 74-series breadboard simulator in one place. Write a Boolean expression and watch it become a truth table, a K-map, a minimized logic circuit and a real TTL chip layout — and when you'd rather be tested than taught, it writes exam-style practice problems and walks you through solving them.

Free to use, with no limits. Create an account to save your work — the calculators need no account at all.

One expression → five views, across three toolsExample: F(A, B, C) = Σm(1, 3, 5, 6, 7)
01 · Expression
F = A'B'C + A'BC + AB'C + ABC' + ABC
minimizes to F = AB + C
5 terms → 23 literals
02 · Truth table
ABCF
0000
0011
0100
0111
1000
1011
1101
1111
03 · K-map A\BC 00011110 01 0110 0111
CAB
04 · Circuit ABC F
2 gatesAND → OR
05 · Chips
74LS08 Quad 2-input AND 74LS32 Quad 2-input OR
2 packages+5 V
The workbench

Three tools carry one function from Boolean algebra to a board you can build.

There is only ever one function F. Write it, and the truth table, the map, the gate network, the breadboard plan and the chip layout are all the same thing seen from a different side — change any one of them and the rest follow.

01

Logic Gate Simulator

Boolean expression → truth table → K-map → logic circuit, live.

FormExpressionGates
AND / ORF = AB + C2
NAND-onlyF = ((AB)' · C')'3
  • Simplification to minimal form
  • NAND-only / NOR-only conversions
  • Gate and literal counts
  • The circuit, drawn and probed live
02

Circuit Simulator

Any logic circuit, wired from gates, run live and checked.

Step 1Wire iton the canvas
Step 2Check itits truth table
Step 3Build itparts + breadboard
  • Gates, switches, LEDs and displays
  • Build from an expression, or start from an example
  • The truth table of the whole circuit
  • Materials list, generated
  • Breadboard plan
03

Breadboard Simulator

Your circuit as real 74-series ICs on a breadboard.

VCC4B4A4Y3B3A3Y 1A1B1Y2A2B2YGND 141312111098 1234567 74LS08
  • Pinouts for every package
  • Package count and supply
  • Probe points
  • Wire colours
Practice

And one generator that sets the problem instead of solving it.

The Problem Generator is the other half of learning digital logic design, and it works the opposite way round: it writes the practice problem, hides the variables among things that only look like signals, and marks your answer step by step. Nothing carries over from the other tools — you start from a blank page, the way a quiz starts.

Problem Generator

Exam-style word problems with distractors planted in the prose. You pick the real signals.

A greenhouse controller runs the exhaust fan when the heater is on and the vents are closed, or whenever the humidity alarm trips. The controller sits beside the blue watering can.

F = HV' + M8 / 8 rows match
Walkthrough · step 4 of 9
  • Name your own variables
  • Nine-step walkthrough marks your work
  • Checked against all 2ⁿ rows, not the wording
  • Seeded — share a problem as a number
Free calculators

Quick answers, no account needed.

Type an expression and get the answer on the page. When the work outgrows a calculator, the same function opens in the full simulator.

Looking something up? The logic gates reference has every symbol and truth table, the 74-series chip pages have each pinout, and the guides walk through every tool.

Sample problem

One practice problem, solved in nine steps.

This is what the Problem Generator gives you. The walkthrough marks each step as you go, so you see exactly where a solution went wrong.

Explore Problem Generator →
PROBLEMseed 48213

A greenhouse controller switches on the exhaust fan when the heater is running and the roof vents are closed, or whenever the humidity alarm trips. The controller box is painted blue, sits beside 40 tomato plants, and is checked by the caretaker every morning. Design the logic for the fan.

Final answer F = M + HV'
3 literalsNOT + AND + OR8 / 8 rows

In the Problem Generator the answer stays hidden until you've worked it.

  1. 1

    Sort out what is really a signal

    The fan is the output. Only three things decide it — the paint, the plants and the caretaker are scenery and change nothing.

    exhaust fan → output heater runningroof ventshumidity alarm painted blue40 tomato plantscaretaker
  2. 2

    Name the variables and fix their order

    Pick your own letters. The walkthrough follows your naming through every later step.

    Hheater is running
    Vroof vents are open
    Mhumidity alarm has tripped
    Fexhaust fan is on
  3. 3

    Translate every sentence into Boolean

    Rewrite each clause as a condition on your variables. "Vents closed" means V = 0.

    "heater running and vents closed"H = 1 and V = 0 → HV'
    "or whenever the alarm trips"M = 1 (any H, V) → + M
  4. 4

    Fill in the truth table

    Three inputs means 2³ = 8 rows. Mark F on each one.

    HVMF
    0000
    0011
    0100
    0111
    1001
    1011
    1100
    1111
  5. 5

    List the minterms

    Every row where F = 1 is a minterm. Together they give the unsimplified sum of products.

    F = Σm(1, 3, 4, 5, 7) = H'V'M + H'VM + HV'M' + HV'M + HVM
  6. 6

    Group the ones on the K-map

    Circle the largest groups of 1s. Four cells give M; two cells give HV'.

    H\VM 00011110 01 0110 1110
  7. 7

    Write the minimized expression

    Each group becomes one product term. Five terms collapse to two.

    F = M + HV'
    5 terms → 23 literals
  8. 8

    Count the cost in 2-input gates

    One inverter makes V', one AND makes HV', and one OR adds M.

    3 gates
    1 NOT · V'1 AND · HV'1 OR · + M
  9. 9

    Build it the ways the question demands

    Draw it the way the question asks. Your answer is tested on all 8 input rows, not matched to our wording — called it C for "vents closed"? F = M + HC passes too.

    000 001 010 011 100 101 110 111
    8 / 8 rows match
Community

See what people are building.

Circuits, breadboards and Boolean functions published by people using LogicsBench. Open any of them in its simulator, flip the switches, and fork a copy of your own to change.

True of all four tools

Dark and light

Late-night lab sessions or a bright classroom projector.

No install

Open it in a browser and start typing.

Your designs stay yours

Every design is saved to your own projects, and can be exported whenever you like.

Shareable as a number

Seeded work: one number gives the whole class the identical problem.

Saved designs on disk

When you run it locally, designs save straight to your drive.

Who it's for

Made for everyone learning digital logic.

Primary

Students

Taking a digital logic course — working homework, quizzes and lab projects.

Before the build

Lab groups

Plan it before touching a breadboard: chip count, package list, wiring plan, current draw.

In the classroom

Instructors & TAs

An endless supply of quiz-shaped problems with worked answer keys. Share one seed and the whole class gets the identical problem.

seed 48213
On your own

Self-learners

Hobbyists coming to digital logic from electronics or software.

Free

Every tool is free to use.

No limits on gates, chips or practice problems, and no card. An account is only there so your work is saved and follows you to any device.

All four tools

The three simulators — logic gate, circuit and breadboard — and the problem generator, in full.

Walkthroughs and answer keys

Every practice problem comes with its nine-step walkthrough and a worked answer.

Calculators without an account

The truth table generator, K-map solver and Boolean algebra calculator open straight away.

From sentence to silicon.

Open it in your browser. No install — just sign in, or create a free account.