Interactive Logic Simulator

Build, Simulate and Understand Digital Logic

A free, browser-based logic circuit simulator for students, teachers and hobbyists. Design circuits from logic gates, watch signals propagate in real time, and learn digital electronics with guided tutorials and challenges.

What Is logicsimulation.com?

Every computer, phone and digital device is built from logic gates — tiny circuits that take binary inputs (0 or 1) and produce a binary output according to a fixed rule. Understanding how these gates combine into adders, multiplexers, latches and registers is the core of every digital electronics and computer architecture course, but it is hard to build that intuition from static diagrams in a textbook.

logicsimulation.com is an interactive workbench for exactly that. You place gates on a canvas, connect them with wires and flip input switches; the simulator evaluates the circuit instantly and highlights every wire that carries a logic 1. You can see why a NAND gate is universal, how a carry ripples through a full adder, or how an SR latch remembers a bit — by building it yourself rather than reading about it.

The simulator runs entirely in your browser. Nothing has to be installed, and your circuits stay on your own device unless you choose to export them.

Features

Real-Time Simulation

Every time you toggle a switch or draw a wire, the whole circuit is re-evaluated. Wires carrying a logic 1 light up, so you can follow a signal from input to output.

Drag-and-Drop Editor

Place gates, switches, LEDs, clocks, flip-flops, multiplexers and 7-segment displays on a canvas and connect their ports with wires. Undo, redo and touch input are supported.

Circuit Library

39 ready-made textbook circuits — from single gates to half and full adders, SR and JK flip-flops, shift registers, priority encoders and a clock divider — that open in the editor with one click.

12-Chapter Tutorial

A structured mini-course that starts with binary states and boolean basics and ends with flip-flops, memory and small projects, with example circuits for every chapter.

27 Challenges

Graded exercises from "connect your first wire" to building a full adder or an XOR gate from NANDs only. The simulator checks your circuit against the expected truth table.

Logic Analyzer & Inspector

Click any gate to see its truth table and live state, or open the logic analyzer to watch signals over time as waveforms — useful for clocked, sequential circuits.

How to Build Your First Circuit

  1. Add inputs. Drop one or more INPUT switches on the canvas. Each switch can be toggled between 0 and 1.
  2. Place gates. Pick a gate such as AND, OR or XOR from the toolbox and place it next to the inputs.
  3. Draw wires. Drag from an output port to an input port to connect components. A wire glows when it carries a 1.
  4. Add outputs. Connect the final gate to an OUTPUT LED or a 7-segment display to see the result.
  5. Test every case. Toggle the inputs through every combination and compare the outputs with the truth table you expect.

A good first exercise is a half adder: two inputs A and B, an XOR gate for the Sum output and an AND gate for the Carry output. Toggle all four input combinations and you have just built the circuit that every CPU uses to add binary numbers. The half adder guide walks through it step by step.

The 12-Chapter Tutorial

Inside the simulator, the Tutorials tab offers a structured course. Each chapter explains one topic and links to example circuits you can open and modify:

  1. Introduction to Digital Logic
  2. Binary States & Boolean Basics
  3. Basic Gates: AND, OR, NOT
  4. Universal Gates: NAND & NOR
  5. XOR and XNOR
  6. Combining Gates into Circuits
  7. Adders & Subtractors
  8. Multiplexers & Decoders
  9. Sequential Logic Basics
  10. Flip-Flops & Memory Concepts
  11. Building Small Projects
  12. Practice Challenges

Learn the Fundamentals

Logic Gates

Circuits and Techniques

Ready to Build a Circuit?

Open the editor and start with a single gate, or load one of the 39 example circuits from the library.

Frequently Asked Questions

  • Is logicsimulation.com free?

    Yes. The simulator, tutorials, circuit library and challenges are free to use. There is no account, download or installation.

  • Who is it for?

    It is built for university and high-school students taking digital electronics or computer architecture, for teachers who want an interactive classroom demo, and for hobbyists who want to try a circuit before building it on a breadboard.

  • Which components are available?

    All seven basic gates (AND, OR, NOT, NAND, NOR, XOR, XNOR) including 3-input variants, input switches, output LEDs, clock and pulse generators, SR, D, JK and T flip-flops, multiplexers, half and full adders and 7-segment displays.

  • Can I save my circuits?

    Yes. Circuits can be saved as a JSON file on your computer and loaded again later. Your challenge progress is stored in your own browser.

  • Does it work on phones and tablets?

    Yes. The editor supports touch input for placing components and drawing wires, and the layout adapts to small screens.